fsusage: port back to Solaris
[gnulib.git] / ChangeLog
1 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fsusage: port back to Solaris
4         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
5         error (fsd not declared) on Solaris 10.  Reported privately by
6         Andrew Borodin.
7
8 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
9
10         gnu-web-doc-update: fix error messages
11         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
12
13         gnu-web-doc-update: check the requirements.
14         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
15         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
16         * build-aux/bootstrap (find_tool): Comment change.
17
18 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19
20         maint.mk: minor simplication.
21         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22         for default values.
23
24 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
25
26         gitlog-to-changelog: VPATH build issues
27         If builddir is not a subdirectory of srcdir, running git from it will
28         fail.
29         * build-aux/gitlog-to-changelog (--srcdir): New option.
30
31 2012-07-15  Bruno Haible  <bruno@clisp.org>
32
33         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
35         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36         Remove exemption for fpending.h.
37         Suggested by Eric Blake.
38
39 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40
41         pthread_sigmask: fix bug on FreeBSD 9
42         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
43         Include string.h.
44         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
45         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
46         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
47         but pthread_sigmask (1729, NULL, NULL) returns zero.
48         See <http://bugs.gnu.org/11884>.
49         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
50         by inspecting whether the main call changed the old mask.
51
52 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
53
54         README-release: make it more legible
55         * top/README-release: Improve typography slightly.
56
57 2012-07-15  Jim Meyering  <meyering@redhat.com>
58
59         maint: require that each sc_... command start with "@"
60         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
61         "make sc_maint" helps us avoid this nit.
62
63 2012-07-15  Jim Meyering  <meyering@redhat.com>
64
65         maint.mk: add leading "@" to quiet new "make syntax-check" rule
66         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
67
68 2012-07-13  Eric Blake  <eblake@redhat.com>
69
70         maint.mk: new syntax check for HAVE_DECL checks
71         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
72         * cfg.mk
73         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
74         Exempt some false positives.
75         Based on a report by Karel Zak.
76
77         argp: make HAVE_DECL usage consistent
78         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
79         macros, not whether they are defined.
80         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
81         convention with other declaration checks.
82         Reported by Karel Zak, with suggestions from Paul Eggert.
83
84         stat-time: relax license to LGPLv2+
85         * modules/stat-time (License): Relax, with consent of all authors.
86
87         strndup: fix m4 usage error
88         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
89         defined, to either 0 or 1.
90         Reported by Karel Zak.
91
92 2012-07-11  Jim Meyering  <meyering@redhat.com>
93
94         maint: enable the sc_avoid_if_before_free syntax-check rule
95         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
96         (if_before_free_offenders_): Define.
97         (if_before_free_basename_re_): Define.
98         Exempt current files with useless if-before-free.
99
100 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
101
102         gettext: do not assume '#define ... defined ...' behavior
103         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
104         Do not use '#define FOO ... defined BAR ...', as the C standard says
105         it's not portable to expect that this works after macro expansion.
106         Problem reported for gzip by Steven M. Schweda in
107         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
108
109 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
110
111         getloadavg: clean out old Emacs and Autoconf cruft
112         See Glenn Morris in <http://bugs.gnu.org/11905>.
113         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
114         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
115         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
116         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
117
118 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
119
120         bootstrap: let warn be like tests/init.sh's warn_
121         Reported by Jim Meyering.
122         * build-aux/bootstrap (warn): Remove, replaced by...
123         (warnf_, warn_): these.
124         Adjust callers.
125         Shorten messages that no longer fit in 80 columns.
126
127 2012-07-09  Bruno Haible  <bruno@clisp.org>
128
129         getopt: Simplify after Emacs changed.
130         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
131         (gl_GETOPT_IFELSE): Remove macro.
132
133 2012-07-09  Jim Meyering  <meyering@redhat.com>
134
135         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
136         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
137
138         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
139         Bugs in both of those conspired to make the
140         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
141         _sc_search_regexp's handling of non-empty $in_files would filter
142         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
143         choice of in_files value meant there would be no match in most
144         projects, due to the presence of two or more Makefile.in files.
145         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
146         Fix a bug in how a non-empty $$in_files was processed:
147         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
148         in spite of the name, it's a regexp, not a list of file names.
149
150 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
151
152         getloadavg, getopt: fix commentary re configure.in
153         Autoconf is deprecating the name 'configure.in', so change it to
154         to the new name 'configure.ac' in a couple of places.
155         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
156         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
157         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
158         Emacs has renamed it to configure.ac, and it no longer refers
159         to these macros anyway.
160
161         timespec: mark functions with const attributes
162         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
163         Mark with _GL_ATTRIBUTE_CONST.
164
165 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
166
167         canonicalize[-lgpl]: handle "guessing" values when cross-building
168         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
169         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
170         matches "*yes" instead of just "yes".  Regression introduced in commit
171         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
172
173 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
174             Bruno Haible  <bruno@clisp.org>
175
176         canonicalize: make the right guess when cross-compiling to GNU
177         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
178         determine whether cross-compiling to glibc systems, so as to
179         include GNU/Hurd.
180
181 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
182
183         timespec-sub: avoid duplicate include
184         * lib/timespec-sub.c: Do not include <config.h> twice.
185         Reported by Juanma Barranquero.
186
187 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
188
189         bootstrap: use a more consistent error reporting scheme
190         * build-aux/bootstrap (warn, die): New.
191         Use them.
192
193 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
194
195         sys_time: allow too-wide tv_sec
196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
197         timeval even if tv_sec is wider than time_t.  This allows
198         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
199         as without this patch gnulib replaces struct timeval
200         and OpenBSD futimes therefore has a type mismatch.
201         * doc/posix-headers/sys_time.texi: Mention this.
202
203         pthread: check for both pthread_create and pthread_join
204         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
205         alter the check so that it tests for both pthread_create and
206         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
207         Suggested by Bruno Haible and Richard Yao in
208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
209
210         parse-datetime: doc tuneup
211         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
212         spacing issues.
213
214 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
215
216         do-release-commit-and-tag: fix the previous commit
217         * build-aux/do-release-commit-and-tag: Actually the test was right,
218         but the comment and the error message were misleading.
219         Fix comment, and improve error message.
220         Perform check first, so that NEWS is not modified uselessly.
221
222         do-release-commit-and-tag: fix typo
223         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
224         _not_ start with a stub.
225
226 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
227
228         pthread: check for pthread_create, not pthread_join
229         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
230         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
231         pthread_join in libc.  I hope this removes the need for all the
232         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
234
235 2012-07-04  Jim Meyering  <meyering@redhat.com>
236
237         parse-datetime: fix failure to diagnose invalid input
238         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
239         rather than diagnosing the invalid input.  Now it reports this:
240         date: invalid date '\260'
241         * lib/parse-datetime.y (to_uchar): Define.
242         (yylex): Don't sign-extend "other" bytes.
243         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
244         Thanks to Bruno Haible for the patch to this file.
245         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
246         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
247
248 2012-07-03  Jim Meyering  <meyering@redhat.com>
249
250         bootstrap: do not require now-removed build-aux/missing
251         Now that build-aux/missing is, er, missing, bootstrap would
252         silently fail.
253         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
254         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
255         no longer part of gnulib.
256         Diagnose the failure.
257
258 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
259
260         alloca: add support for HP NonStop TNS/E native
261         * lib/alloca.in.h (alloca): Support the new host.
262         From a suggestion by Joachim Schmitz in
263         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
264
265 2012-07-02  Pádraig Brady  <P@draigBrady.com>
266
267         fsusage: remove code not needed on non GNU/Linux systems.
268
269         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
270         Don't include headers no longer needed in this case.
271         * lib/fsusage.c [STAT_STATVFS &&
272         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
273         STAT_STATFS2_FRSIZE to exclude code not used in this case.
274
275 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
276
277         fsusage: include files needed for glibc 2.6 fallback
278         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
279         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
280         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
281         Problem reported by Ludovic Courtès in
282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
283
284         fsusage: avoid needless check on GNU/Linux
285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
286         on GNU/Linux systems, since it can't possibly work.
287
288 2012-07-01  Bruno Haible  <bruno@clisp.org>
289
290         log: Fix an autoconf >= 2.64 warning.
291         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
292         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
293
294 2012-06-28  Bruno Haible  <bruno@clisp.org>
295
296         log10f: Fix possible configuration problem.
297         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
298         $LOGF_LIBM.
299         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
300
301 2012-06-28  Bruno Haible  <bruno@clisp.org>
302
303         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
304         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
305         not gl_cv_func_unlink_works.
306         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
307
308 2012-06-27  Eric Blake  <eblake@redhat.com>
309
310         config: drop scripts that automake says are not independent
311         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
312         * build-aux/elisp-comp: Delete.
313         * build-aux/missing: Likewise.
314         * build-aux/ylwrap: Likewise.
315         * modules/elisp-comp: Likewise.
316         * MODULES.html.sh: Drop mention of elisp-comp.
317         * NEWS: Mention this.
318
319 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
320
321         root-uid: new module
322         This is for portability to Tandem's NonStop Kernel.
323         * lib/root-uid.h, modules/root-uid: New files.
324         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
325         * lib/write-any-file.c, tests/test-sethostname2.c:
326         Include "root-uid.h".
327         * lib/euidaccess.c (euidaccess):
328         * lib/pt_chown.c (main):
329         * lib/unlinkdir.c (cannot_unlink_dir):
330         * lib/write-any-file.c (can_write_any_file):
331         * m4/mknod.m4 (gl_FUNC_MKNOD):
332         * tests/test-sethostname2.c (geteuid, main):
333         Don't assume ROOT_UID == 0.
334         * modules/euidaccess (Depends-on):
335         * modules/pt_chown (Depends-on):
336         * modules/sethostname-tests (Depends-on):
337         * modules/unlinkdir (Depends-on):
338         * modules/write-any-file (Depends-on):
339         Add root-uid.
340
341         regex: use locale-independent comparison for codeset name
342         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
343         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
344         for codeset name.
345         * lib/regex_internal.h: Do not include <strings.h>, since we
346         no longer use strcasecmp.
347         * modules/regex (Depends-on): Remove strcase.
348
349 2012-06-23  Bruno Haible  <bruno@clisp.org>
350
351         getopt-posix: No longer guarantee that option processing is resettable.
352         * doc/posix-functions/getopt.texi: Drop description of problem with
353         internal state. Fix info about mingw and msvc9.
354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
355         option processing by getopt(). Run three test programs instead of one.
356         Simplify cross-compilation guess.
357         * NEWS: Mention the change.
358         Reported by Rich Felker <dalias@aerifal.cx>.
359
360 2012-06-26  Bruno Haible  <bruno@clisp.org>
361
362         argp, regex: Ensure strcasecmp gets declared.
363         * lib/argp-help.c: Include <strings.h>.
364         * lib/regex_internal.h: Likewise.
365         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
366
367 2012-06-24  Bruno Haible  <bruno@clisp.org>
368
369         ptsname_r: Make it consistent with ptsname on AIX.
370         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
371         implementation as for OSF/1.
372         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
373         a pty master.
374
375         ptsname_r: Make it consistent with ptsname on OSF/1.
376         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
377         OSF/1.
378
379 2012-06-24  Bruno Haible  <bruno@clisp.org>
380
381         ttyname_r: Fix result on OSF/1, Solaris.
382         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
383
384 2012-06-24  Bruno Haible  <bruno@clisp.org>
385
386         ptsname_r: Add support for Solaris.
387         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
388         Solaris.
389
390         ptsname_r: Fix test failure on native Windows.
391         * modules/ptsname_r (Depends-on): Add isatty.
392
393         ptsname_r: Fix test failures on IRIX, Solaris.
394         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
395         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
396         accordingly.
397         * lib/ptsname_r.c: Include <fcntl.h>.
398         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
399         set errno if fd is invalid.
400         * tests/test-isatty.c (main): Update comments.
401
402 2012-06-24  Bruno Haible  <bruno@clisp.org>
403
404         ptsname test: Extend test.
405         * tests/test-ptsname.c: Include <errno.h>.
406         (main): Test behaviour with invalid file descriptor.
407
408 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
409
410         time: fix obsolete comment
411         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
412         reference to HAVE_STRUCT_TIMESPEC in comment.
413
414 2012-06-23  Bruno Haible  <bruno@clisp.org>
415
416         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
418         does not handle abbreviated long options with equivalent
419         disambiguations, set gl_replace_getopt to yes.
420         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
421
422 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
423
424         time_r: fix typo that always overrode localtime_r decl
425         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
426         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
427         not in a standard include.
428
429 2012-06-22  Bruno Haible  <bruno@clisp.org>
430
431         Write "Mac OS X" instead of "MacOS X".
432         * README: Write "Mac OS X" instead of "MacOS X".
433         * build-aux/bootstrap: Likewise.
434         * build-aux/install-reloc: Likewise.
435         * lib/acl-internal.h: Likewise.
436         * lib/acl_entries.c: Likewise.
437         * lib/argp-ba.c: Likewise.
438         * lib/argp-pv.c: Likewise.
439         * lib/config.charset: Likewise.
440         * lib/copy-acl.c: Likewise.
441         * lib/csharpexec.c: Likewise.
442         * lib/euidaccess.c: Likewise.
443         * lib/fbufmode.c: Likewise.
444         * lib/fflush.c: Likewise.
445         * lib/file-has-acl.c: Likewise.
446         * lib/filemode.h: Likewise.
447         * lib/fpurge.c: Likewise.
448         * lib/freadable.c: Likewise.
449         * lib/freadahead.c: Likewise.
450         * lib/freading.c: Likewise.
451         * lib/freadptr.c: Likewise.
452         * lib/freadseek.c: Likewise.
453         * lib/fseeko.c: Likewise.
454         * lib/fseterr.c: Likewise.
455         * lib/fsusage.c: Likewise.
456         * lib/fwritable.c: Likewise.
457         * lib/fwriting.c: Likewise.
458         * lib/get-rusage-as.c: Likewise.
459         * lib/get-rusage-data.c: Likewise.
460         * lib/getdomainname.c: Likewise.
461         * lib/idpriv-drop.c: Likewise.
462         * lib/idpriv-droptemp.c: Likewise.
463         * lib/localcharset.c: Likewise.
464         * lib/locale.in.h: Likewise.
465         * lib/localename.c: Likewise.
466         * lib/mbsrtowcs-state.c: Likewise.
467         * lib/nproc.c: Likewise.
468         * lib/passfd.c: Likewise.
469         * lib/posix_openpt.c: Likewise.
470         * lib/printf-parse.c: Likewise.
471         * lib/progreloc.c: Likewise.
472         * lib/safe-read.h: Likewise.
473         * lib/safe-write.h: Likewise.
474         * lib/sched.in.h: Likewise.
475         * lib/set-mode-acl.c: Likewise.
476         * lib/signal.in.h: Likewise.
477         * lib/stdint.in.h: Likewise.
478         * lib/stdio-impl.h: Likewise.
479         * lib/stdlib.in.h: Likewise.
480         * lib/strtod.c: Likewise.
481         * lib/sys_select.in.h: Likewise.
482         * lib/tcgetsid.c: Likewise.
483         * lib/unistd.in.h: Likewise.
484         * lib/unlockpt.c: Likewise.
485         * lib/vasnprintf.c: Likewise.
486         * lib/vma-iter.c: Likewise.
487         * lib/wcsrtombs-state.c: Likewise.
488         * m4/acl.m4: Likewise.
489         * m4/acosl.m4: Likewise.
490         * m4/asinl.m4: Likewise.
491         * m4/atanl.m4: Likewise.
492         * m4/c-stack.m4: Likewise.
493         * m4/cosl.m4: Likewise.
494         * m4/expl.m4: Likewise.
495         * m4/extensions.m4: Likewise.
496         * m4/fdatasync.m4: Likewise.
497         * m4/fmal.m4: Likewise.
498         * m4/frexp.m4: Likewise.
499         * m4/frexpf.m4: Likewise.
500         * m4/frexpl.m4: Likewise.
501         * m4/fsusage.m4: Likewise.
502         * m4/getdomainname.m4: Likewise.
503         * m4/getloadavg.m4: Likewise.
504         * m4/getopt.m4: Likewise.
505         * m4/gettext.m4: Likewise.
506         * m4/gnulib-common.m4: Likewise.
507         * m4/intdiv0.m4: Likewise.
508         * m4/intlmacosx.m4: Likewise.
509         * m4/largefile.m4: Likewise.
510         * m4/ldexpl.m4: Likewise.
511         * m4/link-follow.m4: Likewise.
512         * m4/locale-ar.m4: Likewise.
513         * m4/locale-fr.m4: Likewise.
514         * m4/locale-ja.m4: Likewise.
515         * m4/locale-tr.m4: Likewise.
516         * m4/locale-zh.m4: Likewise.
517         * m4/locale_h.m4: Likewise.
518         * m4/lock.m4: Likewise.
519         * m4/logl.m4: Likewise.
520         * m4/mathfunc.m4: Likewise.
521         * m4/minus-zero.m4: Likewise.
522         * m4/mktime.m4: Likewise.
523         * m4/mmap-anon.m4: Likewise.
524         * m4/multiarch.m4: Likewise.
525         * m4/nanosleep.m4: Likewise.
526         * m4/nocrash.m4: Likewise.
527         * m4/poll.m4: Likewise.
528         * m4/printf-frexpl.m4: Likewise.
529         * m4/printf.m4: Likewise.
530         * m4/signbit.m4: Likewise.
531         * m4/sinl.m4: Likewise.
532         * m4/sqrtl.m4: Likewise.
533         * m4/strerror_r.m4: Likewise.
534         * m4/tanl.m4: Likewise.
535         * m4/threadlib.m4: Likewise.
536         * m4/ttyname_r.m4: Likewise.
537         * m4/unlink.m4: Likewise.
538         * m4/visibility.m4: Likewise.
539         * m4/wcwidth.m4: Likewise.
540         * tests/minus-zero.h: Likewise.
541         * tests/test-alloca-opt.c: Likewise.
542         * tests/test-copy-acl.sh: Likewise.
543         * tests/test-copy-file.sh: Likewise.
544         * tests/test-fdatasync.c: Likewise.
545         * tests/test-file-has-acl.sh: Likewise.
546         * tests/test-flock.c: Likewise.
547         * tests/test-fsync.c: Likewise.
548         * tests/test-localename.c: Likewise.
549         * tests/test-malloca.c: Likewise.
550         * tests/test-nonblocking-pipe.h: Likewise.
551         * tests/test-nonblocking-socket.h: Likewise.
552         * tests/test-openpty.c: Likewise.
553         * tests/test-posix_openpt.c: Likewise.
554         * tests/test-ptsname.c: Likewise.
555         * tests/test-ptsname_r.c: Likewise.
556         * tests/test-sameacls.c: Likewise.
557         * tests/test-select.h: Likewise.
558         * tests/test-set-mode-acl.sh: Likewise.
559         * tests/test-snprintf-posix.h: Likewise.
560         * tests/test-sprintf-posix.h: Likewise.
561         * tests/test-strtod.c: Likewise.
562         * tests/test-time.c: Likewise.
563         * tests/test-vasnprintf-posix.c: Likewise.
564         * tests/test-vasprintf-posix.c: Likewise.
565         * doc/acl-resources.txt: Likewise.
566         * doc/**/*.texi: Likewise.
567         Reported by Max Horn <max@quendi.de>.
568
569 2012-06-22  Bruno Haible  <bruno@clisp.org>
570
571         grantpt: Relax requirement regarding invalid file descriptors.
572         * lib/grantpt.c: Don't include <fcntl.h>.
573         (grantpt): Don't verify the validity of the file descriptor.
574         * modules/grantpt (Depends-on): Remove fcntl-h.
575         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
576         file descriptors.
577         * doc/posix-functions/grantpt.texi: Document more platforms on which
578         grantpt succeeds for invalid file descriptors.
579         Reported by Rich Felker <dalias@aerifal.cx>.
580
581 2012-06-22  Bruno Haible  <bruno@clisp.org>
582
583         fbufmode test: Don't test unportable behaviour.
584         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
585         (main): Invoke it three times.
586         Reported by Szabolcs Nagy <nsz@port70.net>
587         and Rich Felker <dalias@aerifal.cx>.
588
589 2012-06-21  Bruno Haible  <bruno@clisp.org>
590
591         gnulib-tool: Refactor inctests variable.
592         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
593         (func_modules_transitive_closure,
594         func_modules_transitive_closure_separately,
595         func_import, func_create_testdir): Update.
596
597         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
598         * gnulib-tool: Accept option --without-tests.
599         (func_usage): Document --without-tests option. Rearrange.
600         (inctests): Normalize according to the mode.
601         * NEWS: Mention the change.
602         Suggested by Simon Josefsson.
603
604 2012-06-21  Bruce Korb  <bkorb@gnu.org>
605
606         parse-duration test: Avoid spurious output.
607         * tests/test-parse-duration.sh: Reindent with leading tabs.
608
609 2012-06-21  Jim Meyering  <meyering@redhat.com>
610
611         maint: disable the strncpy prohibition
612         * cfg.mk: Do not prohibit strncpy here.
613
614 2012-06-21  Bruno Haible  <bruno@clisp.org>
615
616         nonblocking: Avoid compilation error on mingw64.
617         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
618         fscanf.
619         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
620         * modules/vfscanf (configure.ac): Likewise.
621         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
622         definition only if stdio.h has prepared it.
623         Reported by Daniel P. Berrange <berrange@redhat.com>.
624
625 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
626
627         gnulib-tool: Use readlink if it is available.
628         * gnulib-tool (func_readlink): Choose function more appropriately.
629
630 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
631
632         posixtm-tests: port to buggy compiler
633         Problem reported by Simon Josefsson in
634         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
635         * modules/posixtm-tests (Depends-on): Add stdint.
636         * tests/test-posixtm.c (struct posixtm_test.t_expected):
637         Now of type int_least64_t, not int64_t, both because that's
638         what INT64_C returns and because int_least64_t works even
639         on 72-bit hosts.
640         (T): Use INT64_C on constants outside the traditional int range,
641         to work around compiler bug noted by Simon.
642
643         mktime: fix integer overflow in 'configure'-time test
644         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
645         after integer overflow.  Problem reported by Rich Felker in
646         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
647         Also, don't look for further instances of a bug if we've already
648         found one instance; this helps 'configure' run faster.
649
650 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
651
652         tmpfile, clean-temp: Fix invocation of GetVersionEx.
653         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
654         GetVersionEx correctly.
655         * lib/clean-temp.c (supports_delete_on_close): Likewise.
656
657 2012-06-20  Bruno Haible  <bruno@clisp.org>
658
659         fdopen: Allow implementations that don't reject invalid fd arguments.
660         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
661         succeeds.
662         Reported by Rich Felker <dalias@aerifal.cx>.
663
664 2012-06-20  Simon Josefsson  <simon@josefsson.org>
665
666         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
667         bring in LIBINTL.
668
669 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
670
671         init.sh: do not rely on autoupated PWD
672         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
673         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
674         Although Nelson's bug was not necessarily fixed by this patch,
675         it seems wise to make the change for safety.
676         * tests/init.sh (path_prepend_): Do not rely on PWD updating
677         automagically after 'cd'; this is not reliable on older shells.
678         (setup_): Fail if we cannot cd to temporary directory.
679
680 2012-06-19  Bruno Haible  <bruno@clisp.org>
681
682         stat, fstat: Avoid warnings on mingw64.
683         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
684         redefining.
685         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
686         Reported by Daniel P. Berrange <berrange@redhat.com>.
687
688 2012-06-19  Bruno Haible  <bruno@clisp.org>
689
690         stdioext: Add support for musl libc.
691
692         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
693         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
694
695         * m4/fseterr.m4: New file.
696         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
697         function exists.
698         * modules/fseterr (Files): Add m4/fseterr.m4.
699         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
700         __fseterr does not exist.
701         (Makefile.am): Remove fseterr.c from lib_SOURCES.
702
703         * lib/freadable.h: Update comment.
704
705         * lib/fwritable.h: Update comment.
706
707         * lib/freading.h: Update comment.
708
709         * lib/fwriting.h: Update comment.
710
711         * m4/freadahead.m4: New file.
712         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
713         that function exists.
714         * modules/freadahead (Files): Add m4/freadahead.m4.
715         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
716         __freadahead does not exist.
717         (Makefile.am): Remove freadahead.c from lib_SOURCES.
718
719         * m4/freadptr.m4: New file.
720         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
721         function exists.
722         * modules/freadptr (Files): Add m4/freadptr.m4.
723         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
724         __freadptr does not exist.
725         (Makefile.am): Remove freadptr.c from lib_SOURCES.
726
727         * m4/freadseek.m4: New file.
728         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
729         exists.
730         * modules/freadseek (Files): Add m4/freadseek.m4.
731         (configure.ac): Invoke gl_FUNC_FREADSEEK.
732
733         * lib/fpurge.c (fpurge): Update comment.
734
735         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
736
737 2012-06-19  Bruno Haible  <bruno@clisp.org>
738
739         *printf-posix: Put more info into config.log.
740         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
741         exit code into config.log.
742
743 2012-06-19  Bruno Haible  <bruno@clisp.org>
744
745         getopt-gnu: Fix exit code overflow in autoconf test.
746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
747         to keep them below < 128.
748
749 2012-06-17  Jim Meyering  <meyering@redhat.com>
750
751         maint.mk: fix typo in code to derive GPG key at release time
752         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
753
754 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
755
756         regex: avoid warning when pointers are not long
757         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
758         and uintptr_t, not long, for portability to hosts where pointers and
759         long have different sizes.  Issue noted by Daniel P. Berrange in
760         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
761         and fix suggested by Bruno Haible in
762         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
763
764 2012-06-17  Bruno Haible  <bruno@clisp.org>
765
766         dummy: Relicense into the public domain.
767         * modules/dummy (License): Set to "public domain".
768         Suggested by Reuben Thomas.
769
770 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
771
772         announce-gen: VPATH issues
773         * build-aux/announce-gen (--srcdir): New option, used to trim the
774         $srcdir part of the path from $builddir to NEWS.
775         * top/maint.mk (announcement): Adjust.
776
777 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
778
779         gnu-web-doc-update: VPATH builds
780         * build-aux/gnu-web-doc-update (--builddir): New option.
781         Revamp the handling of options.
782         Prefer $(...) to `...`.
783         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
784         the template, and it is GNU mktemp specific.
785         Prefer set -e to long series of &&.
786         Restore the initial git branch, not "master".
787         Properly initialize submodules (don't rely only on bootstrap).
788         Do not reconfigure blindly, use config.status.
789         * top/README-release: Update instructions for gnu-web-doc-update.
790
791 2012-06-11  Jim Meyering  <meyering@redhat.com>
792
793         maint.mk: revert most of the previous change re "all these"
794         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
795         For rationale, see the discussion at
796         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
797
798 2012-06-10  Karl Berry  <karl@gnu.org>
799
800         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
801
802         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
803
804 2012-06-10  Bruce Korb  <bkorb@gnu.org>
805
806         parse-duration: Relicense under LGPLv2+.
807         * modules/parse-duration (License): Change to LGPLv2+.
808
809 2012-06-10  Jim Meyering  <meyering@redhat.com>
810
811         maint.mk: prohibit common grammar error: "all these"
812         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
813         the list of prohibited word sequences.  It should be "all of these".
814         * lib/tempname.c (__gen_tempname): Fix one of them.
815
816 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
817
818         do-release-commit-and-tag: support VPATH builds
819         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
820         (noteworthy): Defined earlier to factor its value.
821         (noteworthy_stub): New.
822         Use it to factor.
823         (help_version): Split into...
824         (help, version): these.
825         Adjust the option processing part.
826         Support "--option=value" in addition to "--option value".
827         (builddir): New.
828         (--builddir): New option.
829         * top/README-release: Document this.
830         Reword slightly so that the reader cannot understand that he
831         has to do these steps before calling do-release-commit-and-tag.
832
833 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
834
835         readme-release: also require announce-gen and maintainer-makefile
836         * modules/readme-release (Depends-on): here.
837         * modules/announce-gen, modules/do-release-commit-and-tag,
838         modules/gnu-web-doc-update, modules/maintainer-makefile
839         (Description): Point to readme-release.
840
841 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
842
843         maint.mk: fix VPATH issues.
844         * top/maint.mk (news-check): GNU Make understand $< very well.
845         (release-prep): NEWS is in $(srcdir).
846
847 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
848
849         readme-release: require the promoted modules.
850         * modules/readme-release (Depends-on): Add
851         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
852         in this text.
853
854 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
855             Bruno Haible  <bruno@clisp.org>
856
857         error, strerror-override: Support mingw64 from Fedora 17.
858         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
859         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
860         EINPROGRESS.
861         * lib/strerror-override.h (strerror_override): Test it.
862         * lib/strerror-override.c (strerror_override): Likewise.
863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
864
865 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
866             Bruno Haible  <bruno@clisp.org>
867
868         error, strerror-override: Support mingw64 from Fedora 17.
869         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
870         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
871         * lib/strerror-override.h (strerror_override): Test it.
872         * lib/strerror-override.c (strerror_override): Likewise.
873
874 2012-06-03  Bruno Haible  <bruno@clisp.org>
875
876         error, strerror-override: Support new errno values from POSIX:2008.
877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
878         ENOTRECOVERABLE.
879         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
880         platforms.
881         * lib/strerror-override.c (strerror_override): Conditionalize the
882         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
883         * lib/strerror-override.h (strerror_override): Declare also if
884         GNULIB_defined_EOWNERDEAD is defined.
885         * tests/test-errno.c (e130, e131): New variables.
886         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
887         ENOTRECOVERABLE.
888         Reported by Paolo Bonzini.
889
890 2012-05-31  Jim Meyering  <meyering@redhat.com>
891
892         savewd: add missing dependency on sys_wait module
893         * modules/savewd (Depends-on): Add sys_wait, needed at least
894         for MSVC.  Report and suggested change by Michael Goffioul.
895
896 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
897
898         system-quote-tests: port to CentOS 5
899         Problem reported by Tom G. Christensen in
900         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
901         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
902
903 2012-05-29  Jim Meyering  <meyering@redhat.com>
904
905         maint: fix typos in comments and ChangeLog
906         Culprits identified and fixed mostly automatically using these commands:
907         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
908         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
909         using http://github.com/lyda/misspell-check
910         * ChangeLog: Fix typos.
911         * doc/solaris-versions: Likewise.
912         * lib/regexec.c (re_search_stub): Likewise.
913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
914
915 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
916
917         manywarnings: remove duplicate -Wmultichar entry
918         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
919         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
920         so keep the entry marked as documented.
921
922 2012-05-27  Karl Berry  <karl@gnu.org>
923
924         * config/srclist.txt (mktime.c): remove last libc sync,
925         perhaps just temporarily.
926
927 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
928
929         regex: don't assume uint64_t or uint32_t
930         * lib/regcomp.c (init_word_char): Don't assume that the types
931         uint64_t and uint32_t exist.  The C standard doesn't guarantee
932         them, and on some 32-bit compilers there is no uint64_t.
933         Problem reported by Gianluigi Tiesi in
934         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
935
936 2012-05-25  Jim Meyering  <meyering@redhat.com>
937
938         maint.mk: add strncpy-prohibiting syntax-check rule
939         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
940
941 2012-05-24  Jim Meyering  <meyering@redhat.com>
942
943         maint.mk: compute $(gpg_key_ID) more portably
944         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
945         That use of sed is not portable to some fringe systems.
946         Reported by Paul Eggert in
947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
948
949 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
950
951         mktime: sync from glibc
952         * config/srclist.txt: Uncomment mktime.c.
953         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
954         First, indent with tabs, since glibc uses tabs and doesn't want to
955         change and we'd rather be identical to glibc.  Also, two small
956         coding changes:
957         (isdst_differ): Use &&, not &, as && is the usual style.
958         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
959         for clarity.
960
961 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
962
963         announce-gen: du -h is more portable than du --human
964         * build-aux/announce-gen (sizes): Invoke du with -h instead
965         of --human.  Accept leading white space in its output.
966
967 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
968
969         announce-gen: Improve diagnostics.
970         * build-aux/announce-gen: When parsing command line options,
971         prefer "announce-gen: option --release-type requires an argument"
972         to "Option release-type requires an argument".
973
974 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
975
976         maint.mk: gpg_key_ID: use sed more portably
977         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
978         the closing brace.
979         (refresh-po): Fuse two sed invocations into one.
980
981 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
982
983         gitlog-to-changelog: support the log message format used in Bison.
984         * build-aux/gitlog-to-changelog: Support --strip-tab and
985         --strip-cherry-picked.
986
987 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
988
989         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
990         the rest of the current time slice to another thread in the current
991         process. So if the thread that feeds the file decscriptor we're
992         polling is not in the current process, we get busy-waiting.
993         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
994         Patch from Theodore Leblond.
995         * lib/select.c: Split polling out of the loop that sets the output
996         fd_sets.  Check for zero result and loop if the wait timeout is
997         infinite.
998
999 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1000
1001         select: Fix build error on IRIX 6.5.
1002         * lib/select.c: Include stddef.h for NULL.
1003
1004 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1005
1006         gc: fix libgcrypt detection on older machines.
1007         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1008         copyright years because the file has been distributed every year
1009         since it was created.
1010
1011 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         crypto: fix bug in large buffer handling
1014         Problem reported by Serge Belyshev for glibc in
1015         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1016         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1017         * lib/md4.c (md4_process_block):
1018         * lib/md5.c (md5_process_block):
1019         * lib/sha1.c (sha1_process_block):
1020         * lib/sha256.c (sha256_process_block):
1021         Don't assume the buffer length is less than 2**32.
1022         * lib/sha512.c (sha512_process_block): Likewise.
1023         Here, the bug is present only in the rare case where the host does
1024         not support uint64_t or where size_t is wider than 64 bits.
1025         Use u64size to work around the problems.
1026         * lib/u64.h (u64size): New macro.
1027
1028 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1029
1030         fsusage: fix block size returned on older Linux 2.6
1031
1032         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1033         which is available since Linux 2.6.
1034         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1035         when the member is available so it can be used as a fallback.
1036         * doc/posix-functions/statvfs.texi: Mention the hang issue
1037         on Linux < 2.6.36.
1038
1039 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         bootstrap: suppress stderr chatter
1042         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1043         Omit unnecessary chatter to stderr.  The main program chatter
1044         was there only inadvertantly.
1045
1046         bootstrap: .gitignore files created by autopoint, libtool
1047         I ran into this problem when bootstrapping the latest diffutils.
1048         After './bootstrap', 'git status' reported lots of untracked files
1049         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1050         autopoint and do not need to be version-controlled.
1051         * build-aux/bootstrap: Put into .gitignore the files that
1052         autopoint and libtool create, by keeping track of files that exist
1053         after but not before these programs are run.
1054         (version_controlled_file): Move up.  2nd arg is now full file
1055         name, not base name; this is more convenient.  Put CVS at the end,
1056         as it's now somewhat deprecated.
1057
1058 2012-05-14  Jim Meyering  <meyering@redhat.com>
1059
1060         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1061         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1062         definition.  Reported by Bruno Haible.
1063
1064 2012-05-13  Bruno Haible  <bruno@clisp.org>
1065             Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         binary-io: Define set_binary_mode function.
1068         * lib/binary-io.h (set_binary_mode): New function.
1069         (SET_BINARY): Define in terms of set_binary_mode.
1070         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1071         * tests/test-binary-io.c (main): Accept an argument, and test either
1072         set_binary_mode or SET_BINARY depending on the argument.
1073         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1074         argument. Clean up also t-bin-out0.tmp.
1075
1076 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1077
1078         bootstrap: take advantage of POSIX shell features
1079
1080         The 'bootstrap' script offered by Gnulib script already uses POSIX
1081         shell features (like $((...)) arithmetic expansions) that are not
1082         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1083         means that bootstrap must already be run using a proper POSIX shell,
1084         which will thus provide more features, like ${var#pattern} parameter
1085         expansion or inversion of a command exit status with '!'.  We can
1086         thus use these features to improve the clarity and the performances
1087         of the bootstrap script.
1088
1089         Suggested by Eric Blake.
1090
1091         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1092         of sed/expr plus command substitutions, to save some forks.  While
1093         we are at it, prefer the POSIX $(...) form of command substitution,
1094         rather than the legacy form `...` (since the former is visually
1095         clearer and interacts better with quoting), and prefer the idiom:
1096           "if ! CMD; then ACTION ..."
1097         over the idiom:
1098           "if CMD; then :; else ACTION ..."
1099         which was required by legacy Bourne shells not supporting '!'.
1100
1101 2012-05-12  Bruno Haible  <bruno@clisp.org>
1102
1103         system-quote: Add more comments.
1104         * lib/system-quote.h: Add more comments about wilcards and limitations.
1105         Suggested by Eli Zaretskii <eliz@gnu.org>.
1106
1107         sh-quote, system-quote: Add comments about wildcards.
1108         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1109         * lib/system-quote.h: Likewise.
1110         Reported by Eli Zaretskii <eliz@gnu.org>.
1111
1112 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         fsusage: check for GNU/Linux statvfs problem dynamically
1115         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1116         Define STAT_STATFS2_BSIZE too, since in this case the code now
1117         checks dynamically whether statvfs is reliable, falling back on
1118         Linux-style statfs otherwise.
1119         (statvfs_works): New function, for dynamically testing statvfs.
1120         (get_fs_usage) [STAT_STATVFS]: Use it.
1121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1122         statvfs on GNU/Linux hosts, since it's now done dynamically.
1123
1124 2012-05-10  Bruno Haible  <bruno@clisp.org>
1125
1126         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1127         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1128         '?' character.
1129         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1130         * tests/test-system-quote-main.c (check_all): Check also strings like
1131         "??????????".
1132         Reported by Eli Zaretskii <eliz@gnu.org>.
1133
1134 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1135
1136         _Noreturn: port config.h to gcc -Wundef
1137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1138         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1139         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1140
1141 2012-05-10  Bruno Haible  <bruno@clisp.org>
1142
1143         system-quote: Refactor.
1144         * lib/system-quote.h (system_quote_copy): Fix comment.
1145         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1146         New functions, extracted from system_quote_copy.
1147         (system_quote_length, system_quote_copy): Use these functions.
1148         Reported by Paul Eggert.
1149
1150 2012-05-08  Bruno Haible  <bruno@clisp.org>
1151
1152         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1153         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1154
1155 2012-05-08  Bruno Haible  <bruno@clisp.org>
1156
1157         Tests for module 'system-quote'.
1158         * modules/system-quote-tests: New file.
1159         * tests/test-system-quote.sh: New file.
1160         * tests/test-system-quote-main.c: New file.
1161         * tests/test-system-quote-child.c: New file.
1162
1163         New module 'system-quote'.
1164         * lib/system-quote.h: New file.
1165         * lib/system-quote.c: New file.
1166         * modules/system-quote: New file.
1167
1168 2012-05-08  Bruno Haible  <bruno@clisp.org>
1169
1170         sh-quote: Make C++ safe and allow multiple inclusion.
1171         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1172         declarations in extern "C".
1173
1174 2012-05-08  Bruno Haible  <bruno@clisp.org>
1175
1176         sh-quote tests: Make tests stricter.
1177         * tests/test-sh-quote.c (check_one): Check the return value of
1178         shell_quote_copy.
1179         (main): Check a string with a CR character. Check a string that
1180         contains UCHAR_MAX.
1181
1182 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1183
1184         warnings.m4: provide a means to specify the program to compile.
1185         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1186         (gl_WARN_ADD): here.
1187         Use gl_AS_VAR_APPEND.
1188         Support an argument to specify the program to compile.
1189         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1190         AC_SUBST the WARN_CFLAGS when they are used.
1191         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1192         leave this to gl_WARN_ADD.
1193
1194 2012-05-08  Eric Blake  <eblake@redhat.com>
1195
1196         doc: recommendations on gettext version
1197         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1198         choice between versions.
1199         * DEPENDENCIES (gettext): Cover both approaches.
1200
1201 2012-05-08  Jim Meyering  <meyering@redhat.com>
1202
1203         init.sh: explain why EXEEXT support uses aliases rather than functions
1204         * tests/init.sh: Add a comment.
1205
1206         init.sh: don't let bash aliases interfere with tests
1207         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1208         is bash.  This avoids problems for those who alias standard commands to
1209         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1210         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1211
1212 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1213
1214         stdint: be more consistent with glibc, SunOS libc
1215         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1216         (gl_int_fast16_t, gl_uint_fast16_t)
1217         (gl_int_fast32_t, gl_uint_fast32_t)
1218         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1219         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1220         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1221         Be consistent with glibc by default, and with SunOS 5.10 and later
1222         if __sun is defined.  This lessens the likelihood of clashes if
1223         code compiled for older hosts is combined with code compiled for
1224         newer ones.  Problem reported by Niels Möller in
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1226
1227 2012-05-07  Eric Blake  <eblake@redhat.com>
1228
1229         isatty: relax license to LGPLv2+
1230         * modules/isatty (License): Relax license.
1231
1232 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         stat-size: comment fix
1235         * lib/stat-size.h: Remove obsolete comment about indenting.
1236
1237 2012-05-06  Bruno Haible  <bruno@clisp.org>
1238
1239         Tests for module 'sh-quote'.
1240         * modules/sh-quote-tests: New file.
1241         * tests/test-sh-quote.c: New file.
1242
1243 2012-05-06  Bruno Haible  <bruno@clisp.org>
1244
1245         sh-quote: Improve shell_quote_argv's signature.
1246         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1247         * lib/sh-quote.c (shell_quote_argv): Likewise.
1248
1249 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1250
1251         stdint: document issues with int_fast8_t etc.
1252         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1253         stdint.h substitutes may define these types differently.  See
1254         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1255
1256 2012-05-05  Bruno Haible  <bruno@clisp.org>
1257
1258         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1260         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1261         or 'guessing no (mishandles large arguments)'.
1262
1263 2012-05-05  Bruno Haible  <bruno@clisp.org>
1264
1265         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1266         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1267         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1268         set gl_cv_func_link_follows_symlink to "guessing no".
1269
1270 2012-05-05  Bruno Haible  <bruno@clisp.org>
1271
1272         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1274         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1275         "guessing no".
1276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1277
1278 2012-05-05  Bruno Haible  <bruno@clisp.org>
1279
1280         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1281         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1282         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1283         set gl_cv_struct_dirent_d_ino to "guessing yes".
1284
1285 2012-05-05  Bruno Haible  <bruno@clisp.org>
1286
1287         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1288         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1289         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1290         "guessing yes".
1291
1292 2012-05-05  Bruno Haible  <bruno@clisp.org>
1293
1294         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1295         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1296         compiling to a glibc system, set gl_cv_func_signbit and
1297         gl_cv_func_signbit_gcc to "guessing yes".
1298
1299 2012-05-05  Bruno Haible  <bruno@clisp.org>
1300
1301         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1302         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1303         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1304         to "guessing yes".
1305         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1306         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1307
1308 2012-05-05  Bruno Haible  <bruno@clisp.org>
1309
1310         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1311         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1312         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1313         gl_cv_func_realpath_works to "guessing yes".
1314
1315 2012-05-05  Bruno Haible  <bruno@clisp.org>
1316
1317         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1319         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1320
1321 2012-05-04  Bruno Haible  <bruno@clisp.org>
1322
1323         Tweak last commit.
1324         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1325         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1326
1327 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         unistd_h: make it easier to avoid sys_types_h
1330         This is useful for Emacs, which has its own method of porting to
1331         Windows, and which therefore does not need the sys_types_h module.
1332         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1333         code moved here from gl_SYS_TYPES_H.
1334         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1335         using the code directly.
1336         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1337         gl_SYS_TYPES_H.
1338         * modules/sys_types (Files):
1339         * modules/unistd (Files): Add m4/off_t.m4.
1340
1341 2012-05-03  Bruno Haible  <bruno@clisp.org>
1342
1343         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1344         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1345         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1346         "guessing yes" or "guessing no".
1347         (gl_FUNC_LSTAT): Update.
1348         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1349         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1350         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1351
1352 2012-05-03  Bruno Haible  <bruno@clisp.org>
1353
1354         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1355         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1356         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1357         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1358         cross-compiling, choose the first alternative on glibc systems.
1359         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1360
1361 2012-05-03  Bruno Haible  <bruno@clisp.org>
1362
1363         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1364         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1365         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1366
1367 2012-05-03  Bruno Haible  <bruno@clisp.org>
1368
1369         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1370         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1371
1372 2012-05-03  Bruno Haible  <bruno@clisp.org>
1373
1374         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1375         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1376         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1377         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1378         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1379         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1380         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1381         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1382         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1383         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1384         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1385         gl_cv_func_chown_ctime_works to "guessing yes".
1386         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1387         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1388         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1389         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1390         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1392         compiling to glibc systems, set gl_cv_func_open_directory_works to
1393         "guessing yes".
1394         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1395         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1396         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1397         "guessing yes".
1398         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1399         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1400         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1401         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1402         "guessing yes".
1403         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1404         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1405         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1406         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1407         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1408         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1409         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1410         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1411         "guessing yes".
1412         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1413         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1414         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1415         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1416         "guessing yes".
1417         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1418         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1419         "guessing yes".
1420         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1421         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1422         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1423         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1424         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1425         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1426         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1427         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1428         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1429         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1430         "guessing yes".
1431         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1432         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1433         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1434         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1435         "guessing yes".
1436         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1437         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1438         "guessing yes".
1439         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1440         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1441         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1442         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1443         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1444         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1445         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1446         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1447         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1448         "guessing yes".
1449         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1450         compiling to glibc systems, set gl_cv_func_mknod_works to
1451         "guessing yes".
1452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1453         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1454         "guessing yes".
1455         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1456         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1457         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1458         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1459         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1460         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1461         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1462         compiling to glibc systems, set gl_cv_func_svid_putenv to
1463         "guessing yes".
1464         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1465         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1466         "guessing yes".
1467         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1468         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1469         "guessing yes".
1470         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1471         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1472         to "guessing yes".
1473         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1474         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1475         to "guessing yes".
1476         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1477         compiling to glibc systems, set gl_cv_func_rmdir_works to
1478         "guessing yes".
1479         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1480         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1481         gl_cv_func_unlink_parent_fails to "guessing yes".
1482         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1483         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1484         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1485         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1486         gl_cv_func_rename_dest_works to "guessing yes".
1487         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1488         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1490         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1491         "guessing yes".
1492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1493         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1494         "guessing yes".
1495         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1496         compiling to glibc systems, set gl_cv_func_setenv_works to
1497         "guessing yes".
1498         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1499         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1500         "guessing yes".
1501         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1502         compiling to glibc systems, set gl_cv_func_sleep_works to
1503         "guessing yes".
1504         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1505         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1506         "guessing yes".
1507         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1508         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1509         "guessing yes".
1510         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1511         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1512         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1513         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1514         "guessing yes".
1515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1516         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1517         "guessing yes".
1518         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1519         compiling to glibc systems, set gl_cv_func_usleep_works to
1520         "guessing yes".
1521         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1522         compiling to glibc systems, set gl_cv_func_futimesat_works to
1523         "guessing yes".
1524
1525 2012-05-03  Bruno Haible  <bruno@clisp.org>
1526
1527         Say "guessing yes" or "guessing no" when cross-compiling.
1528         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1529         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1531         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1532         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1533         am_cv_func_working_getline to "guessing yes" or "guessing no".
1534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1535         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1536         (gl_FUNC_MEMMEM): When cross-compiling, set
1537         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1539         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1541         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1542         "guessing no".
1543         (gl_FUNC_STRCASESTR): When cross-compiling, set
1544         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1545         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1546         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1547         (gl_FUNC_STRSTR): When cross-compiling, set
1548         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1549         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1550         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1551         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1552         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1553
1554 2012-05-01  Bruno Haible  <bruno@clisp.org>
1555
1556         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1557         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1558         * build-aux/reloc-ldflags: Likewise.
1559         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1560
1561 2012-05-01  Bruno Haible  <bruno@clisp.org>
1562
1563         gnulib-tool: Remove transitional code.
1564         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1565         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1566
1567 2012-05-01  Bruno Haible  <bruno@clisp.org>
1568
1569         getcwd: Fix misindentation.
1570         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1571
1572 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1573
1574         exclude: process exclude and include directives in order
1575         This restores the pre-2009 behavior, and is part of a fix of a
1576         grep bug reported by Quentin Arce in
1577         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1578         * lib/exclude.c (struct exclude): Remove 'tail' member.
1579         (new_exclude_segment): Prepend the new segment instead of appending.
1580         Return void, since that's now more convenient.
1581         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1582         (file_name_matches): Renamed from excluded_file_name_p.
1583         (file_pattern_matches, file_name_matches):
1584         Return true if the pattern matches, not if it excludes.
1585         All callers changed.
1586         (excluded_file_name): Process the list in reverse order;
1587         since the list is now reversed this restores the pre-2009 behavior.
1588         (add_exclude): Adjust to new reversed-order list.  Use local var
1589         rather than macro, for clarity.
1590         * tests/test-exclude7.sh: Adjust to corrected behavior.
1591
1592         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1593         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1594         it's not possible here.  Handle the case of \ at end of pattern
1595         without dumping core.
1596         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1597
1598         _Noreturn: future-proof non-GNU and non-MSVC compilers
1599         * build-aux/snippet/_Noreturn.h (_Noreturn):
1600         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1601         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1602         C11 or later.  This is more likely to work with random future C
1603         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1604         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1605
1606         exclude: handle wildcards with FNM_EXTMATCH
1607         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1608         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1609         comment that "has wildcards" really means "has or may have
1610         wildcards".  Simplify by avoiding the need to call strcspn.
1611
1612 2012-04-29  Bruno Haible  <bruno@clisp.org>
1613
1614         gnulib-tool: Fix list of authors.
1615         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1616
1617 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1618
1619         bootstrap: support Automake-NG in $buildreq
1620         * bootstrap (check_versions): Handle automake and aclocal from
1621         Automake-NG specially.  They can be specified as respectively
1622         the "automake-ng" and "aclocal-ng" requirements.
1623
1624 2012-04-25  Eric Blake  <eblake@redhat.com>
1625
1626         bootstrap: only force latest Makefile.in.in for gettext module
1627         * build-aux/bootstrap (with_gettext): Only install latest
1628         Makefile.in.in for projects requesting bleeding edge gettext.
1629
1630 2012-04-22  Bruno Haible  <bruno@clisp.org>
1631
1632         doc: Mention reason for replacement on glibc/Linux systems.
1633         * doc/posix-functions/dprintf.texi: Mention the problem with special
1634         'long double' values.
1635         * doc/posix-functions/fprintf.texi: Likewise.
1636         * doc/posix-functions/printf.texi: Likewise.
1637         * doc/posix-functions/snprintf.texi: Likewise.
1638         * doc/posix-functions/sprintf.texi: Likewise.
1639         * doc/posix-functions/vdprintf.texi: Likewise.
1640         * doc/posix-functions/vfprintf.texi: Likewise.
1641         * doc/posix-functions/vprintf.texi: Likewise.
1642         * doc/posix-functions/vsnprintf.texi: Likewise.
1643         * doc/posix-functions/vsprintf.texi: Likewise.
1644         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1645         platforms with F_DUPFD_CLOEXEC problems.
1646         * doc/posix-functions/glob.texi: Mention which platforms are affected
1647         by the problem with symbolic links.
1648         * doc/posix-functions/linkat.texi: Mention the problem with
1649         AT_SYMLINK_FOLLOW on Linux.
1650
1651 2012-04-22  Bruno Haible  <bruno@clisp.org>
1652
1653         pwrite: Don't replace on all platforms.
1654         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1655
1656 2012-04-22  Bruno Haible  <bruno@clisp.org>
1657
1658         rint* tests: Avoid gcc warnings.
1659         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1660         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1661         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1662
1663 2012-04-21  Bruno Haible  <bruno@clisp.org>
1664
1665         users.txt: Update.
1666         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1667         switched from CVS to git, bzr, or svn.
1668
1669 2012-04-21  Bruno Haible  <bruno@clisp.org>
1670
1671         Large File Support for native Windows platforms.
1672
1673         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1674         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1675
1676         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1677         type.
1678         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1679         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1680         * doc/posix-headers/sys_types.texi: Mention the effect of the
1681         'largefile' module.
1682
1683         * lib/fcntl.in.h: Add comments about off_t.
1684         * modules/fcntl-h (Depends-on): Add sys_types.
1685
1686         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1687         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1688         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1689         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1690         * modules/unistd (Depends-on): Add sys_types.
1691         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1692
1693         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1694         instead of lseek.
1695         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1696         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1697         * modules/lseek (Depends-on): Add sys_types.
1698
1699         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1700         msvc-nothrow.h.
1701         (SetFileSize): New function.
1702         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1703         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1704         if Large File Support is requested.
1705         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1706         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1707
1708         * lib/stdio.in.h: Add comments about off_t.
1709         * modules/stdio (Depends-on): Add sys_types.
1710
1711         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1712         instead of ftello.
1713         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1714         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1715         (gl_PREREQ_FTELLO): New macro.
1716         * modules/ftello (Depends-on): Add sys_types.
1717         (configure.ac): Incoke gl_PREREQ_FTELLO.
1718
1719         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1720         instead of fseeko.
1721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1722         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1723         (gl_PREREQ_FSEEKO): New macro.
1724         * modules/fseeko (Depends-on): Add sys_types.
1725         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1726
1727         * lib/sys_stat.in.h: Add comments about off_t.
1728         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1729         64-bit integer for st_size in 'struct stat'.
1730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1731         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1732         * modules/sys_stat (Depends-on): Add sys_types.
1733         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1734
1735         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1736         instead of stat or _stat.
1737
1738         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1739         'struct _stati64' instead of fstat and 'struct stat'.
1740         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1741         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1742
1743         Reported by Ray Satiro <raysatiro@yahoo.com>.
1744
1745 2012-04-19  Eric Blake  <eblake@redhat.com>
1746
1747         bootstrap: accommodate older libtool
1748         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1749         Reported by Daniel P. Berrange.
1750
1751 2012-04-19  Jim Meyering  <meyering@redhat.com>
1752
1753         announce-gen: avoid failure due to lack of Digest::SHA1
1754         Even with the preferred Digest::SHA available, this script
1755         would fail when the backup module, Digest::SHA1, was not installed.
1756         * build-aux/announce-gen: Quote the conditional use of "use".
1757         Reported by Reuben Thomas in:
1758         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1759
1760         bootstrap: don't let a user's CDPATH setting affect this script
1761         When CDPATH is set, cd will sometimes generate output.
1762         When "cd" is run in a subshell whose output matters, that
1763         surprising-to-some output can cause malfunction.
1764         Unsetting CDPATH turns off this shell "feature."
1765         * build-aux/bootstrap (CDPATH): Unset.
1766         Reported by Reuben Thomas in:
1767         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1768         and inspired by his patch here:
1769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1770
1771 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1772         and Jim Meyering  <meyering@redhat.com>
1773
1774         maint.mk: catch "see @xref{}" and similar
1775         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1776         prohibit "See also @xref{", "Also see @pxref{", and similar.
1777
1778 2012-04-16  Jim Meyering  <meyering@redhat.com>
1779
1780         bootstrap: really use gnulib's po/Makefile.in.in
1781         * build-aux/bootstrap: Correct the source file name in previous change.
1782         Reported by Akim Demaille.
1783
1784         configmake: correct minor inconsistency in Makefile rule
1785         * modules/configmake (Makefile.am): All other rules like this one
1786         run the final "mv -f ..." in the same backslash-continued command
1787         as the one that does everything else.  This one put the mv -f ...
1788         command on a separate, non-backslash-continued line.
1789         Make it like the others.
1790
1791         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1792         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1793         the one from gettext.  Reported by Akim Demaille.
1794
1795 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1796
1797         Fix recursion of install-* into po directories.
1798         Bison's install-pdf bug reported by Hans Aberg at
1799         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1800         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1801         (install-info, install-pdf, install-ps): New targets.
1802
1803 2012-04-16  Jim Meyering  <meyering@redhat.com>
1804
1805         maint: avoid spurious "make sc_maint" failure
1806         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1807         exempt all *.class file names, for lib/javaversion.class.
1808
1809 2012-04-15  Bruno Haible  <bruno@clisp.org>
1810
1811         lseek: Make configure test independent of environment.
1812         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1813         Windows, we know that lseek() on pipes is broken; skip the runtime
1814         test.
1815
1816 2012-04-14  Bruno Haible  <bruno@clisp.org>
1817
1818         stat: Bypass buggy override in mingw64.
1819         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1820         * lib/stat.c (stat) [mingw64]: Define to _stat.
1821         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1822
1823 2012-04-14  Bruno Haible  <bruno@clisp.org>
1824
1825         pathmax: Fix compilation error on MSVC 9.
1826         * modules/pathmax (Depends-on): Add unistd.
1827
1828 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         README: document pointer comparison assumption
1831         * README (Portability guidelines): Document assumption about
1832         pointer comparisons, in response to a recent bug-gnulib comment by
1833         Jeffrey Kegler.
1834
1835 2012-04-12  Bruno Haible  <bruno@clisp.org>
1836
1837         Tests for module 'getrusage'.
1838         * modules/getrusage-tests: New file.
1839         * tests/test-getrusage.c: New file.
1840
1841         New module 'getrusage'.
1842         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1843         warn-on-use.h.
1844         (getrusage): New declaration.
1845         * lib/getrusage.c: New file.
1846         * m4/getrusage.m4: New file.
1847         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1848         is declared.
1849         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1850         HAVE_GETRUSAGE.
1851         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1852         snippet/c++defs, snippet/warn-on-use.
1853         (Makefile.am): Update generation of sys/resource.h. Substitute
1854         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1855         * modules/getrusage: New file.
1856         * doc/posix-functions/getrusage.texi: Mention the new module.
1857
1858 2012-04-12  Bruno Haible  <bruno@clisp.org>
1859
1860         Tests for module 'sys_resource'.
1861         * modules/sys_resource-tests: New file.
1862         * tests/test-sys_resource.c: New file.
1863
1864         New module 'sys_resource'.
1865         * lib/sys_resource.in.h: New file.
1866         * m4/sys_resource_h.m4: New file.
1867         * modules/sys_resource: New file.
1868         * doc/posix-headers/sys_resource.texi: Mention the new module.
1869
1870 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1871
1872         ioctl: Fix compilation error on mingw.
1873         * lib/ioctl.c: Include <windows.h>.
1874         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1875
1876 2012-04-04  Jim Meyering  <meyering@redhat.com>
1877
1878         regex: correct #pragma guard expression
1879         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1880         not 4.3.  Correct its cpp guard expression.
1881
1882 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1883
1884         regex: remove unnecessary type punning
1885         Problem reported by Vladimir Serbinenko in
1886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1887         * lib/regex.h (struct re_pattern_buffer): Change the type of
1888         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1889         Fix comment to match code.
1890         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1891         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1892         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1893         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1894         (set_regs):
1895         Omit no-longer-necessary casts.
1896
1897 2012-04-03  Bruno Haible  <bruno@clisp.org>
1898
1899         Tests for module 'ilogbl'.
1900         * modules/ilogbl-tests: New file.
1901         * tests/test-ilogbl.c: New file.
1902
1903         New module 'ilogbl'.
1904         * lib/math.in.h (ilogbl): New declaration.
1905         * lib/ilogbl.c: New file.
1906         * m4/ilogbl.m4: New file.
1907         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1909         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1910         Split sed invocation, to avoid the limit of 100 substitutions of
1911         HP-UX 'sed'.
1912         * modules/ilogbl: New file.
1913         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1914         * doc/posix-functions/ilogbl.texi: Mention the new module.
1915
1916 2012-04-03  Bruno Haible  <bruno@clisp.org>
1917
1918         Tests for module 'ilogbf'.
1919         * modules/ilogbf-tests: New file.
1920         * tests/test-ilogbf.c: New file.
1921
1922         New module 'ilogbf'.
1923         * lib/math.in.h (ilogbf): New declaration.
1924         * lib/ilogbf.c: New file.
1925         * m4/ilogbf.m4: New file.
1926         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1928         REPLACE_ILOGBF.
1929         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1930         REPLACE_ILOGBF.
1931         * modules/ilogbf: New file.
1932         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1933         * doc/posix-functions/ilogbf.texi: Mention the new module.
1934
1935 2012-04-03  Bruno Haible  <bruno@clisp.org>
1936
1937         Tests for module 'ilogb'.
1938         * modules/ilogb-tests: New file.
1939         * tests/test-ilogb.c: New file.
1940         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1941         tests/test-logb-ieee.h.
1942
1943         New module 'ilogb'.
1944         * lib/math.in.h (ilogb): New declaration.
1945         * lib/ilogb.c: New file.
1946         * m4/ilogb.m4: New file.
1947         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1949         REPLACE_ILOGB.
1950         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1951         REPLACE_ILOGB.
1952         * modules/ilogb: New file.
1953         * tests/test-math-c++.cc: Check the declaration of ilogb.
1954         * doc/posix-functions/ilogb.texi: Mention the new module.
1955
1956 2012-04-03  Bruno Haible  <bruno@clisp.org>
1957
1958         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1959         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1960         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1961         (main): Check their values.
1962         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1963         problem.
1964
1965 2012-04-03  Bruno Haible  <bruno@clisp.org>
1966
1967         Tests for module 'logbl-ieee'.
1968         * modules/logbl-ieee-tests: New file.
1969         * tests/test-logbl-ieee.c: New file.
1970
1971         New module 'logbl-ieee'.
1972         * modules/logbl-ieee: New file.
1973
1974         Tests for module 'logb-ieee'.
1975         * modules/logb-ieee-tests: New file.
1976         * tests/test-logb-ieee.c: New file.
1977
1978         New module 'logb-ieee'.
1979         * modules/logb-ieee: New file.
1980
1981         Tests for module 'logbf-ieee'.
1982         * modules/logbf-ieee-tests: New file.
1983         * tests/test-logbf-ieee.c: New file.
1984         * tests/test-logb-ieee.h: New file.
1985
1986         New module 'logbf-ieee'.
1987         * modules/logbf-ieee: New file.
1988
1989 2012-04-03  Bruno Haible  <bruno@clisp.org>
1990
1991         Tests for module 'logbl'.
1992         * modules/logbl-tests: New file.
1993         * tests/test-logbl.c: New file.
1994
1995         New module 'logbl'.
1996         * lib/math.in.h (logbl): New declaration.
1997         * lib/logbl.c: New file.
1998         * m4/logbl.m4: New file.
1999         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2001         REPLACE_LOGBL.
2002         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2003         REPLACE_LOGBL.
2004         * modules/logbl: New file.
2005         * tests/test-math-c++.cc: Check the declaration of logbl.
2006         * doc/posix-functions/logbl.texi: Mention the new module.
2007
2008 2012-04-02  Bruno Haible  <bruno@clisp.org>
2009
2010         Tests for module 'logbf'.
2011         * modules/logbf-tests: New file.
2012         * tests/test-logbf.c: New file.
2013
2014         New module 'logbf'.
2015         * lib/math.in.h (logbf): New declaration.
2016         * lib/logbf.c: New file.
2017         * m4/logbf.m4: New file.
2018         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2020         REPLACE_LOGBF.
2021         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2022         REPLACE_LOGBF.
2023         * modules/logbf: New file.
2024         * tests/test-math-c++.cc: Check the declaration of logbf.
2025         * doc/posix-functions/logbf.texi: Mention the new module.
2026
2027 2012-04-02  Bruno Haible  <bruno@clisp.org>
2028
2029         logb tests: More tests.
2030         * tests/test-logb.h: New file, based on tests/test-logb.c and
2031         tests/test-frexp.h.
2032         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2033         (main): Just invoke test_function.
2034         * modules/logb-tests (Files): Add tests/test-logb.h,
2035         tests/minus-zero.h, tests/randomd.c.
2036         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2037
2038         logb: Provide replacement and workarounds.
2039         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2040         is 1.
2041         * lib/logb.c: New file.
2042         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2043         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2045         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2046         * modules/logb (Files): Add lib/logb.c.
2047         (Depends-on): Add isfinite, frexp, isnand.
2048         (configure.ac): Compile the replacement code logb.c if needed.
2049         * tests/test-math-c++.cc: Check the declaration of logb.
2050         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2051         with subnormal numbers.
2052
2053 2012-04-02  Bruno Haible  <bruno@clisp.org>
2054
2055         log10* tests: Speed up.
2056         * tests/test-log10.h (test_function): Reduce amount of random numbers
2057         to test.
2058
2059 2012-04-01  Bruno Haible  <bruno@clisp.org>
2060
2061         logf-ieee: Fix test whether logf works.
2062         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2063
2064 2012-04-01  Bruno Haible  <bruno@clisp.org>
2065
2066         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2067         * lib/log10l.c: Include <float.h>
2068         (log10l): On IRIX, normalize the +Infinity value.
2069         * modules/log10l (Depends-on): Add 'float'.
2070         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2071         +Infinity.
2072
2073         log10f-ieee: Work around test failure on NetBSD 5.1.
2074         * m4/log10f-ieee.m4: New file.
2075         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2076         test whether log10f works with a negative argument. Replace it if not.
2077         * lib/log10f.c (log10f): For negative arguments, return NaN.
2078         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2079         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2080         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2081
2082         log10f-ieee: Work around test failure on Solaris 9.
2083         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2084         (configure.ac): Require gl_FUNC_LOG10F.
2085
2086         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2087         * m4/log10-ieee.m4: New file.
2088         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2089         whether log10 works with a negative argument. Replace it if not.
2090         * lib/log10.c (log10): For negative arguments, return NaN.
2091         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2092         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2093         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2094
2095         Tests for module 'log10l-ieee'.
2096         * modules/log10l-ieee-tests: New file.
2097         * tests/test-log10l-ieee.c: New file.
2098
2099         New module 'log10l-ieee'.
2100         * modules/log10l-ieee: New file.
2101
2102         Tests for module 'log10-ieee'.
2103         * modules/log10-ieee-tests: New file.
2104         * tests/test-log10-ieee.c: New file.
2105
2106         New module 'log10-ieee'.
2107         * modules/log10-ieee: New file.
2108
2109         Tests for module 'log10f-ieee'.
2110         * modules/log10f-ieee-tests: New file.
2111         * tests/test-log10f-ieee.c: New file.
2112         * tests/test-log10-ieee.h: New file.
2113
2114         New module 'log10f-ieee'.
2115         * modules/log10f-ieee: New file.
2116
2117 2012-04-01  Bruno Haible  <bruno@clisp.org>
2118
2119         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2120         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2121         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2122         workaround.
2123         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2124         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2126         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2127         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2128         (Depends-on): Update conditions.
2129         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2130         IRIX 6.5, OSF/1 5.1 problems.
2131
2132 2012-04-01  Bruno Haible  <bruno@clisp.org>
2133
2134         log10f: Work around OSF/1 5.1 bug.
2135         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2136         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2137         workaround.
2138         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2139         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2141         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2142         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2143         (Depends-on): Update conditions.
2144         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2145
2146 2012-04-01  Bruno Haible  <bruno@clisp.org>
2147
2148         log10: Work around OSF/1 5.1 bug.
2149         * lib/math.in.h (log10): New declaration.
2150         * lib/log10.c: New file.
2151         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2152         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2153         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2155         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2156         * modules/log10 (Files): Add lib/log10.c.
2157         (Depends-on): Add math.
2158         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2159         * tests/test-math-c++.cc: Check the declaration of log10.
2160         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2161
2162 2012-03-31  Bruno Haible  <bruno@clisp.org>
2163
2164         log10l tests: More tests.
2165         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2166         tests/minus-zero.h, tests/randoml.c.
2167         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2168         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2169         (main): Invoke test_function.
2170
2171         log10f tests: More tests.
2172         * modules/log10f-tests (Files): Add tests/test-log10.h,
2173         tests/minus-zero.h, tests/randomf.c.
2174         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2175         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2176         (main): Invoke test_function.
2177
2178         log10 tests: More tests.
2179         * tests/test-log10.h: New file.
2180         * modules/log10-tests (Files): Add tests/test-log10.h,
2181         tests/minus-zero.h, tests/randomd.c.
2182         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2183         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2184         (main): Invoke test_function.
2185
2186 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2187
2188         fflush: Fix syntax error.
2189         * lib/fflush.c: Include unused-parameter.h, needed for
2190         _GL_UNUSED_PARAMETER.
2191         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2192
2193 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         regex: pacify GCC when compiling GRUB
2196         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2197         a diagnostic.  Reported by Vladimir Serbinenko in
2198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2199
2200 2012-03-29  Eric Blake  <eblake@redhat.com>
2201
2202         stdio: don't assume gets any more
2203         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2204         support.
2205         * modules/stdio (Makefile.am): Likewise.
2206         * lib/stdio-read.c (gets): Likewise.
2207         * tests/test-stdio-c++.cc: Likewise.
2208         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2209         * lib/stdio.in.h (gets): Make warning occur in more places.
2210         * doc/posix-functions/gets.texi (gets): Update documentation.
2211         Reported by Christer Solskogen.
2212
2213         maint.mk: fix syntax checks without exclusions
2214         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2215         Reported by Daniel P. Berrange.
2216
2217         strerror_r: avoid compiler warning
2218         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2219         level.
2220
2221         fflush: avoid compiler warning
2222         * lib/fflush.c (update_fpos_cache): Mark variables that are
2223         potentially unused.
2224
2225 2012-03-25  Bruno Haible  <bruno@clisp.org>
2226
2227         Tests for module 'localeconv'.
2228         * modules/localeconv-tests: New file.
2229         * tests/test-localeconv.c: New file.
2230
2231         New module 'localeconv'.
2232         * lib/locale.in.h (localeconv): New declaration.
2233         * lib/localeconv.c: New file.
2234         * m4/localeconv.m4: New file.
2235         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2236         REPLACE_LOCALECONV.
2237         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2238         REPLACE_LOCALECONV.
2239         * modules/localeconv: New file.
2240         * modules/nl_langinfo (Depends-on): Add localeconv.
2241         * modules/human (Depends-on): Likewise.
2242         * doc/posix-functions/localeconv.texi: Mention the new module.
2243
2244 2012-03-25  Bruno Haible  <bruno@clisp.org>
2245
2246         locale: Provide a complete 'struct lconv'.
2247         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2248         'struct lconv' does not contain int_p_cs_precedes.
2249         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2250         * doc/posix-headers/locale.texi: Update.
2251
2252         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2253         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2254         * doc/posix-headers/locale.texi: Update.
2255
2256         locale: Provide a working 'struct lconv'.
2257         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2258         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2259         'struct lconv' does not even contain decimal_point.
2260         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2261         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2262         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2263         * doc/posix-headers/locale.texi: Mention the problems with
2264         'struct lconv'.
2265         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2266
2267 2012-03-24  Bruno Haible  <bruno@clisp.org>
2268
2269         Enable common subexpression optimization in GCC.
2270         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2271         macros.
2272         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2273         GCC attribute 'const'.
2274         (uc_locale_language): Declare with GCC attribute 'pure'.
2275         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2276         with GCC attribute 'const'.
2277         * lib/unictype.in.h (uc_is_general_category_withtable,
2278         uc_combining_class, uc_combining_class_name,
2279         uc_combining_class_long_name, uc_bidi_class_name,
2280         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2281         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2282         uc_decimal_value, uc_digit_value, uc_numeric_value,
2283         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2284         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2285         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2286         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2287         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2288         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2289         Declare with GCC attribute 'const'.
2290         (uc_general_category_name, uc_general_category_long_name,
2291         uc_general_category_byname, uc_general_category,
2292         uc_is_general_category, uc_combining_class_byname,
2293         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2294         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2295         Declare with GCC attribute 'pure'.
2296         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2297         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2298         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2299         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2300         with GCC attribute 'pure'.
2301         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2302         'const'.
2303         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2304         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2305         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2306         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2307         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2308         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2309         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2310         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2311         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2312         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2313         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2314         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2315         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2316         GCC attribute 'pure'.
2317         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2318         'const'.
2319         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2320         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2321         u32_strwidth): Declare with GCC attribute 'pure'.
2322
2323         Enable common subexpression optimization in GCC.
2324         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2325         (alphasort): Declare with GCC attribute 'pure'.
2326         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2327         (atoll): Declare with GCC attribute 'pure'.
2328         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2329         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2330         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2331         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2332         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2333         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2334         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2335
2336 2012-03-24  Bruno Haible  <bruno@clisp.org>
2337
2338         gnulib-tool: Avoid unintended error output from 'cmp'.
2339         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2340         "cmp -s", not "cmp > /dev/null".
2341
2342 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2343
2344         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2345
2346         It's not just Automake versions < 1.9b that creates an empty
2347         pkgdatadir at installation time if pkgdata_DATA is specified
2348         to empty; modern automake versions do this as well, at least
2349         until automake 1.11.4 (not yet released at the moment of writing,
2350         but soon to appear).  That behaviour was generally considered a
2351         feature rather than a bug, at least until this discussion:
2352         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2353
2354         See also automake bugs #10997 and #11030.
2355
2356         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2357         reference to relevant automake bug numbers.
2358         (func_emit_tests_Makefile_am): Likewise.
2359
2360 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2361
2362         announce-gen: use Digest::SHA when possible
2363         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2364         back to Digest::SHA1 if necessary.
2365
2366 2012-03-20  Jim Meyering  <meyering@redhat.com>
2367
2368         tests: avoid gcc warnings about argv vs. const initializers
2369         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2370         warnings about discarding 'const' qualifier from pointer target type.
2371         * tests/test-posix_spawn2.c (main): Likewise.
2372
2373 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2374
2375         README-release: simplify slightly
2376         * top/README-release: Run "git checkout master" only once.
2377
2378 2012-03-15  Mark Wielaard  <mark@klomp.org>
2379
2380         git-merge-changelog: add specific example on how to use with hg.
2381         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2382
2383 2012-03-18  Mark Wielaard  <mark@klomp.org>
2384
2385         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2386
2387 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2388
2389         git-version-gen: don't let "prefix" envvar cause trouble
2390         * build-aux/git-version-gen (prefix): Initialize properly,
2391         so as not to use a value specified via the environment.
2392         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2393
2394 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2395
2396         regex: diagnose too-large repeat counts in EREs
2397         Previously, the code did not diagnose the too-large repeat count
2398         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2399         as if it were 'b\{1000000000}', which is unexpected.
2400         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2401         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2402         is a reasonable one for this problem.  Another option would be to
2403         create a new REG_OVERFLOW error for repeat counts that are too large.
2404         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2405         count is too large, so that the caller can distinguish the two cases.
2406         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2407         "Too large" return code, and that repeat counts are one example of this.
2408
2409 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2410
2411         doc: some glibc x32 integer width issues
2412         * doc/posix-headers/sys_types.texi (sys/types.h):
2413         * doc/posix-headers/time.texi (time.h):
2414         Mention that glibc x32 does not conform to POSIX in a couple of
2415         areas related to integer widths.
2416
2417 2012-03-15  Bruno Haible  <bruno@clisp.org>
2418
2419         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2420         * lib/fma.c (VOLATILE): New macro.
2421         (FUNC): Use it to work around a GCC compiler bug.
2422
2423 2012-03-13  Bruno Haible  <bruno@clisp.org>
2424
2425         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2426         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2427         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2428         REPLACE_HYPOTL to 1.
2429         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2430
2431 2012-03-13  Bruno Haible  <bruno@clisp.org>
2432
2433         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2435         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2436         REPLACE_REMAINDERL to 1.
2437         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2438         bug.
2439
2440 2012-03-13  Bruno Haible  <bruno@clisp.org>
2441
2442         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2443         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2444         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2445         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2446         too big rounding errors.
2447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2448         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2449         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2450         (Depends-on): Update conditions.
2451         * tests/test-sqrtl.c (my_ldexpl): New function.
2452         (main): Add test of a particular value.
2453         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2454
2455 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2456
2457         doc: Update timer_* platform portability notes.
2458         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2459         that always return ENOSYS.
2460         * doc/posix-functions/timer_delete.texi: Likewise.
2461         * doc/posix-functions/timer_gettime.texi: Likewise.
2462         * doc/posix-functions/timer_settime.texi: Likewise.
2463
2464 2012-03-13  Bruno Haible  <bruno@clisp.org>
2465
2466         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2467         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2468         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2469         REPLACE_CBRTL to 1.
2470         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2471
2472 2012-03-13  Bruno Haible  <bruno@clisp.org>
2473
2474         remainderl: Avoid compilation error on AIX >= 5.2.
2475         * lib/math.in.h (remainderl): Undefine macro from the system header.
2476
2477 2012-03-13  Bruno Haible  <bruno@clisp.org>
2478
2479         Avoid compilation errors with MSVC option -fp:strict.
2480         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2481         * lib/cbrtf.c: Likewise.
2482         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2483
2484 2012-03-12  Bruno Haible  <bruno@clisp.org>
2485
2486         uninorm: Don't crash in out-of-memory conditions.
2487         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2488         gracefully.
2489         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2490         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2491
2492 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2493
2494         quote: fix syntax-check
2495         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2496         also exports quote_quoting_options.
2497
2498 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2499
2500         Collapse list of copyright years to ranges.  See
2501         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2502         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2503         build-aux/csharpexec.sh.in, build-aux/gnupload,
2504         build-aux/install-reloc, build-aux/javacomp.sh.in,
2505         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2506         build-aux/move-if-change, build-aux/reloc-ldflags,
2507         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2508
2509 2012-03-11  Bruno Haible  <bruno@clisp.org>
2510
2511         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2512         * m4/log2f-ieee.m4: New file.
2513         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2514         whether log2f works with a minus zero argument. Replace it if not.
2515         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2516         (Depends-on): Add log2-ieee.
2517         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2518         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2519
2520         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2521         * m4/log2-ieee.m4: New file.
2522         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2523         whether log2 works with a minus zero argument. Replace it if not.
2524         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2525         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2526         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2527
2528         Tests for module 'log2l-ieee'.
2529         * modules/log2l-ieee-tests: New file.
2530         * tests/test-log2l-ieee.c: New file.
2531
2532         New module 'log2l-ieee'.
2533         * modules/log2l-ieee: New file.
2534
2535         Tests for module 'log2-ieee'.
2536         * modules/log2-ieee-tests: New file.
2537         * tests/test-log2-ieee.c: New file.
2538
2539         New module 'log2-ieee'.
2540         * modules/log2-ieee: New file.
2541
2542         Tests for module 'log2f-ieee'.
2543         * modules/log2f-ieee-tests: New file.
2544         * tests/test-log2f-ieee.c: New file.
2545         * tests/test-log2-ieee.h: New file.
2546
2547         New module 'log2f-ieee'.
2548         * modules/log2f-ieee: New file.
2549
2550 2012-03-11  Bruno Haible  <bruno@clisp.org>
2551
2552         Tests for module 'log2l'.
2553         * modules/log2l-tests: New file.
2554         * tests/test-log2l.c: New file.
2555
2556         New module 'log2l'.
2557         * lib/math.in.h (log2l): New declaration.
2558         * lib/log2l.c: New file.
2559         * m4/log2l.m4: New file.
2560         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2562         REPLACE_LOG2L.
2563         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2564         REPLACE_LOG2L.
2565         * modules/log2l: New file.
2566         * tests/test-math-c++.cc: Check the declaration of log2l.
2567         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2568         and OSF/1 problems.
2569
2570 2012-03-11  Bruno Haible  <bruno@clisp.org>
2571
2572         Tests for module 'log2f'.
2573         * modules/log2f-tests: New file.
2574         * tests/test-log2f.c: New file.
2575
2576         New module 'log2f'.
2577         * lib/math.in.h (log2f): New declaration.
2578         * lib/log2f.c: New file.
2579         * m4/log2f.m4: New file.
2580         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2582         REPLACE_LOG2F.
2583         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2584         REPLACE_LOG2F.
2585         * modules/log2f: New file.
2586         * tests/test-math-c++.cc: Check the declaration of log2f.
2587         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2588         and OSF/1 and Cygwin problems.
2589
2590 2012-03-11  Bruno Haible  <bruno@clisp.org>
2591
2592         Tests for module 'log2'.
2593         * modules/log2-tests: New file.
2594         * tests/test-log2.c: New file.
2595         * tests/test-log2.h: New file.
2596
2597         New module 'log2'.
2598         * lib/math.in.h (log2): New declaration.
2599         * lib/log2.c: New file.
2600         * m4/log2.m4: New file.
2601         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2603         REPLACE_LOG2.
2604         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2605         REPLACE_LOG2.
2606         * modules/log2: New file.
2607         * tests/test-math-c++.cc: Check the declaration of log2.
2608         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2609         and OSF/1 and Cygwin problems.
2610
2611 2012-03-11  Bruno Haible  <bruno@clisp.org>
2612
2613         exp2* tests: More tests.
2614         * tests/test-exp2.h (test_function): Test all integral arguments that
2615         don't need to overflow or denormalized numbers.
2616         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2617         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2618         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2619
2620 2012-03-10  Bruno Haible  <bruno@clisp.org>
2621
2622         log1pl-ieee: Work around test failure on AIX 7.1.
2623         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2624
2625         log1pl-ieee: Work around test failure on IRIX 6.5.
2626         * m4/log1pl-ieee.m4: New file.
2627         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2628         test whether log1pl works with a minus zero argument. Replace it if
2629         not.
2630         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2632         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2633         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2634         (Depends-on): Update conditions.
2635         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2636         m4/signbit.m4.
2637         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2638         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2639
2640         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2641         * m4/log1pf-ieee.m4: New file.
2642         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2643         test whether log1pf works with a minus zero argument. Replace it if
2644         not.
2645         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2646         m4/signbit.m4.
2647         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2648         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2649
2650         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2651         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2652         (configure.ac): Require gl_FUNC_LOG1PF.
2653
2654         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2655         * m4/log1p-ieee.m4: New file.
2656         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2657         whether log1p works with a minus zero argument. Replace it if not.
2658         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2660         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2661         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2662         (Depends-on): Update conditions.
2663         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2664         m4/signbit.m4.
2665         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2666         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2667
2668         Tests for module 'log1pl-ieee'.
2669         * modules/log1pl-ieee-tests: New file.
2670         * tests/test-log1pl-ieee.c: New file.
2671
2672         New module 'log1pl-ieee'.
2673         * modules/log1pl-ieee: New file.
2674
2675         Tests for module 'log1p-ieee'.
2676         * modules/log1p-ieee-tests: New file.
2677         * tests/test-log1p-ieee.c: New file.
2678
2679         New module 'log1p-ieee'.
2680         * modules/log1p-ieee: New file.
2681
2682         Tests for module 'log1pf-ieee'.
2683         * modules/log1pf-ieee-tests: New file.
2684         * tests/test-log1pf-ieee.c: New file.
2685         * tests/test-log1p-ieee.h: New file.
2686
2687         New module 'log1pf-ieee'.
2688         * modules/log1pf-ieee: New file.
2689
2690 2012-03-10  Bruno Haible  <bruno@clisp.org>
2691
2692         Tests for module 'log1pl'.
2693         * modules/log1pl-tests: New file.
2694         * tests/test-log1pl.c: New file.
2695
2696         New module 'log1pl'.
2697         * lib/math.in.h (log1pl): New declaration.
2698         * lib/log1pl.c: New file.
2699         * m4/log1pl.m4: New file.
2700         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2702         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2703         * modules/log1pl: New file.
2704         * tests/test-math-c++.cc: Check the declaration of log1pl.
2705         * doc/posix-functions/log1pl.texi: Mention the new module.
2706
2707 2012-03-10  Bruno Haible  <bruno@clisp.org>
2708
2709         Tests for module 'log1pf'.
2710         * modules/log1pf-tests: New file.
2711         * tests/test-log1pf.c: New file.
2712
2713         New module 'log1pf'.
2714         * lib/math.in.h (log1pf): New declaration.
2715         * lib/log1pf.c: New file.
2716         * m4/log1pf.m4: New file.
2717         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2719         REPLACE_LOG1PF.
2720         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2721         REPLACE_LOG1PF.
2722         * modules/log1pf: New file.
2723         * tests/test-math-c++.cc: Check the declaration of log1pf.
2724         * doc/posix-functions/log1pf.texi: Mention the new module.
2725
2726 2012-03-10  Bruno Haible  <bruno@clisp.org>
2727
2728         log1p tests: More tests.
2729         * tests/test-log1p.h: New file.
2730         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2731         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2732         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2733         (main): Invoke test_function.
2734
2735         log1p: Provide replacement for Minix and MSVC.
2736         * lib/math.in.h (log1p): New declaration.
2737         * lib/log1p.c: New file.
2738         * m4/log1p.m4: New file.
2739         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2741         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2742         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2743         (Depends-on): Add math, isnand, log, round.
2744         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2745         HAVE_LOG1P is 0.
2746         * tests/test-math-c++.cc: Check the declaration of log1p.
2747         * doc/posix-functions/log1p.texi: Mention the replacement.
2748
2749 2012-03-10  Bruno Haible  <bruno@clisp.org>
2750
2751         math tests: Small simplification.
2752         * tests/test-exp.h (test_function): Use the same err_bound for
2753         'double' on platforms with sizeof (long double) == sizeof (double)
2754         than on platforms with sizeof (long double) > sizeof (double).
2755         * tests/test-exp2.h (test_function): Likewise.
2756         * tests/test-expm1.h (test_function): Likewise.
2757         * tests/test-log.h (test_function): Likewise.
2758
2759 2012-03-10  Bruno Haible  <bruno@clisp.org>
2760
2761         Fix some comments.
2762         * lib/expl.c: Fix an ambiguous comment.
2763         * lib/expm1.c: Likewise.
2764         * lib/expm1l.c: Likewise.
2765         * lib/exp2.c: Likewise.
2766         * lib/exp2l.c: Likewise.
2767
2768 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2769
2770         regex: allow inclusion of <regex.h> before <limits.h>
2771         Without this patch, portable programs had to include <limits.h> before
2772         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2773         I ran into this problem with a test version of GNU grep on Solaris 8.
2774         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2775         This is done conditionally so that this change can be merged
2776         back to glibc.
2777         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2778         using the included regex.
2779
2780         fts: depend on fdopendir
2781         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2782         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2783         problem was introduced when fdopendir was split out.
2784
2785 2012-03-10  Bruno Haible  <bruno@clisp.org>
2786
2787         Remove unused variables.
2788         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2789         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2790
2791 2012-03-10  Bruno Haible  <bruno@clisp.org>
2792
2793         isnanf-nolibm: Fix last commit.
2794         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2795
2796         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2797         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2798
2799 2012-03-10  Bruno Haible  <bruno@clisp.org>
2800
2801         logf-ieee: Work around test failure on NetBSD 5.1.
2802         * m4/logf-ieee.m4: New file.
2803         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2804         whether logf works with a negative argument. Replace it if not.
2805         * lib/logf.c (logf): For negative arguments, return NaN.
2806         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2807         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2808         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2809
2810         logf-ieee: Work around test failure on Solaris 9.
2811         * modules/logf-ieee (Depends-on): Add log-ieee.
2812         (configure.ac): Require gl_FUNC_LOGF.
2813
2814         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2815         * m4/log-ieee.m4: New file.
2816         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2817         log works with a negative argument. Replace it if not.
2818         * lib/log.c (log): For negative arguments, return NaN.
2819         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2820         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2821         * doc/posix-functions/log.texi: Mention the log-ieee module.
2822
2823         Tests for module 'logl-ieee'.
2824         * modules/logl-ieee-tests: New file.
2825         * tests/test-logl-ieee.c: New file.
2826
2827         New module 'logl-ieee'.
2828         * modules/logl-ieee: New file.
2829
2830         Tests for module 'log-ieee'.
2831         * modules/log-ieee-tests: New file.
2832         * tests/test-log-ieee.c: New file.
2833
2834         New module 'log-ieee'.
2835         * modules/log-ieee: New file.
2836
2837         Tests for module 'logf-ieee'.
2838         * modules/logf-ieee-tests: New file.
2839         * tests/test-logf-ieee.c: New file.
2840         * tests/test-log-ieee.h: New file.
2841
2842         New module 'logf-ieee'.
2843         * modules/logf-ieee: New file.
2844
2845 2012-03-10  Bruno Haible  <bruno@clisp.org>
2846
2847         log: Fix bug introduced on 2012-03-09.
2848         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2849
2850 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2851
2852         timer-time: link explicitly with pthreads on glibc
2853         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2854         to support static linking, when newer glibc is
2855         detected, as that contains pthread emulation of
2856         POSIX timer functions where required.
2857         * modules/timer-time: Depend on threadlib to
2858         pull in the appropriate library to link.
2859
2860 2012-03-10  Bruno Haible  <bruno@clisp.org>
2861
2862         log* tests: More tests.
2863         * tests/test-log.h: New file.
2864         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2865         (main): Invoke test_function.
2866         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2867         (main): Invoke test_function.
2868         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2869         (main): Invoke test_function.
2870         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2871         tests/randomd.c.
2872         (Makefile.am): Add randomd.c to test_log_SOURCES.
2873         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2874         tests/randomf.c.
2875         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2876         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2877         tests/randoml.c.
2878         (Depends-on): Add 'float'.
2879         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2880
2881 2012-03-09  Bruno Haible  <bruno@clisp.org>
2882
2883         logl: Work around OSF/1 5.1 bug.
2884         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2885         * lib/logl.c (logl): If logl exists, use it and provide just the
2886         workaround.
2887         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2888         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2890         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2891         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2892         (Depends-on): Update conditions.
2893         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2894
2895 2012-03-09  Bruno Haible  <bruno@clisp.org>
2896
2897         logf: Work around OSF/1 5.1 bug.
2898         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2899         * lib/logf.c (logf): If logf exists, use it and provide just the
2900         workaround.
2901         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2902         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2904         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2905         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2906         (Depends-on): Update conditions.
2907         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2908
2909 2012-03-09  Bruno Haible  <bruno@clisp.org>
2910
2911         log: Work around OSF/1 5.1 bug.
2912         * lib/math.in.h (log): New declaration.
2913         * lib/log.c: New file.
2914         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2915         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2916         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2918         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2919         * modules/log (Files): Add lib/log.c.
2920         (Depends-on): Add math.
2921         (configure.ac): If REPLACE_LOG is 1, compile an override.
2922         * tests/test-math-c++.cc: Check the declaration of log.
2923         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2924
2925 2012-03-09  Jim Meyering  <meyering@redhat.com>
2926
2927         readtokens.c: adjust wording in a comment
2928         * lib/readtokens.c: Insert omitted "that" in a comment.
2929
2930 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         modechange: add notations +40, 00440, etc.
2933         * lib/modechange.c (mode_compile): Support new notations
2934         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2935
2936 2012-03-08  Bruno Haible  <bruno@clisp.org>
2937
2938         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2939         * m4/exp2l-ieee.m4: New file.
2940         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2941         test whether exp2l works with a NaN argument and with a negative
2942         infinity argument. Replace it if not.
2943         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2945         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2946         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2947         (Depends-on): Update conditions.
2948         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2949         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2950         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2951
2952         Tests for module 'exp2l-ieee'.
2953         * modules/exp2l-ieee-tests: New file.
2954         * tests/test-exp2l-ieee.c: New file.
2955
2956         New module 'exp2l-ieee'.
2957         * modules/exp2l-ieee: New file.
2958
2959         Tests for module 'exp2-ieee'.
2960         * modules/exp2-ieee-tests: New file.
2961         * tests/test-exp2-ieee.c: New file.
2962
2963         New module 'exp2-ieee'.
2964         * modules/exp2-ieee: New file.
2965
2966         Tests for module 'exp2f-ieee'.
2967         * modules/exp2f-ieee-tests: New file.
2968         * tests/test-exp2f-ieee.c: New file.
2969         * tests/test-exp2-ieee.h: New file.
2970
2971         New module 'exp2f-ieee'.
2972         * modules/exp2f-ieee: New file.
2973
2974 2012-03-08  Bruno Haible  <bruno@clisp.org>
2975
2976         Tests for module 'exp2l'.
2977         * modules/exp2l-tests: New file.
2978         * tests/test-exp2l.c: New file.
2979
2980         New module 'exp2l'.
2981         * lib/math.in.h (exp2l): New declaration.
2982         * lib/exp2l.c: New file.
2983         * lib/expl-table.c: New file, extracted from lib/expl.c.
2984         * lib/expl.c (gl_expl_table): New declaration.
2985         (expl): Remove expl_table. Update reference.
2986         * m4/exp2l.m4: New file.
2987         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2989         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2990         * modules/exp2l: New file.
2991         * modules/expl (Files): Add lib/expl-table.c.
2992         (configure.ac): Compile also expl-table.c.
2993         * tests/test-math-c++.cc: Check the declaration of exp2l.
2994         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2995         problem.
2996
2997 2012-03-08  Bruno Haible  <bruno@clisp.org>
2998
2999         Tests for module 'exp2f'.
3000         * modules/exp2f-tests: New file.
3001         * tests/test-exp2f.c: New file.
3002
3003         New module 'exp2f'.
3004         * lib/math.in.h (exp2f): New declaration.
3005         * lib/exp2f.c: New file.
3006         * m4/exp2f.m4: New file.
3007         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3009         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3010         * modules/exp2f: New file.
3011         * tests/test-math-c++.cc: Check the declaration of exp2f.
3012         * doc/posix-functions/exp2f.texi: Mention the new module and the
3013         IRIX problem.
3014
3015 2012-03-08  Bruno Haible  <bruno@clisp.org>
3016
3017         Tests for module 'exp2'.
3018         * modules/exp2-tests: New file.
3019         * tests/test-exp2.c: New file.
3020         * tests/test-exp2.h: New file.
3021
3022         New module 'exp2'.
3023         * lib/math.in.h (exp2): New declaration.
3024         * lib/exp2.c: New file.
3025         * m4/exp2.m4: New file.
3026         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3028         REPLACE_EXP2.
3029         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3030         REPLACE_EXP2.
3031         * modules/exp2: New file.
3032         * tests/test-math-c++.cc: Check the declaration of exp2.
3033         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3034         and OpenBSD problems.
3035
3036 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3037
3038         savedir: fix comment typo
3039         * lib/savedir.c (savedirstream): Fix typo in comment.
3040
3041 2012-03-08  Bruno Haible  <bruno@clisp.org>
3042
3043         test-readtokens.c: use const; remove unwarranted cast
3044         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3045
3046 2012-03-08  Bruno Haible  <bruno@clisp.org>
3047
3048         fmal: Avoid compilation error on AIX.
3049         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3050         AIX 5.2..7.1.
3051
3052 2012-03-08  Bruno Haible  <bruno@clisp.org>
3053
3054         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3055         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3056         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3057         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3058         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3059         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3060         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3061
3062 2012-03-08  Bruno Haible  <bruno@clisp.org>
3063
3064         remainderf: Override buggy system function on IRIX 6.5.
3065         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3066         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3067         when it exists.
3068         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3069
3070 2012-03-08  Jim Meyering  <meyering@redhat.com>
3071
3072         test-readtokens.c: avoid const-related compilation warnings
3073         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3074
3075 2012-03-07  Jim Meyering  <meyering@redhat.com>
3076             Bruno Haible  <bruno@clisp.org>
3077
3078         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3079         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3080         tests/randomd.c.
3081         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3082         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3083         tests/randoml.c.
3084         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3085
3086 2012-03-07  Bruno Haible  <bruno@clisp.org>
3087
3088         expm1l: Avoid compilation error on AIX.
3089         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3090         AIX 5.2..7.1.
3091
3092 2012-03-07  Bruno Haible  <bruno@clisp.org>
3093
3094         expm1l: Don't override undeclared system function on IRIX 6.5.
3095         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3096         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3097         it exists. Set HAVE_DECL_EXPM1L.
3098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3099         HAVE_EXPM1L.
3100         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3101         HAVE_EXPM1L.
3102         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3103
3104 2012-03-07  Bruno Haible  <bruno@clisp.org>
3105
3106         remainderl: Don't override undeclared system function on IRIX 6.5.
3107         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3108         HAVE_REMAINDERL.
3109         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3110         declared when it exists. Set HAVE_DECL_REMAINDERL.
3111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3112         not HAVE_REMAINDERL.
3113         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3114         HAVE_REMAINDERL.
3115         * doc/posix-functions/remainderl.texi: Mention missing declaration
3116         problem.
3117
3118 2012-03-07  Bruno Haible  <bruno@clisp.org>
3119
3120         rintf: Don't override undeclared system function on IRIX 6.5.
3121         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3122         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3123         exists. Set HAVE_DECL_RINTF.
3124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3125         HAVE_RINTF.
3126         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3127         HAVE_RINTF.
3128         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3129
3130 2012-03-07  Bruno Haible  <bruno@clisp.org>
3131
3132         roundl: Avoid compilation error on AIX.
3133         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3134         AIX 5.2..7.1.
3135
3136 2012-03-07  Bruno Haible  <bruno@clisp.org>
3137
3138         roundl: Don't override undeclared system function on IRIX 6.5.
3139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3140         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3141         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3142         * modules/roundl (configure.ac): For replacement code, test
3143         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3144         (Depends-on): Update conditions.
3145         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3146
3147 2012-03-07  Bruno Haible  <bruno@clisp.org>
3148
3149         roundf: Don't override undeclared system function on IRIX 6.5.
3150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3151         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3152         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3153         * modules/roundf (configure.ac): For replacement code, test
3154         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3155         (Depends-on): Update conditions.
3156         * modules/roundf-ieee (Depends-on): Update conditions.
3157         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3158
3159 2012-03-07  Bruno Haible  <bruno@clisp.org>
3160
3161         round: Don't override undeclared system function on IRIX 6.5.
3162         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3163         argument.
3164         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3165         also when it is not declared. Set HAVE_ROUND. For replacement code,
3166         test HAVE_ROUND, not HAVE_DECL_ROUND.
3167         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3168         not HAVE_DECL_ROUND.
3169         (Depends-on): Update conditions.
3170         * modules/round-ieee (Depends-on): Update conditions.
3171         * doc/posix-functions/round.texi: Mention the IRIX problem.
3172
3173 2012-03-07  Bruno Haible  <bruno@clisp.org>
3174
3175         copysignf: Don't override undeclared system function on IRIX 6.5.
3176         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3177         HAVE_COPYSIGNF.
3178         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3179         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3181         not HAVE_COPYSIGNF.
3182         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3183         HAVE_COPYSIGNF.
3184         * doc/posix-functions/copysignf.texi: Mention missing declaration
3185         problem.
3186
3187 2012-03-07  Jim Meyering  <meyering@redhat.com>
3188
3189         readtokens: add tests
3190         * modules/readtokens-tests: New file.
3191         * tests/test-readtokens.c: New file.
3192
3193 2012-03-07  Jim Meyering  <meyering@redhat.com>
3194
3195         quotearg: the module must now include quote.h
3196         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3197         So must the module.
3198         * modules/quotearg (Files): Add quote.h.
3199
3200 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3201
3202         readtokens: avoid core dumps with unusual calling patterns
3203         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3204         * lib/readtokens.c: Include limits.h.
3205         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3206         (readtoken): Don't cache the delimiters; the cache code was buggy
3207         if !delim && saved_delim, or if the new n_delim differs from the old.
3208         Also, it wasn't thread-safe.
3209
3210 2012-03-07  Bruno Haible  <bruno@clisp.org>
3211
3212         quote: Adhere to common module description layout.
3213         * modules/quote (Makefile.am): Add back empty section.
3214
3215 2012-03-06  Akim Demaille  <demaille@gostai.com>
3216
3217         quote: fuse into quotearg
3218         This patch is made for the benefit of Bison.
3219         quote does not leave the choice of the quoting style to the user.
3220         quoting_style provides poor customizability, yet quoting_options,
3221         which is very rich, is hidden inside quotearg.c.  So in order to
3222         allow quote customization, move its implementation to quotearg.c.
3223         * lib/quote.c: Remove.
3224         * modules/quote: Adjust.
3225         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3226         warning: provide all the members of literal structs.
3227         (quote_quoting_options): New.
3228         (quote, quote_n): Import implementation from quote.c.
3229         * lib/quote.h: Import the comments from quote.c.
3230         (quote_quoting_options): New.
3231
3232 2012-03-06  Bruno Haible  <bruno@clisp.org>
3233
3234         Tests for module 'expm1l-ieee'.
3235         * modules/expm1l-ieee-tests: New file.
3236         * tests/test-expm1l-ieee.c: New file.
3237
3238         New module 'expm1l-ieee'.
3239         * modules/expm1l-ieee: New file.
3240
3241         Tests for module 'expm1f-ieee'.
3242         * modules/expm1f-ieee-tests: New file.
3243         * tests/test-expm1f-ieee.c: New file.
3244
3245         New module 'expm1f-ieee'.
3246         * modules/expm1f-ieee: New file.
3247
3248         Tests for module 'expm1-ieee'.
3249         * modules/expm1-ieee-tests: New file.
3250         * tests/test-expm1-ieee.c: New file.
3251         * tests/test-expm1-ieee.h: New file.
3252
3253         New module 'expm1-ieee'.
3254         * modules/expm1-ieee: New file.
3255         * m4/expm1-ieee.m4: New file.
3256         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3257         whether expm1 works with a minus zero argument. Replace it if not.
3258         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3260         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3261         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3262         (Depends-on): Update conditions.
3263         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3264         AIX problem.
3265
3266 2012-03-06  Bruno Haible  <bruno@clisp.org>
3267
3268         Work around expm1f bug on IRIX 6.5.
3269         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3270         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3271         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3272         not work.
3273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3274         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3275         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3276         (Depends-on): Update conditions.
3277         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3278
3279 2012-03-06  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'expm1l'.
3282         * modules/expm1l-tests: New file.
3283         * tests/test-expm1l.c: New file.
3284
3285         New module 'expm1l'.
3286         * lib/math.in.h (expm1l): New declaration.
3287         * lib/expm1l.c: New file.
3288         * m4/expm1l.m4: New file.
3289         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3291         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3292         * modules/expm1l: New file.
3293         * tests/test-math-c++.cc: Check the declaration of expm1l.
3294         * doc/posix-functions/expm1l.texi: Mention the new module.
3295
3296 2012-03-06  Bruno Haible  <bruno@clisp.org>
3297
3298         Tests for module 'expm1f'.
3299         * modules/expm1f-tests: New file.
3300         * tests/test-expm1f.c: New file.
3301
3302         New module 'expm1f'.
3303         * lib/math.in.h (expm1f): New declaration.
3304         * lib/expm1f.c: New file.
3305         * m4/expm1f.m4: New file.
3306         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3308         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3309         * modules/expm1f: New file.
3310         * tests/test-math-c++.cc: Check the declaration of expm1f.
3311         * doc/posix-functions/expm1f.texi: Mention the new module.
3312
3313 2012-03-06  Bruno Haible  <bruno@clisp.org>
3314
3315         Tests for module 'expm1'.
3316         * modules/expm1-tests: New file.
3317         * tests/test-expm1.c: New file.
3318         * tests/test-expm1.h: New file.
3319
3320         New module 'expm1'.
3321         * lib/math.in.h (expm1): New declaration.
3322         * lib/expm1.c: New file.
3323         * m4/expm1.m4: New file.
3324         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3326         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3327         * modules/expm1: New file.
3328         * tests/test-math-c++.cc: Check the declaration of expm1.
3329         * doc/posix-functions/expm1.texi: Mention the new module.
3330
3331 2012-03-06  Bruno Haible  <bruno@clisp.org>
3332
3333         math: Ensure declarations of math functions.
3334         * modules/acosf (Depends-on): Add 'extensions'.
3335         * modules/asinf (Depends-on): Likewise.
3336         * modules/atan2f (Depends-on): Likewise.
3337         * modules/atanf (Depends-on): Likewise.
3338         * modules/cbrt (Depends-on): Likewise.
3339         * modules/cbrtf (Depends-on): Likewise.
3340         * modules/cbrtl (Depends-on): Likewise.
3341         * modules/copysignf (Depends-on): Likewise.
3342         * modules/copysignl (Depends-on): Likewise.
3343         * modules/cosf (Depends-on): Likewise.
3344         * modules/coshf (Depends-on): Likewise.
3345         * modules/expf (Depends-on): Likewise.
3346         * modules/fabsf (Depends-on): Likewise.
3347         * modules/fabsl (Depends-on): Likewise.
3348         * modules/fmaf (Depends-on): Likewise.
3349         * modules/fmal (Depends-on): Likewise.
3350         * modules/fmodf (Depends-on): Likewise.
3351         * modules/fmodl (Depends-on): Likewise.
3352         * modules/frexpf (Depends-on): Likewise.
3353         * modules/frexpl (Depends-on): Likewise.
3354         * modules/hypot (Depends-on): Likewise.
3355         * modules/hypotf (Depends-on): Likewise.
3356         * modules/hypotl (Depends-on): Likewise.
3357         * modules/ldexpf (Depends-on): Likewise.
3358         * modules/ldexpl (Depends-on): Likewise.
3359         * modules/log10f (Depends-on): Likewise.
3360         * modules/log10l (Depends-on): Likewise.
3361         * modules/log1p (Depends-on): Likewise.
3362         * modules/logb (Depends-on): Likewise.
3363         * modules/logf (Depends-on): Likewise.
3364         * modules/modff (Depends-on): Likewise.
3365         * modules/modfl (Depends-on): Likewise.
3366         * modules/powf (Depends-on): Likewise.
3367         * modules/remainderf (Depends-on): Likewise.
3368         * modules/remainderl (Depends-on): Likewise.
3369         * modules/rintf (Depends-on): Likewise.
3370         * modules/rintl (Depends-on): Likewise.
3371         * modules/sinf (Depends-on): Likewise.
3372         * modules/sinhf (Depends-on): Likewise.
3373         * modules/sqrtf (Depends-on): Likewise.
3374         * modules/tanf (Depends-on): Likewise.
3375         * modules/tanhf (Depends-on): Likewise.
3376         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3377         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3378         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3379         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3380         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3381         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3382         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3383         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3384         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3385         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3386         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3387         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3388         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3389         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3390         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3391         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3392         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3393         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3394         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3396         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3397         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3398         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3399         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3401         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3402         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3403         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3404         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3405         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3406         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3407         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3408         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3409         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3410         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3411         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3412         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3413         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3414         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3415         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3416         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3417
3418 2012-03-06  Bruno Haible  <bruno@clisp.org>
3419
3420         math: Update module names in warnings.
3421         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3422         tanl): Use specific module name in warn-on-use warning.
3423
3424 2012-03-06  Bruno Haible  <bruno@clisp.org>
3425
3426         expl: Simplify computation.
3427         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3428
3429 2012-03-05  Bruno Haible  <bruno@clisp.org>
3430
3431         exp* tests: More tests.
3432         * tests/test-exp.h: New file.
3433         * tests/test-exp.c: Include <float.h> and test-exp.h.
3434         (main): Invoke test_function.
3435         * tests/test-expf.c: Include <float.h> and test-exp.h.
3436         (main): Invoke test_function.
3437         * tests/test-expl.c: Include <float.h> and test-exp.h.
3438         (main): Invoke test_function.
3439         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3440         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3441         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3442         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3443         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3444         (Depends-on): Add 'float'.
3445         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3446
3447         expl: Fix precision of computed result.
3448         * lib/expl.c: Completely rewritten.
3449         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3450         (Maintainer): Add me.
3451         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3452
3453 2012-03-05  Bruno Haible  <bruno@clisp.org>
3454
3455         cbrt* tests: More tests.
3456         * tests/test-cbrt.h: New file.
3457         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3458         (main): Invoke test_function.
3459         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3460         (main): Invoke test_function.
3461         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3462         (main): Invoke test_function.
3463         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3464         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3465         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3466         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3467         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3468         (Depends-on): Add 'float'.
3469         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3470
3471 2012-03-05  Bruno Haible  <bruno@clisp.org>
3472
3473         hypot* tests: More tests.
3474         * tests/test-hypot.h: New file, partially extracted from
3475         tests/test-hypotl.c.
3476         * tests/test-hypot.c: Include test-hypot.h.
3477         (main): Invoke test_function.
3478         * tests/test-hypotf.c: Include test-hypot.h.
3479         (main): Invoke test_function.
3480         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3481         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3482         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3483         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3484         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3485         tests/randomf.c.
3486         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3487         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3488         tests/randoml.c.
3489         (Depends-on): Add 'fpucw', 'float'.
3490         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3491
3492 2012-03-05  Bruno Haible  <bruno@clisp.org>
3493
3494         fpucw: Doc about FreeBSD.
3495         * lib/fpucw.h: Mention FreeBSD in comments.
3496
3497 2012-03-04  Bruno Haible  <bruno@clisp.org>
3498
3499         sqrt* tests: More tests.
3500         * tests/test-sqrt.h: New file.
3501         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3502         (main): Invoke test_function.
3503         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3504         (main): Invoke test_function.
3505         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3506         (main): Invoke test_function.
3507         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3508         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3509         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3510         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3511         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3512         (Depends-on): Add 'float'.
3513         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3514
3515 2012-03-04  Bruno Haible  <bruno@clisp.org>
3516
3517         remainder* tests: More tests.
3518         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3519         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3520         (main): Invoke test_function.
3521         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3522         (main): Invoke test_function.
3523         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3524         (main): Invoke test_function.
3525         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3526         tests/randomd.c.
3527         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3528         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3529         tests/randomf.c.
3530         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3531         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3532         tests/randoml.c.
3533         (Depends-on): Add 'float'.
3534         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3535
3536 2012-03-04  Bruno Haible  <bruno@clisp.org>
3537
3538         remainder, remainderf, remainderl: Fix computation for large quotients.
3539         * lib/remainder.c: Completely rewritten.
3540         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3541         USE_FLOAT.
3542         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3543         USE_LONG_DOUBLE.
3544         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3545         isnand, isinf. Remove round, fma.
3546         * modules/remainderf (Files): Add lib/remainder.c.
3547         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3548         Remove roundf, fmaf.
3549         * modules/remainderl (Files): Add lib/remainder.c.
3550         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3551         isinf. Remove roundl, fmal.
3552         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3553         REMAINDER_LIBM.
3554         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3555         REMAINDERF_LIBM.
3556         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3557         REMAINDERL_LIBM.
3558
3559 2012-03-04  Bruno Haible  <bruno@clisp.org>
3560
3561         fmod* tests: More tests.
3562         * tests/test-fmod.h (my_ldexp): New function.
3563         (test_function): Reduce amount of random numbers to test. Add tests
3564         of very large quotients x / y.
3565         * tests/test-fmod.c (MAX_EXP): New macro.
3566         * tests/test-fmodf.c (MAX_EXP): Likewise.
3567         * tests/test-fmodl.c (MAX_EXP): Likewise.
3568
3569 2012-03-04  Bruno Haible  <bruno@clisp.org>
3570
3571         fmod, fmodl: Fix computation for large quotients x / y.
3572         * lib/fmod.c: Completely rewritten.
3573         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3574         USE_LONG_DOUBLE.
3575         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3576         isnand. Remove fma.
3577         * modules/fmodl (Files): Add lib/fmod.c.
3578         (Depends-on): Add float, isfinite, signbit, fabsl,
3579         frexpl, ldexpl, isnanl. Remove fma.
3580         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3581         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3582
3583 2012-03-03  Bruno Haible  <bruno@clisp.org>
3584
3585         fmod* tests: More tests.
3586         * tests/test-fmod.h: New file.
3587         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3588         (main): Invoke test_function.
3589         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3590         (main): Invoke test_function.
3591         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3592         (main): Invoke test_function.
3593         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3594         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3595         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3596         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3597         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3598         (Depends-on): Add 'float'.
3599         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3600
3601 2012-03-03  Bruno Haible  <bruno@clisp.org>
3602
3603         rint* tests: More tests.
3604         * tests/test-rint.h: New file, partially extracted from
3605         tests/test-rintl.c.
3606         * tests/test-rint.c: Include test-rint.h.
3607         (main): Invoke test_function.
3608         * tests/test-rintf.c: Include test-rint.h.
3609         (main): Invoke test_function.
3610         * tests/test-rintl.c: Include test-rint.h.
3611         (main): Invoke test_function.
3612         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3613         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3614         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3615         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3616         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3617         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3618
3619 2012-03-03  Bruno Haible  <bruno@clisp.org>
3620
3621         modf* tests: More tests.
3622         * tests/test-modf.h: New file.
3623         * tests/test-modf.c: Include <float.h> and test-modf.h.
3624         (main): Invoke test_function.
3625         * tests/test-modff.c: Include <float.h> and test-modf.h.
3626         (main): Invoke test_function.
3627         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3628         (main): Invoke test_function.
3629         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3630         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3631         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3632         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3633         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3634         (Depends-on): Add 'float'.
3635         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3636
3637 2012-03-03  Bruno Haible  <bruno@clisp.org>
3638
3639         fabs* tests: More tests.
3640         * tests/test-fabs.h: New file, partially extracted from
3641         tests/test-fabsl.c.
3642         * tests/test-fabs.c (RANDOM): New macro.
3643         * tests/test-fabsf.c (RANDOM): New macro.
3644         * tests/test-fabsl.c (RANDOM): New macro.
3645         * modules/fabs-tests (Files): Add tests/randomd.c.
3646         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3647         * modules/fabsf-tests (Files): Add tests/randomf.c.
3648         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3649         * modules/fabsl-tests (Files): Add tests/randoml.c.
3650         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3651
3652 2012-03-03  Bruno Haible  <bruno@clisp.org>
3653
3654         ldexp* tests: More tests.
3655         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3656         * tests/test-ldexp.c (RANDOM): New macro.
3657         * tests/test-ldexpf.c (RANDOM): New macro.
3658         * tests/test-ldexpl.c (RANDOM): New macro.
3659         * modules/ldexp-tests (Files): Add tests/randomd.c.
3660         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3661         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3662         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3663         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3664         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3665
3666 2012-03-03  Bruno Haible  <bruno@clisp.org>
3667
3668         frexp* tests: More tests.
3669         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3670         * tests/test-frexp.c (RANDOM): New macro.
3671         * tests/test-frexpf.c (RANDOM): New macro.
3672         * tests/test-frexpl.c (RANDOM): New macro.
3673         * modules/frexp-tests (Files): Add tests/randomd.c.
3674         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3675         * modules/frexpf-tests (Files): Add tests/randomf.c.
3676         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3677         * modules/frexpl-tests (Files): Add tests/randoml.c.
3678         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3679
3680 2012-03-03  Bruno Haible  <bruno@clisp.org>
3681
3682         Support for pseudo-random numbers in tests.
3683         * tests/randomf.c: New file.
3684         * tests/randomd.c: New file.
3685         * tests/randoml.c: New file.
3686         * tests/macros.h (randomf, randomd, randoml): New declarations.
3687
3688 2012-03-03  Bruno Haible  <bruno@clisp.org>
3689
3690         frexp* tests: Refactor.
3691         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3692         * tests/test-frexp.c: Include and use it.
3693         * tests/test-frexpf.c: Likewise.
3694         * tests/test-frexpl.c: Likewise.
3695         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3696         * modules/frexpf-tests (Files): Likewise.
3697         * modules/frexpl-tests (Files): Likewise.
3698
3699 2012-03-02  Jim Meyering  <meyering@redhat.com>
3700
3701         maint: don't specify XZ_OPT=-9ev in dist-related rule
3702         Using xz's -9 option is warranted only if you have a very large
3703         tarball (see xz's documentation for the sizes vs. presets), and
3704         requires 64MiB of memory at decompression time.
3705         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3706         Automake's default of just "-e" is fine.  Override on a
3707         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3708
3709 2012-03-01  Eric Blake  <eblake@redhat.com>
3710
3711         maint.mk: allow announcement for non-gnulib project
3712         * maint.mk (announcement): Skip gnulib version if not used.
3713
3714 2012-03-01  Jim Meyering  <meyering@redhat.com>
3715
3716         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3717         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3718         envvar settings cannot interfere.  Otherwise, setting envvars like
3719         prohibit=foo require=bar, etc. would cause spurious test failures.
3720
3721 2012-03-01  Eric Blake  <eblake@redhat.com>
3722
3723         maint.mk: add per-line exclusions to prohibitions
3724         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3725         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3726         (sc_const_long_option): Use it.
3727
3728 2012-03-01  Bruno Haible  <bruno@clisp.org>
3729
3730         Tests for module 'expl-ieee'.
3731         * modules/expl-ieee-tests: New file.
3732         * tests/test-expl-ieee.c: New file.
3733
3734         New module 'expl-ieee'.
3735         * modules/expl-ieee: New file.
3736
3737         Tests for module 'exp-ieee'.
3738         * modules/exp-ieee-tests: New file.
3739         * tests/test-exp-ieee.c: New file.
3740
3741         New module 'exp-ieee'.
3742         * modules/exp-ieee: New file.
3743
3744         Tests for module 'expf-ieee'.
3745         * modules/expf-ieee-tests: New file.
3746         * tests/test-expf-ieee.c: New file.
3747         * tests/test-exp-ieee.h: New file.
3748
3749         New module 'expf-ieee'.
3750         * modules/expf-ieee: New file.
3751
3752 2012-02-29  Bruno Haible  <bruno@clisp.org>
3753
3754         cbrtl-ieee: Work around test failure on IRIX 6.5.
3755         * m4/cbrtl-ieee.m4: New file.
3756         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3757         test whether cbrtl works with a minus zero argument. Replace it if not.
3758         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3760         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3761         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3762         (Depends-on): Update conditions.
3763         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3764         m4/signbit.m4.
3765         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3766         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3767         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3768
3769         Tests for module 'cbrtl-ieee'.
3770         * modules/cbrtl-ieee-tests: New file.
3771         * tests/test-cbrtl-ieee.c: New file.
3772
3773         New module 'cbrtl-ieee'.
3774         * modules/cbrtl-ieee: New file.
3775
3776         Tests for module 'cbrt-ieee'.
3777         * modules/cbrt-ieee-tests: New file.
3778         * tests/test-cbrt-ieee.c: New file.
3779
3780         New module 'cbrt-ieee'.
3781         * modules/cbrt-ieee: New file.
3782
3783         Tests for module 'cbrtf-ieee'.
3784         * modules/cbrtf-ieee-tests: New file.
3785         * tests/test-cbrtf-ieee.c: New file.
3786         * tests/test-cbrt-ieee.h: New file.
3787
3788         New module 'cbrtf-ieee'.
3789         * modules/cbrtf-ieee: New file.
3790
3791 2012-02-29  Bruno Haible  <bruno@clisp.org>
3792
3793         cbrtf: Work around bug in IRIX 6.5 system function.
3794         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3795         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3796         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3797         work.
3798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3799         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3800         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3801         (Depends-on): Update conditions.
3802         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3803
3804 2012-02-29  Bruno Haible  <bruno@clisp.org>
3805
3806         Tests for module 'cbrtl'.
3807         * modules/cbrtl-tests: New file.
3808         * tests/test-cbrtl.c: New file.
3809
3810         New module 'cbrtl'.
3811         * lib/math.in.h (cbrtl): New declaration.
3812         * lib/cbrtl.c: New file.
3813         * m4/cbrtl.m4: New file.
3814         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3816         HAVE_DECL_CBRTL.
3817         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3818         HAVE_DECL_CBRTL.
3819         * modules/cbrtl: New file.
3820         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3821         * doc/posix-functions/cbrtl.texi: Mention the new module.
3822
3823 2012-02-29  Bruno Haible  <bruno@clisp.org>
3824
3825         Tests for module 'cbrtf'.
3826         * modules/cbrtf-tests: New file.
3827         * tests/test-cbrtf.c: New file.
3828
3829         New module 'cbrtf'.
3830         * lib/math.in.h (cbrtf): New declaration.
3831         * lib/cbrtf.c: New file.
3832         * m4/cbrtf.m4: New file.
3833         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3835         HAVE_DECL_CBRTF.
3836         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3837         HAVE_DECL_CBRTF.
3838         * modules/cbrtf: New file.
3839         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3840         * doc/posix-functions/cbrtf.texi: Mention the new module.
3841
3842 2012-02-29  Bruno Haible  <bruno@clisp.org>
3843
3844         cbrt: Provide replacement on MSVC and Minix.
3845         * lib/math.in.h (cbrt): New declaration.
3846         * lib/cbrt.c: New file.
3847         * m4/cbrt.m4: New file.
3848         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3850         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3851         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3852         (Depends-on): Add dependencies.
3853         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3854         * tests/test-math-c++.cc: Check the declaration of cbrt.
3855         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3856         replacement.
3857
3858 2012-02-29  Bruno Haible  <bruno@clisp.org>
3859
3860         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3861         * m4/hypotl-ieee.m4: New file.
3862         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3863         test whether hypotl works with mixed NaN and Infinity arguments.
3864         Replace it if not.
3865         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3867         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3868         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3869         (Depends-on): Update conditions.
3870         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3871         (Depends-on): Add hypot-ieee.
3872         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3873         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3874
3875         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3876         * m4/hypotf-ieee.m4: New file.
3877         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3878         test whether hypotf works with mixed NaN and Infinity arguments.
3879         Replace it if not.
3880         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3881         (Depends-on): Add hypot-ieee.
3882         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3883         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3884
3885         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3886         * lib/math.in.h (hypot): New declaration.
3887         * lib/hypot.c: New file.
3888         * m4/hypot-ieee.m4: New file.
3889         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3890         whether hypot works with mixed NaN and Infinity arguments. Replace it
3891         if not.
3892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3893         REPLACE_HYPOT.
3894         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3895         * modules/hypot (Files): Add lib/hypot.c.
3896         (Depends-on): Add dependencies.
3897         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3898         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3899         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3900         * tests/test-math-c++.cc: Check the declaration of hypot.
3901         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3902
3903         Tests for module 'hypotl-ieee'.
3904         * modules/hypotl-ieee-tests: New file.
3905         * tests/test-hypotl-ieee.c: New file.
3906
3907         New module 'hypotl-ieee'.
3908         * modules/hypotl-ieee: New file.
3909
3910         Tests for module 'hypot-ieee'.
3911         * modules/hypot-ieee-tests: New file.
3912         * tests/test-hypot-ieee.c: New file.
3913
3914         New module 'hypot-ieee'.
3915         * modules/hypot-ieee: New file.
3916
3917         Tests for module 'hypotf-ieee'.
3918         * modules/hypotf-ieee-tests: New file.
3919         * tests/test-hypotf-ieee.c: New file.
3920         * tests/test-hypot-ieee.h: New file.
3921
3922         New module 'hypotf-ieee'.
3923         * modules/hypotf-ieee: New file.
3924
3925 2012-02-29  Bruno Haible  <bruno@clisp.org>
3926
3927         Remove unused variables.
3928         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3929         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3930         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3931         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3932
3933 2012-02-29  Eric Blake  <eblake@redhat.com>
3934
3935         termios: fix pid_t always, not just for tcgetsid
3936         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3937         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3938         just when building tcgetsid.
3939
3940 2012-02-29  Bruno Haible  <bruno@clisp.org>
3941
3942         Tests for module 'hypotl'.
3943         * modules/hypotl-tests: New file.
3944         * tests/test-hypotl.c: New file.
3945
3946         New module 'hypotl'.
3947         * lib/math.in.h (hypotl): New declaration.
3948         * lib/hypotl.c: New file.
3949         * m4/hypotl.m4: New file.
3950         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3952         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3953         * modules/hypotl: New file.
3954         * tests/test-math-c++.cc: Check the hypotl declaration.
3955         * doc/posix-functions/hypotl.texi: Mention the new module.
3956
3957 2012-02-29  Eric Blake  <eblake@redhat.com>
3958
3959         tcgetsid: fix cygwin header bug
3960         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3961
3962         docs: update cygwin progress
3963         * doc/posix-functions/llround.texi (llround): Added in cygwin
3964         1.7.8.
3965         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3966         * doc/glibc-functions/program_invocation_name.texi
3967         (program_invocation_name): Likewise.
3968         * doc/glibc-functions/program_invocation_short_name.texi
3969         (program_invocation_short_name): Likewise.
3970         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3971         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3972         Likewise.
3973         * doc/posix-functions/pthread_spin_destroy.texi
3974         (pthread_spin_destroy): Added in cygwin 1.7.10.
3975         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3976         Likewise.
3977         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3978         Likewise.
3979         * doc/posix-functions/pthread_spin_trylock.texi
3980         (pthread_spin_trylock): Likewise.
3981         * doc/posix-functions/pthread_spin_unlock.texi
3982         (pthread_spin_unlock): Likewise.
3983         * doc/posix-functions/pthread_setschedprio.texi
3984         (pthread_setschedprio): Likewise.
3985         * doc/posix-functions/pthread_attr_getstack.texi
3986         (pthread_attr_getstack): Likewise.
3987         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3988         (pthread_attr_getstackaddr): Likewise.
3989         * doc/glibc-functions/pthread_getattr_np.texi
3990         (pthread_getattr_np): Likewise.
3991         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3992         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3993         * doc/posix-functions/clock_settime.texi (clock_settime):
3994         Likewise.
3995         * doc/posix-functions/pthread_attr_getguardsize.texi
3996         (pthread_attr_getguardsize): Likewise.
3997         * doc/posix-functions/pthread_attr_setguardsize.texi
3998         (pthread_attr_setguardsize): Likewise.
3999         * doc/posix-functions/pthread_attr_setstack.texi
4000         (pthread_attr_setstack): Likewise.
4001         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4002         (pthread_attr_setstackaddr): Likewise.
4003         * doc/posix-functions/clock_getcpuclockid.texi
4004         (clock_getcpuclockid): Likewise.
4005         * doc/posix-functions/pthread_getcpuclockid.texi
4006         (pthread_getcpuclockid): Likewise.
4007         * doc/glibc-functions/error.texi (error): Likewise.
4008         * doc/glibc-functions/error_at_line.texi (error_at_line):
4009         Likewise.
4010         * doc/glibc-functions/error_message_count.texi
4011         (error_message_count): Likewise.
4012         * doc/glibc-functions/error_one_per_line.texi
4013         (error_one_per_line): Likewise.
4014         * doc/glibc-functions/error_print_progname.texi
4015         (error_print_progname): Likewise.
4016         * doc/posix-functions/pthread_condattr_getclock.texi
4017         (pthread_condattr_getclock): Likewise.
4018         * doc/posix-functions/pthread_condattr_setclock.texi
4019         (pthread_condattr_setclock): Likewise.
4020         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4021         Likewise.
4022         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4023         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4024         * doc/glibc-functions/get_current_dir_name.texi
4025         (get_current_dir_name): Likewise.
4026         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4027         Likewise.
4028         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4029         wrong return type.
4030         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4031         1.7.11.
4032
4033 2012-02-29  Bruno Haible  <bruno@clisp.org>
4034
4035         Tests for module 'hypotf'.
4036         * modules/hypotf-tests: New file.
4037         * tests/test-hypotf.c: New file.
4038
4039         New module 'hypotf'.
4040         * lib/math.in.h (hypotf): New declaration.
4041         * lib/hypotf.c: New file.
4042         * m4/hypotf.m4: New file.
4043         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4045         REPLACE_HYPOTF.
4046         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4047         REPLACE_HYPOTF.
4048         * modules/hypotf: New file.
4049         * tests/test-math-c++.cc: Check the hypotf declaration.
4050         * doc/posix-functions/hypotf.texi: Mention the new module.
4051
4052         hypot: Prepare for hypotf module.
4053         * m4/hypot.m4: New file.
4054         * modules/hypot (Files): Add m4/hypot.m4.
4055         (configure.ac): Invoke gl_FUNC_HYPOT.
4056
4057 2012-02-29  Bruno Haible  <bruno@clisp.org>
4058
4059         hypot tests: More tests.
4060         * tests/test-hypot.c: Include <float.h>.
4061         (main): Add tests about overflow and underflow.
4062
4063 2012-02-29  Bruno Haible  <bruno@clisp.org>
4064
4065         math code: Add comments.
4066         * lib/acosl.c: Add comment about related glibc source files.
4067         * lib/asinl.c: Likewise.
4068         * lib/atanl.c: Likewise.
4069         * lib/expl.c: Likewise.
4070         * lib/logl.c: Likewise.
4071         * lib/sincosl.c: Likewise.
4072         * lib/sinl.c: Likewise.
4073         * lib/tanl.c: Likewise.
4074         * lib/trigl.c: Likewise.
4075         * lib/cosl.c: Likewise. Fix comments.
4076
4077 2012-02-28  Bruno Haible  <bruno@clisp.org>
4078
4079         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4080         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4081         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4082         HUGE_VALL are defined.
4083         (numeric_equald): Renamed from numeric_equal.
4084         (numeric_equalf, numeric_equall): New functions.
4085         (main): Check also HUGE_VALF, HUGE_VALL.
4086         * modules/math-tests (Files): Add tests/macros.h.
4087         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4088         HUGE_VALL.
4089
4090 2012-02-28  Bruno Haible  <bruno@clisp.org>
4091
4092         doc: Move ISO C11 feature notes into POSIX chapters.
4093         * doc/posix-functions/aligned_alloc.texi: Renamed from
4094         doc/glibc-functions/aligned_alloc.texi.
4095         * doc/posix-functions/quick_exit.texi: Renamed from
4096         doc/glibc-functions/quick_exit.texi.
4097         * doc/posix-headers/uchar.texi: Renamed from
4098         doc/glibc-headers/uchar.texi.
4099         * doc/posix-functions/c16rtomb.texi: Renamed from
4100         doc/glibc-functions/c16rtomb.texi.
4101         * doc/posix-functions/c32rtomb.texi: Renamed from
4102         doc/glibc-functions/c32rtomb.texi.
4103         * doc/posix-functions/mbrtoc16.texi: Renamed from
4104         doc/glibc-functions/mbrtoc16.texi.
4105         * doc/posix-functions/mbrtoc32.texi: Renamed from
4106         doc/glibc-functions/mbrtoc32.texi.
4107         * doc/gnulib.texi: Update.
4108         (Glibc uchar.h): Remove section.
4109         Suggested by Eric Blake.
4110
4111 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4112
4113         stdnoreturn: port to MSVC better
4114         MSVC standard headers use __declspec(noreturn), so #define noreturn
4115         to empty on that platform.  Reported by Bruno Haible in
4116         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4117         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4118         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4119
4120 2012-02-28  Bruno Haible  <bruno@clisp.org>
4121
4122         doc: Mention new glibc headers and functions.
4123         * doc/glibc-headers/uchar.texi: New file.
4124         * doc/glibc-functions/aligned_alloc.texi: New file.
4125         * doc/glibc-functions/c16rtomb.texi: New file.
4126         * doc/glibc-functions/c32rtomb.texi: New file.
4127         * doc/glibc-functions/clock_adjtime.texi: New file.
4128         * doc/glibc-functions/fanotify_init.texi: New file.
4129         * doc/glibc-functions/fanotify_mark.texi: New file.
4130         * doc/glibc-functions/inet6_opt_append.texi: New file.
4131         * doc/glibc-functions/inet6_opt_find.texi: New file.
4132         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4133         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4134         * doc/glibc-functions/inet6_opt_init.texi: New file.
4135         * doc/glibc-functions/inet6_opt_next.texi: New file.
4136         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4137         * doc/glibc-functions/inet6_rth_add.texi: New file.
4138         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4139         * doc/glibc-functions/inet6_rth_init.texi: New file.
4140         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4141         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4142         * doc/glibc-functions/inet6_rth_space.texi: New file.
4143         * doc/glibc-functions/login.texi: New file.
4144         * doc/glibc-functions/mbrtoc16.texi: New file.
4145         * doc/glibc-functions/mbrtoc32.texi: New file.
4146         * doc/glibc-functions/name_to_handle_at.texi: New file.
4147         * doc/glibc-functions/ntp_gettimex.texi: New file.
4148         * doc/glibc-functions/open_by_handle_at.texi: New file.
4149         * doc/glibc-functions/prlimit.texi: New file.
4150         * doc/glibc-functions/process_vm_readv.texi: New file.
4151         * doc/glibc-functions/process_vm_writev.texi: New file.
4152         * doc/glibc-functions/recvmmsg.texi: New file.
4153         * doc/glibc-functions/scandirat.texi: New file.
4154         * doc/glibc-functions/sendmmsg.texi: New file.
4155         * doc/glibc-functions/setns.texi: New file.
4156         * doc/glibc-functions/timespec_get.texi: New file.
4157         * doc/gnulib.texi: Include them.
4158         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4159         sections.
4160         Reported by Eric Blake.
4161
4162 2012-02-28  Bruno Haible  <bruno@clisp.org>
4163
4164         Avoid compilation errors with MSVC option -fp:strict.
4165         * lib/floor.c: Use MSVC specific pragma fenv_access.
4166         * lib/ceil.c: Likewise.
4167         * lib/trunc.c: Likewise.
4168         * lib/round.c: Likewise.
4169         * lib/rint.c: Likewise.
4170         * lib/fma.c: Likewise.
4171         * lib/integer_length.c: Likewise.
4172         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4174         * tests/test-floor2.c: Likewise.
4175         * tests/test-floorf2.c: Likewise.
4176         * tests/test-ceil2.c: Likewise.
4177         * tests/test-ceilf2.c: Likewise.
4178         * tests/test-trunc2.c: Likewise.
4179         * tests/test-truncf2.c: Likewise.
4180         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4181
4182 2012-02-27  Bruno Haible  <bruno@clisp.org>
4183
4184         Tests for module 'sqrtl-ieee'.
4185         * modules/sqrtl-ieee-tests: New file.
4186         * tests/test-sqrtl-ieee.c: New file.
4187
4188         New module 'sqrtl-ieee'.
4189         * modules/sqrtl-ieee: New file.
4190
4191         Tests for module 'sqrt-ieee'.
4192         * modules/sqrt-ieee-tests: New file.
4193         * tests/test-sqrt-ieee.c: New file.
4194
4195         New module 'sqrt-ieee'.
4196         * modules/sqrt-ieee: New file.
4197
4198         Tests for module 'sqrtf-ieee'.
4199         * modules/sqrtf-ieee-tests: New file.
4200         * tests/test-sqrtf-ieee.c: New file.
4201         * tests/test-sqrt-ieee.h: New file.
4202
4203         New module 'sqrtf-ieee'.
4204         * modules/sqrtf-ieee: New file.
4205
4206 2012-02-27  Bruno Haible  <bruno@clisp.org>
4207
4208         remainderl-ieee: Work around test failure on OSF/1.
4209         * m4/remainderl-ieee.m4: New file.
4210         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4211         present, test whether remainderl works with a zero second argument.
4212         Replace it if not.
4213         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4215         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4216         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4217         (Depends-on): Update conditions.
4218         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4219         (Depends-on): Add remainder-ieee.
4220         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4221         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4222         module.
4223
4224         remainderf-ieee: Work around test failure on OSF/1.
4225         * m4/remainderf-ieee.m4: New file.
4226         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4227         present, test whether remainderf works with a zero second argument.
4228         Replace it if not.
4229         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4231         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4232         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4233         (Depends-on): Update conditions.
4234         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4235         (Depends-on): Add remainder-ieee.
4236         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4237         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4238         module.
4239
4240         remainder-ieee: Work around test failure on OSF/1.
4241         * m4/remainder-ieee.m4: New file.
4242         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4243         present, test whether remainder works with a zero second argument.
4244         Replace it if not.
4245         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4247         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4248         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4249         (Depends-on): Update dependencies.
4250         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4251         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4252         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4253
4254         Tests for module 'remainderl-ieee'.
4255         * modules/remainderl-ieee-tests: New file.
4256         * tests/test-remainderl-ieee.c: New file.
4257
4258         New module 'remainderl-ieee'.
4259         * modules/remainderl-ieee: New file.
4260
4261         Tests for module 'remainder-ieee'.
4262         * modules/remainder-ieee-tests: New file.
4263         * tests/test-remainder-ieee.c: New file.
4264
4265         New module 'remainder-ieee'.
4266         * modules/remainder-ieee: New file.
4267
4268         Tests for module 'remainderf-ieee'.
4269         * modules/remainderf-ieee-tests: New file.
4270         * tests/test-remainderf-ieee.c: New file.
4271         * tests/test-remainder-ieee.h: New file.
4272
4273         New module 'remainderf-ieee'.
4274         * modules/remainderf-ieee: New file.
4275
4276 2012-02-27  Bruno Haible  <bruno@clisp.org>
4277
4278         modff, modfl: Fix configure syntax error.
4279         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4280         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4281
4282 2012-02-27  Bruno Haible  <bruno@clisp.org>
4283
4284         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4285         * m4/fmodl-ieee.m4: New file.
4286         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4287         whether fmodl works with zero arguments. Replace it if not.
4288         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4289         (Depends-on): Add fmod-ieee.
4290         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4291         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4292
4293         fmodf-ieee: Work around test failure on OSF/1.
4294         * m4/fmodf-ieee.m4: New file.
4295         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4296         whether fmodf works with zero arguments. Replace it if not.
4297         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4299         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4300         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4301         (Depends-on): Update dependencies.
4302         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4303         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4304         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4305
4306         fmodf-ieee: Work around test failure on MSVC 9.
4307         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4308         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4309
4310         fmod-ieee: Work around test failures on OSF/1, mingw.
4311         * m4/fmod-ieee.m4: New file.
4312         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4313         whether fmod works with zero arguments. Replace it if not.
4314         * lib/math.in.h (fmod): New declaration.
4315         * lib/fmod.c: New file.
4316         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4318         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4319         * modules/fmod (Files): Add lib/fmod.c.
4320         (Depends-on): Add math, isinf, trunc, fma.
4321         (configure.ac): Arrange to compile lib/fmod.c if needed.
4322         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4323         m4/signbit.m4.
4324         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4325         * tests/test-math-c++.cc: Check the declaration of fmod.
4326         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4327
4328         fmodl-ieee: Fix test failures.
4329         * lib/fmodl.c (fmodl): Treat Inf specially.
4330         * modules/fmodl (Depends-on): Add isinf.
4331
4332         Tests for module 'fmodl-ieee'.
4333         * modules/fmodl-ieee-tests: New file.
4334         * tests/test-fmodl-ieee.c: New file.
4335
4336         New module 'fmodl-ieee'.
4337         * modules/fmodl-ieee: New file.
4338
4339         Tests for module 'fmod-ieee'.
4340         * modules/fmod-ieee-tests: New file.
4341         * tests/test-fmod-ieee.c: New file.
4342
4343         New module 'fmod-ieee'.
4344         * modules/fmod-ieee: New file.
4345
4346         Tests for module 'fmodf-ieee'.
4347         * modules/fmodf-ieee-tests: New file.
4348         * tests/test-fmodf-ieee.c: New file.
4349         * tests/test-fmod-ieee.h: New file.
4350
4351         New module 'fmodf-ieee'.
4352         * modules/fmodf-ieee: New file.
4353
4354 2012-02-27  Bruno Haible  <bruno@clisp.org>
4355
4356         Tests for module 'rintl-ieee'.
4357         * modules/rintl-ieee-tests: New file.
4358         * tests/test-rintl-ieee.c: New file.
4359
4360         New module 'rintl-ieee'.
4361         * modules/rintl-ieee: New file.
4362
4363         Tests for module 'rint-ieee'.
4364         * modules/rint-ieee-tests: New file.
4365         * tests/test-rint-ieee.c: New file.
4366
4367         New module 'rint-ieee'.
4368         * modules/rint-ieee: New file.
4369
4370         Tests for module 'rintf-ieee'.
4371         * modules/rintf-ieee-tests: New file.
4372         * tests/test-rintf-ieee.c: New file.
4373         * tests/test-rint-ieee.h: New file.
4374
4375         New module 'rintf-ieee'.
4376         * modules/rintf-ieee: New file.
4377
4378 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4379
4380         regex: re_search etc. should return -2 when memory exhausted
4381         This bug was uncovered when testing 'grep'.  Without the fix,
4382         re_search and friends return -1 when memory is exhausted, but -1
4383         means no match, and this causes grep to falsely report no-match
4384         instead of memory-exhaustion.  See
4385         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4386         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4387         trouble; this can occur if re_search_internal ran out of memory.
4388
4389 2012-02-26  Bruno Haible  <bruno@clisp.org>
4390
4391         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4392         * m4/modfl-ieee.m4: New file.
4393         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4394         whether modfl works with Inf. Replace it if not.
4395         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4397         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4398         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4399         (Depends-on): Update dependencies.
4400         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4401         m4/signbit.m4.
4402         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4403         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4404
4405         modfl-ieee: Fix dependencies.
4406         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4407
4408         modfl-ieee: Fix test failures.
4409         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4410         * modules/modfl (Depends-on): Add isfinite, isinf.
4411
4412         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4413         * m4/modff-ieee.m4: New file.
4414         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4415         whether modff works with NaN and Inf. Replace it if not.
4416         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4418         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4419         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4420         (Depends-on): Update dependencies.
4421         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4422         m4/signbit.m4.
4423         (Depends-on): Add modf-ieee.
4424         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4425         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4426
4427         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4428         * m4/modf-ieee.m4: New file.
4429         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4430         whether modf works with NaN and Inf. Replace it if not.
4431         * lib/math.in.h (modf): New declaration.
4432         * lib/modf.c: New file.
4433         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4435         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4436         * modules/modf (Files): Add lib/modf.c.
4437         (Depends-on): Add math, isfinite, trunc, isinf.
4438         (configure.ac): Addrange to compile lib/modf.c if needed.
4439         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4440         m4/signbit.m4.
4441         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4442         * tests/test-math-c++.cc: Check the declaration of modf.
4443         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4444
4445         Tests for module 'modfl-ieee'.
4446         * modules/modfl-ieee-tests: New file.
4447         * tests/test-modfl-ieee.c: New file.
4448
4449         New module 'modfl-ieee'.
4450         * modules/modfl-ieee: New file.
4451
4452         Tests for module 'modf-ieee'.
4453         * modules/modf-ieee-tests: New file.
4454         * tests/test-modf-ieee.c: New file.
4455
4456         New module 'modf-ieee'.
4457         * modules/modf-ieee: New file.
4458
4459         Tests for module 'modff-ieee'.
4460         * modules/modff-ieee-tests: New file.
4461         * tests/test-modff-ieee.c: New file.
4462         * tests/test-modf-ieee.h: New file.
4463
4464         New module 'modff-ieee'.
4465         * modules/modff-ieee: New file.
4466
4467 2012-02-26  Bruno Haible  <bruno@clisp.org>
4468
4469         Tests for module 'fabsl-ieee'.
4470         * modules/fabsl-ieee-tests: New file.
4471         * tests/test-fabsl-ieee.c: New file.
4472
4473         New module 'fabsl-ieee'.
4474         * modules/fabsl-ieee: New file.
4475
4476         Tests for module 'fabs-ieee'.
4477         * modules/fabs-ieee-tests: New file.
4478         * tests/test-fabs-ieee.c: New file.
4479
4480         New module 'fabs-ieee'.
4481         * modules/fabs-ieee: New file.
4482
4483         Tests for module 'fabsf-ieee'.
4484         * modules/fabsf-ieee-tests: New file.
4485         * tests/test-fabsf-ieee.c: New file.
4486         * tests/test-fabs-ieee.h: New file.
4487
4488         New module 'fabsf-ieee'.
4489         * modules/fabsf-ieee: New file.
4490
4491 2012-02-26  Bruno Haible  <bruno@clisp.org>
4492
4493         Tests for module 'fmal-ieee'.
4494         * modules/fmal-ieee-tests: New file.
4495         * tests/test-fmal-ieee.c: New file.
4496
4497         New module 'fmal-ieee'.
4498         * modules/fmal-ieee: New file.
4499
4500         Tests for module 'fma-ieee'.
4501         * modules/fma-ieee-tests: New file.
4502         * tests/test-fma-ieee.c: New file.
4503
4504         New module 'fma-ieee'.
4505         * modules/fma-ieee: New file.
4506
4507         Tests for module 'fmaf-ieee'.
4508         * modules/fmaf-ieee-tests: New file.
4509         * tests/test-fmaf-ieee.c: New file.
4510         * tests/test-fma-ieee.h: New file.
4511
4512         New module 'fmaf-ieee'.
4513         * modules/fmaf-ieee: New file.
4514
4515 2012-02-26  Bruno Haible  <bruno@clisp.org>
4516
4517         Tests for module 'ldexpl-ieee'.
4518         * modules/ldexpl-ieee-tests: New file.
4519         * tests/test-ldexpl-ieee.c: New file.
4520
4521         New module 'ldexpl-ieee'.
4522         * modules/ldexpl-ieee: New file.
4523
4524         Tests for module 'ldexp-ieee'.
4525         * modules/ldexp-ieee-tests: New file.
4526         * tests/test-ldexp-ieee.c: New file.
4527
4528         New module 'ldexp-ieee'.
4529         * modules/ldexp-ieee: New file.
4530
4531         Tests for module 'ldexpf-ieee'.
4532         * modules/ldexpf-ieee-tests: New file.
4533         * tests/test-ldexpf-ieee.c: New file.
4534         * tests/test-ldexp-ieee.h: New file.
4535
4536         New module 'ldexpf-ieee'.
4537         * modules/ldexpf-ieee: New file.
4538
4539 2012-02-26  Bruno Haible  <bruno@clisp.org>
4540
4541         Refactor frexp*-ieee tests.
4542         * tests/test-frexp-ieee.h: New file.
4543         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4544         (main): Just call test_function.
4545         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4546         (main): Just call test_function.
4547         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4548         (main): Just call test_function.
4549         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4550         * modules/frexp-ieee-tests (Files): Likewise.
4551         * modules/frexpl-ieee-tests (Files): Likewise.
4552
4553         Tests for module 'frexpl-ieee'.
4554         * modules/frexpl-ieee-tests: New file.
4555         * tests/test-frexpl-ieee.c: New file.
4556
4557         New module 'frexpl-ieee'.
4558         * modules/frexpl-ieee: New file.
4559
4560         Tests for module 'frexp-ieee'.
4561         * modules/frexp-ieee-tests: New file.
4562         * tests/test-frexp-ieee.c: New file.
4563
4564         New module 'frexp-ieee'.
4565         * modules/frexp-ieee: New file.
4566
4567         Tests for module 'frexpf-ieee'.
4568         * modules/frexpf-ieee-tests: New file.
4569         * tests/test-frexpf-ieee.c: New file.
4570
4571         New module 'frexpf-ieee'.
4572         * modules/frexpf-ieee: New file.
4573
4574 2012-02-26  Bruno Haible  <bruno@clisp.org>
4575
4576         roundl-ieee tests: More tests.
4577         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4578         (main): Add tests for [MX] shaded specification in POSIX.
4579         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4580         (Depends-on): Add isnanl-nolibm.
4581
4582         round-ieee tests: More tests.
4583         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4584         (main): Add tests for [MX] shaded specification in POSIX.
4585         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4586         (Depends-on): Add isnand-nolibm.
4587
4588         roundf-ieee tests: More tests.
4589         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4590         (main): Add tests for [MX] shaded specification in POSIX.
4591         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4592         (Depends-on): Add isnanf-nolibm.
4593
4594         truncl-ieee tests: More tests.
4595         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4596         (main): Add tests for [MX] shaded specification in POSIX.
4597         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4598         (Depends-on): Add isnanl-nolibm.
4599
4600         trunc-ieee tests: More tests.
4601         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4602         (main): Add tests for [MX] shaded specification in POSIX.
4603         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4604         (Depends-on): Add isnand-nolibm.
4605
4606         truncf-ieee tests: More tests.
4607         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4608         (main): Add tests for [MX] shaded specification in POSIX.
4609         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4610         (Depends-on): Add isnanf-nolibm.
4611
4612         ceill-ieee tests: More tests.
4613         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4614         (main): Add tests for [MX] shaded specification in POSIX.
4615         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4616         (Depends-on): Add isnanl-nolibm.
4617
4618         ceil-ieee tests: More tests.
4619         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4620         (main): Add tests for [MX] shaded specification in POSIX.
4621         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4622         (Depends-on): Add isnand-nolibm.
4623
4624         ceilf-ieee tests: More tests.
4625         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4626         (main): Add tests for [MX] shaded specification in POSIX.
4627         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4628         (Depends-on): Add isnanf-nolibm.
4629
4630         floorl-ieee tests: More tests.
4631         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4632         (main): Add tests for [MX] shaded specification in POSIX.
4633         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4634         (Depends-on): Add isnanl-nolibm.
4635
4636         floor-ieee tests: More tests.
4637         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4638         (main): Add tests for [MX] shaded specification in POSIX.
4639         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4640         (Depends-on): Add isnand-nolibm.
4641
4642         floorf-ieee tests: More tests.
4643         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4644         (main): Add tests for [MX] shaded specification in POSIX.
4645         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4646         (Depends-on): Add isnanf-nolibm.
4647
4648 2012-02-26  Bruno Haible  <bruno@clisp.org>
4649
4650         fpieee: More comments.
4651         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4652
4653 2012-02-25  Bruno Haible  <bruno@clisp.org>
4654
4655         Tests for module 'log10l'.
4656         * modules/log10l-tests: New file.
4657         * tests/test-log10l.c: New file.
4658         * tests/test-math-c++.cc: Check the declaration of log10l.
4659
4660         New module 'log10l'.
4661         * lib/math.in.h (log10l): New declaration.
4662         * lib/log10l.c: New file.
4663         * m4/log10l.m4: New file.
4664         * modules/log10l: New file.
4665         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4667         HAVE_DECL_LOG10L.
4668         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4669         HAVE_DECL_LOG10L.
4670         * doc/posix-functions/log10l.texi: Mention the new module.
4671
4672 2012-02-25  Bruno Haible  <bruno@clisp.org>
4673
4674         fmodl, remainder*: Avoid wrong results due to rounding errors.
4675         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4676         expected bounds.
4677         * lib/remainderf.c (remainderf): Likewise.
4678         * lib/remainder.c (remainder): Likewise.
4679         * lib/remainderl.c (remainderl): Likewise.
4680
4681 2012-02-25  Bruno Haible  <bruno@clisp.org>
4682
4683         Tests for module 'remainderl'.
4684         * modules/remainderl-tests: New file.
4685         * tests/test-remainderl.c: New file.
4686         * tests/test-math-c++.cc: Check the declaration of remainderl.
4687
4688         New module 'remainderl'.
4689         * lib/math.in.h (remainderl): New declaration.
4690         * lib/remainderl.c: New file.
4691         * m4/remainderl.m4: New file.
4692         * modules/remainderl: New file.
4693         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4695         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4696         HAVE_REMAINDERL.
4697         * doc/posix-functions/remainderl.texi: Mention the new module.
4698
4699 2012-02-25  Bruno Haible  <bruno@clisp.org>
4700
4701         Tests for module 'remainderf'.
4702         * modules/remainderf-tests: New file.
4703         * tests/test-remainderf.c: New file.
4704         * tests/test-math-c++.cc: Check the declaration of remainderf.
4705
4706         New module 'remainderf'.
4707         * lib/math.in.h (remainderf): New declaration.
4708         * lib/remainderf.c: New file.
4709         * m4/remainderf.m4: New file.
4710         * modules/remainderf: New file.
4711         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4713         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4714         HAVE_REMAINDERF.
4715         * doc/posix-functions/remainderf.texi: Mention the new module.
4716
4717 2012-02-25  Bruno Haible  <bruno@clisp.org>
4718
4719         remainder: Support for MSVC.
4720         * lib/math.in.h (remainder): New declaration.
4721         * lib/remainder.c: New file.
4722         * m4/remainder.m4: New file.
4723         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4724         (Depends-on): Add math, round, fma.
4725         (configure.ac): Use results of gl_FUNC_REMAINDER.
4726         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4728         HAVE_DECL_REMAINDER.
4729         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4730         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4731         * tests/test-math-c++.cc: Check the declaration of remainder.
4732         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4733         problems are fixed.
4734
4735 2012-02-25  Bruno Haible  <bruno@clisp.org>
4736
4737         Tests for module 'fmodl'.
4738         * modules/fmodl-tests: New file.
4739         * tests/test-fmodl.c: New file.
4740         * tests/test-math-c++.cc: Check the declaration of fmodl.
4741
4742         New module 'fmodl'.
4743         * lib/math.in.h (fmodl): New declaration.
4744         * lib/fmodl.c: New file.
4745         * m4/fmodl.m4: New file.
4746         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4748         REPLACE_FMODL.
4749         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4750         REPLACE_FMODL.
4751         * modules/fmodl: New file.
4752         * doc/posix-functions/fmodl.texi: Mention the new module.
4753
4754 2012-02-25  Bruno Haible  <bruno@clisp.org>
4755
4756         Tests for module 'modfl'.
4757         * modules/modfl-tests: New file.
4758         * tests/test-modfl.c: New file.
4759         * tests/test-math-c++.cc: Check the declaration of modfl.
4760
4761         New module 'modfl'.
4762         * lib/math.in.h (modfl): New declaration.
4763         * lib/modfl.c: New file.
4764         * m4/modfl.m4: New file.
4765         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4767         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4768         * modules/modfl: New file.
4769         * doc/posix-functions/modfl.texi: Mention the new module.
4770
4771 2012-02-25  Bruno Haible  <bruno@clisp.org>
4772
4773         Tests for module 'fabsl'.
4774         * modules/fabsl-tests: New file.
4775         * tests/test-fabsl.c: New file.
4776         * tests/test-math-c++.cc: Check the declaration of fabsl.
4777
4778         New module 'fabsl'.
4779         * lib/math.in.h (fabsl): New declaration.
4780         * lib/fabsl.c: New file.
4781         * m4/fabsl.m4: New file.
4782         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4784         REPLACE_FABSL.
4785         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4786         REPLACE_FABSL.
4787         * modules/fabsl: New file.
4788         * doc/posix-functions/fabsl.texi: Mention the new module.
4789
4790 2012-02-25  Bruno Haible  <bruno@clisp.org>
4791
4792         fabs tests: More tests.
4793         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4794         (zero): New variable.
4795         (main): Add tests for signed zero.
4796         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4797
4798         fabsf tests: More tests.
4799         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4800         (zero): New variable.
4801         (main): Add tests for signed zero.
4802         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4803
4804 2012-02-24  Bruno Haible  <bruno@clisp.org>
4805
4806         atanl: Provide function definition on MSVC.
4807         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4808         function pointer.
4809         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4810
4811 2012-02-24  Bruno Haible  <bruno@clisp.org>
4812
4813         acosl: Provide function definition on MSVC.
4814         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4815         function pointer.
4816         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4817
4818 2012-02-24  Bruno Haible  <bruno@clisp.org>
4819
4820         asinl: Provide function definition on MSVC.
4821         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4822         function pointer.
4823         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4824
4825 2012-02-24  Bruno Haible  <bruno@clisp.org>
4826
4827         tanl: Provide function definition on MSVC.
4828         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4829         function pointer.
4830         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4831
4832 2012-02-24  Bruno Haible  <bruno@clisp.org>
4833
4834         cosl: Provide function definition on MSVC.
4835         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4836         function pointer.
4837         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4838
4839 2012-02-24  Bruno Haible  <bruno@clisp.org>
4840
4841         sinl: Provide function definition on MSVC.
4842         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4843         function pointer.
4844         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4845
4846 2012-02-24  Bruno Haible  <bruno@clisp.org>
4847
4848         logl: Provide function definition on MSVC.
4849         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4850         function pointer.
4851         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4852
4853 2012-02-24  Bruno Haible  <bruno@clisp.org>
4854
4855         expl: Provide function definition on MSVC.
4856         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4857         function pointer.
4858         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4859
4860 2012-02-24  Bruno Haible  <bruno@clisp.org>
4861
4862         sqrtl: Provide function definition on MSVC.
4863         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4864         a function pointer.
4865         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4866
4867 2012-02-24  Bruno Haible  <bruno@clisp.org>
4868
4869         ceill: Provide function definition on MSVC.
4870         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4871         used as a function pointer.
4872         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4873
4874 2012-02-24  Bruno Haible  <bruno@clisp.org>
4875
4876         floorl: Provide function definition on MSVC.
4877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4878         used as a function pointer.
4879         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4880
4881 2012-02-24  Bruno Haible  <bruno@clisp.org>
4882
4883         ceilf: Provide function definition on MSVC.
4884         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4885         used as a function pointer.
4886         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4887
4888 2012-02-24  Bruno Haible  <bruno@clisp.org>
4889
4890         floorf: Provide function definition on MSVC.
4891         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4892         used as a function pointer.
4893         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4894
4895 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         stdnoreturn: new module
4898         This implements a replacement for C11's <stdnoreturn.h>.
4899         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4900         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4901         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4902         * tests/test-stdnoreturn.c: New files.
4903
4904 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4905
4906         regex: fix false multibyte matches in some regular expressions
4907         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4908         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4909         * lib/regex_internal.c (re_string_skip_chars):
4910         Fix miscomputation of remain_len that may cause incomplete
4911         multi-byte character and false match.
4912
4913 2012-02-24  Jim Meyering  <meyering@redhat.com>
4914
4915         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4916         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4917         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4918         Remove now-unnecessary str''cmp obfuscation.
4919         Suggested by Akim Demaille.
4920
4921 2012-02-24  Bruno Haible  <bruno@clisp.org>
4922
4923         streq: Rename macro.
4924         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4925         * NEWS: Mention the change.
4926         * lib/mbrtowc.c (mbrtowc): Update.
4927         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4928         * lib/wcwidth.c (wcwidth): Update.
4929         Suggested by Akim Demaille and Jim Meyering.
4930
4931 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4932
4933         regex: fix typo in definition of MIN
4934         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4935         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4936
4937 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4938             Bruno Haible  <bruno@clisp.org>
4939
4940         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4941         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4942         entries into a stack-allocated buffer directly.
4943         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4944
4945 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4946             Bruno Haible  <bruno@clisp.org>
4947
4948         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4949
4950          - There were several instances of this pattern:
4951
4952              for (;;) {
4953                n = acl (f, GETACLCNT, 0, NULL);
4954                [ allocate an array A of size N ]
4955                if (acl (f, GETACL, n, a) == n)
4956                  break;
4957              }
4958
4959            This loop might never terminate if some other process is constantly
4960            manipulating the file's ACL.  The loop should be rewritten to
4961            terminate.
4962
4963          - The acl (... GETACLNT ...) call is merely an optimization; its value
4964            is merely a hint as to how big to make the array.  A better
4965            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4966            and just guess a reasonably-big size, growing the size and trying
4967            again if it's not large enough.  This guarantees termination, and
4968            saves a system call.
4969
4970         * lib/acl-internal.h: Include <limits.h>.
4971         (MIN, SIZE_MAX): New macros.
4972         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4973         a stack-allocated buffer, and use malloc if it does not fit. Don't
4974         use GETACLCNT.
4975         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4976
4977 2012-02-19  Bruno Haible  <bruno@clisp.org>
4978
4979         acl: Fix endless loop on Solaris with vxfs.
4980         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4981         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4982         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4983         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4984         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4985         Reported by Bill Jones in
4986         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4987
4988 2012-02-19  Bruno Haible  <bruno@clisp.org>
4989
4990         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4991         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4992         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4993         that this function returns 0 in some more cases.
4994
4995 2012-02-19  Bruno Haible  <bruno@clisp.org>
4996
4997         acl: Update doc references.
4998         * doc/acl-resources.txt: Update links to Solaris documentation.
4999
5000 2012-02-19  Bruno Haible  <bruno@clisp.org>
5001
5002         Fix test failure in many locales on Solaris 11.
5003         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5004         'tr' arguments.
5005         * tests/test-pipe-filter-ii1.c (main): Likewise.
5006         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5007         expressions in the C locale.
5008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5009         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5010
5011 2012-02-19  Bruno Haible  <bruno@clisp.org>
5012
5013         gnulib-tool: Improve usage message.
5014         * gnulib-tool (func_usage): Move doc of --help and --version to the
5015         section "Operation modes".
5016
5017 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5018
5019         README-release: make it easier to execute commands
5020         * top/README-release: break commands out on to separate lines.
5021
5022 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5023
5024         GNUmakefile: simplify detection of unconfigured trees
5025         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5026         whether the tree make is being run from is already configured or
5027         not.  Related simplifications.
5028
5029 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5030
5031         * gnulib-tool (func_usage): Document --help and --version.
5032
5033 2012-02-11  Jim Meyering  <meyering@redhat.com>
5034
5035         bootstrap: don't exit 0 upon gnulib-tool failure
5036         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5037         its exit status, not 0.
5038
5039 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5040
5041         README-release: various improvements
5042         * top/README-release: Give a command to push changes for the
5043         release.  Add "distcheck" to list of other pre-release checks.
5044         Fix instance of "make stable" which should be "make TYPE".
5045
5046 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5047
5048         maint: replace FSF snail-mail addresses with URLs
5049         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5050         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5051         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5052         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5053         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5054         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5055         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5056         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5057         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5058         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5059         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5060         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5061         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5062         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5063         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5064         * lib/glthread/thread.c, lib/glthread/thread.h:
5065         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5066         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5067         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5068         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5069         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5070         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5071         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5072         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5073         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5074         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5075         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5076         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5077         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5078         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5079         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5080         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5081         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5082         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5083         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5084         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5085         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5086         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5087         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5088         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5089         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5090         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5091         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5092         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5093         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5094         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5095         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5096         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5097         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5098         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5099         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5100         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5101         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5102         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5103         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5104         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5105         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5106         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5107         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5108         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5109         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5110         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5111         * tests/test-poll.c, tests/test-quotearg-simple.c:
5112         * tests/test-quotearg.c, tests/test-quotearg.h:
5113         * tests/test-round-ieee.c, tests/test-round1.c:
5114         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5115         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5116         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5117         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5118         * tests/test-strerror.c, tests/test-strerror_r.c:
5119         * tests/test-strsignal.c, tests/test-strverscmp.c:
5120         * tests/test-xmemdup0.c:
5121         Replace FSF snail mail addresses with URLs, as per GNU coding
5122         standards.  See glibc bug
5123         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5124
5125 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5126
5127         README-release: capitalize a word and split a line
5128         * top/README-release: Fix punctuation and spacing.
5129
5130 2012-02-08  Akim Demaille  <demaille@gostai.com>
5131
5132         fatal-signal: use C prototypes (with explicit void).
5133         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5134         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5135
5136 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5137
5138         regex: spelling fix
5139         * lib/regexec.c: spelling fix
5140
5141         regex: rely on stdint.h for SIZE_MAX
5142         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5143
5144 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5145
5146         regex: merge glibc changes
5147
5148         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5149         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5150         (init_word_char): Work even if bitset words are not exactly 32 or
5151         64 bits wide.  Don't assume there are no padding bits.
5152         * lib/regex.c [_LIBC]: Do not include <config.h>.
5153         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5154         and -Wtype-limits.
5155         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5156         needless disagreement with glibc.  All uses changed.  Define it to
5157         1 only if _GNU_SOURCE, to match glibc.
5158         (_REG_RM_NAME): Remove; no longer needed, since the names in
5159         question are now all protected by __USE_GNU.
5160         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5161         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5162         * lib/regex_internal.h (MIN): New macro.
5163
5164         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5165         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5166
5167         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5168         * lib/regex_internal.c (re_string_fetch_byte_case):
5169         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5170         is miscompiled, and it turns out it is because of an incorrect
5171         attribute on re_string_fetch_byte_case.  Unlike
5172         re_string_peek_byte_case, this one is really not pure, it modifies
5173         memory (increments pstr->cur_idx), and with the pure attribute GCC
5174         assumed it doesn't and it cached the presumed value of
5175         regexp->cur_idx in a variable across the
5176          for (;; ++i)
5177            {
5178              if (i >= BRACKET_NAME_BUF_SIZE)
5179                return REG_EBRACK;
5180              if (token->type == OP_OPEN_CHAR_CLASS)
5181                ch = re_string_fetch_byte_case (regexp);
5182              else
5183                ch = re_string_fetch_byte (regexp);
5184              if (re_string_eoi(regexp))
5185                return REG_EBRACK;
5186              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5187                break;
5188              elem->opr.name[i] = ch;
5189            }
5190
5191         2011-11-29 Andreas Schwab <schwab@redhat.com>
5192         * lib/regcomp.c (build_equiv_class):
5193         Fix access after end of search string in regex matcher.
5194
5195         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5196         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5197
5198         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5199         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5200
5201         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5202         * lib/regcomp.c (parse_branch, parse_sub_exp):
5203         More regex memory leak fixes and tests.
5204         (parse_sub_exp, parse_bracket_exp):
5205         Fix memory leak for some invalid regular expressions.
5206
5207         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5208         * lib/regex_internal.c, lib/regexec.c:
5209         Fix unnecessary overallocation due to incomplete character.  When
5210         incomplete characters are found at the end of a string the code
5211         ran amok and allocated lots of memory.  Stricter limits are now in
5212         place.
5213
5214         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5215         * lib/regex.h: Update documentation.
5216
5217         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5218         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5219
5220         2010-05-05 Andreas Schwab <schwab@redhat.com>
5221         * lib/regexec.c (find_collation_sequence_value):
5222         Fix lookup of collation sequence value during regexp matching.
5223
5224         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5225         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5226
5227         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5228         * lib/regex.h: Cleanup namespace.
5229
5230         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5231         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5232
5233         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5234         * lib/regex_internal.h: Prevent some declarations and definitions
5235         to be seen when used in tests.
5236
5237         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5238         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5239         __libc_lock_* macros if not _LIBC.
5240         (struct re_dfa_t): Add lock.
5241
5242 2012-02-07  Eric Blake  <eblake@redhat.com>
5243
5244         maint.mk: also prohibit lower-case @var@
5245         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5246         lower case, like @top_srcdir@.
5247
5248 2012-02-04  Eric Blake  <eblake@redhat.com>
5249
5250         canonicalize: avoid uninitialized memory use
5251         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5252         random '/' left in dest.
5253         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5254
5255 2012-02-04  Bruno Haible  <bruno@clisp.org>
5256
5257         isatty: Fix test failure of ptsname_r on native Windows.
5258         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5259         and don't set errno.
5260         (isatty): Test first whether fd is valid. Set errno when returning 0.
5261
5262 2012-02-04  Bruno Haible  <bruno@clisp.org>
5263
5264         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5265         * tests/test-spawn-pipe-main.c: Include progname.h.
5266         (main): Invoke set_program_name.
5267         * modules/spawn-pipe-tests (Depends-on): Add progname.
5268
5269         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5270         * tests/test-nonblocking-socket-main.c: Include progname.h.
5271         (main): Invoke set_program_name.
5272         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5273
5274         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5275         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5276         (main): Invoke set_program_name.
5277         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5278
5279 2012-02-04  Eric Blake  <eblake@redhat.com>
5280
5281         canonicalize-lgpl: fix // handling
5282         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5283
5284         canonicalize: fix // handling
5285         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5286         /// to //, since only // is special.
5287
5288 2012-02-04  Bruno Haible  <bruno@clisp.org>
5289
5290         ioctl: Fix test failure on native Windows.
5291         * lib/ioctl.c: Include msvc-nothrow.h.
5292         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5293
5294 2012-02-04  Bruno Haible  <bruno@clisp.org>
5295
5296         fsync: Avoid test failure on native Windows.
5297         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5298         read-only.
5299
5300 2012-02-04  Bruno Haible  <bruno@clisp.org>
5301
5302         sys_select: Avoid syntax error on OpenBSD 5.0.
5303         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5304         currently being included, just include the system's <sys/select.h>.
5305
5306 2012-02-04  Bruno Haible  <bruno@clisp.org>
5307
5308         sys_select: Avoid syntax error on OpenBSD 5.0.
5309         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5310         <sys/select.h>, not before.
5311         Reported by Jiri B <jirib@devio.us>.
5312
5313 2012-02-04  Bruno Haible  <bruno@clisp.org>
5314
5315         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5316         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5317         global variables.
5318         * tests/test-get-rusage-data.c (main): Likewise.
5319         Reported by Jim Meyering.
5320
5321 2012-02-04  Bruno Haible  <bruno@clisp.org>
5322
5323         stdioext: Fix last commit.
5324         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5325
5326 2012-02-03  Bruno Haible  <bruno@clisp.org>
5327
5328         stdioext: Add tentative support for Plan9.
5329         * lib/stdio-impl.h: Include <errno.h>.
5330         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5331         * lib/freadable.c (freadable): Likewise.
5332         * lib/fwritable.c (fwritable): Likewise.
5333         * lib/fbufmode.c (fbufmode): Likewise.
5334         * lib/freading.c (freading): Likewise.
5335         * lib/fwriting.c (fwriting): Likewise.
5336         * lib/freadptr.c (freadptr): Likewise.
5337         * lib/freadseek.c (freadptrinc): Likewise.
5338         * lib/freadahead.c (freadahead): Likewise.
5339         * lib/fpurge.c (fpurge): Likewise.
5340         * lib/fseeko.c (rpl_fseeko): Likewise.
5341         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5342         Reported by Jens Staal <staal1978@gmail.com>.
5343
5344 2012-02-02  Jim Meyering  <meyering@redhat.com>
5345
5346         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5347         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5348         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5349         not even to try to add the attribute.  Instead, add a pragma to suppress
5350         the suggestion/warning.
5351
5352 2012-01-31  Karl Berry  <karl@gnu.org>
5353
5354         setstate doc: typo.
5355         * doc/posix-functions/setstate.texi (setstate): { not (.
5356
5357 2012-01-31  Bruno Haible  <bruno@clisp.org>
5358
5359         popen: Make more robust on Windows.
5360         * lib/popen.c: On native Windows, use the _popen based code even if
5361         HAVE_POPEN is set.
5362         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5363         environment variable on native Windows.
5364
5365 2012-01-30  Bruno Haible  <bruno@clisp.org>
5366
5367         pclose: Fix typo.
5368         * lib/stdio.in.h (pclose): Fix typo in warning message.
5369
5370 2012-01-30  Bruno Haible  <bruno@clisp.org>
5371
5372         doc about getlogin_r, setstate.
5373         * doc/posix-functions/getlogin_r.texi: List the incompatible
5374         declaration problem under "not fixed by gnulib".
5375         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5376         problem on Solaris 11 and other platforms.
5377
5378 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5379             Bruno Haible  <bruno@clisp.org>
5380
5381         poll tests: Make test more robust.
5382         * tests/test-poll.c: Include macros.h.
5383         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5384         return value of various I/O operations.
5385         * modules/poll-tests (Files): Add tests/macros.h.
5386
5387 2012-01-30  Bruno Haible  <bruno@clisp.org>
5388
5389         sys_stat: Fix support for mingw64 and MSVC.
5390         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5391         header files already do it.
5392         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5393         stat itself.
5394         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5395
5396 2012-01-30  Bruno Haible  <bruno@clisp.org>
5397
5398         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5400         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5401
5402 2012-01-29  Bruno Haible  <bruno@clisp.org>
5403
5404         quotearg: Fix test failure on MacOS X 10.5.
5405         * tests/test-quotearg-simple.c: Include localcharset.h.
5406         (main): If the locale encoding is not ASCII, bypass the tests of
5407         locale_quoting_style and clocale_quoting_style.
5408         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5409
5410 2012-01-29  Jim Meyering  <meyering@redhat.com>
5411
5412         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5413         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5414         detect uses of canonicalize_file_name.
5415
5416 2012-01-28  Bruno Haible  <bruno@clisp.org>
5417
5418         test-framework-sh: Fix test failure with AIX 7.1 diff.
5419         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5420         in column 1, like 'diff -c' does.
5421         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5422         whether 'diff -u' is used. Instead, test whether the output contains
5423         some '@' character.
5424
5425 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         strtoimax: eliminate need for stdint.h, inttypes.h checks
5428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5429         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5430         the prerequisites for a recently-introduced strtoimax test.
5431         I guess this might cause strtoimax to be replaced when not
5432         strictly necessary on older hosts, but this shouldn't introduce
5433         any bugs and it should make Emacs 'configure' faster on typical
5434         modern hosts.  Problem discovered when importing the latest gnulib
5435         to an Emacs test version.
5436         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5437
5438 2012-01-28  Bruno Haible  <bruno@clisp.org>
5439
5440         sys_time: Override 'struct timeval' on some native Windows platforms.
5441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5442         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5443         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5444         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5445         needs to be overridden.
5446         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5447         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5448         * tests/test-sys_select.c: Check that the tv_sec member has the same
5449         size as a 'time_t'.
5450         * tests/test-sys_time.c: Likewise.
5451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5452         is set, set also REPLACE_GETTIMEOFDAY.
5453         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5454         convert the resulting 'struct timeval' before returning.
5455         * lib/select.c: Include <sys/time.h>.
5456         (select, timeval): Undefine at the right place.
5457         * modules/select (Depends-on): Add sys_time.
5458         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5459         some Windows platforms.
5460         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5461
5462 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5463
5464         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5465         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5466         an integer.
5467         * lib/fcntl.c (dupfd): Likewise.
5468         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5469
5470 2012-01-28  Bruno Haible  <bruno@clisp.org>
5471
5472         fcntl: Avoid compilation error on native Windows.
5473         * modules/fcntl (Depends-on): Add 'close'.
5474
5475 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5476
5477         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5478         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5479         pointer to an integer.
5480         * lib/poll.c (IsConsoleHandle): Likewise.
5481         * lib/isatty.c (IsConsoleHandle): Likewise.
5482
5483 2012-01-28  Jim Meyering  <meyering@redhat.com>
5484
5485         doc: clarify README-release
5486         * top/README-release: Clarify: you should make a point to have
5487         the latest stable versions of build tools in your PATH, and the
5488         reference to buildreq is solely for its list of tool names, not
5489         for its minimal-functional version numbers.
5490         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5491
5492         maint.mk: use more readable (yet functionally equivalent) quoting
5493         It is common to quote a single quote in a single quoted string like
5494         this:  '...'\''...'.  Unless you know the idiom, that looks like
5495         gibberish, so prefer to double-quote the string when possible.
5496         Then you can use a more readable, lone single quote: "...'..."
5497         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5498         "don't" is more readable than the equivalent 'don'\''t'.
5499         (sc_cast_of_x_alloc_return_value): Likewise.
5500         (sc_cast_of_alloca_return_value): Likewise.
5501         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5502         rather than '\'':'\''.
5503
5504 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5505
5506         stdalign: relax _Alignof and tighten _Alignas test
5507         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5508         as it was too strict: alignof must divide offsetof, but it need
5509         not equal offsetof.  Inspired by Joseph S. Myers's comment
5510         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5511         Conversely, tighten the _Alignas test a bit, as the resulting
5512         alignment must be exactly 8.
5513
5514 2012-01-27  Bruno Haible  <bruno@clisp.org>
5515
5516         stdalign: Document the last change.
5517         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5518
5519 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5520
5521         stdalign: check that alignof and offsetof are consistent
5522         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5523         Problem reported for gnulib by Richard W.M. Jones in
5524         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5525
5526 2012-01-27  Jim Meyering  <meyering@redhat.com>
5527
5528         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5529         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5530         convert a sequence with gaps to the minimal containing range.
5531         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5532         * tests/test-update-copyright.sh: Test for this.
5533         The FSF confirmed it is ok to do this, assuming there is at
5534         least one significant change per year in the affected range:
5535         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5536
5537 2012-01-26  Bruno Haible  <bruno@clisp.org>
5538
5539         pipe2: refine doc about thread-safety
5540         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5541         multithread-safety problem.
5542         * doc/glibc-functions/accept4.texi: Likewise.
5543
5544 2012-01-26  Bruno Haible  <bruno@clisp.org>
5545
5546         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5547         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5548         In the test program, include <fcntl.h>, for O_RDONLY.
5549
5550 2012-01-26  Eric Blake  <eblake@redhat.com>
5551
5552         pipe2: document lack of thread-safety in replacement
5553         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5554         issue in replacement.
5555         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5556         Based on a report by Eric Wong.
5557
5558 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5559             Bruno Haible  <bruno@clisp.org>
5560
5561         malloca: Avoid warnings on x86_64 mingw64.
5562         * lib/malloca.c: Include <stdint.h>.
5563         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5564         * modules/malloca (Depends-on): Add stdint.
5565         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5566
5567 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5568
5569         obstack: remove __STDC__ conditionals
5570         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5571         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5572         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5573         m4/include_next.m4 as the only gnulib-maintained places that still
5574         refer to __STDC__.
5575
5576 2012-01-24  Bruno Haible  <bruno@clisp.org>
5577
5578         havelib: Modern quoting.
5579         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5580         the recent change to the GNU coding standards.
5581
5582 2012-01-24  Bruno Haible  <bruno@clisp.org>
5583
5584         stdint: Improve support for Android.
5585         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5586         Reported by Simon Josefsson <simon@josefsson.org>.
5587
5588 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5589
5590         doc: omit trailing empty lines from INSTALL etc.
5591         * doc/Makefile (INSTALL): Omit trailing empty lines.
5592         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5593         omit trailing empty lines.  This simplifies the build procedure.
5594
5595 2012-01-23  Jim Meyering  <meyering@redhat.com>
5596
5597         tests: avoid spurious warnings about gl_sockets_startup
5598         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5599         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5600         reporting a "statement with no effect".
5601         * tests/test-accept.c (main): Mark as "(void)".
5602         * tests/test-accept4.c (main): Likewise.
5603         * tests/test-bind.c (main): Likewise.
5604         * tests/test-connect.c (main): Likewise.
5605         * tests/test-getpeername.c (main): Likewise.
5606         * tests/test-getsockname.c (main): Likewise.
5607         * tests/test-getsockopt.c (main): Likewise.
5608         * tests/test-listen.c (main): Likewise.
5609         * tests/test-recv.c (main): Likewise.
5610         * tests/test-recvfrom.c (main): Likewise.
5611         * tests/test-send.c (main): Likewise.
5612         * tests/test-sendto.c (main): Likewise.
5613         * tests/test-setsockopt.c (main): Likewise.
5614         * tests/test-shutdown.c (main): Likewise.
5615
5616 2012-01-21  Bruno Haible  <bruno@clisp.org>
5617
5618         locale-fr.m4: Fix for Android.
5619         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5620         failure of the test program on Bionic libc.
5621
5622 2012-01-21  Jim Meyering  <meyering@redhat.com>
5623
5624         bootstrap: fail when bootstrap_post_import_hook fails
5625         Otherwise, it's far too easy to miss diagnostics emitted
5626         between gnulib-tool's output and that of running configure.
5627         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5628
5629 2012-01-17  Jim Meyering  <meyering@redhat.com>
5630
5631         maint: enable sc_trailing_blank
5632         * build-aux/pmccabe.css: Remove trailing blanks.
5633         * doc/acl-cygwin.txt: Likewise.
5634         * doc/gnu-oids.texi: Likewise
5635         * cfg.mk: Enable sc_trailing_blank.
5636         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5637
5638 2012-01-17  Jim Meyering  <meyering@redhat.com>
5639
5640         maint: enable sc_prohibit_openat_without_use
5641         * cfg.mk: Enable sc_prohibit_openat_without_use.
5642         Exempt lib/selinux-at.c.
5643
5644 2012-01-17  Jim Meyering  <meyering@redhat.com>
5645
5646         maint: enable sc_prohibit_cloexec_without_use
5647         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5648         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5649
5650 2012-01-17  Jim Meyering  <meyering@redhat.com>
5651
5652         maint: enable sc_prohibit_intprops_without_use
5653         * cfg.mk: Enable sc_prohibit_intprops_without_use
5654         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5655
5656 2012-01-17  Jim Meyering  <meyering@redhat.com>
5657
5658         maint: enable sc_prohibit_hash_pjw_without_use
5659         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5660         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5661         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5662         following " (".
5663
5664 2012-01-17  Jim Meyering  <meyering@redhat.com>
5665
5666         maint: enable double-word-prohibiting rule
5667         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5668         Exempt three files.
5669
5670 2012-01-17  Jim Meyering  <meyering@redhat.com>
5671
5672         maint: remove empty lines at EOF, but excluding modules/*
5673         Apply syntax rules at home as well as abroad.  Most changes
5674         were induced by running this:
5675           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5676             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5677             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5678         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5679         Exempt modules/* and two binary files.
5680         Also exempt doc/INSTALL*, per request from Bruno Haible.
5681         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5682         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5683         * doc/Copyright/request-assign.future: Likewise.
5684         * doc/Copyright/request-disclaim.changes: Likewise.
5685         * doc/INSTALL: Likewise.
5686         * doc/INSTALL.ISO: Likewise.
5687         * doc/INSTALL.UTF-8: Likewise.
5688         * doc/acl-cygwin.txt: Likewise.
5689         * doc/acl-resources.txt: Likewise.
5690         * doc/fdl-1.2.texi: Likewise.
5691         * doc/fdl-1.3.texi: Likewise.
5692         * doc/fdl.texi: Likewise.
5693         * lib/argp-pin.c: Likewise.
5694         * lib/round.c: Likewise.
5695         * lib/unicase/u16-totitle.c: Likewise.
5696         * lib/unictype/block_test.c: Likewise.
5697         * lib/uninorm/canonical-decomposition.c: Likewise.
5698         * m4/README: Likewise.
5699         * m4/relocatable-lib.m4: Likewise.
5700         * tests/test-isnand-nolibm.c: Likewise.
5701         * tests/test-isnand.c: Likewise.
5702         * tests/uninorm/NormalizationTest.txt: Likewise.
5703
5704 2012-01-17  Jim Meyering  <meyering@redhat.com>
5705
5706         maint: add framework to run syntax-check rules against gnulib sources
5707         * cfg.mk: New file, to disable all currently-failing tests.
5708         We'll enable them one by one, as they are made to pass.
5709         * Makefile (sc_maint): New rule.
5710
5711 2012-01-21  Bruno Haible  <bruno@clisp.org>
5712
5713         stdint: Add support for Android.
5714         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5715         include the system's <stdint.h>.
5716         Reported by Simon Josefsson <simon@josefsson.org>.
5717
5718 2012-01-19  Jim Meyering  <meyering@redhat.com>
5719
5720         bootstrap: add bootstrap_post_import_hook
5721         Bison does still need something like the gnulib_mk_hook whose
5722         invocation I had to remove along with slurp in commit 767ccd40.
5723         Technically, we could get along without it, but doing so would
5724         have required living with a warning and a mandatory post-bootstrap
5725         automake rerun.
5726         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5727         (bootstrap_post_import_hook): New function.
5728         Invoke it after gnulib-tool --import and before autoreconf.
5729
5730 2012-01-18  Jim Meyering  <meyering@redhat.com>
5731
5732         gitlog-to-changelog: don't use "no_"-prefixed variable name
5733         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5734         to enable both --cluster and --no-cluster.  Change variable name,
5735         s/\$no_cluster/$cluster/, and reverse usage to match.
5736
5737         gitlog-to-changelog: use "||", not "or" in expressions
5738         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5739         expressions.
5740
5741 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5742
5743         gitlog-to-changelog: new option --no-cluster
5744         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5745         clustering of adjacent commit messages.
5746
5747 2012-01-17  Jim Meyering  <meyering@redhat.com>
5748
5749         maint: spell file systems with two words, not one
5750         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5751         two words, not one.
5752
5753 2012-01-16  Jim Meyering  <meyering@redhat.com>
5754
5755         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5756         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5757
5758 2012-01-16  Eric Blake  <eblake@redhat.com>
5759
5760         bootstrap: cater to autoconf 2.59
5761         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5762         is not available.
5763
5764         bootstrap: properly check for libtool
5765         * build-aux/bootstrap (libtoolize): Also run libtool when older
5766         usage is detected.
5767
5768 2012-01-15  Bruno Haible  <bruno@clisp.org>
5769
5770         Improve support for MSVC 9.
5771         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5772         clashes on MSVC.
5773         * lib/fcntl.in.h: Likewise.
5774         * lib/stdlib.in.h: Likewise.
5775         * lib/sys_stat.in.h: Likewise.
5776
5777 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5778
5779         gnupload: we hold the master copy of this script now
5780         For motivation and more information, see:
5781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5782         * build-aux/gnupload: Make it clear in the heading comments that the
5783         master copy of this file is maintained by gnulib.  Since we are at
5784         it, bump its copyright year and ...
5785         ($scriptversion): ... the date in its version.
5786         ($usage): Patches and bug reports should be sent to the gnulib list,
5787         not the automake one.
5788         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5789         anymore.
5790
5791 2012-01-15  Bruno Haible  <bruno@clisp.org>
5792
5793         Fix module 'random'.
5794         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5795         initstate, setstate are declared.
5796
5797 2012-01-14  Bruno Haible  <bruno@clisp.org>
5798
5799         Tests for module 'random'.
5800         * modules/random-tests: New file.
5801         * tests/test-random.c: New file, based on tests/test-random_r.c.
5802
5803         New module 'random'.
5804         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5805         declarations.
5806         * lib/random.c: New file, based on glibc/stdlib/random.c.
5807         * m4/random.m4: New file.
5808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5809         HAVE_RANDOM.
5810         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5811         * modules/random: New file.
5812         * config/srclist.txt: Add an entry for random.c.
5813         * doc/posix-functions/random.texi: Mention the 'random' module.
5814         * doc/posix-functions/initstate.texi: Likewise.
5815         * doc/posix-functions/setstate.texi: Likewise.
5816         * doc/posix-functions/srandom.texi: Likewise.
5817
5818 2012-01-12  Bruno Haible  <bruno@clisp.org>
5819
5820         random_r: Use common idioms.
5821         * lib/random_r.c: Include <stdlib.h> first.
5822
5823         random_r: Override incompatible API on AIX, OSF/1.
5824         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5825         Override the system function if REPLACE_RANDOM_R is 1.
5826         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5827         and OSF/1, set REPLACE_RANDOM_R.
5828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5829         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5830         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5831         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5832         * doc/glibc-functions/random_r.texi: Likewise.
5833         * doc/glibc-functions/setstate_r.texi: Likewise.
5834
5835         random_r: Support for MSVC 9.
5836         * lib/random_r.c: Include stdint.h, not inttypes.h.
5837
5838 2012-01-12  Eric Blake  <eblake@redhat.com>
5839
5840         inet_ntop: guard extra work by IF_LINT
5841         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5842         better code generation when not checking for warnings.
5843         Suggested by Paul Eggert and Jim Meyering.
5844
5845         strptime: fix regression on mingw
5846         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5847         Fix regression.  Reported by Bruno Haible.
5848
5849 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5850             Bruno Haible  <bruno@clisp.org>
5851
5852         copy-file: add error-code-returning variant.
5853         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5854         (qcopy_file_preserving): New declaration.
5855         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5856         copy_file_preserving. Change return type to 'int'. Don't emit an error
5857         message here.
5858         (copy_file_preserving): New function.
5859         * tests/test-copy-file.c: Include <stdlib.h>.
5860         (main): Test qcopy_file_preserving if the environment variable
5861         NO_STDERR_OUTPUT is set.
5862         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5863         with NO_STDERR_OUTPUT
5864         * tests/test-copy-file-2.sh: Likewise.
5865
5866 2012-01-10  Bruno Haible  <bruno@clisp.org>
5867
5868         copy-file: Use 'quote' module consistently.
5869         * lib/copy-file.c (copy_file_preserving): Use quote().
5870
5871         copy-file: Refactor.
5872         * lib/copy-file.c: Include quote.h.
5873         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5874         message here.
5875         * modules/copy-file (Depends-on): Add quote.
5876
5877         acl: Export qcopy_acl.
5878         * lib/acl.h (qcopy_acl): New declaration.
5879         * lib/copy-acl.c (qcopy_acl): Make non-static.
5880
5881         acl: Rename a local variable.
5882         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5883
5884         acl: Align return values of copy_acl and qcopy_acl.
5885         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5886         maybe < -1.
5887
5888 2012-01-11  Eric Blake  <eblake@redhat.com>
5889
5890         strptime: silence gcc warnings
5891         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5892         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5893         Reported by Daniel P. Berrange.
5894
5895         inet_ntop: silence gcc warning
5896         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5897         Reported by Daniel P. Berrange.
5898
5899 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5900
5901         getloadavg test: skip the test on GNU/Linux without /proc mounted
5902         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5903         file.  When /proc is not mounted, it always fails with ENOENT.
5904         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5905         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5906
5907 2012-01-10  Bruno Haible  <bruno@clisp.org>
5908
5909         regex: Avoid link error on MSVC 9.
5910         * modules/regex (Depends-on): Add wctype.
5911
5912 2012-01-10  Bruno Haible  <bruno@clisp.org>
5913
5914         doc: Mention --with-tests option.
5915         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5916         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5917         --with-tests.
5918         Reported by Reuben Thomas.
5919
5920 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5921
5922         users.txt: order package names lexicographically.
5923         * users.txt: Order package names lexicographically.
5924
5925 2012-01-10  Jim Meyering  <meyering@redhat.com>
5926
5927         maint.mk: fix description in comment
5928         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5929
5930         ignore-value: remove deprecated ignore_ptr function
5931         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5932         * NEWS: Note this.
5933
5934 2012-01-09  Jim Meyering  <meyering@redhat.com>
5935
5936         test-init.sh: avoid a subshell
5937         * tests/test-init.sh: Remove protective subshell.
5938         Suggested by Bernhard Voelker.  While a subshell is normally
5939         required to protect against older shells (Solaris, FreeBSD) that
5940         warn about a missing program before performing redirection, the
5941         shell-selection tests performed by init.sh probably exclude any
5942         offending shell.
5943
5944 2012-01-08  Bruno Haible  <bruno@clisp.org>
5945
5946         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5947         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5948         variable.
5949
5950 2012-01-08  Bruno Haible  <bruno@clisp.org>
5951
5952         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5953         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5954         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5955         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5956         macro.
5957         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5958         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5959         * lib/spawn_faction_addopen.c: Add workaround implementation if
5960         HAVE_WORKING_POSIX_SPAWN.
5961         * modules/spawn (Makefile): Substitute
5962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5963         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5964         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5965         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5966         (Depends-on): Update conditions.
5967         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5968         the Solaris 11 bug.
5969
5970 2012-01-08  Bruno Haible  <bruno@clisp.org>
5971
5972         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5973         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5975         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5976         macro.
5977         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5978         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5979         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5980         HAVE_WORKING_POSIX_SPAWN.
5981         * modules/spawn (Makefile): Substitute
5982         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5983         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5984         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5985         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5986         (Depends-on): Update conditions.
5987         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5988         the Solaris 11 bug.
5989
5990 2012-01-08  Bruno Haible  <bruno@clisp.org>
5991
5992         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5993         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5995         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5996         HAVE_WORKING_POSIX_SPAWN.
5997         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5998         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6000         * lib/spawn_faction_addclose.c: Add workaround implementation if
6001         HAVE_WORKING_POSIX_SPAWN.
6002         * modules/spawn (Makefile): Substitute
6003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6004         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6005         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6007         (Depends-on): Update conditions.
6008         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6009         the Solaris 11 bug.
6010
6011 2012-01-08  Bruno Haible  <bruno@clisp.org>
6012
6013         doc: Update for Solaris 11 2011-11.
6014         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6015         * m4/printf.m4: Update comments.
6016
6017 2012-01-08  Bruno Haible  <bruno@clisp.org>
6018
6019         mktime: Avoid compilation error on Solaris 11.
6020         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6021
6022 2012-01-08  Bruno Haible  <bruno@clisp.org>
6023
6024         doc: Small fix.
6025         * doc/posix-headers/nl_types.texi: Correct platforms list.
6026
6027 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6028
6029         Add lgpl-3.0 module.
6030         * MODULES.html.sh (Support for building documentation): Add
6031         lgpl-3.0.
6032         * modules/lgpl-3.0: New file.
6033
6034 2012-01-08  Jim Meyering  <meyering@redhat.com>
6035
6036         select.c: indent with spaces, not TABs
6037         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6038
6039 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6040
6041         quotearg: do not use grave accent for left quote
6042         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6043         locale_quoting_style.
6044         (quotearg_buffer_restyled): Fix example.
6045         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6046
6047 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6048
6049         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6050         Most programs do not have translation catalogs for English and much
6051         less separate catalogs for British and American English.  Drop the
6052         suggestion to translators about these two, and provide it
6053         automatically for Unicode locales.  Like most programs, even those
6054         using American English, we use single quotation marks.  This conflicts
6055         with the American typographic convention, but works better when you
6056         cite the entire error message within double quotes.  It also tries not
6057         to clash with established practice and with what non-gnulib programs
6058         will usually do.
6059         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6060         using an UTF-8 or GB-18030 locale.  The list of other locales with
6061         quotes was provided by Bruno Haible.
6062         (quotearg_buffer_restyled): Adjust instructions to translators.
6063         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6064         text, since this would be wrong when using Unicode.
6065         * modules/quotearg: Depend on c-strcaseeq.
6066
6067 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6068
6069         quotearg: fix Wikipedia link
6070         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6071
6072 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6073
6074         Fix for mingw with MSVC9.
6075         * m4/ld-version-script.m4: Check that compiler rejects version
6076         scripts with syntax errors.  Reported by Bruno Haible
6077         <bruno@clisp.org>.
6078
6079 2012-01-06  Bruno Haible  <bruno@clisp.org>
6080
6081         Talk about "native Windows API", not "Woe32".
6082         * lib/accept4.c: Update comments to mention native Windows.
6083         * lib/execute.c: Likewise.
6084         * lib/fatal-signal.c: Likewise.
6085         * lib/localcharset.c: Likewise.
6086         * lib/nanosleep.c: Likewise.
6087         * lib/nl_langinfo.c: Likewise.
6088         * lib/pclose.c: Likewise.
6089         * lib/pipe-filter-gi.c: Likewise.
6090         * lib/pipe-filter-ii.c: Likewise.
6091         * lib/pipe.c: Likewise.
6092         * lib/pipe2.c: Likewise.
6093         * lib/popen.c: Likewise.
6094         * lib/progreloc.c: Likewise.
6095         * lib/relocatable.c: Likewise.
6096         * lib/sigaction.c: Likewise.
6097         * lib/sigprocmask.c: Likewise.
6098         * lib/spawn-pipe.h: Likewise.
6099         * lib/spawn-pipe.c: Likewise.
6100         * lib/spawni.c: Likewise.
6101         * lib/stat-time.h: Likewise.
6102         * lib/w32spawn.h: Likewise.
6103         * tests/test-isatty.c: Likewise.
6104         * lib/config.charset: More comments.
6105         * doc/gnulib-intro.texi: Mention native Windows.
6106         * doc/posix-functions/_Exit_C99.texi: Likewise.
6107         * doc/posix-headers/fcntl.texi: Likewise.
6108
6109 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6110
6111         argp: Avoid crash if translator uses % characters in a translation.
6112         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6113         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6114
6115 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6116
6117         doc: C11 and C++11 are now official
6118         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6119         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6120         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6121         * modules/stdalign:
6122         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6123
6124 2012-01-06  Bruno Haible  <bruno@clisp.org>
6125
6126         uc-is-grapheme-break tests: Tweak.
6127         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6128         message.
6129
6130 2012-01-06  Bruno Haible  <bruno@clisp.org>
6131
6132         test-init.sh: correct the test for diff -u
6133         * tests/test-init.sh: Also redirect stdout to /dev/null.
6134
6135 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6136
6137         Use ', not `, for quoting output.
6138         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6139         (print_changelog_deltas, get_tool_versions, main program):
6140         * build-aux/git-version-gen:
6141         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6142         * build-aux/move-if-change (help):
6143         * build-aux/useless-if-before-free (usage, main program):
6144         * check-module (parse_module_file, usage)
6145         (find_included_lib_files, check_module):
6146         * lib/argmatch.c (main) [TEST]:
6147         * lib/argp-help.c (_help):
6148         * lib/getopt1.c (main) [TEST]:
6149         * lib/git-merge-changelog.c (usage):
6150         * lib/xstrtol-error.c (xstrtol_error):
6151         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6152         * m4/argz.m4 (gl_FUNC_ARGZ):
6153         * m4/bison.m4 (gl_BISON):
6154         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6156         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6157         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6158         * m4/gc-random.m4 (gl_GC_RANDOM):
6159         * m4/intl.m4 (gt_CHECK_DECL):
6160         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6162         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6164         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6165         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6166         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6167         * tests/test-dirname.c (main):
6168         * tests/test-getpass.c (main):
6169         * tests/test-iconvme.c (main):
6170         * tests/test-parse-datetime.c (LOG):
6171         * tests/test-xstrtoimax.sh:
6172         * tests/test-xstrtol.sh:
6173         * tests/test-xstrtoll.sh:
6174         * tests/test-xstrtoumax.sh:
6175         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6176         * top/GNUmakefile (abort-due-to-no-makefile):
6177         Quote 'like this', not `like this', as per the recent change to
6178         the GNU coding standards.
6179
6180 2012-01-05  Bruno Haible  <bruno@clisp.org>
6181
6182         strtoimax: Don't force a replacement on systems where intmax_t is int.
6183         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6184         'intmax_t' is not larger than 'int'.
6185         Reported by Pádraig Brady <P@draigBrady.com>.
6186
6187 2012-01-05  Bruno Haible  <bruno@clisp.org>
6188
6189         doc: Mention NetBSD bugs.
6190         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6191         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6192
6193 2012-01-05  Bruno Haible  <bruno@clisp.org>
6194
6195         strtoumax tests: Enhance tests.
6196         * tests/test-strtoumax.c (main): Add tests for large values.
6197
6198 2012-01-05  Bruno Haible  <bruno@clisp.org>
6199
6200         strtoimax: Work around AIX 5.1 bug.
6201         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6202         definition.
6203         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6204         Set HAVE_STRTOIMAX.
6205         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6206         REPLACE_STRTOIMAX.
6207         * modules/inttypes-incomplete (Makefile.am): Substitute
6208         REPLACE_STRTOIMAX.
6209         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6210         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6211         (Depends-on): Update conditions.
6212         * tests/test-strtoimax.c (main): Add tests for large values.
6213         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6214
6215 2012-01-05  Bruno Haible  <bruno@clisp.org>
6216
6217         inttypes: Modernize.
6218         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6219         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6220         (Makefile.am): Update inttypes.h rule.
6221
6222 2012-01-05  Jim Meyering  <meyering@redhat.com>
6223
6224         init.sh: don't waste a subshell just to redirect stderr
6225         * tests/init.sh: In testing for diff -u and diff -c, use a
6226         stderr-redirecting exec inside `...` rather than a subshell.
6227
6228         test-init.sh: avoid failure on HP-UX 11.00
6229         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6230         resolves to diff -c or cmp.  Reported by Bruno Haible.
6231
6232 2012-01-05  Bruno Haible  <bruno@clisp.org>
6233
6234         Tests for module 'strtoull'.
6235         * modules/strtoull-tests: New file.
6236         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6237
6238 2012-01-05  Bruno Haible  <bruno@clisp.org>
6239
6240         Tests for module 'strtoll'.
6241         * modules/strtoll-tests: New file.
6242         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6243
6244 2012-01-05  Bruno Haible  <bruno@clisp.org>
6245
6246         Tests for module 'strtoul'.
6247         * modules/strtoul-tests: New file.
6248         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6249
6250 2012-01-05  Bruno Haible  <bruno@clisp.org>
6251
6252         Tests for module 'strtol'.
6253         * modules/strtol-tests: New file.
6254         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6255
6256 2012-01-04  Jim Meyering  <meyering@redhat.com>
6257
6258         test-init.sh: accommodate Solaris 5.10's different diff -u output
6259         * tests/test-init.sh: Also exempt @@ lines from the comparison
6260         of diff output, since Solaris 5.10 and GNU diff formats differ.
6261         Reported by Stefano Lattarini.
6262
6263 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6264
6265         test-posixtm: don't assume signed integer wraparound
6266         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6267         after signed integer overflow.  Inspired by (though it may not
6268         fix) Bruno Haible's bug report in
6269         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6270
6271         Spell out "Windows 9x" and "Windows XP".
6272         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6273         "Windows 9x" and "WinXP" with "Windows XP".
6274
6275 2012-01-04  Jim Meyering  <meyering@redhat.com>
6276
6277         test-vc-list-files-cvs.sh: remove obsolete comment
6278         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6279         double exit.  Now that's all encapsulated via skip_ and Exit.
6280
6281 2012-01-04  Bruno Haible  <bruno@clisp.org>
6282
6283         Talk about "native Windows API", not "Win32".
6284         * lib/classpath.c: Update comments to mention native Windows.
6285         * lib/csharpexec.c: Likewise.
6286         * lib/dup2.c: Likewise.
6287         * lib/error.c: Likewise.
6288         * lib/fcntl.c: Likewise.
6289         * lib/filename.h: Likewise.
6290         * lib/findprog.c: Likewise.
6291         * lib/get-rusage-as.c: Likewise.
6292         * lib/get-rusage-data.c: Likewise.
6293         * lib/getpagesize.c: Likewise.
6294         * lib/javaexec.c: Likewise.
6295         * lib/msvc-inval.c: Likewise.
6296         * lib/msvc-nothrow.c: Likewise.
6297         * lib/nanosleep.c: Likewise.
6298         * lib/nonblocking.c: Likewise.
6299         * lib/printf-parse.c: Likewise.
6300         * lib/setlocale.c: Likewise.
6301         * lib/sigaction.c: Likewise.
6302         * lib/strerror_r.c: Likewise.
6303         * lib/tmpdir.c: Likewise.
6304         * lib/vasnprintf.c: Likewise.
6305         * lib/w32spawn.h: Likewise.
6306         * lib/waitpid.c: Likewise.
6307         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6308         * m4/locale-ar.m4: Likewise.
6309         * m4/locale-fr.m4: Likewise.
6310         * m4/locale-ja.m4: Likewise.
6311         * m4/locale-tr.m4: Likewise.
6312         * m4/locale-zh.m4: Likewise.
6313         * m4/printf.m4: Likewise.
6314         * tests/test-cloexec.c: Likewise.
6315         * tests/test-copy-acl.sh: Likewise.
6316         * tests/test-copy-file.sh: Likewise.
6317         * tests/test-file-has-acl.sh: Likewise.
6318         * tests/test-set-mode-acl.sh: Likewise.
6319         * tests/test-dup-safer.c: Likewise.
6320         * tests/test-dup2.c: Likewise.
6321         * tests/test-dup3.c: Likewise.
6322         * tests/test-fcntl.c: Likewise.
6323         * tests/test-nonblocking-pipe.h: Likewise.
6324         * tests/test-nonblocking-socket.h: Likewise.
6325         * tests/test-pipe.c: Likewise.
6326         * tests/test-pipe2.c: Likewise.
6327         * tests/test-spawn-pipe-child.c: Likewise.
6328         * doc/acl-resources.txt: Likewise.
6329         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6330         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6331         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6332         * lib/localcharset.c: Update comments to mention native Windows.
6333         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6334         * lib/localename.c: Likewise.
6335         * lib/progreloc.c: Likewise.
6336         * lib/relocatable.c: Likewise.
6337         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6338         (windows_compute_revents): Renamed from win32_compute_revents.
6339         (windows_compute_revents_socket): Renamed from
6340         win32_compute_revents_socket.
6341         * lib/select.c: Update comments to mention native Windows.
6342         (windows_poll_handle): Renamed from win32_poll_handle.
6343         * m4/threadlib.m4: Update comments to mention native Windows.
6344         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6345         --enable-threads=windows instead of --enable-threads=win32. Set
6346         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6347         * lib/glthread/lock.h: Update comments to mention native Windows.
6348         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6349         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6350         USE_WIN32_THREADS.
6351         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6352         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6353         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6354         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6355         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6356         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6357         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6358         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6359         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6360         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6361         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6362         * tests/test-tls.c: Likewise.
6363         Rationale:
6364         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6365         on both 32-bit and 64-bit Windows systems.
6366         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6367         line of distinction is between "native Windows" on one side and Unix/
6368         POSIX systems on the other side. More details in
6369         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6370         Suggested by Paul Eggert.
6371
6372 2012-01-03  Bruno Haible  <bruno@clisp.org>
6373
6374         isatty: Support for MSVC 9.
6375         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6376         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6377         (_isatty_nothrow): New function.
6378         (isatty): Use it instead of _isatty.
6379         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6380         * lib/poll.c (IsConsoleHandle): Likewise.
6381         * lib/select.c (IsConsoleHandle): Likewise.
6382         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6383         (gl_PREREQ_ISATTY): New macro.
6384         * modules/isatty (Depends-on): Add msvc-inval.
6385         (configure.ac): Invoke gl_PREREQ_ISATTY.
6386
6387 2012-01-03  Jim Meyering  <meyering@redhat.com>
6388
6389         maint.mk: remove temporary transition aid from over 1.5 years ago
6390         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6391         purpose was to aid in the transition (avoiding silent malfunction)
6392         from that old name to the new _sc_search_regexp.  This shim was
6393         added by commit 219c504b.
6394
6395         init.sh: do not try to accommodate compare arguments starting with "-"
6396         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6397         compare arguments that start with "-".  Besides, we do not worry
6398         about this when invoking diff or cmp; why start now with sed?
6399         Using "--" to separate options from argument would trigger sed
6400         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6401         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6402
6403 2012-01-02  Bruno Haible  <bruno@clisp.org>
6404
6405         Enhance tests for module 'isatty'.
6406         * modules/isatty-tests (Depends-on): Add pipe-posix.
6407         * tests/test-isatty.c: Include <fcntl.h>.
6408         (DEV_NULL): New macro.
6409         (main): Test the resut of isatty() also on regular files, pipes, and
6410         /dev/null.
6411
6412         New module 'isatty'.
6413         * lib/unistd.in.h (isatty): New declaration.
6414         * lib/isatty.c: New file, based on an idea of
6415         Bastien Roucariès <roucaries.bastien@gmail.com>.
6416         * m4/isatty.m4: New file.
6417         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6418         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6419         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6420         REPLACE_ISATTY.
6421         * modules/isatty: New file.
6422         * doc/posix-functions/isatty.texi: Mention the new module.
6423         Suggested by Paolo Bonzini.
6424
6425 2012-01-02  Bruno Haible  <bruno@clisp.org>
6426
6427         canonicalize: Tweak 2011-12-29 commit.
6428         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6429         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6430
6431 2012-01-02  Jim Meyering  <meyering@redhat.com>
6432
6433         gitlog-to-changelog: describe input syntax in --help output
6434         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6435
6436         gitlog-to-changelog: fix typo in --help: show backslash before email @
6437         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6438         in sources, but not in actual output.
6439
6440 2011-12-30  Jim Meyering  <meyering@redhat.com>
6441
6442         gitlog-to-changelog: don't malfunction when name contains %-directive
6443         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6444         in a name string cause trouble.  E.g., with a user name of "%s",
6445         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6446
6447 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6448
6449         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6450         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6451         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6452         the "  (tiny change)" notation that is appended to the standard
6453         ChangeLog "date  name  email" header line.
6454
6455 2012-01-01  Jim Meyering  <meyering@redhat.com>
6456
6457         test-framework-sh: init.sh: fix "make dist" failure
6458         When using gnulib-tool's --with-tests option and any module that
6459         depends on test-framework-sh, "make dist" would fail due to the
6460         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6461         in the gltests directory, and not in the gllib/ directory.
6462         One way to work around that is to move the EXTRA_DIST += init.sh
6463         from the primary module to the -tests one:
6464         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6465         * modules/test-framework-sh (Makefile.am): ...not here.
6466         Reported by Tom G. Christensen in
6467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6468
6469         version-etc: update copyright year reported by --version
6470         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6471
6472 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6473
6474         canonicalize: only stat() if required
6475         * lib/canonicalize.c (canonicalize_filename_mode):
6476         Avoid calling l?stat() when both CAN_MISSING,
6477         and CAN_NOLINKS are set, as we neither need
6478         to resolve symlinks or test component existence.
6479
6480 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6481
6482         doc: cover st_ino issues once; add OpenVMS etc.
6483         * doc/posix-functions/stat.texi (stat):
6484         * doc/posix-functions/lstat.texi (lstat):
6485         * doc/posix-functions/fstatat.texi (fstatat):
6486         * doc/posix-functions/fstat.texi (fstat):
6487         Move general 'struct stat' stuff to sys_stat.texi,
6488         leaving behind a pointer.
6489         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6490         Merge duplicate info about 'struct stat' problems into here.
6491         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6492         and suggest partial workarounds.
6493
6494         same-inode: port to OpenVMS
6495         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6496         three st_ino values.
6497
6498 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6499
6500         canonicalize: fix references to stat() and lstat()
6501         * lib/canonicalize.c (canonicalize_filename_mode):
6502         Ensure references always resolve to a replacement
6503         function if required (even via a macro).
6504
6505 2011-12-30  Jim Meyering  <meyering@redhat.com>
6506
6507         gitlog-to-changelog: remove a little duplication
6508         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6509         rather than twice.
6510
6511 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6512
6513         canonicalize: add support for not resolving symlinks
6514         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6515         indicate we don't want to follow symlinks.  Also
6516         provide CAN_MODE_MASK to aid setting these existing
6517         mutually exclusive values.
6518         * lib/canonicalize.c (canonicalize_filename_mode):
6519         Extract the flags from can_mode parameter, which
6520         are currently just used to select between stat()
6521         and lstat().  Also ensure that mutually exclusive
6522         values are flagged immediately as invalid.
6523         * tests/test-canonicalize.c: Verify symlinks are
6524         not followed, and that invalid flag combinations
6525         are diagnosed.
6526
6527 2011-12-25  Jim Meyering  <meyering@redhat.com>
6528
6529         gitlog-to-changelog: do not clump multi-paragraph entries
6530         Identical header lines (date,name,email+coauthors) are suppressed,
6531         thus putting all entries with those same characteristics under
6532         a single header.  However, when a log entry consists of two or
6533         more paragraphs, it may not be clear where it starts and ends.
6534         This change makes it so that such an entry is always separated
6535         from others by a header line, even when that header would
6536         otherwise be suppressed.
6537         * build-aux/gitlog-to-changelog: Implement the above.
6538         Inspired by a related request from Stefano Lattarini in
6539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6540
6541 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         announce-gen: fix `cmd' typo in diagnostic
6544         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6545         diagnostic: a missing '$' meant that the command was not output.
6546
6547 2011-12-23  Jim Meyering  <meyering@redhat.com>
6548
6549         test-framework-sh: distribute init.sh
6550         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6551         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6552         fail due to the lack of init.sh.
6553
6554         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6555         * modules/atexit-tests: Rather than listing tests/init.sh,
6556         now that there's a module for it, simply depend on that new module.
6557         * modules/closein-tests: Likewise.
6558         * modules/exclude-tests: Likewise.
6559         * modules/getcwd-tests: Likewise.
6560         * modules/perror-tests: Likewise.
6561         * modules/pread-tests: Likewise.
6562         * modules/pwrite-tests: Likewise.
6563         * modules/vc-list-files-tests: Likewise.
6564         * modules/verify-tests: Likewise.
6565         * modules/xalloc-die-tests: Likewise.
6566         * modules/xstrtoimax-tests: Likewise.
6567         * modules/xstrtol-tests: Likewise.
6568         * modules/xstrtoll-tests: Likewise.
6569         * modules/xstrtoumax-tests: Likewise.
6570         * modules/yesno-tests: Likewise.
6571
6572 2011-12-22  Jim Meyering  <meyering@redhat.com>
6573
6574         test-framework-sh: add minimal tests of init.sh's compare function
6575         * modules/test-framework-sh-tests: New file.
6576         * tests/test-init.sh: New file.
6577
6578         test-framework-sh: new module
6579         * modules/test-framework-sh: New file.
6580         * MODULES.html.sh (Support for maintaining and releasing projects):
6581         List it.
6582
6583         init.sh: do not emit simulated diff output to stderr
6584         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6585
6586 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6587
6588         .gitignore: ignore gnulib.dvi and regex.info
6589         * doc/.gitignore:add gnulib.dvi and regex.info
6590
6591 2011-12-22  Jim Meyering  <meyering@redhat.com>
6592
6593         init.sh: correct previous change
6594         * tests/init.sh (compare): My previous change was wrong.
6595         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6596
6597         init.sh: avoid unwarranted test failure when using "set -e"
6598         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6599         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6600         a use like "compare exp out" would get evoke an unconditional failure.
6601
6602 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6603
6604         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6605         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6606         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6607         autoreconf that did not.
6608         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6609         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6610
6611 2011-12-17  Jim Meyering  <meyering@redhat.com>
6612
6613         bootstrap: remove some now-unneeded code
6614         This script arose back when gnulib-tool was young.
6615         Since then, it has seen improvements that render much of this
6616         script unnecessary.  In particular, it can now make symlinks
6617         to the files it uses.  Also, I no longer see as much value in
6618         marking files as read-only via comments.
6619         If you relied on the symlink-creation feature of the preceding
6620         version of this script, you can get most of that functionality
6621         by adding the --symlink option to the definition of
6622         gnulib_tool_option_extras in your bootstrap.conf file.
6623         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6624         Run autopoint and libtoolize *before* gnulib-tool.
6625         After it, run an abbreviated autoreconf, rather than a loop around
6626         all tools.
6627         (slirp, bt_mark_as_generated): Remove functions.
6628
6629 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6630
6631         ftoastr: fix typo
6632         * lib/ftoastr.h: Fix misspelling in comment.
6633
6634 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6635
6636         * top/README-release: fix punctuation.
6637
6638 2011-12-17  Jim Meyering  <meyering@redhat.com>
6639
6640         bootstrap: correct the recent buildreq change
6641         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6642         had no effect.
6643         * build-aux/bootstrap (buildreq): Bracket each search term with
6644         "*...*", so that the shell "case" statement works as intended.
6645         Add comments.
6646
6647 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6648
6649         build: let bootstrap resort to wget when downloading .po files
6650         * build-aux/bootstrap (download_po_files): Fallback to wget when
6651         downloading the .po files via rsync fails.  This is necessary to
6652         bootstrap from behind a strict firewall.
6653
6654 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6655
6656         stdint: don't assume C++11 when compiling with g++
6657         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6659         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6660         work also in C++ before C++11, as that improperly inhibits
6661         generating a substitute stdint.h for that case.
6662
6663 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6664
6665         alloca: protect comment from gnulib-tool
6666         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6667         that gnulib-tool doesn't think it's a license, and munge it to
6668         say "GCC version 3".
6669
6670 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6671
6672         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6673         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6674         $(abs_top_builddir) instead of $(top_builddir).
6675
6676 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6677
6678         strftime-tests: also test nanoseconds
6679         * tests/test-strftime.c (T): Add a test of %N.
6680
6681 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6682
6683         inttypes, stdint: add C++11 support
6684         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6685         when including inttypes.h and stdint.h.  Support this change to
6686         the standard.
6687         * doc/posix-headers/inttypes.texi (inttypes.h):
6688         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6689         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6690         Define if not defined already, for the benefit of pre-C++11 hosts.
6691         Define the standard format macros (e.g., PRId8) always.
6692         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6693         Likewise, if __cpluspus.  Define the standard constant and limit
6694         macros (e.g., INT8_C, INT8_MAX) always.
6695         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6696         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6697         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6698         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6699         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6700         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6701         Likewise.
6702
6703 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         nonblocking tests: Fix test failure on Linux/PPC.
6706         Suggested by Prerna Saxena in
6707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6708         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6709         Set to 1100000.
6710
6711 2011-12-12  Jim Meyering  <meyering@redhat.com>
6712
6713         argmatch: don't hard-code `' when listing valid option arguments
6714         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6715         use the quote function to add quotes.  Use fputs rather than
6716         fprintf for the format string with no format directive.
6717
6718 2011-12-07  Eric Blake  <eblake@redhat.com>
6719
6720         bootstrap: detect tools required by gnulib-tool
6721         * build-aux/bootstrap (buildreq): Provide minimum implicit
6722         dependencies.
6723         * DEPENDENCIES: Mention patch as a prereq.
6724
6725 2011-12-04  Bruno Haible  <bruno@clisp.org>
6726
6727         sethostname: Port to Windows platforms.
6728         * lib/sethostname.c: Provide an alternate implementation for Windows
6729         platforms.
6730         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6731         (main): Skip the test if sethostname() fails with EPERM. On Windows
6732         platforms, don't check the result of gethostname().
6733
6734 2011-12-04  Bruno Haible  <bruno@clisp.org>
6735             Jim Meyering  <meyering@redhat.com>
6736
6737         tests: Avoid spurious error message on platforms without mktemp program.
6738         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6739
6740 2011-12-04  Bruno Haible  <bruno@clisp.org>
6741
6742         sethostname: Fix documentation.
6743         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6744         "not fixed" section.
6745
6746 2011-12-03  Bruno Haible  <bruno@clisp.org>
6747
6748         gnulib-tool: Verify that the License field is present and non-empty.
6749         * gnulib-tool (func_get_license_raw): New function, extracted from
6750         func_get_license.
6751         (func_get_license): Use it. Warn if the module is not a test module and
6752         has no license.
6753         Suggested by Jim Meyering.
6754
6755 2011-12-03  Bruno Haible  <bruno@clisp.org>
6756
6757         sethostname tests: Fix link error on mingw.
6758         * tests/test-sethostname1.c: New file, extracted from
6759         tests/test-sethostname.c.
6760         * tests/test-sethostname2.c: New file, extracted from
6761         tests/test-sethostname.c.
6762         * tests/test-sethostname.c: Remove file.
6763         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6764         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6765         (Depends-on): Add gethostname.
6766         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6767         Link the latter with $(GETHOSTNAME_LIB).
6768
6769         sethostname tests: Fix compilation error on mingw.
6770         * tests/test-sethostname.c: Don't include <sys/types.h>.
6771         (geteuid): Use a dummy value without uid_t.
6772         * modules/sethostname-tests (Depends-on): Remove sys_types.
6773
6774         sethostname tests: Avoid a gcc warning.
6775         * tests/test-sethostname.c (main): Remove an unused variable.
6776
6777         Tweak last commit.
6778         * modules/sethostname-tests (Files): Sort by decreasing importance.
6779         (configure.ac): Check for geteuid.
6780         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6781         the test when there's nothing to test. Drop an unnecessary cast.
6782         Improve an error message. Verify that the final sethostname() call
6783         succeeds.
6784
6785 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6786
6787         Add a test suite for the sethostname module.
6788         * modules/sethostname-tests: New file.  A test program
6789         for the sethostname module.
6790         * tests/test-sethostname.c: Likewise.
6791
6792 2011-12-03  Bruno Haible  <bruno@clisp.org>
6793
6794         Tweak last commit.
6795         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6796         Fix preprocessor directives indentation. Fix typos.
6797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6798         * modules/unistd (Makefile): Likewise.
6799
6800 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6801
6802         Integrate the sethostname module into unistd.
6803         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6804         into the unistd.h header.
6805         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6806         preprocessor directives.
6807         * modules/unistd: Setup the Makefile substitutions of the
6808         SETHOSTNAME preprocessor directives.
6809
6810 2011-12-03  Bruno Haible  <bruno@clisp.org>
6811
6812         Tweak last commit.
6813         * lib/sethostname.c: Don't include <string.h>.
6814         (sethostname): No need to copy the argument string to the stack. Don't
6815         call clearerr. Preserve errno when fprintf failed.
6816         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6817         Don't invoke AC_REPLACE_FUNCS.
6818         * modules/sethostname (Link): Remove empty section.
6819         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6820         failure problem.
6821
6822 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6823
6824         New module 'sethostname'.
6825         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6826         for systems that lack it.
6827         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6828         sethostname declaration and function.
6829         * modules/sethostname: New file.  Define the sethostname module.
6830
6831 2011-12-03  Bruno Haible  <bruno@clisp.org>
6832
6833         Tweak last commit.
6834         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6835
6836 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6837
6838         Split the HOST_NAME_MAX detection into a separate m4 macro.
6839         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6840         macro so it can be used by the pending sethostname module.
6841
6842 2011-12-03  Bruno Haible  <bruno@clisp.org>
6843
6844         Fix module descriptions syntax.
6845         * modules/argv-iter (License): Fix syntax.
6846         * modules/di-set (License): Likewise.
6847         * modules/ino-map (License): Likewise.
6848         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6849
6850 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6851
6852         stdalign: port to Clang 3.0
6853         Problem reported by Simon Josefsson in
6854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6855         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6856         which has <stdalign.h> but which does not define alignof.
6857         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6858
6859 2011-12-01  Eric Blake  <eblake@redhat.com>
6860
6861         mktempd: silence dd usage
6862         * build-aux/mktempd (rand_bytes): Silence dd.
6863
6864 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6865
6866         manywarnings: Don't mention gcc version in docstring.
6867         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6868         Jim Meyering <meyering@redhat.com>.
6869
6870 2011-11-30  Jim Meyering  <meyering@redhat.com>
6871
6872         hash: mark a few floating point constants with "f" suffix
6873         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6874         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6875         floating point constants with "f", since they're destined to be
6876         saved/used as "float"s.
6877
6878 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6879
6880         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6881         * tests/test-float.c (test_long_double): Correct and re-enable the
6882         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6883
6884 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6885
6886         Avoid subtracting two pointers that don't point into the same block.
6887         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6888         only pointers into the same memory block are subtracted. We cannot
6889         assume that sizeof (ptrdiff_t) == sizeof (void *).
6890
6891 2011-11-29  Eric Blake  <eblake@redhat.com>
6892
6893         maint.mk: add syntax check for use of compare from init.sh
6894         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6895         moved here from coreutils.
6896
6897         manywarnings: drop -Wunsuffixed-float-constants
6898         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6899         '1.0D', which is the only way to silence this warning for 'double'.
6900
6901 2011-11-29  Jim Meyering  <meyering@redhat.com>
6902
6903         hash: mark compute_bucket_size with the pure attribute
6904         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6905
6906         quotearg, propername: correct pragma guard expression
6907         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6908         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6909
6910 2011-11-28  Jim Meyering  <meyering@redhat.com>
6911
6912         propername: do not mark proper_name with the const attribute
6913         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6914         since it examines data pointed to by its parameter.
6915         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6916         the suggestion from -Wsuggest-attribute=const.
6917
6918         propername: mark one more function as const
6919         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6920
6921 2011-11-27  Jim Meyering  <meyering@redhat.com>
6922
6923         mark functions with const and pure attributes
6924
6925         Mark functions per suggestions from gcc-4.6 when using these options:
6926         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6927         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6928         Follow these guidelines: when possible, apply the attribute to
6929         an extern declaration, not to its definition.  Apply it to the
6930         definition only when the definition is static.
6931         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6932         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6933         * lib/base64.h (isbase64): Likewise.
6934         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6935         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6936         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6937         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6938         (c_tolower, c_toupper): Likewise.
6939         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6940         * lib/chdir-long.c (find_non_slash): Likewise.
6941         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6942         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6943         * lib/file-type.h (file_type): Likewise.
6944         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6945         * lib/filevercmp.c (verrevcmp): Likewise.
6946         * lib/freadahead.h (freadahead): Likewise.
6947         * lib/fts.c (fts_maxarglen): Likewise.
6948         * lib/hash-pjw.h (hash_pjw): Likewise.
6949         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6950         * lib/hash.c (is_prime, next_prime): Likewise.
6951         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6952         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6953         (hash_table_ok, hash_get_first, hash_string): Likewise.
6954         (compute_bucket_size): Likewise.
6955         * lib/i-ring.h (i_ring_empty): Likewise.
6956         * lib/isnan.c (isnanl): Likewise.
6957         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6958         * lib/memcasecmp.h (memcasecmp): Likewise.
6959         * lib/memchr2.h (memchr2): Likewise.
6960         * lib/memcmp2.h (memcmp2): Likewise.
6961         * lib/parse-datetime.y (lookup_zone): Likewise.
6962         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6963         [!WINDOWS_SOCKETS]: Likewise.
6964         * lib/strnlen1.h (strnlen1): Likewise.
6965         * lib/uniwidth.in.h (uc_width): Likewise.
6966         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6967         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6968         (quoting_options_from_style): Add a comment.
6969         * lib/propername.h (proper_name): Add a comment.
6970
6971 2011-11-27  Bruno Haible  <bruno@clisp.org>
6972
6973         Remove unused macros from !_LIBC code in glibc-borrowed files.
6974         * lib/fnmatch.c (STRCOLL): Remove macro.
6975         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6976         * lib/glob.c (__stat, __readdir64): Remove macros.
6977         * lib/tempname.c (__open64, __xstat64): Remove macros.
6978         Suggested by Paul Eggert.
6979
6980 2011-11-27  Bruno Haible  <bruno@clisp.org>
6981
6982         getcwd: Fix link error on MSVC 9.
6983         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6984
6985 2011-11-27  Bruno Haible  <bruno@clisp.org>
6986
6987         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6988         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6989         HAVE_OPENDIR is 0.
6990         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6991         HAVE_CLOSEDIR is 0.
6992         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6993         is 0.
6994         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6995
6996 2011-11-27  Bruno Haible  <bruno@clisp.org>
6997
6998         getcwd: Fix bug from 2011-08-17.
6999         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7000         platforms that need it.
7001         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7002         code of 4 to be a failure, not a success. This ensures that
7003         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7004
7005 2011-11-27  Bruno Haible  <bruno@clisp.org>
7006
7007         binary-io tests: Avoid test failure on mingw when libtool is used.
7008         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7009         Don't verify the size of t-bin-out1.tmp here.
7010         * tests/test-binary-io.sh: Verify it here.
7011         Reported by Simon Josefsson.
7012
7013 2011-11-26  Bruno Haible  <bruno@clisp.org>
7014
7015         Fix conflict between two instantiations of module 'unistd'.
7016         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7017         ${include_guard_prefix} also in the autoconf snippet.
7018         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7020         GNULIB_UNISTD_H_GETOPT.
7021         * modules/getopt-posix (configure.ac): Set the
7022         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7023         * modules/getopt-gnu (configure.ac): Likewise.
7024         * modules/unistd (Makefile.am): Change the substitution value of
7025         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7026         Reported by Simon Josefsson.
7027
7028 2011-11-25  Bruno Haible  <bruno@clisp.org>
7029
7030         pagealign_alloc: Doc and comments.
7031         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7032         module.
7033         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7034
7035 2011-11-25  Jim Meyering  <meyering@redhat.com>
7036
7037         test-update-copyright.sh: avoid false-positive failure
7038         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7039         around false positive failure on Cygwin/Windows.  The latter was
7040         matching erroneously-created files with names like
7041         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7042
7043 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7044
7045         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7046         * m4/valgrind-tests.m4: Check that the parameters that will be
7047         used works, not just a subset of them.  Reported by Bruno Haible
7048         <bruno@clisp.org>.
7049
7050 2011-11-24  Jim Meyering  <meyering@redhat.com>
7051
7052         test-stdalign.c: comment out long double tests
7053         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7054         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7055         error: '_Alignas' specifiers cannot reduce alignment of \
7056         'static_longdouble_alignas'.
7057
7058 2011-11-22  Jim Meyering  <meyering@redhat.com>
7059
7060         init.sh: make "compare /dev/null FILE" output more readable
7061         * tests/init.sh (compare_): Document the preferred order of arguments.
7062         (emit_diff_u_header_): New function.
7063         (compare_dev_null_): Emit a simulated diff, rather than just the
7064         contents of the unexpected file.  Suggestion from Bruno Haible.
7065
7066 2011-11-21  Jim Meyering  <meyering@redhat.com>
7067             Eric Blake  <eblake@redhat.com>
7068
7069         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7070         * tests/init.sh: Make our compare function slightly more portable.
7071         Reported by Bruno Haible in
7072         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7073
7074 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7075
7076         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7077         before using it, in code that ends up in config.h.
7078
7079 2011-11-20  Bruno Haible  <bruno@clisp.org>
7080
7081         getcwd: Work around getcwd bug on AIX 5..7.
7082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7083         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7084         Use a different value for gl_cv_func_getcwd_path_max. Move the
7085         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7086         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7087         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7088         Define HAVE_MINIMALLY_WORKING_GETCWD.
7089         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7090         where it is not even minimally working, that is, on AIX.
7091         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7092         m4/getcwd-path-max.m4.
7093         (main): Update exit code computation.
7094         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7095         getcwd does not handle long file names.
7096
7097 2011-11-20  Bruno Haible  <bruno@clisp.org>
7098
7099         getcwd: Fix bug from 2009-09-10.
7100         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7101         like "no".
7102
7103 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7104
7105         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7106
7107 2011-11-20  Bruno Haible  <bruno@clisp.org>
7108
7109         fma tests: Avoid shadowing local variables.
7110         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7111         expected.
7112
7113 2011-11-20  Bruno Haible  <bruno@clisp.org>
7114
7115         copysignf tests: Fix.
7116         * tests/test-copysignf.c: Fix signature check.
7117
7118 2011-11-20  Bruno Haible  <bruno@clisp.org>
7119
7120         fma: Remove unused code.
7121         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7122         unused macros.
7123
7124 2011-11-20  Bruno Haible  <bruno@clisp.org>
7125
7126         sethostname: Fix doc about AIX.
7127         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7128         sethostname; it has it.
7129
7130         sethostname: Mention more portability problems.
7131         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7132         problem.
7133         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7134
7135 2011-11-19  Bruno Haible  <bruno@clisp.org>
7136
7137         Depend on module fcntl-h when AT_FDCWD is used.
7138         * modules/utimens (Depends-on): Add fcntl-h.
7139         * modules/areadlinkat (Depends-on): Likewise.
7140         * modules/areadlinkat-with-size (Depends-on): Likewise.
7141         * modules/faccessat (Depends-on): Likewise.
7142         * modules/fchmodat (Depends-on): Likewise.
7143         * modules/fchownat (Depends-on): Likewise.
7144         * modules/getcwd (Depends-on): Likewise.
7145         * modules/mkdirat (Depends-on): Likewise.
7146         * modules/mkfifoat (Depends-on): Likewise.
7147         * modules/readlinkat (Depends-on): Likewise.
7148         * modules/symlinkat (Depends-on): Likewise.
7149         * modules/dup2-tests (Depends-on): Likewise.
7150         * modules/fdutimensat-tests (Depends-on): Likewise.
7151         * modules/futimens-tests (Depends-on): Likewise.
7152
7153 2011-11-19  Bruno Haible  <bruno@clisp.org>
7154
7155         euidaccess: Update a comment.
7156         * lib/euidaccess.c: Update comment about platforms with faccessat.
7157
7158 2011-11-19  Bruno Haible  <bruno@clisp.org>
7159
7160         openat: Fix file list.
7161         * modules/openat (Files): Remove lib/at-func.c.
7162
7163 2011-11-19  Bruno Haible  <bruno@clisp.org>
7164
7165         fstatat: Simplify.
7166         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7167         gnulib should define rpl_fstatat, there is a
7168         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7169
7170 2011-11-19  Bruno Haible  <bruno@clisp.org>
7171
7172         Ensure 'inline' can be used in tests/test-utimens-common.h.
7173         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7174         * modules/futimens-tests (configure.ac): Likewise.
7175         * modules/utimens-tests (configure.ac): Likewise.
7176         * modules/utimensat-tests (configure.ac): Likewise.
7177
7178 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7179
7180         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7181         not hash_insert0.
7182         (hash_insert_if_absent): Doc fix.
7183
7184 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7185
7186         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7187
7188 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7189
7190         test-getcwd: disambiguate exit status
7191         * tests/test-getcwd.c (test_long_name): Return 0..7.
7192         (main): Exit with an unambiguous exit status.  The old
7193         code yielded a mysterious mixture of two failure codes.
7194
7195         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7196         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7197         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7198         rpl_fstatat or fstatat.  This should fix the other problem
7199         reported by Kai Habel in
7200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7201         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7203         and I reproduced it on a Solaris 8 host we still have in production.
7204
7205 2011-11-18  Jim Meyering  <meyering@redhat.com>
7206
7207         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7208         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7209         Add a sentence to the comment.
7210         (hash_insert0): New function that simply calls hash_insert_if_absent.
7211         * lib/hash.h (hash_insert_if_absent): Declare it.
7212         (hash_insert0): Add deprecation attribute.
7213         (_GL_ATTRIBUTE_DEPRECATED): Define.
7214         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7215         not hash_insert0.
7216         * NEWS: Mention it, even though it's not really an incompatible change.
7217
7218 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7219
7220         openat: avoid compilation failure due to lack of <errno.h> inclusion
7221         * lib/openat.c: Include <errno.h>.
7222
7223 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7224
7225         * modules/getcwd (Depends-on): Add fdopendir.
7226         This fixes one of the two problems reported by Kai Habel in
7227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7228
7229         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7230         stdalign problem reported by Ian Beckwith in
7231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7232         * modules/crypto/gc-arcfour (Depends-on):
7233         Depend conditionally on crypto/arcfour.
7234         * modules/crypto/gc-arctwo (Depends-on):
7235         Depend conditionally on crypto/arctwo.
7236         * modules/crypto/gc-des (Depends-on):
7237         Depend conditionally on crypto/des.
7238         * modules/crypto/gc-hmac-md5 (Depends-on):
7239         Depend conditionally on crypto/hmac-md5.
7240         * modules/crypto/gc-hmac-sha1 (Depends-on):
7241         Depend conditionally on crypto/hmac-sha1.
7242         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7243         * modules/crypto/gc-md4 (Depends-on):
7244         Depend conditionally on crypto/md4.
7245         * modules/crypto/gc-md5 (Depends-on):
7246         Depend conditionally on crypto/md5.
7247         * modules/crypto/gc-rijndael (Depends-on):
7248         Depend conditionally on crypto/rijndael.
7249         * modules/crypto/gc-sha1 (Depends-on):
7250         Depend conditionally on crypto/sha1.
7251         * modules/crypto/gc-arcfour:
7252         * modules/crypto/gc-arctwo:
7253         * modules/crypto/gc-des:
7254         * modules/crypto/gc-hmac-md5:
7255         * modules/crypto/gc-hmac-sha1:
7256         * modules/crypto/gc-md2:
7257         * modules/crypto/gc-md4:
7258         * modules/crypto/gc-md5:
7259         * modules/crypto/gc-rijndael:
7260         * modules/crypto/gc-sha1:
7261         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7262         now that the conditional dependencies do the work for us.
7263
7264 2011-11-17  Jim Meyering  <meyering@redhat.com>
7265
7266         tests: factor st_ctime-comparison out of two headers
7267         * tests/test-utimens-common.h (ctime_compare): Define.
7268         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7269         * tests/test-lutimens.h (test_lutimens): Likewise.
7270         * tests/test-utimens.h (test_utimens): Likewise.
7271
7272         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7273         Invoke the test program via an init.sh-using wrapper.
7274         * tests/test-getcwd.sh: New file.
7275         * modules/getcwd-tests (Files): Add it.
7276         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7277
7278 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7279
7280         gitlog-to-changelog: support multi-author commits.
7281         The FSF cares about keeping track of all authors of patches to its
7282         projects, but Git doesn't provide obvious support for multi-author
7283         changesets. Consensus seems to be forming around the use of extra
7284         Signed-off-by inspired lines in the log message formatted as
7285         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7286         multi-author commits between version control systems.
7287         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7288         log message and output in standard ChangeLog multi-author format.
7289         Reported by Peter Rosin <peda@lysator.liu.se>
7290
7291 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7292             Bruno Haible  <bruno@clisp.org>
7293
7294         Fix some modules' file list.
7295         * modules/fstatat (Files): Add m4/lstat.m4.
7296         * modules/openat (Files): Likewise.
7297         * modules/unlinkat (Files): Likewise.
7298
7299 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7300
7301         maint.mk: fix tight-scope.mk generation in VPATH builds.
7302         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7303         reference with $(srcdir) so that the file is found correctly even
7304         when running `make syntax-check' in a VPATH build.
7305
7306 2011-11-13  Bruno Haible  <bruno@clisp.org>
7307             Jim Meyering  <meyering@redhat.com>
7308
7309         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7310         * tests/init.sh (compare): Remove "No differences encountered" or
7311         synonymous output from the 'diff' program.
7312
7313 2011-11-13  Bruno Haible  <bruno@clisp.org>
7314
7315         Makefile: Tweak indentation.
7316         * Makefile: Use tab as first character in every line that contains rule
7317         commands.
7318
7319 2011-11-13  Bruno Haible  <bruno@clisp.org>
7320
7321         Syntax check for copyright statements.
7322         * check-copyright: New file.
7323         * Makefile (sc_check_copyright): New rule.
7324
7325 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7326
7327         * build-aux/git-version-gen: Add --prefix to configure the tag
7328         match string.
7329
7330 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7331
7332         * build-aux/git-version-gen: Add --help and --version.
7333
7334 2011-11-12  Jim Meyering  <meyering@redhat.com>
7335
7336         revamp the other test-exclude?.sh scripts to use init.sh, too
7337         * tests/test-exclude1.sh: Use init.sh.
7338         * tests/test-exclude2.sh: Likewise.
7339         * tests/test-exclude3.sh: Likewise.
7340         * tests/test-exclude4.sh: Likewise.
7341         * tests/test-exclude5.sh: Likewise.
7342         * tests/test-exclude6.sh: Likewise.
7343         * tests/test-exclude7.sh: Likewise.
7344         * tests/test-exclude8.sh: Likewise.
7345         * modules/exclude-tests (Files): List init.sh.
7346
7347         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7348         These shell scripts ignored failure of the binary test-exclude,
7349         so making the latter return 77 didn't cause them to be skipped.
7350         * tests/test-exclude5.sh: Exit with test-exclude's error status
7351         when that program fails.  Revamp to use init.sh.
7352         * tests/test-exclude2.sh: Likewise.
7353
7354         test-exclude: fix a typo
7355         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7356
7357 2011-11-11  Bruno Haible  <bruno@clisp.org>
7358
7359         obstack: Fix compilation error on MSVC 9.
7360         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7361
7362 2011-11-11  Jim Meyering  <meyering@redhat.com>
7363
7364         test-exclude: skip tests rather than failing on deficient systems
7365         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7366         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7367         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7368         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7369
7370 2011-11-10  Bruno Haible  <bruno@clisp.org>
7371
7372         ptsname_r test: Avoid gcc warning on glibc systems.
7373         * tests/test-ptsname_r.c (null_ptr): New function.
7374         (test_errors): Use it.
7375
7376 2011-11-10  Bruno Haible  <bruno@clisp.org>
7377
7378         ptsname_r: Avoid compilation error on OSF/1 5.1.
7379         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7381         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7382         function is not declared or incompatibly declared.
7383         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7384         * modules/ptsname_r (Depends-on, configure.ac): Update.
7385         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7386
7387 2011-11-10  Bruno Haible  <bruno@clisp.org>
7388
7389         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7390         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7391         When cross-compiling, guess yes on all platforms except AIX.
7392         Reported by Ludovic Courtès <ludo@gnu.org>.
7393
7394 2011-11-09  Bruno Haible  <bruno@clisp.org>
7395
7396         ptsname_r tests: Fix bugs.
7397         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7398         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7399
7400 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7401
7402         fstatat: work with cross-compilation
7403         Problem reported by Ludovic Courtès in
7404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7405         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7406         "cross-compiling" and assume the bug is present.  Replace
7407         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7408         an inverted sense, to be more conservative about our assumptions.
7409         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7410
7411 2011-11-09  Bruno Haible  <bruno@clisp.org>
7412
7413         Improve MODULES.html output.
7414         * modules/mkfifoat (Description): Use the word "function".
7415         * modules/readlinkat (Description): Likewise.
7416         * modules/symlinkat (Description): Likewise.
7417
7418 2011-11-09  Eric Blake  <eblake@redhat.com>
7419
7420         ptsname_r-tests: new test module
7421         * modules/ptsname_r-tests: New module.
7422         * tests/test-ptsname_r.c: New file.
7423
7424         ptsname_r: new module
7425         * modules/ptsname_r: New module.
7426         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7427         * lib/ptsname.c (__ptsname_r): Split...
7428         * lib/ptsname_r.c: ...into new file.
7429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7430         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7431         * modules/stdlib (Makefile.am): Substitute witnesses.
7432         * lib/stdlib.in.h (ptsname_r): Declare it.
7433         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7434         * MODULES.html.sh (Misc): Likewise.
7435         * modules/ptsname (Depends-on): Alter dependency.
7436         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7437
7438 2011-11-09  Jim Meyering  <meyering@redhat.com>
7439
7440         announce-gen: be more concise when there's only one URL+tarball
7441         * build-aux/announce-gen (get_tool_versions): When you distribute
7442         only one type of tarball, combine the first two "Here are..."
7443         sections and make the key-checking grammar independent of
7444         how many tarballs there are.
7445
7446 2011-11-09  Eric Blake  <eblake@redhat.com>
7447
7448         openpty: provide a stub on mingw
7449         * lib/pty.in.h (includes): Provide forward declarations.
7450         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7451
7452         raise: fix mingw handling of SIGPIPE
7453         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7454
7455 2011-11-08  Bruno Haible  <bruno@clisp.org>
7456
7457         More conditional dependencies.
7458         * modules/faccessat (Depends-on): Add conditions.
7459         * modules/fchmodat (Depends-on): Likewise.
7460         * modules/fchownat (Depends-on): Likewise.
7461         * modules/fstatat (Depends-on): Likewise.
7462         * modules/mkfifoat (Depends-on): Likewise.
7463         * modules/readlinkat (Depends-on): Likewise.
7464         * modules/symlinkat (Depends-on): Likewise.
7465         * modules/unlinkat (Depends-on): Likewise.
7466         * modules/utimensat (Depends-on): Likewise.
7467         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7468         * modules/linkat (Depends-on): Refine the conditions.
7469         * modules/renameat (Depends-on): Likewise.
7470
7471 2011-11-08  Bruno Haible  <bruno@clisp.org>
7472
7473         faccessat: Move AC_LIBOBJ invocation to module description.
7474         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7475         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7476         invocation from here...
7477         * modules/faccessat (configure.ac): ... to here. Invoke
7478         gl_PREREQ_FACCESSAT.
7479
7480 2011-11-08  Bruno Haible  <bruno@clisp.org>
7481
7482         faccessat: Simplify autoconf macro.
7483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7484         gl_FUNC_EUIDACCESS.
7485
7486 2011-11-08  Bruno Haible  <bruno@clisp.org>
7487
7488         renameat: Fix dependencies.
7489         * modules/renameat (Depends-on): Add stdbool.
7490
7491 2011-11-08  Bruno Haible  <bruno@clisp.org>
7492
7493         mkfifoat: Fix module description.
7494         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7495         not gl_UNISTD_MODULE_INDICATOR.
7496
7497 2011-11-08  Bruno Haible  <bruno@clisp.org>
7498
7499         fstatat: Remove unused dependency.
7500         * modules/fstatat (Depends-on): Remove fstat.
7501
7502 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7503
7504         GNUmakefile: behave when Makefile is missing.
7505         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7506
7507 2011-11-08  Bruno Haible  <bruno@clisp.org>
7508
7509         openat: Conditionalize dependencies.
7510         * lib/openat.c: Reduce the scope of some #includes.
7511         * modules/openat (Depends-on): Add conditions.
7512
7513 2011-11-07  Jim Meyering  <meyering@redhat.com>
7514
7515         maint.mk: extract GPG key ID without using a temporary file
7516         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7517         without using a temporary file.  Based on a suggestion from Werner Koch
7518         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7519
7520 2011-11-07  Eric Blake  <eblake@redhat.com>
7521
7522         grantpt: fix typo
7523         * lib/stdlib.in.h (grantpt): Check correct function.
7524
7525         maint.mk: silence new syntax check
7526         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7527
7528 2011-11-06  Bruno Haible  <bruno@clisp.org>
7529
7530         Doc about floating-point and math API.
7531         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7532         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7533
7534 2011-11-06  Bruno Haible  <bruno@clisp.org>
7535
7536         stdalign tests: Skip the test when compiled by Sun C.
7537         * tests/test-stdalign.c (main): Skip the test on Sun C.
7538
7539 2011-11-06  Bruno Haible  <bruno@clisp.org>
7540
7541         ansi-c++-opt: Complete the 2011-06-05 change.
7542         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7543         does not support namespaces, set the variable to "no", not to ":".
7544
7545 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7546
7547         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7548
7549 2011-11-06  Bruno Haible  <bruno@clisp.org>
7550
7551         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7552         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7553         (minus_zerol) [HP-UX]: New macro.
7554         (unary_minus) [HP-UX]: New function.
7555         (copysignl) [HP-UX]: Use unary_minus function.
7556
7557 2011-11-06  Bruno Haible  <bruno@clisp.org>
7558
7559         ldexp, ldexpf, ldexpl: Enhance tests.
7560         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7561         and tests/test-ldexpl.c.
7562         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7563         LDEXP, MIN_EXP, MAX_EXP): New macros.
7564         Include test-ldexp.h.
7565         (main): Just call test_function.
7566         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7567         infinity.h, nan.h.
7568         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7569         MAX_EXP): New macros.
7570         Include test-ldexp.h.
7571         (x, y): Remove variables.
7572         (main): Just call test_function.
7573         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7574         infinity.h, nan.h.
7575         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7576         MAX_EXP): New macros.
7577         Include test-ldexp.h.
7578         (x, y): Remove variables.
7579         (main): Just call test_function.
7580         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7581         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7582         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7583         (Depends-on): Add isnand-nolibm, signbit, float.
7584         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7585         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7586         (Depends-on): Add isnanf-nolibm, signbit, float.
7587
7588 2011-11-06  Bruno Haible  <bruno@clisp.org>
7589
7590         math tests: Cosmetics.
7591         * tests/test-math-c++.cc: Reorder declarations.
7592
7593 2011-11-05  Bruno Haible  <bruno@clisp.org>
7594
7595         fma*: Simplify test.
7596         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7597         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7598
7599         Tests for module 'fmal'.
7600         * modules/fmal-tests: New file.
7601         * tests/test-fmal1.c: New file.
7602         * tests/test-fmal2.c: New file.
7603
7604         New module 'fmal'.
7605         * lib/math.in.h (fmal): New declaration.
7606         * lib/fmal.c: New file.
7607         * m4/fmal.m4: New file.
7608         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7610         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7611         REPLACE_FMAL.
7612         * modules/fmal: New file.
7613         * doc/posix-functions/fmal.texi: Mention the new module and the various
7614         bugs.
7615
7616         Tests for module 'fmaf'.
7617         * modules/fmaf-tests: New file.
7618         * tests/test-fmaf1.c: New file.
7619         * tests/test-fmaf2.c: New file.
7620
7621         New module 'fmaf'.
7622         * lib/math.in.h (fmaf): New declaration.
7623         * lib/fmaf.c: New file.
7624         * m4/fmaf.m4: New file.
7625         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7627         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7628         REPLACE_FMAF.
7629         * modules/fmaf: New file.
7630         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7631         bugs.
7632
7633         Tests for module 'fma'.
7634         * modules/fma-tests: New file.
7635         * tests/test-fma1.c: New file.
7636         * tests/test-fma1.h: New file.
7637         * tests/test-fma2.c: New file.
7638         * tests/test-fma2.h: New file.
7639
7640         New module 'fma'.
7641         * lib/math.in.h (fma): New declaration.
7642         * lib/fma.c: New file.
7643         * m4/fma.m4: New file.
7644         * m4/fegetround.m4: New file.
7645         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7647         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7648         REPLACE_FMA.
7649         * modules/fma: New file.
7650         * doc/posix-functions/fma.texi: Mention the new module and the various
7651         bugs.
7652
7653         Extend gl_MATHFUNC.
7654         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7655         Support 'void' as argument type.
7656         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7657
7658 2011-11-05  Jim Meyering  <meyering@redhat.com>
7659
7660         maint.mk: also prohibit inclusion of dirent.h without use
7661         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7662
7663 2011-11-05  Bruno Haible  <bruno@clisp.org>
7664
7665         ldexpl tests: Avoid test failure on MSVC 9.
7666         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7667         value. Needed in order to enforce the conversion from a value greater
7668         than LDBL_MAX to Infinity.
7669
7670 2011-11-05  Bruno Haible  <bruno@clisp.org>
7671
7672         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7673         * modules/at-internal: New file, extracted from modules/openat.
7674         * modules/openat-h: New file.
7675         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7676         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7677         * modules/openat (Description): Add reference to POSIX function.
7678         (Files): Remove lib/openat.h, lib/openat-proc.c.
7679         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7680         intprops, unistd.
7681         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7682         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7683         gl_FCNTL_MODULE_INDICATOR.
7684         (Include): Remove unistd.h, openat.h.
7685         * modules/areadlinkat (Files): Add lib/at-func.c.
7686         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7687         openat-die, openat-h, save-cwd.
7688         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7689         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7690         openat-die, openat-h, save-cwd, unistd.
7691         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7693         openat-h, save-cwd. Remove fcntl-h, openat.
7694         * modules/fchmodat (Files): Remove lib/openat.h.
7695         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7696         openat, stdbool, unistd.
7697         * modules/fchownat (Files): Remove lib/openat.h.
7698         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7699         openat, stdbool, sys_stat.
7700         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7701         lib/openat-proc.c.
7702         (Depends-on): Add at-internal.
7703         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7704         * modules/fstatat (Files): Remove lib/openat.h.
7705         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7706         stdbool, unistd.
7707         * modules/fts (Depends-on): Add openat-h.
7708         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7709         openat.
7710         * modules/mkdirat (Files): Remove lib/openat.h.
7711         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7712         openat, stdbool, sys_stat.
7713         * modules/mkfifoat (Files): Add lib/at-func.c.
7714         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7715         openat-h, save-cwd. Remove fcntl-h, openat.
7716         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7717         * modules/readlinkat (Files): Add lib/at-func.c.
7718         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7719         openat-h, save-cwd. Remove fcntl-h, openat.
7720         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7721         openat.
7722         * modules/selinux-at (Files): Add lib/at-func.c.
7723         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7724         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7725         * modules/symlinkat (Files): Add lib/at-func.c.
7726         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7727         openat-h, save-cwd. Remove fcntl-h, openat.
7728         * modules/unlinkat (Files): Remove lib/openat.h.
7729         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7730         stdbool.
7731         * modules/utimensat (Files): Add lib/at-func.c.
7732         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7733         openat-die, openat-h, save-cwd.
7734         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7735         * modules/fdutimensat-tests (Depends-on): Add openat.
7736         * modules/fstatat-tests (Depends-on): Add openat-h.
7737         * modules/readlinkat-tests (Depends-on): Add openat.
7738         * modules/symlinkat-tests (Depends-on): Add openat.
7739
7740 2011-11-05  Bruno Haible  <bruno@clisp.org>
7741
7742         openat: Include <stdbool.h>.
7743         * lib/openat.c: Include <stdbool.h>.
7744
7745 2011-11-04  Bruno Haible  <bruno@clisp.org>
7746
7747         fchownat, renameat, unlinkat: Fix dependencies.
7748         * modules/fchownat (Depends-on): Add fstatat.
7749         * modules/renameat (Depends-on): Likewise.
7750         * modules/unlinkat (Depends-on): Likewise.
7751
7752 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7753
7754         openat: remove direct dependency on dirent
7755         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7756         and hasn't been needed ever since fdopendir was split into its own
7757         module on 2009-08-31.
7758         * modules/openat (Depends-on): Remove dirent.
7759
7760 2011-11-04  Bruno Haible  <bruno@clisp.org>
7761
7762         renameat: Optimize code size.
7763         * modules/renameat (configure.ac): Don't compile at-func2.c if
7764         REPLACE_RENAMEAT is 1.
7765
7766 2011-11-04  Bruno Haible  <bruno@clisp.org>
7767
7768         openat tests: Fix file list.
7769         * modules/openat-tests (Files): Add tests/test-open.h.
7770
7771 2011-11-04  Bruno Haible  <bruno@clisp.org>
7772
7773         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7774         * modules/fchmodat (Depends-on): Add openat-die.
7775         * modules/fchownat (Depends-on): Likewise.
7776         * modules/linkat (Depends-on): Likewise.
7777         * modules/renameat (Depends-on): Likewise.
7778         * modules/openat (Depends-on): Add dirent.
7779
7780 2011-11-04  Jim Meyering  <meyering@redhat.com>
7781
7782         at-func*.c: fix comments
7783         * lib/at-func2.c: Correct/improve first-line comment.
7784         * lib/at-func.c: Correct grammar in first-line comment.
7785
7786 2011-11-04  Bruno Haible  <bruno@clisp.org>
7787
7788         New module 'mkdirat', split off from module 'openat'.
7789         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7790         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7791         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7792         * modules/mkdirat: New file, extracted from modules/openat.
7793         * modules/openat (Files): Remove lib/mkdirat.c.
7794         (Depends-on): Remove mkdir.
7795         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7796         (Include): Remove <sys/stat.h>.
7797         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7798         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7799         tests/test-mkdir.h.
7800         (Depends-on): Remove ignore-value.
7801         (Makefile.am): Remove rules for test-mkdirat.
7802         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7803         of module 'openat'.
7804         * NEWS: Mention the change.
7805
7806 2011-11-04  Bruno Haible  <bruno@clisp.org>
7807
7808         closedir: Avoid warning on mingw.
7809         * lib/closedir.c: Include <unistd.h>.
7810
7811 2011-11-04  Bruno Haible  <bruno@clisp.org>
7812
7813         New module 'fstatat', split off from module 'openat'.
7814         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7815         defined.
7816         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7817         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7818         gl_FUNC_FSTATAT.
7819         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7820         * modules/fstatat: New file, extracted from modules/openat.
7821         * modules/openat (Files): Remove lib/fstatat.c.
7822         (Depends-on): Remove lstat.
7823         (configure.ac): Remove AC_LIBOBJ of fstatat.
7824         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7825         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7826         tests/test-lstat.h, tests/test-stat.h.
7827         (Depends-on): Remove getcwd-lgpl.
7828         (Makefile.am): Remove rules for test-fstatat.
7829         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7830         of module 'openat'.
7831         * NEWS: Mention the change.
7832         * modules/getcwd (Depends-on): Add fstatat.
7833         * modules/linkat (Depends-on): Likewise.
7834         * modules/mkfifoat-tests (Depends-on): Likewise.
7835         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7836
7837 2011-11-03  Bruno Haible  <bruno@clisp.org>
7838
7839         New module 'unlinkat', split off from module 'openat'.
7840         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7841         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7842         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7843         * modules/unlinkat: New file, extracted from modules/openat. Correct
7844         the dependency conditions.
7845         * modules/openat (Files): Remove lib/unlinkat.c.
7846         (Depends-on): Remove rmdir, unlink.
7847         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7848         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7849         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7850         tests/test-rmdir.h, tests/test-unlink.h.
7851         (Depends-on): Remove unlinkdir.
7852         (Makefile.am): Remove rules for test-unlinkat.
7853         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7854         of module 'openat'.
7855         * NEWS: Mention the change.
7856         * modules/linkat-tests (Depends-on): Add unlinkat.
7857         * modules/mkfifoat-tests (Depends-on): Likewise.
7858         * modules/readlinkat-tests (Depends-on): Likewise.
7859
7860 2011-11-02  Bruno Haible  <bruno@clisp.org>
7861
7862         New module 'fchmodat', split off from module 'openat'.
7863         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7864         defined.
7865         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7866         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7867         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7868         * modules/fchmodat: New file, extracted from modules/openat.
7869         * modules/openat (Files): Remove lib/fchmodat.c.
7870         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7871         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7872         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7873         (Makefile.am): Remove rules for test-fchmodat.
7874         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7875         of module 'openat'.
7876         * NEWS: Mention the change.
7877
7878 2011-11-02  Jim Meyering  <meyering@redhat.com>
7879
7880         putenv: indent #definition of "environ" to placate cppi
7881         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7882
7883         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7884         Git logs are often treated as immutable, because editing them
7885         changes the SHA1 checksums of all descendants.  Thus, errors in
7886         git logs tend to stay there forever.  However, when we generate
7887         a ChangeLog file -- typically for distribution -- from that git log,
7888         we can actually make corrections in the generated file.  The key
7889         lies in recording in machine-readable/applicable form the desired
7890         corrections.  See --help for description and an example.
7891         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7892         (usage): Describe it; alphabetize option descriptions.
7893         (main): Honor the new option, carefully.
7894
7895 2011-11-01  Jim Meyering  <meyering@redhat.com>
7896
7897         gitlog-to-changelog: avoid an infloop
7898         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7899         that ends up being empty.
7900
7901 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7902
7903         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7904         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7905         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7906         contains (possibly-quoted) backslashes.  This should avoid
7907         all-too-common shell bugs if COMPLICATED contains backslashes in
7908         the "wrong" places.  Reported by David Evans in
7909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7910         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7911         because we want ASCII ranges.  Is there some reason we don't use
7912         the C locale everywhere in this script?
7913         (func_module, top level): Avoid unwanted pathname expansion when
7914         $repo_url_prefix or $repo_url_suffix_repl contain shell
7915         metacharacters like '?' and '*'.
7916
7917 2011-11-01  Bruno Haible  <bruno@clisp.org>
7918
7919         fchownat: Improve description.
7920         * modules/fchownat (Description): Add link to function.
7921
7922 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7923
7924         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7925         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7927         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7928
7929 2011-11-01  Bruno Haible  <bruno@clisp.org>
7930
7931         alignof: Avoid collision with stdalign module.
7932         * lib/alignof.h (alignof): Remove macro.
7933         * NEWS: Mention the change.
7934         Reported by Paul Eggert.
7935
7936 2011-11-01  Bruno Haible  <bruno@clisp.org>
7937
7938         New module 'fchownat', split off from module 'openat'.
7939         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7940         defined.
7941         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7942         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7943         invoke gl_FUNC_FCHOWNAT.
7944         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7945         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7946         * modules/fchownat: New file, extracted from modules/openat.
7947         * modules/openat (Files): Remove lib/fchownat.c.
7948         (Depends-on): Remove lchown.
7949         (configure.ac): Remove AC_LIBOBJ of fchownat.
7950         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7951         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7952         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7953         (Depends-on): Remove mgetgroups, usleep, stat-time.
7954         (configure.ac): Remove test for getegid.
7955         (Makefile.am): Remove rules for test-fchownat.
7956         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7957         of module 'openat'.
7958         * NEWS: Mention the change.
7959
7960 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         stdalign: port better to MSVC and to Sun C 5.11
7963         This fixes some of the problems reported by Bruno Haible in
7964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7965         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7966         shortcomings of MSVC and of Sun C 5.11.
7967         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7968         around __declspec arg.
7969         * modules/stdalign-tests (Files): Add tests/macros.h.
7970         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7971         Include macros.h, for ASSERT.
7972         (DECLARE_ALIGNED): Remove.
7973         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7974         to catch bug), and to 1 if not (simplifies the rest of the code).
7975         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7976         (CHECK_AUTO): Remove.
7977         (CHECK_ALIGNED): Check only the alignment of the static vars,
7978         since auto var alignment isn't supported by Sun C 5.11.
7979         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7980         ASSERT failures are easier to diagnose.
7981
7982 2011-10-31  Bruno Haible  <bruno@clisp.org>
7983
7984         doc about some IRIX 5.3 problems.
7985         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7986         on IRIX 5.3.
7987         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7988         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7989         5.3.
7990         * doc/posix-functions/grantpt.texi: Likewise.
7991         * doc/posix-functions/unlockpt.texi: Likewise.
7992         * doc/posix-functions/lgamma.texi: Likewise.
7993         * doc/posix-functions/nextafter.texi: Likewise.
7994         * doc/posix-functions/remainder.texi: Likewise.
7995         * doc/posix-functions/select.texi: Mention misplaced declaration on
7996         IRIX 5.3.
7997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7998
7999 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8000
8001         gitlog-to-changelog: fix git-log invocation.
8002         git-log mishandles date strings before 1970-01-01 UTC, and there is
8003         no use to specify --since=1970-01-01 by default anyway.
8004         * build-aux/gitlog-to-changelog: By default, when no --since option
8005         was given, do not specify explicit --since option to git-log.
8006
8007 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8008
8009         gitlog-to-changelog: new option --append-dot.
8010         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8011         first non-blank line of each commit message terminated with a dot.
8012
8013 2011-10-30  Bruno Haible  <bruno@clisp.org>
8014
8015         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8016         * lib/ffsl.h: Include <config.h>.
8017         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8018
8019 2011-10-30  Jim Meyering  <meyering@redhat.com>
8020
8021         GNUmakefile: reenable "make syntax-check" for most projects
8022         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8023         build-aux variable", "syntax-check" would do nothing but succeed with
8024         the "No version control files detected..." diagnostic (unless you
8025         happened to override _build-aux via cfg.mk).
8026         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8027         to precede inclusion of maint.mk.  Otherwise, these variables would
8028         be used undefined in any project that does not override the default.
8029
8030 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8031
8032         gitlog-to-changelog: treat a message with only blank lines as empty.
8033         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8034         trailing blank lines before the code that issues a warning about an
8035         empty commit message.
8036
8037 2011-10-30  Jim Meyering  <meyering@redhat.com>
8038
8039         test-parse-datetime.c: avoid new DST-related false positive test failure
8040         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8041         based on the time/date we'll convert, not the current time.
8042         Otherwise, the moment we cross a DST boundary like today's in
8043         Europe, (CEST to CET), that offset ends up being one hour off.
8044
8045 2011-10-27  Bruno Haible  <bruno@clisp.org>
8046
8047         fstat: Tweak documentation.
8048         * modules/fstat (Description): More precise description.
8049
8050 2011-10-27  Bruno Haible  <bruno@clisp.org>
8051
8052         Update documentation regarding 'largefile' module.
8053         * doc/posix-functions/fstat.texi: Tweak wording.
8054         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8055         problems with huge directories and/or small ino_t types.
8056         * doc/posix-functions/readdir.texi: Likewise.
8057         * doc/posix-functions/rewinddir.texi: Likewise.
8058
8059 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8060
8061         maint.mk: don't maintain a second build-aux variable.
8062         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8063         depends on GNUmakefile, which already maintains a cfg.mk
8064         overridable $(_build-aux) for projects with a non-standard
8065         build-aux directory location, although without the $(srcdir)
8066         prefix.  Use that variable consistently instead of introducing a
8067         second one.  Adjust all call sites.
8068
8069 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         Add stdalign module and use it in other modules.
8072         This is based on a previous proposal by Bruno Haible
8073         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8074
8075         stdalign: new module
8076         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8077         * modules/stdalign: New files.
8078         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8079         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8080
8081         stdalign-tests: new module
8082         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8083
8084         argp: use stdalign
8085         * lib/argp-parse.c: Include <stdalign.h>.
8086         (alignof): Remove.
8087         * modules/argp (Depends-on): Add stdalign.
8088
8089         crypto libraries: use stdalign
8090         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8091         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8092         Do not include <stdlib.h> twice, in md4.c.
8093         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8094         because we are accessing a pointer's bit-pattern, not a size.
8095         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8096         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8097         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8098         * modules/crypto/sha512: Likewise.
8099
8100         sys_socket: use stdalign, not alignof
8101         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8102         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8103
8104 2011-10-27  Bruno Haible  <bruno@clisp.org>
8105
8106         raise test: Avoid a test failure on Linux/MIPS.
8107         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8108         because 99 is a valid signal on Linux/MIPS.
8109
8110 2011-10-27  Bruno Haible  <bruno@clisp.org>
8111
8112         nonblocking tests: Fix test failure on Linux/MIPS.
8113         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8114         Set to 270000.
8115
8116 2011-10-27  Bruno Haible  <bruno@clisp.org>
8117
8118         utimensat: Work around problem on Linux/hppa.
8119         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8120         values.
8121         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8122
8123 2011-10-25  Jim Meyering  <meyering@redhat.com>
8124
8125         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8126         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8127         after symbols like NULL, size_t, etc.
8128         Reported by Alfred M. Szmidt.
8129
8130         maint.mk: exempt ENODATA from a syntax-check rule
8131         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8132         from the sc_prohibit_always-defined_macros syntax-check rule.
8133         Add a comment.  See this for more details:
8134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8135
8136 2011-10-23  Jim Meyering  <meyering@redhat.com>
8137
8138         fts: close parent dir FD before returning from post-traversal fts_read
8139         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8140         unlink A, even though an FD open on A remained.  This is suboptimal
8141         (holding a file descriptor open longer than needed), but otherwise not
8142         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8143         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8144         that represents a real problem: it causes the removal of A to fail
8145         with e.g., "rm: cannot remove `A': Device or resource busy"
8146
8147         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8148         directory file descriptors.  After completing the final, FTS_DP,
8149         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8150         cache, but then proceeded to add a new FD to it via the subsequent
8151         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8152         final file descriptor would be closed only via fts_close's call to
8153         fd_ring_clear.  Now, it is usually closed earlier, via the final
8154         FTS_DP-returning fts_read call.
8155         * lib/fts.c (restore_initial_cwd): New function, converted from
8156         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8157         Update callers.
8158         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8159         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8160
8161 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8162             Bruno Haible  <bruno@clisp.org>
8163             Jim Meyering  <jim@meyering.net>
8164
8165         readme-release: improve safety of release prep instructions.
8166         * README-release: Don't git pull all branches when only master
8167         is needed for the release process.
8168         Run make maintainer-clean before changing trees and merging.
8169         Don't try to run ./configure right after git pull in case files
8170         that influence the bootstrap process have changed, move the
8171         ./configure step to after running ./bootstrap.
8172         Don't bootstrap "one last time"... it's the first time!
8173
8174 2011-10-22  Bruno Haible  <bruno@clisp.org>
8175
8176         errno, strerror-override: Support for MSVC 10.
8177         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8178         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8179         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8180         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8181         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8182         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8183         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8184         Assign values compatible with MSVC 10.
8185         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8186         New macros.
8187         (GNULIB_defined_EWINSOCK): New macro.
8188         * lib/strerror-override.c (strerror_override): Update accordingly.
8189         * lib/strerror-override.h: Likewise.
8190         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8191         longer equal to the corresponding errno value.
8192         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8193
8194 2011-10-22  Bruno Haible  <bruno@clisp.org>
8195
8196         perror: Recognize when test program crashes.
8197         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8198         strerror, set gl_cv_func_perror_works to no.
8199         Reported by Daniel Richard G. <skunk@iskunk.org>.
8200
8201         perror: Fix indentation.
8202         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8203
8204 2011-10-22  Bruno Haible  <bruno@clisp.org>
8205
8206         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8207         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8208         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8209         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8210         functions, not as a macro.
8211         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8212         macros.
8213         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8214         absence of macro.
8215         Suggested by Eric Blake.
8216         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8217
8218 2011-10-21  Bruno Haible  <bruno@clisp.org>
8219
8220         relocatable-prog-wrapper: Don't leave object files behind.
8221         * build-aux/install-reloc: Re-synchronize list of .o files to be
8222         removed with list of compilation units.
8223
8224 2011-10-20  Bruno Haible  <bruno@clisp.org>
8225
8226         openpty, posix_openpt: Remove code duplication.
8227         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8228         * lib/openpty.c: Include <stdlib.h>.
8229         (openpty): Use posix_openpt on all platforms except IRIX.
8230         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8231
8232 2011-10-20  Bruno Haible  <bruno@clisp.org>
8233
8234         unlockpt: Detect invalid argument.
8235         * lib/unlockpt.c: Include <fcntl.h>.
8236         (unlockpt): Check whether fd is valid, using fcntl().
8237         * modules/unlockpt (Depends-on): Add fcntl-h.
8238
8239 2011-10-20  Bruno Haible  <bruno@clisp.org>
8240
8241         openpty: Avoid compilation error on AIX 6.1.
8242         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8243
8244 2011-10-20  Bruno Haible  <bruno@clisp.org>
8245
8246         posix_openpt: Support for OpenBSD.
8247         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8248         (posix_openpt) [OpenBSD]: New code.
8249         * lib/grantpt.c: Include <fcntl.h>.
8250         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8251         * modules/grantpt (Depends-on): Add fcntl-h.
8252
8253 2011-10-20  Bruno Haible  <bruno@clisp.org>
8254
8255         posix_openpt test: Coding style.
8256         * tests/test-posix_openpt.c: Use GNU coding style.
8257
8258 2011-10-20  Bruno Haible  <bruno@clisp.org>
8259
8260         grantpt: Support --avoid=pt_chown.
8261         * modules/grantpt (Files): Add lib/pty-private.h.
8262
8263 2011-10-20  Bruno Haible  <bruno@clisp.org>
8264
8265         posix_openpt: Fix autoconf macro.
8266         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8267         unneeded check for _getpty.
8268
8269 2011-10-20  Bruno Haible  <bruno@clisp.org>
8270
8271         openpty: Update comments.
8272         * lib/openpty.c: Add comments about Minix.
8273
8274 2011-10-19  Eric Blake  <eblake@redhat.com>
8275
8276         openpty: relax license
8277         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8278
8279         pt_chown: use configmake to simplify build
8280         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8281
8282         ptsname and others: relax license
8283         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8284         * modules/unlockpt (License): Likewise.
8285         * modules/pt_chown (License): Likewise.
8286         * modules/ptsname (License): Likewise.
8287         * modules/ttyname_r (License): Likewise.
8288
8289 2011-10-19  Jim Meyering  <meyering@redhat.com>
8290
8291         posix_openpt: remove spurious #endif
8292         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8293
8294 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8295
8296         maint.mk: Respect $(build_aux) in web-manual rule.
8297         * top/maint.mk (web-manual): Find gen-announce script in user's
8298         $(build_aux) directory instead of hard-coding 'build-aux'.
8299
8300 2011-10-19  Bruno Haible  <bruno@clisp.org>
8301
8302         posix_openpt: Fix compilation error.
8303         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8304         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8305         Mention the openpty module as an alternative.
8306
8307 2011-10-19  Bruno Haible  <bruno@clisp.org>
8308
8309         Support for old NeXTstep 3.3 frexp().
8310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8311         execution time of the test to 5 seconds.
8312         Reported by Daniel Richard G. <skunk@iskunk.org>.
8313
8314 2011-10-19  Bruno Haible  <bruno@clisp.org>
8315
8316         Support for old NeXTstep 3.3 sed.
8317         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8318         part, use /.../, not \|...|. Escape periods in the header file name.
8319         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8320         Reported by Daniel Richard G. <skunk@iskunk.org>.
8321
8322 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8323
8324         Support for old NeXTstep 3.3 gcc.
8325         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8326         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8327         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8328         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8329         * lib/regex.h (_Restrict_arr_): Likewise.
8330         * lib/regex_internal.h (re_token_t): Likewise.
8331         * lib/regexec.c (check_node_accept_bytes): Likewise.
8332         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8333
8334 2011-10-18  Eric Blake  <eblake@redhat.com>
8335
8336         posix_openpt: new module
8337         * modules/posix_openpt: New module.
8338         * m4/posix_openpt.m4: New file.
8339         * lib/posix_openpt.c: Likewise.
8340         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8341         (gl_STDLIB_H_DEFAULTS): Set defaults.
8342         * modules/stdlib (Makefile.am): Substitute macros.
8343         * lib/stdlib.in.h (posix_openpt): Declare.
8344         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8345         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8346         * modules/posix_openpt-tests: New test module.
8347         * tests/test-posix_openpt.c: New test.
8348
8349 2011-10-15  Bruno Haible  <bruno@clisp.org>
8350
8351         xstrtoll: Fix compilation failure.
8352         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8353         from lib/strtol.c.
8354         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8355         some platforms.
8356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8357
8358 2011-10-15  Bruno Haible  <bruno@clisp.org>
8359
8360         vasnprintf: Optimize bit search operation.
8361         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8363         gl_DOUBLE_EXPONENT_LOCATION.
8364         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8365         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8366         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8367         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8368         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8369         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8370         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8371         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8372         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8373
8374 2011-10-15  Bruno Haible  <bruno@clisp.org>
8375
8376         vasnprintf: Fix comments.
8377         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8378
8379 2011-10-14  Bruno Haible  <bruno@clisp.org>
8380
8381         Tests for module 'integer_length_ll'.
8382         * modules/integer_length_ll-tests: New file.
8383         * tests/test-integer_length_ll.c: New file.
8384
8385         New module 'integer_length_ll'.
8386         * lib/integer_length_ll.c: New file.
8387         * modules/integer_length_ll: New file.
8388
8389 2011-10-14  Bruno Haible  <bruno@clisp.org>
8390
8391         Tests for module 'integer_length_l'.
8392         * modules/integer_length_l-tests: New file.
8393         * tests/test-integer_length_l.c: New file.
8394
8395         New module 'integer_length_l'.
8396         * lib/integer_length_l.c: New file.
8397         * modules/integer_length_l: New file.
8398
8399 2011-10-14  Bruno Haible  <bruno@clisp.org>
8400
8401         Tests for module 'integer_length'.
8402         * modules/integer_length-tests: New file.
8403         * tests/test-integer_length.c: New file.
8404
8405         New module 'integer_length'.
8406         * lib/integer_length.h: New file.
8407         * lib/integer_length.c: New file.
8408         * modules/integer_length: New file.
8409
8410 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8411
8412         popen: Fix dependency conditions.
8413         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8414
8415 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8416
8417         perror: Fix autoconf test.
8418         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8419         <stdlib.h> and <string.h>.
8420
8421 2011-10-14  Bruno Haible  <bruno@clisp.org>
8422
8423         ffsl: Optimize on 64-bit platforms.
8424         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8425         unrolling.
8426
8427 2011-10-13  Bruno Haible  <bruno@clisp.org>
8428
8429         ffsl: Optimize on 32-bit platforms.
8430         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8431         use ffs() without a loop.
8432
8433         ffsl, ffsll: Optimize for GCC.
8434         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8435         * lib/ffsl.c (GCC_BUILTIN): New macro.
8436         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8437
8438 2011-10-13  Bruno Haible  <bruno@clisp.org>
8439
8440         ffs, bcopy, memset: Support symbol renaming via config.h.
8441         * lib/ffs.c: Include <config.h>.
8442         * lib/bcopy.c: Likewise.
8443         * lib/memset.c: Likewise.
8444
8445 2011-10-10  Bruno Haible  <bruno@clisp.org>
8446
8447         atanl: Simplify for platforms where 'long double' == 'double'.
8448         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8449         alternative implementation.
8450         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8451         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8452         * modules/atanl (Depends-on): Add atan. Update conditions.
8453
8454 2011-10-10  Bruno Haible  <bruno@clisp.org>
8455
8456         acosl: Simplify for platforms where 'long double' == 'double'.
8457         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8458         alternative implementation.
8459         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8460         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8461         * modules/acosl (Depends-on): Add acos. Update conditions.
8462
8463 2011-10-10  Bruno Haible  <bruno@clisp.org>
8464
8465         asinl: Simplify for platforms where 'long double' == 'double'.
8466         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8467         alternative implementation.
8468         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8469         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8470         * modules/asinl (Depends-on): Add asin. Update conditions.
8471
8472 2011-10-10  Bruno Haible  <bruno@clisp.org>
8473
8474         tanl: Simplify for platforms where 'long double' == 'double'.
8475         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8476         implementation.
8477         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8478         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8479         * modules/tanl (Depends-on): Add tan. Update conditions.
8480         (configure.ac): Don't compile trigl.c if
8481         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8482
8483 2011-10-10  Bruno Haible  <bruno@clisp.org>
8484
8485         cosl: Simplify for platforms where 'long double' == 'double'.
8486         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8487         implementation.
8488         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8489         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8490         * modules/cosl (Depends-on): Add cos. Update conditions.
8491         (configure.ac): Don't compile sincosl.c and trigl.c if
8492         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8493
8494 2011-10-10  Bruno Haible  <bruno@clisp.org>
8495
8496         sinl: Simplify for platforms where 'long double' == 'double'.
8497         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8498         implementation.
8499         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8500         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8501         * modules/sinl (Depends-on): Add sin. Update conditions.
8502         (configure.ac): Don't compile sincosl.c and trigl.c if
8503         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8504
8505 2011-10-10  Bruno Haible  <bruno@clisp.org>
8506
8507         logl: Simplify for platforms where 'long double' == 'double'.
8508         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8509         implementation.
8510         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8511         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8512         * modules/logl (Depends-on): Add log. Update conditions.
8513
8514 2011-10-10  Bruno Haible  <bruno@clisp.org>
8515
8516         expl: Simplify for platforms where 'long double' == 'double'.
8517         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8518         implementation.
8519         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8520         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8521         * modules/expl (Depends-on): Add exp. Update conditions.
8522
8523 2011-10-10  Bruno Haible  <bruno@clisp.org>
8524
8525         sqrtl: Simplify for platforms where 'long double' == 'double'.
8526         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8527         alternative implementation.
8528         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8529         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8530         * modules/sqrtl (Depends-on): Update conditions.
8531
8532 2011-10-10  Bruno Haible  <bruno@clisp.org>
8533
8534         ldexpl: Simplify for platforms where 'long double' == 'double'.
8535         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8536         alternative implementation.
8537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8538         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8539         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8540
8541 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8542
8543         ffsll: set correct witness
8544         * modules/ffsll (configure.ac): Fix typo.
8545
8546 2011-10-10  Bruno Haible  <bruno@clisp.org>
8547
8548         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8549         * lib/printf-frexpl.c: Include <config.h>.
8550         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8551         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8552         second time.
8553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8554         gl_LONG_DOUBLE_VS_DOUBLE.
8555         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8556         conditions.
8557
8558 2011-10-10  Bruno Haible  <bruno@clisp.org>
8559
8560         frexpl: Simplify for platforms where 'long double' == 'double'.
8561         * lib/frexpl.c: Include <config.h>.
8562         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8563         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8564         time.
8565         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8566         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8567         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8568         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8569         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8570         conditions.
8571
8572 2011-10-10  Jim Meyering  <meyering@redhat.com>
8573
8574         test-renameat: don't leave behind a temporary file
8575         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8576           ERROR: files left in build directory after distclean:
8577           ./gltests/test-renameat.too
8578           make[1]: *** [distcleancheck] Error 1
8579         Reported by Tom G. Christensen.
8580
8581 2011-10-09  Bruno Haible  <bruno@clisp.org>
8582
8583         rint: Determine RINT_LIBM correctly on AIX 7.
8584         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8585         directly, not only through a function pointer. Also accept an optional
8586         4th argument with extra code.
8587         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8588         rintf() call by gcc when optimizing.
8589
8590         mathfunc.m4: Refactor.
8591         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8592         m4 variable.
8593
8594 2011-10-09  Bruno Haible  <bruno@clisp.org>
8595
8596         rintl: Simplify for platforms where 'long double' == 'double'.
8597         * lib/rintl.c: Include <config.h>.
8598         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8599         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8600         time.
8601         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8602         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8603         * modules/rintl (Depends-on): Add rint. Update conditions.
8604
8605 2011-10-09  Bruno Haible  <bruno@clisp.org>
8606
8607         roundl: Simplify for platforms where 'long double' == 'double'.
8608         * lib/roundl.c: Include <config.h>.
8609         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8610         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8611         time.
8612         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8613         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8614         * modules/roundl (Depends-on): Add round. Update conditions.
8615
8616 2011-10-09  Bruno Haible  <bruno@clisp.org>
8617
8618         truncl: Simplify for platforms where 'long double' == 'double'.
8619         * lib/truncl.c: Include <config.h>.
8620         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8621         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8622         time.
8623         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8624         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8625         * modules/truncl (Depends-on): Add trunc. Update conditions.
8626
8627 2011-10-09  Bruno Haible  <bruno@clisp.org>
8628
8629         ceill: Simplify for platforms where 'long double' == 'double'.
8630         * lib/ceill.c: Include <config.h>.
8631         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8632         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8633         time.
8634         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8635         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8636         * modules/ceill (Depends-on): Add ceil. Update conditions.
8637
8638 2011-10-09  Bruno Haible  <bruno@clisp.org>
8639
8640         floorl: Simplify for platforms where 'long double' == 'double'.
8641         * lib/floorl.c: Include <config.h>.
8642         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8643         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8644         time.
8645         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8646         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8647         * modules/floorl (Depends-on): Add floor. Update conditions.
8648
8649 2011-10-09  Bruno Haible  <bruno@clisp.org>
8650
8651         rint: Fix ordering constraints.
8652         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8653         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8654         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8655
8656 2011-10-09  Bruno Haible  <bruno@clisp.org>
8657
8658         copysignl: Simplify for platforms where 'long double' == 'double'.
8659         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8660         alternative.
8661         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8662         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8663         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8664
8665 2011-10-09  Bruno Haible  <bruno@clisp.org>
8666
8667         Tests for module 'rintl'.
8668         * modules/rintl-tests: New file.
8669         * tests/test-rintl.c: New file.
8670
8671         New module 'rintl'.
8672         * lib/math.in.h (rintl): New declaration.
8673         * lib/rintl.c: New file.
8674         * m4/rintl.m4: New file.
8675         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8677         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8678         * modules/rintl: New file.
8679         * tests/test-math-c++.cc: Check the declaration of rintl.
8680         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8681         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8682         * doc/posix-functions/rintl.texi: Mention the new module.
8683
8684 2011-10-09  Bruno Haible  <bruno@clisp.org>
8685
8686         Tests for module 'rintf'.
8687         * modules/rintf-tests: New file.
8688         * tests/test-rintf.c: New file.
8689
8690         New module 'rintf'.
8691         * lib/math.in.h (rintf): New declaration.
8692         * lib/rintf.c: New file.
8693         * m4/rintf.m4: New file.
8694         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8696         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8697         * modules/rintf: New file.
8698         * tests/test-math-c++.cc: Check the declaration of rintf.
8699         * doc/posix-functions/rintf.texi: Mention the new module.
8700
8701 2011-10-09  Bruno Haible  <bruno@clisp.org>
8702
8703         rint: Support for MSVC.
8704         * lib/math.in.h (rint): New declaration.
8705         * lib/rint.c: New file.
8706         * m4/rint.m4: New file.
8707         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8709         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8710         * modules/rint (Description): Fix.
8711         (Files): Add lib/rint.c, m4/rint.m4.
8712         (Depends-on): Add math.
8713         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8714         gl_MATH_MODULE_INDICATOR.
8715         * tests/test-math-c++.cc: Check the declaration of rint.
8716         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8717         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8718         * doc/posix-functions/rint.texi: Mention the replacement provided by
8719         the module.
8720
8721         rint tests: More tests.
8722         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8723         minus-zero.h, infinity.h, nan.h.
8724         (main): Skip the test if the current rounding mode is not standard. Add
8725         tests for negative numbers, minus zero, infinity, NaN.
8726         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8727         tests/nan.h.
8728         (Depends-on): Add isnand-nolibm.
8729
8730 2011-10-09  Bruno Haible  <bruno@clisp.org>
8731
8732         Tests for module 'copysignl'.
8733         * modules/copysignl-tests: New file.
8734         * tests/test-copysignl.c: New file.
8735
8736         New module 'copysignl'.
8737         * lib/math.in.h (copysignl): New declaration.
8738         * lib/copysignl.c: New file.
8739         * m4/copysignl.m4: New file.
8740         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8742         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8743         HAVE_COPYSIGNL.
8744         * modules/copysignl: New file.
8745         * tests/test-math-c++.cc: Check the declaration of copysignl.
8746         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8747         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8748         * doc/posix-functions/copysignl.texi: Mention the new module.
8749
8750 2011-10-09  Bruno Haible  <bruno@clisp.org>
8751
8752         Tests for module 'copysignf'.
8753         * modules/copysignf-tests: New file.
8754         * tests/test-copysignf.c: New file.
8755
8756         New module 'copysignf'.
8757         * lib/math.in.h (copysignf): New declaration.
8758         * lib/copysignf.c: New file.
8759         * m4/copysignf.m4: New file.
8760         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8762         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8763         HAVE_COPYSIGNF.
8764         * modules/copysignf: New file.
8765         * tests/test-math-c++.cc: Check the declaration of copysignf.
8766         * doc/posix-functions/copysignf.texi: Mention the new module.
8767
8768 2011-10-09  Bruno Haible  <bruno@clisp.org>
8769
8770         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8771         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8772         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8773         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8774         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8775         gl_SIGNAL_H_DEFAULTS.
8776
8777 2011-10-09  Bruno Haible  <bruno@clisp.org>
8778
8779         poll: Make macro safer.
8780         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8781         ac_cv_header_poll_h is not set.
8782
8783 2011-10-09  Bruno Haible  <bruno@clisp.org>
8784
8785         copysign: Provide replacement.
8786         * lib/math.in.h (copysign): New declaration.
8787         * lib/copysign.c: New file.
8788         * m4/copysign.m4: New file.
8789         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8791         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8792         HAVE_COPYSIGN.
8793         * modules/copysign (Description): Clarify.
8794         (Files): Add lib/copysign.c, m4/copysign.m4.
8795         (Depends-on): Add math, signbit.
8796         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8797         gl_MATH_MODULE_INDICATOR.
8798         * tests/test-math-c++.cc: Check the declaration of copysign.
8799         * doc/posix-functions/copysign.texi: Mention the effects of the module
8800         on Minix and MSVC.
8801
8802 2011-10-09  Bruno Haible  <bruno@clisp.org>
8803
8804         isinf: Ensure macro on AIX 5.1.
8805         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8806         macro.
8807         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8808
8809 2011-10-09  Bruno Haible  <bruno@clisp.org>
8810
8811         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8812         * modules/snprintf-posix-tests (configure.ac): Require
8813         gl_LONG_DOUBLE_VS_DOUBLE.
8814         * modules/sprintf-posix-tests (configure.ac): Likewise.
8815         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8816         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8817         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8818         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8819         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8820         tests on platforms where 'long double' is the same as 'double'.
8821         * tests/test-sprintf-posix.h (test_function): Likewise.
8822         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8823         * tests/test-vasprintf-posix.c (test_function): Likewise.
8824
8825         *printf: Fix for platforms where 'long double' == 'double'.
8826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8827         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8828         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8829         * modules/fprintf-posix (Files): Likewise.
8830         * modules/obstack-printf-posix (Files): Likewise.
8831         * modules/snprintf-posix (Files): Likewise.
8832         * modules/sprintf-posix (Files): Likewise.
8833         * modules/vasnprintf (Files): Likewise.
8834         * modules/vasnprintf-posix (Files): Likewise.
8835         * modules/vasprintf-posix (Files): Likewise.
8836         * modules/vdprintf-posix (Files): Likewise.
8837         * modules/vfprintf-posix (Files): Likewise.
8838         * modules/vsnprintf-posix (Files): Likewise.
8839         * modules/vsprintf-posix (Files): Likewise.
8840         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8841         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8842         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8843         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8844         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8845         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8846         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8847
8848         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8849         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8850         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8851         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8852         'long double'.
8853         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8854
8855         isinf: Fix for platforms where 'long double' == 'double'.
8856         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8857         Don't blindly assume 80-bit 'long double'.
8858
8859         isfinite: Fix for platforms where 'long double' == 'double'.
8860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8861         Don't blindly assume 80-bit 'long double'.
8862
8863         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8864         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8865         * modules/isfinite-tests (configure.ac): Require
8866         gl_LONG_DOUBLE_VS_DOUBLE.
8867         * modules/isinf-tests (configure.ac): Likewise.
8868         * modules/isnan-tests (configure.ac): Likewise.
8869         * modules/isnanl-tests (configure.ac): Likewise.
8870         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8871         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8872         tests on platforms where 'long double' is the same as 'double'.
8873         * tests/test-isinf.c (test_isinfl): Likewise.
8874         * tests/test-isnan.c (test_long_double): Likewise.
8875         * tests/test-isnanl.h (main): Likewise.
8876
8877 2011-10-08  Bruno Haible  <bruno@clisp.org>
8878
8879         Tests for module 'tanhf'.
8880         * modules/tanhf-tests: New file.
8881         * tests/test-tanhf.c: New file.
8882
8883         New module 'tanhf'.
8884         * lib/math.in.h (tanhf): New declaration.
8885         * lib/tanhf.c: New file.
8886         * m4/tanhf.m4: New file.
8887         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8889         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8890         * modules/tanhf: New file.
8891         * tests/test-math-c++.cc: Check the declaration of tanhf.
8892         * doc/posix-functions/tanhf.texi: Mention the new module.
8893
8894         tanh: Use a .m4 file.
8895         * m4/tanh.m4: New file.
8896         * modules/tanh (Files): Add it.
8897         (configure.ac): Just invoke gl_FUNC_TANH.
8898
8899 2011-10-08  Bruno Haible  <bruno@clisp.org>
8900
8901         Tests for module 'coshf'.
8902         * modules/coshf-tests: New file.
8903         * tests/test-coshf.c: New file.
8904
8905         New module 'coshf'.
8906         * lib/math.in.h (coshf): New declaration.
8907         * lib/coshf.c: New file.
8908         * m4/coshf.m4: New file.
8909         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8911         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8912         * modules/coshf: New file.
8913         * tests/test-math-c++.cc: Check the declaration of coshf.
8914         * doc/posix-functions/coshf.texi: Mention the new module.
8915
8916         cosh: Use a .m4 file.
8917         * m4/cosh.m4: New file.
8918         * modules/cosh (Files): Add it.
8919         (configure.ac): Just invoke gl_FUNC_COSH.
8920
8921 2011-10-08  Bruno Haible  <bruno@clisp.org>
8922
8923         Tests for module 'sinhf'.
8924         * modules/sinhf-tests: New file.
8925         * tests/test-sinhf.c: New file.
8926
8927         New module 'sinhf'.
8928         * lib/math.in.h (sinhf): New declaration.
8929         * lib/sinhf.c: New file.
8930         * m4/sinhf.m4: New file.
8931         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8933         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8934         * modules/sinhf: New file.
8935         * tests/test-math-c++.cc: Check the declaration of sinhf.
8936         * doc/posix-functions/sinhf.texi: Mention the new module.
8937
8938         sinh: Use a .m4 file.
8939         * m4/sinh.m4: New file.
8940         * modules/sinh (Files): Add it.
8941         (configure.ac): Just invoke gl_FUNC_SINH.
8942
8943 2011-10-08  Bruno Haible  <bruno@clisp.org>
8944
8945         Tests for module 'atan2f'.
8946         * modules/atan2f-tests: New file.
8947         * tests/test-atan2f.c: New file.
8948
8949         New module 'atan2f'.
8950         * lib/math.in.h (atan2f): New declaration.
8951         * lib/atan2f.c: New file.
8952         * m4/atan2f.m4: New file.
8953         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8955         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8956         * modules/atan2f: New file.
8957         * tests/test-math-c++.cc: Check the declaration of atan2f.
8958         * doc/posix-functions/atan2f.texi: Mention the new module.
8959
8960         atan2: Use a .m4 file.
8961         * m4/atan2.m4: New file.
8962         * modules/atan2 (Files): Add it.
8963         (configure.ac): Just invoke gl_FUNC_ATAN2.
8964
8965 2011-10-08  Bruno Haible  <bruno@clisp.org>
8966
8967         Tests for module 'atanf'.
8968         * modules/atanf-tests: New file.
8969         * tests/test-atanf.c: New file.
8970
8971         New module 'atanf'.
8972         * lib/math.in.h (atanf): New declaration.
8973         * lib/atanf.c: New file.
8974         * m4/atanf.m4: New file.
8975         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8977         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8978         * modules/atanf: New file.
8979         * tests/test-math-c++.cc: Check the declaration of atanf.
8980         * doc/posix-functions/atanf.texi: Mention the new module.
8981
8982         atan: Use a .m4 file.
8983         * m4/atan.m4: New file.
8984         * modules/atan (Files): Add it.
8985         (configure.ac): Just invoke gl_FUNC_ATAN.
8986
8987 2011-10-08  Bruno Haible  <bruno@clisp.org>
8988
8989         Tests for module 'acosf'.
8990         * modules/acosf-tests: New file.
8991         * tests/test-acosf.c: New file.
8992
8993         New module 'acosf'.
8994         * lib/math.in.h (acosf): New declaration.
8995         * lib/acosf.c: New file.
8996         * m4/acosf.m4: New file.
8997         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8999         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9000         * modules/acosf: New file.
9001         * tests/test-math-c++.cc: Check the declaration of acosf.
9002         * doc/posix-functions/acosf.texi: Mention the new module.
9003
9004         acos: Use a .m4 file.
9005         * m4/acos.m4: New file.
9006         * modules/acos (Files): Add it.
9007         (configure.ac): Just invoke gl_FUNC_ACOS.
9008
9009 2011-10-08  Bruno Haible  <bruno@clisp.org>
9010
9011         Tests for module 'asinf'.
9012         * modules/asinf-tests: New file.
9013         * tests/test-asinf.c: New file.
9014
9015         New module 'asinf'.
9016         * lib/math.in.h (asinf): New declaration.
9017         * lib/asinf.c: New file.
9018         * m4/asinf.m4: New file.
9019         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9021         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9022         * modules/asinf: New file.
9023         * tests/test-math-c++.cc: Check the declaration of asinf.
9024         * doc/posix-functions/asinf.texi: Mention the new module.
9025
9026         asin: Use a .m4 file.
9027         * m4/asin.m4: New file.
9028         * modules/asin (Files): Add it.
9029         (configure.ac): Just invoke gl_FUNC_ASIN.
9030
9031 2011-10-08  Bruno Haible  <bruno@clisp.org>
9032
9033         Tests for module 'tanf'.
9034         * modules/tanf-tests: New file.
9035         * tests/test-tanf.c: New file.
9036
9037         New module 'tanf'.
9038         * lib/math.in.h (tanf): New declaration.
9039         * lib/tanf.c: New file.
9040         * m4/tanf.m4: New file.
9041         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9043         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9044         * modules/tanf: New file.
9045         * tests/test-math-c++.cc: Check the declaration of tanf.
9046         * doc/posix-functions/tanf.texi: Mention the new module.
9047
9048         tan: Use a .m4 file.
9049         * m4/tan.m4: New file.
9050         * modules/tan (Files): Add it.
9051         (configure.ac): Just invoke gl_FUNC_TAN.
9052
9053 2011-10-08  Bruno Haible  <bruno@clisp.org>
9054
9055         Tests for module 'cosf'.
9056         * modules/cosf-tests: New file.
9057         * tests/test-cosf.c: New file.
9058
9059         New module 'cosf'.
9060         * lib/math.in.h (cosf): New declaration.
9061         * lib/cosf.c: New file.
9062         * m4/cosf.m4: New file.
9063         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9065         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9066         * modules/cosf: New file.
9067         * tests/test-math-c++.cc: Check the declaration of cosf.
9068         * doc/posix-functions/cosf.texi: Mention the new module.
9069
9070         cos: Use a .m4 file.
9071         * m4/cos.m4: New file.
9072         * modules/cos (Files): Add it.
9073         (configure.ac): Just invoke gl_FUNC_COS.
9074
9075 2011-10-08  Bruno Haible  <bruno@clisp.org>
9076
9077         Tests for module 'sinf'.
9078         * modules/sinf-tests: New file.
9079         * tests/test-sinf.c: New file.
9080
9081         New module 'sinf'.
9082         * lib/math.in.h (sinf): New declaration.
9083         * lib/sinf.c: New file.
9084         * m4/sinf.m4: New file.
9085         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9087         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9088         * modules/sinf: New file.
9089         * tests/test-math-c++.cc: Check the declaration of sinf.
9090         * doc/posix-functions/sinf.texi: Mention the new module.
9091
9092         sin: Use a .m4 file.
9093         * m4/sin.m4: New file.
9094         * modules/sin (Files): Add it.
9095         (configure.ac): Just invoke gl_FUNC_SIN.
9096
9097 2011-10-08  Bruno Haible  <bruno@clisp.org>
9098
9099         Tests for module 'powf'.
9100         * modules/powf-tests: New file.
9101         * tests/test-powf.c: New file.
9102
9103         New module 'powf'.
9104         * lib/math.in.h (powf): New declaration.
9105         * lib/powf.c: New file.
9106         * m4/powf.m4: New file.
9107         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9109         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9110         * modules/powf: New file.
9111         * tests/test-math-c++.cc: Check the declaration of powf.
9112         * doc/posix-functions/powf.texi: Mention the new module.
9113
9114         pow: Use a .m4 file.
9115         * m4/pow.m4: New file.
9116         * modules/pow (Files): Add it.
9117         (configure.ac): Just invoke gl_FUNC_POW.
9118
9119 2011-10-08  Bruno Haible  <bruno@clisp.org>
9120
9121         Tests for module 'log10f'.
9122         * modules/log10f-tests: New file.
9123         * tests/test-log10f.c: New file.
9124
9125         New module 'log10f'.
9126         * lib/math.in.h (log10f): New declaration.
9127         * lib/log10f.c: New file.
9128         * m4/log10f.m4: New file.
9129         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9131         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9132         * modules/log10f: New file.
9133         * tests/test-math-c++.cc: Check the declaration of log10f.
9134         * doc/posix-functions/log10f.texi: Mention the new module.
9135
9136         log10: Use a .m4 file.
9137         * m4/log10.m4: New file.
9138         * modules/log10 (Files): Add it.
9139         (configure.ac): Just invoke gl_FUNC_LOG10.
9140
9141 2011-10-08  Bruno Haible  <bruno@clisp.org>
9142
9143         Tests for module 'logf'.
9144         * modules/logf-tests: New file.
9145         * tests/test-logf.c: New file.
9146
9147         New module 'logf'.
9148         * lib/math.in.h (logf): New declaration.
9149         * lib/logf.c: New file.
9150         * m4/logf.m4: New file.
9151         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9153         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9154         * modules/logf: New file.
9155         * tests/test-math-c++.cc: Check the declaration of logf.
9156         * doc/posix-functions/logf.texi: Mention the new module.
9157
9158         log: Use a .m4 file.
9159         * m4/log.m4: New file.
9160         * modules/log (Files): Add it.
9161         (configure.ac): Just invoke gl_FUNC_LOG.
9162
9163 2011-10-08  Bruno Haible  <bruno@clisp.org>
9164
9165         Tests for module 'expf'.
9166         * modules/expf-tests: New file.
9167         * tests/test-expf.c: New file.
9168
9169         New module 'expf'.
9170         * lib/math.in.h (expf): New declaration.
9171         * lib/expf.c: New file.
9172         * m4/expf.m4: New file.
9173         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9175         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9176         * modules/expf: New file.
9177         * tests/test-math-c++.cc: Check the declaration of expf.
9178         * doc/posix-functions/expf.texi: Mention the new module.
9179
9180         exp: Use a .m4 file.
9181         * m4/exp.m4: New file.
9182         * modules/exp (Files): Add it.
9183         (configure.ac): Just invoke gl_FUNC_EXP.
9184
9185 2011-10-08  Bruno Haible  <bruno@clisp.org>
9186
9187         Tests for module 'sqrtf'.
9188         * modules/sqrtf-tests: New file.
9189         * tests/test-sqrtf.c: New file.
9190
9191         New module 'sqrtf'.
9192         * lib/math.in.h (sqrtf): New declaration.
9193         * lib/sqrtf.c: New file.
9194         * m4/sqrtf.m4: New file.
9195         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9197         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9198         * modules/sqrtf: New file.
9199         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9200         * doc/posix-functions/sqrtf.texi: Mention the new module.
9201
9202 2011-10-08  Bruno Haible  <bruno@clisp.org>
9203
9204         Tests: Avoid link failures w.r.t. libintl.
9205         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9206         $(LIBINTL).
9207         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9208         $(LIBINTL).
9209         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9210         against $(LIBINTL).
9211         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9212         $(LIBINTL).
9213         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9214         $(LIBINTL).
9215         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9216
9217 2011-10-08  Bruno Haible  <bruno@clisp.org>
9218
9219         pow tests: Defeat compiler optimizations.
9220         * tests/test-pow.c (main): Assign arguments to x and y before use.
9221
9222 2011-10-08  Bruno Haible  <bruno@clisp.org>
9223
9224         gnulib-tool: Improve last commit.
9225         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9226         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9227         ignore dependencies that are not among the modules list.
9228
9229 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9230
9231         gnulib-tool: don't follow dependencies to avoided modules
9232         This fixes a bug that is related to the previous one.
9233         * gnulib-tool (func_modules_transitive_closure)
9234         (func_emit_autoconf_snippets):
9235         Check whether a dependency is acceptable before using it.
9236         (--extract-dependencies): Report an error if --avoid is also used,
9237         since this combination of options is not yet supported.
9238
9239         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9240         Problem reported by Peter Dyballa in
9241         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9242         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9243         when echoing "$condition".
9244
9245 2011-10-07  Bruno Haible  <bruno@clisp.org>
9246
9247         Fix documentation about math functions on MacOS X.
9248         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9249         MacOS X 10.5.
9250         * doc/posix-functions/fdim.texi: Likewise.
9251         * doc/posix-functions/feclearexcept.texi: Likewise.
9252         * doc/posix-functions/fegetenv.texi: Likewise.
9253         * doc/posix-functions/fegetround.texi: Likewise.
9254         * doc/posix-functions/feholdexcept.texi: Likewise.
9255         * doc/posix-functions/feraiseexcept.texi: Likewise.
9256         * doc/posix-functions/fesetenv.texi: Likewise.
9257         * doc/posix-functions/fesetround.texi: Likewise.
9258         * doc/posix-functions/fetestexcept.texi: Likewise.
9259         * doc/posix-functions/feupdateenv.texi: Likewise.
9260         * doc/posix-functions/fmax.texi: Likewise.
9261         * doc/posix-functions/fmin.texi: Likewise.
9262         * doc/posix-functions/log2.texi: Likewise.
9263         * doc/posix-functions/modff.texi: Likewise.
9264         * doc/posix-functions/nan.texi: Likewise.
9265         * doc/posix-functions/nanf.texi: Likewise.
9266         * doc/posix-functions/nextafterf.texi: Likewise.
9267         * doc/posix-functions/remquo.texi: Likewise.
9268
9269 2011-10-07  Bruno Haible  <bruno@clisp.org>
9270
9271         modff: Drop assumption about library that defines modff.
9272         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9273         AC_CHECK_FUNCS.
9274         * modules/modff (Files): Add m4/mathfunc.m4.
9275
9276 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9277
9278         raise tests: Avoid a GCC warning.
9279         * tests/test-raise.c (handler): Use _Noreturn.
9280
9281 2011-10-07  Bruno Haible  <bruno@clisp.org>
9282
9283         Tests for module 'ldexpf'.
9284         * modules/ldexpf-tests: New file.
9285         * tests/test-ldexpf.c: New file.
9286
9287         New module 'ldexpf'.
9288         * lib/math.in.h (ldexpf): New declaration.
9289         * lib/ldexpf.c: New file.
9290         * m4/ldexpf.m4: New file.
9291         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9293         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9294         * modules/ldexpf: New file.
9295         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9296         * doc/posix-functions/ldexpf.texi: Mention the new module.
9297
9298 2011-10-06  Bruno Haible  <bruno@clisp.org>
9299
9300         frexpf: Work around problems on IRIX and mingw.
9301         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9303         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9304         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9305         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9306         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9307         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9308
9309 2011-10-06  Bruno Haible  <bruno@clisp.org>
9310
9311         fabsf: Drop assumption about library that defines fabsf.
9312         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9313         AC_CHECK_FUNCS.
9314         * modules/fabsf (Files): Add m4/mathfunc.m4.
9315
9316 2011-10-06  Bruno Haible  <bruno@clisp.org>
9317
9318         frexpf: Drop assumption about library that defines frexpf.
9319         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9320         'int *', 'float *', 'long double *', 'float', 'long double'.
9321         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9322         AC_CHECK_FUNCS.
9323         * modules/frexpf (Files): Add m4/mathfunc.m4.
9324
9325         Tests for module 'frexpf'.
9326         * modules/frexpf-tests: New file.
9327         * tests/test-frexpf.c: New file.
9328
9329         New module 'frexpf'.
9330         * lib/math.in.h (frexpf): New declaration.
9331         * lib/frexpf.c: New file.
9332         * m4/frexpf.m4: New file.
9333         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9335         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9336         * modules/frexpf: New file.
9337         * tests/test-math-c++.cc: Check the declaration of frexpf.
9338         * doc/posix-functions/frexpf.texi: Mention the new module.
9339
9340 2011-10-06  Bruno Haible  <bruno@clisp.org>
9341
9342         math: Sort function declarations of math.in.h.
9343         * lib/math.in.h (frexp, logb): Move declarations.
9344
9345 2011-10-05  Bruno Haible  <bruno@clisp.org>
9346
9347         Tests for module 'modff'.
9348         * modules/modff-tests: New file.
9349         * tests/test-modff.c: New file.
9350
9351         New module 'modff'.
9352         * lib/math.in.h (modff): New declaration.
9353         * lib/modff.c: New file.
9354         * m4/modff.m4: New file.
9355         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9357         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9358         * modules/modff: New file.
9359         * tests/test-math-c++.cc: Check the declaration of modff.
9360         * doc/posix-functions/modff.texi: Mention the new module.
9361
9362         modf tests: Make test sharper.
9363         * tests/test-modf.c (main): Strengthen upper bound.
9364
9365         modf: Use a .m4 file.
9366         * m4/modf.m4: New file.
9367         * modules/modf (Files): Add it.
9368         (configure.ac): Just invoke gl_FUNC_MODF.
9369
9370 2011-10-05  Bruno Haible  <bruno@clisp.org>
9371
9372         Tests for module 'fmodf'.
9373         * modules/fmodf-tests: New file.
9374         * tests/test-fmodf.c: New file.
9375
9376         New module 'fmodf'.
9377         * lib/math.in.h (fmodf): New declaration.
9378         * lib/fmodf.c: New file.
9379         * m4/fmodf.m4: New file.
9380         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9382         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9383         * modules/fmodf: New file.
9384         * tests/test-math-c++.cc: Check the declaration of fmodf.
9385         * doc/posix-functions/fmodf.texi: Mention the new module.
9386
9387         fmod: Use a .m4 file.
9388         * m4/fmod.m4: New file.
9389         * modules/fmod (Files): Add it.
9390         (configure.ac): Just invoke gl_FUNC_FMOD.
9391
9392 2011-10-05  Bruno Haible  <bruno@clisp.org>
9393
9394         Tests for module 'fabsf'.
9395         * modules/fabsf-tests: New file.
9396         * tests/test-fabsf.c: New file.
9397
9398         New module 'fabsf'.
9399         * lib/math.in.h (fabsf): New declaration.
9400         * lib/fabsf.c: New file.
9401         * m4/fabsf.m4: New file.
9402         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9404         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9405         * modules/fabsf: New file.
9406         * tests/test-math-c++.cc: Check the declaration of fabsf.
9407         * doc/posix-functions/fabsf.texi: Mention the new module.
9408
9409         fabs: Use a .m4 file.
9410         * m4/fabs.m4: New file.
9411         * modules/fabs (Files): Add it.
9412         (configure.ac): Just invoke gl_FUNC_FABS.
9413
9414 2011-10-05  Jim Meyering  <meyering@redhat.com>
9415
9416         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9417         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9418         ls -lL regression introduced in coreutils-8.12, it does so at the
9419         cost of an additional stat call in the common case.  Besides, now
9420         that the kernel change that prompted commit 95f7c57f has been reverted
9421         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9422         we have no use for commit 95f7c57f, "file-has-acl: use
9423         acl_extended_file_nofollow if available".
9424
9425 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9426
9427         file-has-acl: revert unintended change in behavior of ls -L
9428         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9429         derived from...
9430         (file_has_acl): ...code here.  Call it.
9431         This problem was introduced with 2011-07-22 commit 95f7c57f,
9432         "file-has-acl: use acl_extended_file_nofollow if available".
9433         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9434
9435 2011-10-03  Bruno Haible  <bruno@clisp.org>
9436
9437         poll: Avoid link errors on MSVC.
9438         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9439         * modules/poll (Depends-on): Add sockets.
9440         (Link): New section.
9441         * NEWS: Mention the change.
9442         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9443         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9444         $(LIB_POLL) instead of $(LIBSOCKET).
9445
9446 2011-10-03  Bruno Haible  <bruno@clisp.org>
9447
9448         sys_select tests: Fix link error on MSVC 9.
9449         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9450         with $(LIB_SELECT) instead of $(LIBSOCKET).
9451
9452 2011-10-03  Bruno Haible  <bruno@clisp.org>
9453
9454         sys_select: Fix compilation error on mingw.
9455         * lib/sys_select.in.h: On native Windows, include <io.h>.
9456
9457 2011-10-03  Bruno Haible  <bruno@clisp.org>
9458
9459         wmemset: Support for MSVC.
9460         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9461         whether wmemset() exists.
9462
9463 2011-10-03  Bruno Haible  <bruno@clisp.org>
9464
9465         wmemmove: Support for MSVC.
9466         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9467         whether wmemmove() exists.
9468
9469 2011-10-03  Bruno Haible  <bruno@clisp.org>
9470
9471         wmemcpy: Support for MSVC.
9472         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9473         whether wmemcpy() exists.
9474
9475 2011-10-03  Bruno Haible  <bruno@clisp.org>
9476
9477         wmemcmp: Support for MSVC.
9478         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9479         whether wmemcmp() exists.
9480
9481 2011-10-03  Bruno Haible  <bruno@clisp.org>
9482
9483         wmemchr: Support for MSVC.
9484         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9485         whether wmemchr() exists.
9486
9487 2011-10-03  Bruno Haible  <bruno@clisp.org>
9488
9489         glthread/*, strsignal: Support for MSVC.
9490         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9491         including <winsock.h> on MSVC 9.
9492         * lib/glthread/lock.h: Likewise.
9493         * lib/glthread/thread.h: Likewise.
9494         * lib/glthread/tls.h: Likewise.
9495         * lib/glthread/yield.h: Likewise.
9496         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9497         if HAVE_UNISTD_H is false.
9498         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9499
9500 2011-10-03  Bruno Haible  <bruno@clisp.org>
9501
9502         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9503         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9504         Set to 100000.
9505
9506 2011-10-03  Bruno Haible  <bruno@clisp.org>
9507
9508         acl: Fix specification.
9509         * lib/file-has-acl.c (file_has_acl): Fix specification.
9510
9511 2011-10-03  Bruno Haible  <bruno@clisp.org>
9512
9513         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9514         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9515         (compute_curr_prefix, shared_library_fullname,
9516         find_shared_library_fullname, get_shared_library_fullname, relocate):
9517         Use it together with PIC && INSTALLDIR.
9518         Reported by <jojelino@gmail.com>
9519         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9520
9521 2011-10-01  Jim Meyering  <meyering@redhat.com>
9522
9523         maint.mk: adjust a release-related rule not to require use of gzip
9524         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9525         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9526         projects that build only .tar.xz files.  Also fix an erroneous test.
9527
9528         test-linkat: don't leave behind a temporary file
9529         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9530         Otherwise, coreutils' "make distcheck" would fail with this:
9531           Only in /c/cu/tests/torture/coreutils/test/\
9532             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9533           make[2]: *** [my-distcheck] Error 1
9534
9535         float, math: add omitted file
9536         * lib/itold.c: Add file, required for yesterday's float change.
9537
9538 2011-10-01  Bruno Haible  <bruno@clisp.org>
9539
9540         isinf: Fix for OpenBSD/x86.
9541         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9542         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9543         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9544
9545 2011-10-01  Bruno Haible  <bruno@clisp.org>
9546
9547         isfinite: Fix syntax error in configure test.
9548         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9549
9550         isfinite: Fix typo.
9551         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9552         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9553
9554 2011-10-01  Bruno Haible  <bruno@clisp.org>
9555
9556         nonblocking tests: Fix test failure on Linux/IA-64.
9557         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9558         Set to 270000.
9559
9560 2011-10-01  Bruno Haible  <bruno@clisp.org>
9561
9562         mkfifoat tests: Fix a test failure on mingw.
9563         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9564         with error ENOSYS.
9565
9566 2011-09-30  Bruno Haible  <bruno@clisp.org>
9567
9568         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9569         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9570         'long double'. Set REPLACE_ITOLD.
9571         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9572         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9573         * lib/itold.c: New file.
9574         * modules/float (Files): Add lib/itold.c.
9575         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9576         (Makefile.am): Substitute REPLACE_ITOLD.
9577         * modules/math (Depends-on): Add float.
9578         (Makefile.am): Substitute REPLACE_ITOLD.
9579         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9580         * doc/posix-headers/math.texi: Likewise.
9581         * doc/posix-functions/logl.texi: Likewise.
9582
9583 2011-09-30  Bruno Haible  <bruno@clisp.org>
9584
9585         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9586         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9587         Set to 140000.
9588
9589 2011-09-30  Bruno Haible  <bruno@clisp.org>
9590
9591         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9592         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9593         invocation, say "right after AC_PROG_CC_STDC", not "right after
9594         AC_PROG_CC".
9595         Reported by Gary V. Vaughan <gary@gnu.org>.
9596
9597 2011-09-30  Bruno Haible  <bruno@clisp.org>
9598
9599         Centralize C99 requirement.
9600         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9601         * modules/stdarg (configure.ac-early): Invoke it instead of
9602         AC_PROG_CC_STDC.
9603         Reported by Gary V. Vaughan and Paul Eggert.
9604
9605 2011-09-29  Bruno Haible  <bruno@clisp.org>
9606
9607         float: Fix LDBL_MAX value on Linux/PowerPC.
9608         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9609         on Linux/PowerPC.
9610         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9611         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9612         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9613         platform.
9614         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9615
9616 2011-09-29  Bruno Haible  <bruno@clisp.org>
9617
9618         doc: Improve doc about gl_EARLY.
9619         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9620         AC_PROG_CC_STDC invocation.
9621         Reported by Gary V. Vaughan <gary@gnu.org>.
9622
9623 2011-09-28  Bruno Haible  <bruno@clisp.org>
9624
9625         fgetc, fputc, fread, fwrite tests: Fix link error.
9626         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9627         on non-MSVC platforms.
9628         * tests/test-fputc.c (main): Likewise.
9629         * tests/test-fread.c (main): Likewise.
9630         * tests/test-fwrite.c (main): Likewise.
9631         Reported by Jim Meyering.
9632
9633 2011-09-27  Bruno Haible  <bruno@clisp.org>
9634
9635         fputc, fwrite tests: Avoid test failure on MSVC.
9636         * tests/test-fgetc.c: Include msvc-inval.h.
9637         (main): Invoke gl_msvc_inval_ensure_handler.
9638         * tests/test-fputc.c: Include msvc-inval.h.
9639         (main): Invoke gl_msvc_inval_ensure_handler.
9640         * tests/test-fread.c: Include msvc-inval.h.
9641         (main): Invoke gl_msvc_inval_ensure_handler.
9642         * tests/test-fwrite.c: Include msvc-inval.h.
9643         (main): Invoke gl_msvc_inval_ensure_handler.
9644         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9645         * modules/fputc-tests (Depends-on): Likewise.
9646         * modules/fread-tests (Depends-on): Likewise.
9647         * modules/fwrite-tests (Depends-on): Likewise.
9648
9649 2011-09-27  Bruno Haible  <bruno@clisp.org>
9650
9651         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9652         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9653         (raise): Remove older, duplicated declaration.
9654         (_gl_raise_SIGPIPE): New declaration.
9655         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9656         (rpl_raise): Remove function.
9657         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9658         a gnulib-defined SIGPIPE here.
9659         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9660         'sigprocmask' has detected missing signal-blocking and the module
9661         'sigpipe' is enabled.
9662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9663
9664 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9665
9666         base64-tests: avoid memory leak
9667         * tests/test-base64.c (main): Plug memory leak.
9668
9669         base32: new module
9670         * modules/base32: New module.
9671         * lib/base32.c: New file.
9672         * lib/base32.h: Likewise.
9673         * m4/base32.m4: Likewise.
9674         * modules/base32-tests: New test.
9675         * tests/test-base32.c: Likewise.
9676         * MODULES.html.sh (Misc): Mention it.
9677
9678 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         gnulib: use more-standard license notice wording
9681         * gnulib-tool (func_emit_copyright_notice): When emitting a
9682         license notice into a file, use the standard wording as suggested
9683         by the current information for GNU maintainers, except say "file"
9684         rather than "program".  The new wording gives a license version
9685         number, which addresses an issue raised by Glenn Morris in
9686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9687         * m4/onceonly.m4: Use that same wording here, too.
9688
9689         dup2: minor simplification
9690         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9691         as lib/dup2.c no longer uses 'inline'.
9692
9693 2011-09-25  Bruno Haible  <bruno@clisp.org>
9694
9695         strings: Fix compilation error on MSVC.
9696         * lib/strings.in.h: Include <stddef.h> for size_t.
9697
9698 2011-09-25  Bruno Haible  <bruno@clisp.org>
9699
9700         fflush et al.: Document limitation on MSVC.
9701         * doc/posix-functions/fflush.texi: Document possible crash in handling
9702         mode other than DEFAULT_HANDLING.
9703         * doc/posix-functions/fgetc.texi: Likewise.
9704         * doc/posix-functions/fputc.texi: Likewise.
9705         * doc/posix-functions/fread.texi: Likewise.
9706         * doc/posix-functions/fwrite.texi: Likewise.
9707
9708 2011-09-25  Bruno Haible  <bruno@clisp.org>
9709
9710         msvc-inval: Allow three invalid parameter handling modes.
9711         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9712         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9713         macros.
9714         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9715         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9716         SANE_LIBRARY_HANDLING as a no-op.
9717         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9718         <stdlib.h>.
9719         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9720
9721 2011-09-25  Bruno Haible  <bruno@clisp.org>
9722
9723         msvc-inval: Make handler multithread-safe.
9724         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9725         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9726         declarations.
9727         (gl_msvc_inval_current): New declaration.
9728         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9729         Operate on the structure returned by gl_msvc_inval_current().
9730         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9731         Remove varaiables.
9732         (tls_index, tls_initialized): New variables.
9733         (not_per_thread): New variable.
9734         (gl_msvc_inval_current): New function.
9735         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9736         returned by gl_msvc_inval_current().
9737
9738 2011-09-25  Bruno Haible  <bruno@clisp.org>
9739
9740         msvc-inval: Install handler globally.
9741         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9742         !_MSC_VER.
9743         (gl_msvc_invalid_parameter_handler): Remove declaration.
9744         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9745         declarations.
9746         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9747         Install the handler globally, don't uninstall it.
9748         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9749         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9750         currently valid, call RaiseException instead.
9751         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9752         for !_MSC_VER.
9753
9754 2011-09-25  Bruno Haible  <bruno@clisp.org>
9755
9756         strerror_r-posix: Fix for MSVC 9.
9757         * lib/strerror_r.c (local_snprintf): New function.
9758         (snprintf): Define to local_snprintf, not to _snprintf.
9759
9760 2011-09-25  Bruno Haible  <bruno@clisp.org>
9761
9762         ftruncate: Support for MSVC 9.
9763         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9764         (chsize_nothrow): New function.
9765         (chsize): Redefine as a macro.
9766         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9767         * modules/ftruncate (Depends-on): Add msvc-inval.
9768
9769 2011-09-25  Bruno Haible  <bruno@clisp.org>
9770
9771         New module 'fstat'.
9772         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9773         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9774         * lib/fchdir.c (rpl_fstat): Remove function.
9775         * m4/fstat.m4: New file.
9776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9778         declared.
9779         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9780         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9781         * modules/fstat: New file.
9782         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9783         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9784         is set.
9785         * doc/posix-functions/fstat.texi: Mention the new module and the
9786         problem on MSVC.
9787         * NEWS: Mention the change.
9788         * modules/acl (Depends-on): Add fstat.
9789         * modules/chdir-safer (Depends-on): Likewise.
9790         * modules/chown (Depends-on): Likewise.
9791         * modules/copy-file (Depends-on): Likewise.
9792         * modules/fchdir (Depends-on): Likewise.
9793         * modules/fdopendir (Depends-on): Likewise.
9794         * modules/fopen (Depends-on): Likewise.
9795         * modules/fts (Depends-on): Likewise.
9796         * modules/getcwd (Depends-on): Likewise.
9797         * modules/isapipe (Depends-on): Likewise.
9798         * modules/linkat (Depends-on): Likewise.
9799         * modules/lseek (Depends-on): Likewise.
9800         * modules/mkdir-p (Depends-on): Likewise.
9801         * modules/open (Depends-on): Likewise.
9802         * modules/openat (Depends-on): Likewise.
9803         * modules/read-file (Depends-on): Likewise.
9804         * modules/renameat (Depends-on): Likewise.
9805         * modules/utimens (Depends-on): Likewise.
9806
9807 2011-09-25  Bruno Haible  <bruno@clisp.org>
9808
9809         linkat: Fix compilation on MSVC 9.
9810         * lib/linkat.c: Don't include <stdint.h>.
9811
9812 2011-09-25  Bruno Haible  <bruno@clisp.org>
9813
9814         fclose: Support for MSVC 9.
9815         * lib/fclose.c: Include msvc-inval.h.
9816         (fclose_nothrow): New function.
9817         (rpl_fclose): Use it.
9818         * modules/fclose (Depends-on): Add msvc-inval.
9819         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9820
9821 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9822
9823         dup2: minor simplifications
9824         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9825         that it's a performance win.
9826         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9827         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9828
9829 2011-09-24  Jim Meyering  <meyering@redhat.com>
9830
9831         test-futimens: avoid a warning from gcc -Wshadow
9832         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9833         to avoid a shadowing warning.
9834
9835 2011-09-24  Bruno Haible  <bruno@clisp.org>
9836
9837         fdopen: Support for MSVC 9.
9838         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9839         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9840         * lib/fdopen.c: Include msvc-inval.h.
9841         (fdopen_nothrow): New function.
9842         (rpl_fdopen): Use it.
9843         * modules/fdopen (Depends-on): Add msvc-inval.
9844         * modules/fclose-tests (Depends-on): Add fdopen.
9845         * modules/fflush-tests (Depends-on): Likewise.
9846         * modules/fgetc-tests (Depends-on): Likewise.
9847         * modules/fputc-tests (Depends-on): Likewise.
9848         * modules/fread-tests (Depends-on): Likewise.
9849         * modules/freopen-tests (Depends-on): Likewise.
9850         * modules/fseeko-tests (Depends-on): Likewise.
9851         * modules/ftello-tests (Depends-on): Likewise.
9852         * modules/fwrite-tests  (Depends-on): Likewise.
9853         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9854
9855 2011-09-24  Bruno Haible  <bruno@clisp.org>
9856
9857         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9858         * modules/fgetc-tests (Depends-on): Add unistd.
9859         * modules/fputc-tests (Depends-on): Likewise.
9860         * modules/fread-tests (Depends-on): Likewise.
9861         * modules/fwrite-tests (Depends-on): Likewise.
9862
9863 2011-09-24  Bruno Haible  <bruno@clisp.org>
9864
9865         dup: Simplify autoconf test.
9866         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9867         on gl_MSVC_INVAL's result.
9868
9869 2011-09-24  Bruno Haible  <bruno@clisp.org>
9870
9871         Tests for function fwrite().
9872         * modules/fwrite-tests: New file.
9873         * tests/test-fwrite.c: New file.
9874         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9875
9876         Tests for function fread().
9877         * modules/fread-tests: New file.
9878         * tests/test-fread.c: New file.
9879         * modules/stdio-tests (Depends-on): Add fread-tests.
9880
9881         Activate fputc tests.
9882         * modules/stdio-tests (Depends-on): Add fputc-tests.
9883
9884         Enhance fgetc, fputc tests.
9885         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9886         * tests/test-fputc.c (main): Likewise.
9887
9888 2011-09-24  Bruno Haible  <bruno@clisp.org>
9889
9890         write: Support for MSVC 9.
9891         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9892         is not 1.
9893         * lib/write.c (write_nothrow): New function.
9894         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9895         not 1. Use write_nothrow.
9896         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9897         invalid parameter handler.
9898         (gl_PREREQ_WRITE): New macro.
9899         * modules/write (Depends-on): Add msvc-inval.
9900         (configure.ac): Invoke gl_PREREQ_WRITE.
9901         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9902
9903 2011-09-24  Bruno Haible  <bruno@clisp.org>
9904
9905         read: Fix last commit.
9906         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9907
9908 2011-09-24  Bruno Haible  <bruno@clisp.org>
9909
9910         dup2: Fix last commit.
9911         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9912         (rpl_dup2): Disable fcntl workaround on native Windows.
9913
9914         sigprocmask: Make code safer.
9915         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9916         section that changes macro definitions for this compilation unit.
9917
9918 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         dup2: clarify by coalescing Windows-specific material
9921         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9922         "msvc-nothrow.h"' to the Windows-specific section, so that the
9923         Emacs source need not contain these include files.
9924         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9925         Windows-specific fixes into this function rather than just the
9926         nothrow fix, as this shortens and clarifies the code.  Always
9927         define as a function, as that's a bit cleaner than having it be
9928         sometimes a function and sometimes a macro.
9929         (rpl_dup2): Move the Windows-specific stuff out of here and into
9930         ms_windows_dup2.  Don't protect the Haiku-related fix with
9931         "#if !defined __linux__", as the same code also works around
9932         a Linux kernel bug, and it doesn't add any system calls on any
9933         platform.  Add comment about FreeBSD 6.1.
9934
9935         sigprocmask: move #include directive
9936         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9937         Windows-specific section, so that the Emacs source need not
9938         contain msvc-inval.h.
9939
9940 2011-09-23  Bruno Haible  <bruno@clisp.org>
9941
9942         read: Support for MSVC 9.
9943         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9944         is not 1.
9945         * lib/read.c (read_nothrow): New function.
9946         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9947         read_nothrow.
9948         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9949         invalid parameter handler.
9950         (gl_PREREQ_READ): New macro.
9951         * modules/read (Depends-on): Add msvc-inval.
9952         (configure.ac): Invoke gl_PREREQ_READ.
9953         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9954
9955 2011-09-23  Bruno Haible  <bruno@clisp.org>
9956
9957         close: Support for MSVC 9.
9958         * lib/close.c: Include <errno.h>, msvc-inval.h.
9959         (close_nothrow): New function.
9960         (rpl_close): Use it.
9961         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9962         invalid parameter handler.
9963         * modules/close (Depends-on): Add msvc-inval.
9964         * modules/dup2-tests (Depends-on): Add close.
9965         * modules/dup3-tests (Depends-on): Likewise.
9966         * modules/fcntl-tests (Depends-on): Likewise.
9967         * modules/spawn-pipe-tests (Depends-on): Likewise.
9968         * modules/unistd-safer-tests (Depends-on): Likewise.
9969         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9970
9971 2011-09-23  Bruno Haible  <bruno@clisp.org>
9972
9973         New module 'dup'.
9974         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9975         Allow replacement.
9976         * lib/dup.c: New file.
9977         * lib/fchdir.c (rpl_dup): Remove function.
9978         * m4/dup.m4: New file.
9979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9980         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9981         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9982         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9983         * modules/dup: New file.
9984         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9985         'dup' module is in use.
9986         * modules/fdopendir (Depends-on): Add dup.
9987         * modules/fdutimensat-tests (Depends-on): Likewise.
9988         * modules/fts (Depends-on): Likewise.
9989         * modules/futimens-tests (Depends-on): Likewise.
9990         * modules/posix_spawnp-tests (Depends-on): Likewise.
9991         * modules/unistd-safer-tests (Depends-on): Likewise.
9992         * modules/utimens-tests (Depends-on): Likewise.
9993         * doc/posix-functions/dup.texi: Mention the new module and the problem
9994         on MSVC.
9995
9996 2011-09-23  Bruno Haible  <bruno@clisp.org>
9997
9998         getdtablesize: Support for MSVC 9.
9999         * lib/getdtablesize.c: Include msvc-inval.h.
10000         (_setmaxstdio_nothrow): New function.
10001         (_setmaxstdio): Redefine it.
10002         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10003         * modules/getdtablesize (Depends-on): Add msvc-inval.
10004         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10005
10006 2011-09-23  Bruno Haible  <bruno@clisp.org>
10007
10008         signal-h: Rename from signal.
10009         * modules/signal-h: Renamed from modules/signal.
10010         * modules/pthread_sigmask (Depends-on): Update.
10011         * modules/raise (Depends-on): Likewise.
10012         * modules/sigaction (Depends-on): Likewise.
10013         * modules/sigpipe (Depends-on): Likewise.
10014         * modules/sigprocmask (Depends-on): Likewise.
10015         * modules/sys_select (Depends-on): Likewise.
10016         * modules/signal-h-tests: Renamed from modules/signal-tests.
10017         (Files, Depends-on, Makefile.am): Update.
10018         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10019         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10020         (Files, Makefile.am): Update.
10021         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10022         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10023         * modules/signal: New placeholder file.
10024         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10025         * doc/posix-headers/signal.texi: Update.
10026         * NEWS: Mention the change.
10027
10028 2011-09-23  Bruno Haible  <bruno@clisp.org>
10029
10030         sigprocmask: Avoid crashes through signal() on MSVC 9.
10031         * lib/sigprocmask.c: Include msvc-inval.h.
10032         (signal_nothrow): New function.
10033         (signal): Redefine it.
10034         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10035         * modules/sigprocmask (Depends-on): Add msvc-inval.
10036         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10037
10038 2011-09-23  Bruno Haible  <bruno@clisp.org>
10039
10040         Tests for module 'raise'.
10041         * modules/raise-tests: New file.
10042         * tests/test-raise.c: New file.
10043
10044         raise: Support for MSVC.
10045         * lib/signal.in.h (raise): New declaration.
10046         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10047         for native Windows platforms.
10048         * m4/raise.m4: New file.
10049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10050         HAVE_RAISE, REPLACE_RAISE.
10051         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10052         REPLACE_RAISE.
10053         * modules/raise (Status, Notice): Remove fields.
10054         (Files): Add m4/raise.m4.
10055         (Depends-on): Add signal, msvc-inval.
10056         (configure.ac): Use the common idioms.
10057         (Maintainer): Add me.
10058         * tests/test-signal-c++.cc: Check the signature of raise.
10059         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10060
10061 2011-09-23  Bruno Haible  <bruno@clisp.org>
10062
10063         pipe2: Fix compilation on pre-C99 compilers.
10064         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10065
10066 2011-09-23  Bruno Haible  <bruno@clisp.org>
10067
10068         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10069         * lib/msvc-nothrow.h: New file.
10070         * lib/msvc-nothrow.c: New file.
10071         * m4/msvc-nothrow.m4: New file.
10072         * modules/msvc-nothrow: New file.
10073         * lib/dup2.c: Include msvc-nothrow.h.
10074         (rpl_dup2): No need to protect _get_osfhandle call here.
10075         * lib/accept4.c: Include msvc-nothrow.h.
10076         * lib/error.c: Likewise.
10077         * lib/fcntl.c: Likewise.
10078         * lib/lseek.c: Likewise.
10079         * lib/nonblocking.c: Likewise.
10080         * lib/poll.c: Likewise.
10081         * lib/read.c: Likewise.
10082         * lib/select.c: Likewise.
10083         * lib/sockets.h: Likewise.
10084         * lib/sockets.c: Likewise.
10085         * lib/stdio-read.c: Likewise.
10086         * lib/stdio-write.c: Likewise.
10087         * lib/write.c: Likewise.
10088         * lib/w32sock.h: Likewise.
10089         * lib/w32spawn.h: Likewise.
10090         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10091         * lib/fsync.c: Likewise.
10092         * lib/isapipe.c: Likewise.
10093         * modules/dup2 (Depends-on): Add msvc-nothrow.
10094         * modules/accept4 (Depends-on): Likewise.
10095         * modules/error (Depends-on): Likewise.
10096         * modules/fcntl (Depends-on): Likewise.
10097         * modules/lseek (Depends-on): Likewise.
10098         * modules/nonblocking (Depends-on): Likewise.
10099         * modules/poll (Depends-on): Likewise.
10100         * modules/read (Depends-on): Likewise.
10101         * modules/select (Depends-on): Likewise.
10102         * modules/sockets (Depends-on): Likewise.
10103         * modules/sigpipe (Depends-on): Likewise.
10104         * modules/write (Depends-on): Likewise.
10105         * modules/accept (Depends-on): Likewise.
10106         * modules/bind (Depends-on): Likewise.
10107         * modules/connect (Depends-on): Likewise.
10108         * modules/gethostname (Depends-on): Likewise.
10109         * modules/getpeername (Depends-on): Likewise.
10110         * modules/getsockname (Depends-on): Likewise.
10111         * modules/getsockopt (Depends-on): Likewise.
10112         * modules/ioctl (Depends-on): Likewise.
10113         * modules/listen (Depends-on): Likewise.
10114         * modules/recv (Depends-on): Likewise.
10115         * modules/recvfrom (Depends-on): Likewise.
10116         * modules/send (Depends-on): Likewise.
10117         * modules/sendto (Depends-on): Likewise.
10118         * modules/setsockopt (Depends-on): Likewise.
10119         * modules/shutdown (Depends-on): Likewise.
10120         * modules/socket (Depends-on): Likewise.
10121         * modules/execute (Depends-on): Likewise.
10122         * modules/spawn-pipe (Depends-on): Likewise.
10123         * modules/flock (Depends-on): Likewise.
10124         * modules/fsync (Depends-on): Likewise.
10125         * modules/isapipe (Depends-on): Likewise.
10126         * tests/test-cloexec.c: Include msvc-nothrow.h.
10127         * tests/test-dup-safer.c: Likewise.
10128         * tests/test-dup2.c: Likewise.
10129         * tests/test-dup3.c: Likewise.
10130         * tests/test-fcntl.c: Likewise.
10131         * tests/test-pipe.c: Likewise.
10132         * tests/test-pipe2.c: Likewise.
10133         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10134         * modules/unistd-safer-tests (Depends-on): Likewise.
10135         * modules/dup2-tests (Depends-on): Likewise.
10136         * modules/dup3-tests (Depends-on): Likewise.
10137         * modules/fcntl-tests (Depends-on): Likewise.
10138         * modules/pipe-posix-tests (Depends-on): Likewise.
10139         * modules/pipe2-tests (Depends-on): Likewise.
10140
10141 2011-09-23  Bruno Haible  <bruno@clisp.org>
10142
10143         dup2: Make code more maintainable.
10144         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10145         (rpl_dup2): Use it.
10146         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10147         * modules/dup2 (configure.ac): Invoke it.
10148         Reported by Paul Eggert.
10149
10150 2011-09-23  Bruno Haible  <bruno@clisp.org>
10151
10152         msvc-inval: Fix compilation error.
10153         * lib/msvc-inval.h: Include <excpt.h>.
10154
10155 2011-09-23  Bruno Haible  <bruno@clisp.org>
10156
10157         mkdir: Tweak for MSVC 9.
10158         * lib/sys_stat.in.h: Update comments.
10159         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10160
10161         Tests for module 'chdir'.
10162         * modules/chdir-tests: New file.
10163         * tests/test-chdir.c: New file.
10164
10165         New module 'chdir'.
10166         * modules/chdir: New file.
10167         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10168         (chdir): New declaration.
10169         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10170         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10171         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10172         * tests/test-unistd-c++.cc: Check signature of chdir.
10173         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10174         * modules/chdir-long (Depends-on): Add chdir.
10175         * modules/fchdir (Depends-on): Likewise.
10176         * modules/rename (Depends-on): Likewise.
10177         * modules/savewd (Depends-on): Likewise.
10178
10179         rmdir: Support for mingw, MSVC 9.
10180         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10181         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10182
10183         getcwd: Tweak for MSVC 9.
10184         * lib/unistd.in.h: Update comments.
10185         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10186
10187 2011-09-22  Bruno Haible  <bruno@clisp.org>
10188
10189         strerror_r-posix: Avoid a link error on MSVC.
10190         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10191         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10192
10193 2011-09-22  Bruno Haible  <bruno@clisp.org>
10194
10195         select: Avoid link errors on MSVC.
10196         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10197         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10198         * modules/pselect (Link): Likewise.
10199         * NEWS: Mention the change.
10200         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10201         test-select-stdin against $(LIB_SELECT).
10202         * modules/pselect-tests (Makefile.am): Link test-pselect against
10203         $(LIB_SELECT).
10204
10205 2011-09-22  Bruno Haible  <bruno@clisp.org>
10206
10207         select: Avoid compilation error on MSVC.
10208         * lib/select.c: Don't include <stdbool.h>.
10209
10210 2011-09-21  Bruno Haible  <bruno@clisp.org>
10211
10212         Consolidate all uses of PATH_MAX in *.m4 files.
10213         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10214         macros.
10215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10216         and gl_PATHMAX_SNIPPET.
10217         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10219         * modules/chdir-long (Files): Add m4/pathmax.m4.
10220         * modules/getcwd (Files): Likewise.
10221
10222 2011-09-21  Bruno Haible  <bruno@clisp.org>
10223
10224         ftruncate: Un-deprecate, concentrate on Win32 support.
10225         * modules/ftruncate (Status, Notice): Remove sections.
10226         (Depends-on): Add largefile.
10227         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10228         non-mingw platforms.
10229         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10230         include <io.h>.
10231         * modules/perror-tests (Depends-on): Add ftruncate.
10232         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10233         'ftruncate' module.
10234
10235 2011-09-21  Bruno Haible  <bruno@clisp.org>
10236
10237         Add dependencies to new dirent related modules.
10238         * modules/opendir (Depends-on): Add closedir.
10239         * modules/getcwd (Depends-on): Add opendir, closedir.
10240         * modules/dirent-safer-tests (Depends-on): Likewise.
10241         * modules/fdopendir-tests (Depends-on): Likewise.
10242         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10243         * modules/renameat-tests (Depends-on): Likewise.
10244
10245 2011-09-21  Bruno Haible  <bruno@clisp.org>
10246
10247         opendir: Avoid compilation error on mingw.
10248         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10249         * modules/opendir (Depends-on): Add unistd.
10250
10251 2011-09-21  Bruno Haible  <bruno@clisp.org>
10252
10253         ftruncate tests: Avoid a test failure on mingw.
10254         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10255
10256 2011-09-21  Bruno Haible  <bruno@clisp.org>
10257
10258         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10259         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10260         native Windows.
10261
10262 2011-09-21  Bruno Haible  <bruno@clisp.org>
10263
10264         New module 'fdopen'.
10265         * lib/stdio.in.h (fdopen): New declaration.
10266         * lib/fdopen.c: New file.
10267         * m4/fdopen.m4: New file.
10268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10269         REPLACE_FDOPEN.
10270         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10271         REPLACE_FDOPEN.
10272         * modules/fdopen: New file.
10273         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10274         * tests/test-stdio-c++.cc: Check signature of fdopen.
10275         * doc/posix-functions/fdopen.texi: Mention the new module.
10276
10277 2011-09-21  Bruno Haible  <bruno@clisp.org>
10278
10279         unlockpt tests: Avoid test failure on NetBSD 5.1.
10280         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10281         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10282
10283 2011-09-21  Bruno Haible  <bruno@clisp.org>
10284
10285         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10286         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10287         * tests/test-getlogin_r.c (main): Likewise.
10288
10289 2011-09-20  Bruno Haible  <bruno@clisp.org>
10290
10291         time tests: Don't require pid_t.
10292         * doc/posix-headers/time.texi: Revert last change.
10293         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10294         * tests/test-time.c: Comment out the check for pid_t.
10295
10296 2011-09-20  Bruno Haible  <bruno@clisp.org>
10297
10298         fsync tests: Avoid a test failure on mingw.
10299         * tests/test-fsync.c (main): Allow a failure with EIO.
10300
10301 2011-09-20  Bruno Haible  <bruno@clisp.org>
10302
10303         euidaccess: Update comments.
10304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10305
10306 2011-09-20  Bruno Haible  <bruno@clisp.org>
10307
10308         Ensure EBADF returns for socket functions on mingw.
10309         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10310         descriptor is invalid.
10311         * lib/bind.c (rpl_bind): Likewise.
10312         * lib/connect.c (rpl_connect): Likewise.
10313         * lib/getpeername.c (rpl_getpeername): Likewise.
10314         * lib/getsockname.c (rpl_getsockname): Likewise.
10315         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10316         * lib/listen.c (rpl_listen): Likewise.
10317         * lib/recv.c (rpl_recv): Likewise.
10318         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10319         * lib/send.c (rpl_send): Likewise.
10320         * lib/sendto.c (rpl_sendto): Likewise.
10321         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10322         * lib/shutdown.c (rpl_shutdown): Likewise.
10323
10324 2011-09-20  Bruno Haible  <bruno@clisp.org>
10325
10326         select tests: EBADF tests.
10327         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10328         test_bad_fd): New functions.
10329         (test_function): Invoke also test_bad_fd.
10330
10331 2011-09-20  Bruno Haible  <bruno@clisp.org>
10332
10333         Tests for module 'posix_spawn_file_actions_addopen.
10334         * modules/posix_spawn_file_actions_addopen-tests: New file.
10335         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10336
10337         Tests for module 'posix_spawn_file_actions_adddup2'.
10338         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10339         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10340
10341         Tests for module 'posix_spawn_file_actions_addclose'.
10342         * modules/posix_spawn_file_actions_addclose-tests: New file.
10343         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10344
10345 2011-09-20  Bruno Haible  <bruno@clisp.org>
10346
10347         Tests for module 'unlockpt'.
10348         * modules/unlockpt-tests: New file.
10349         * tests/test-unlockpt.c: New file.
10350         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10351
10352         Tests for module 'grantpt'.
10353         * modules/grantpt-tests: New file.
10354         * tests/test-grantpt.c: New file.
10355         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10356
10357 2011-09-20  Bruno Haible  <bruno@clisp.org>
10358
10359         freopen tests: EBADF tests.
10360         * tests/test-freopen.c: Include errno.h, unistd.h.
10361         (main): Add tests for EBADF, commented out for the moment.
10362
10363         fclose tests: EBADF tests.
10364         * tests/test-fclose.c (main): Add tests for EBADF.
10365
10366         fflush tests: EBADF tests.
10367         * tests/test-fflush.c: Include errno.h, macros.h.
10368         (main): Add tests for EBADF.
10369
10370         ftello tests: EBADF tests.
10371         * tests/test-ftello4.sh: New file.
10372         * tests/test-ftello4.c: New file.
10373         * modules/ftello-tests (Files): Add them.
10374         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10375
10376         fseeko tests: EBADF tests.
10377         * tests/test-fseeko4.sh: New file.
10378         * tests/test-fseeko4.c: New file.
10379         * modules/fseeko-tests (Files): Add them.
10380         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10381
10382         Tests for function fputc().
10383         * modules/fputc-tests: New file.
10384         * tests/test-fputc.c: New file.
10385         * modules/stdio-tests (Depends-on): Add fputc-tests.
10386
10387         Tests for function fgetc().
10388         * modules/fgetc-tests: New file.
10389         * tests/test-fgetc.c: New file.
10390         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10391
10392         Tests for function fdopen().
10393         * modules/fdopen-tests: New file.
10394         * tests/test-fdopen.c: New file.
10395         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10396
10397         Tests for module 'vdprintf'.
10398         * modules/vdprintf-tests: New file.
10399         * tests/test-vdprintf.c: New file.
10400
10401         Tests for module 'dprintf'.
10402         * modules/dprintf-tests: New file.
10403         * tests/test-dprintf.c: New file.
10404
10405 2011-09-20  Bruno Haible  <bruno@clisp.org>
10406
10407         Tests for module 'ioctl'.
10408         * modules/ioctl-tests: New file.
10409         * tests/test-ioctl.c: New file.
10410
10411 2011-09-20  Bruno Haible  <bruno@clisp.org>
10412
10413         fcntl tests: EBADF tests.
10414         * tests/test-fcntl.c (main): Add more tests for EBADF.
10415
10416 2011-09-20  Bruno Haible  <bruno@clisp.org>
10417
10418         utimensat tests: EBADF tests.
10419         * tests/test-utimensat.c (main): Add tests for EBADF.
10420
10421         renameat tests: EBADF tests.
10422         * tests/test-renameat.c (main): Add tests for EBADF.
10423
10424         mkfifoat tests: EBADF tests.
10425         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10426
10427         readlinkat tests: EBADF tests.
10428         * tests/test-readlinkat.c (main): Add tests for EBADF.
10429
10430         symlinkat tests: EBADF tests.
10431         * tests/test-symlinkat.c (main): Add tests for EBADF.
10432
10433         linkat tests: EBADF tests.
10434         * tests/test-linkat.c (main): Add tests for EBADF.
10435
10436         Tests for module 'faccessat'.
10437         * modules/faccessat-tests: New file.
10438         * tests/test-faccessat.c: New file.
10439
10440         fdopendir tests: EBADF tests.
10441         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10442
10443         openat tests: EBADF tests.
10444         * tests/test-fchownat.c (main): Add tests for EBADF.
10445         * tests/test-fstatat.c (main): Likewise.
10446         * tests/test-mkdirat.c (main): Likewise.
10447         * tests/test-openat.c (main): Likewise.
10448         * tests/test-unlinkat.c (main): Likewise.
10449         * tests/test-fchmodat.c: New file.
10450         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10451         (Makefile.am): Also run 'test-fchmodat'.
10452
10453 2011-09-20  Bruno Haible  <bruno@clisp.org>
10454
10455         utimens, futimens, fdutimensat tests: EBADF tests.
10456         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10457
10458         Tests for function fstat().
10459         * modules/fstat-tests: New file.
10460         * tests/test-fstat.c: New file.
10461         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10462
10463 2011-09-20  Bruno Haible  <bruno@clisp.org>
10464
10465         test-ttyname_r tests: EBADF tests.
10466         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10467
10468         Tests for module 'isatty'.
10469         * modules/isatty-tests: New file.
10470         * tests/test-isatty.c: New file.
10471
10472         Tests for module 'write'.
10473         * modules/write-tests: New file.
10474         * tests/test-write.c: New file.
10475
10476         Tests for module 'read'.
10477         * modules/read-tests: New file.
10478         * tests/test-read.c: New file.
10479
10480         pwrite tests: EBADF tests.
10481         * tests/test-pwrite.c (main): Add tests for EBADF.
10482
10483         pread tests: EBADF tests.
10484         * tests/test-pread.c (main): Add tests for EBADF.
10485
10486         lseek tests: EBADF tests.
10487         * tests/test-lseek.c (main): Add more tests for EBADF.
10488
10489         Tests for module 'ftruncate'.
10490         * modules/ftruncate-tests: New file.
10491         * tests/test-ftruncate.sh: New file.
10492         * tests/test-ftruncate.c: New file.
10493
10494         fsync tests: EBADF tests.
10495         * tests/test-fsync.c (main): Add more tests for EBADF.
10496
10497         fdatasync tests: EBADF tests.
10498         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10499
10500         Tests for module 'fchown'.
10501         * modules/fchown-tests: New file.
10502         * tests/test-fchown.c: New file.
10503
10504         Tests for module 'fchmod'.
10505         * modules/fchmod-tests: New file.
10506         * tests/test-fchmod.c: New file.
10507
10508         fchdir tests: EBADF tests.
10509         * tests/test-fchdir.c (main): Add more tests for EBADF.
10510
10511         dup2 tests: EBADF tests.
10512         * tests/test-dup2.c (main): Add more tests for EBADF.
10513
10514         Tests for module 'dup'.
10515         * modules/dup-tests: New file.
10516         * tests/test-dup.c: New file.
10517
10518         Tests for module 'close'.
10519         * modules/close-tests: New file.
10520         * tests/test-close.c: New file.
10521
10522 2011-09-20  Bruno Haible  <bruno@clisp.org>
10523
10524         Tests for module 'shutdown'.
10525         * modules/shutdown-tests: New file.
10526         * tests/test-shutdown.c: New file.
10527
10528         Tests for module 'setsockopt'.
10529         * modules/setsockopt-tests: New file.
10530         * tests/test-setsockopt.c: New file.
10531
10532         Tests for module 'sendto'.
10533         * modules/sendto-tests: New file.
10534         * tests/test-sendto.c: New file.
10535
10536         Tests for module 'send'.
10537         * modules/send-tests: New file.
10538         * tests/test-send.c: New file.
10539
10540         Tests for module 'recvfrom'.
10541         * modules/recvfrom-tests: New file.
10542         * tests/test-recvfrom.c: New file.
10543
10544         Tests for module 'recv'.
10545         * modules/recv-tests: New file.
10546         * tests/test-recv.c: New file.
10547
10548         Tests for module 'listen'.
10549         * modules/listen-tests: New file.
10550         * tests/test-listen.c: New file.
10551
10552         Tests for module 'getsockopt'.
10553         * modules/getsockopt-tests: New file.
10554         * tests/test-getsockopt.c: New file.
10555
10556         Tests for module 'getsockname'.
10557         * modules/getsockname-tests: New file.
10558         * tests/test-getsockname.c: New file.
10559
10560         Tests for module 'getpeername'.
10561         * modules/getpeername-tests: New file.
10562         * tests/test-getpeername.c: New file.
10563
10564         Tests for module 'connect'.
10565         * modules/connect-tests: New file.
10566         * tests/test-connect.c: New file.
10567
10568         Tests for module 'bind'.
10569         * modules/bind-tests: New file.
10570         * tests/test-bind.c: New file.
10571
10572         accept4 tests: Fix for native Windows.
10573         * tests/test-accept4.c: Include sockets.h.
10574         (main): Invoke gl_sockets_startup.
10575         * modules/accept4-tests (Depends-on): Add sockets.
10576
10577         accept tests: Fix for native Windows.
10578         * tests/test-accept.c: Include sockets.h.
10579         (main): Invoke gl_sockets_startup.
10580         * modules/accept-tests (Depends-on): Add sockets.
10581
10582 2011-09-19  Bruno Haible  <bruno@clisp.org>
10583
10584         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10585         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10586         do...while(0).
10587         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10588         Suggested by Paul Eggert.
10589
10590 2011-09-19  Bruno Haible  <bruno@clisp.org>
10591
10592         sched: Ensure pid_t is defined.
10593         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10594         not define pid_t.
10595         * lib/sched.in.h: Include <sys/types.h>.
10596         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10598
10599 2011-09-19  Bruno Haible  <bruno@clisp.org>
10600
10601         msvc-inval: Ensure the entire expansion is a single statement.
10602         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10603         of braces.
10604
10605 2011-09-19  Jim Meyering  <meyering@redhat.com>
10606
10607         tests: use printf, not echo in init.sh's warn_ function
10608         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10609         misbehave when given strings containing a backslash or starting
10610         with e.g., -n.  James Youngman suggested setting IFS.
10611
10612 2011-09-19  Eric Blake  <eblake@redhat.com>
10613
10614         futimens: enhance test
10615         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10616         closed non-negative fd.
10617
10618         date: accept 'hence' as opposite of 'ago'
10619         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10620         * tests/test-parse-datetime.c (main): Enhance test.
10621         Suggested by Jesse Wilson.
10622
10623 2011-09-19  Jim Meyering  <meyering@redhat.com>
10624
10625         getcwd: don't fail in a deep directory on a system without openat
10626         Before this change, getcwd would fail when called from a directory
10627         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10628         the non-openat implementation used "..", "../..", "../../..", etc.
10629         to access ancestor directories.  With too many, that string would
10630         be longer than PATH_MAX.
10631         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10632         using gnulib's openat replacement.
10633         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10634         we're using the replacement function.
10635
10636 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10637
10638         maint.mk: avoid warnings from perl about missing files
10639         * top/maint.mk (def_sym_regex): Ignore files listed in
10640         $(gl_other_headers_) that do not exist, say because a project
10641         does not use a corresponding module.
10642
10643 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10644
10645         stat: use pathmax.h only if needed
10646         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10647         This is better for Emacs, which does not have a mingw port and
10648         therefore can avoid the pathmax module.
10649
10650         utimens: remove dependency on dup2
10651         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10652         to work around the Linux kernel bug.
10653         * modules/utimens (Depends-on): Remove dup2.
10654
10655 2011-09-18  Bruno Haible  <bruno@clisp.org>
10656
10657         inet_ntop, inet_pton: Look for it also in libresolv.
10658         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10659         libnsl, search for it in libresolv.
10660         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10661         Needed on Solaris 7.
10662
10663 2011-09-18  Bruno Haible  <bruno@clisp.org>
10664
10665         accept, accept4 tests: Avoid link error on Solaris.
10666         * modules/accept-tests (Makefile.am): Link test-accept against
10667         $(LIBSOCKET).
10668         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10669         $(LIBSOCKET).
10670
10671         accept4: Avoid link error on Solaris.
10672         * modules/accept4 (Link): New section.
10673
10674         socket functions: Avoid link errors on Solaris.
10675         * modules/accept (Depends-on): Add socketlib.
10676         (Link): New section.
10677         * modules/bind (Depends-on): Add socketlib.
10678         (Link): New section.
10679         * modules/connect (Depends-on): Add socketlib.
10680         (Link): New section.
10681         * modules/getpeername (Depends-on): Add socketlib.
10682         (Link): New section.
10683         * modules/getsockname (Depends-on): Add socketlib.
10684         (Link): New section.
10685         * modules/getsockopt (Depends-on): Add socketlib.
10686         (Link): New section.
10687         * modules/listen (Depends-on): Add socketlib.
10688         (Link): New section.
10689         * modules/recv (Depends-on): Add socketlib.
10690         (Link): New section.
10691         * modules/recvfrom (Depends-on): Add socketlib.
10692         (Link): New section.
10693         * modules/send (Depends-on): Add socketlib.
10694         (Link): New section.
10695         * modules/sendto (Depends-on): Add socketlib.
10696         (Link): New section.
10697         * modules/setsockopt (Depends-on): Add socketlib.
10698         (Link): New section.
10699         * modules/shutdown (Depends-on): Add socketlib.
10700         (Link): New section.
10701         * modules/socket (Depends-on): Add socketlib.
10702         (Link): New section.
10703
10704 2011-09-18  Bruno Haible  <bruno@clisp.org>
10705
10706         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10707         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10708         than 5 seconds.
10709         * modules/ptsname-tests (configure.ac): Test for alarm.
10710
10711 2011-09-18  Bruno Haible  <bruno@clisp.org>
10712
10713         posix_spawn_file_actions_add*: Fix module dependencies.
10714         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10715         posix_spawn_file_actions_init.
10716         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10717         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10718
10719 2011-09-18  Bruno Haible  <bruno@clisp.org>
10720
10721         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10722         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10723         * tests/test-renameat.c (main): Likewise.
10724
10725 2011-09-18  Bruno Haible  <bruno@clisp.org>
10726
10727         Tests for module 'accept4'.
10728         * modules/accept4-tests: New file.
10729         * tests/test-accept4.c: New file.
10730
10731 2011-09-18  Bruno Haible  <bruno@clisp.org>
10732
10733         Tests for module 'accept'.
10734         * modules/accept-tests: New file.
10735         * tests/test-accept.c: New file.
10736
10737 2011-09-18  Bruno Haible  <bruno@clisp.org>
10738
10739         dup2: Support for MSVC.
10740         * lib/dup2.c: Include msvc-inval.h.
10741         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10742         _get_osfhandle calls.
10743         * modules/dup2 (Depends-on): Add msvc-inval.
10744         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10745
10746         New module 'msvc-inval'.
10747         * lib/msvc-inval.h: New file.
10748         * lib/msvc-inval.c: New file.
10749         * m4/msvc-inval.m4: New file.
10750         * modules/msvc-inval: New file.
10751
10752 2011-09-17  Bruno Haible  <bruno@clisp.org>
10753
10754         Tests for module 'pclose'.
10755         * modules/pclose-tests: New file.
10756
10757         New module 'pclose'.
10758         * lib/stdio.in.h (pclose): New declaration.
10759         * lib/pclose.c: New file.
10760         * m4/pclose.m4: New file.
10761         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10762         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10763         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10764         * modules/pclose: New file.
10765         * modules/popen-tests (Depends-on): Add pclose.
10766         * modules/popen-safer-tests (Depends-on): Likewise.
10767         * doc/posix-functions/pclose.texi: Mention the new module.
10768
10769 2011-09-17  Bruno Haible  <bruno@clisp.org>
10770
10771         popen: Support for MSVC.
10772         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10773         * lib/popen.c (popen): Provide alternate definition for native Windows.
10774         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10776         * modules/popen (Depends-on, configure.ac): Update condition.
10777         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10778         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10779         fixed.
10780
10781 2011-09-17  Bruno Haible  <bruno@clisp.org>
10782
10783         isnanl, isnand, isnanf: Work around MSVC bug.
10784         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10785
10786 2011-09-17  Bruno Haible  <bruno@clisp.org>
10787
10788         sys_socket tests: Fix recent mistake.
10789         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10790
10791 2011-09-17  Bruno Haible  <bruno@clisp.org>
10792
10793         putenv: Support for MSVC.
10794         * modules/putenv (Depends-on): Add environ.
10795         * lib/putenv.c (environ): Disable declaration.
10796         * lib/unistd.in.h: Update comment.
10797
10798 2011-09-17  Bruno Haible  <bruno@clisp.org>
10799
10800         math: Avoid macro redefinition warnings on MSVC.
10801         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10802         Undefine before redefining.
10803
10804 2011-09-17  Bruno Haible  <bruno@clisp.org>
10805
10806         doc: Mention functions which are declared as macros.
10807         * doc/posix-functions/*[fl].texi: Mention that some functions are
10808         defined as macros with arguments only.
10809
10810 2011-09-17  Bruno Haible  <bruno@clisp.org>
10811
10812         Add dependencies to new dirent related modules.
10813         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10814         * modules/fts (Depends-on): Likewise.
10815         * modules/glob (Depends-on): Likewise.
10816         * modules/savedir (Depends-on): Likewise.
10817         * modules/scandir (Depends-on): Likewise.
10818         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10819         * modules/fdopendir (Depends-on): Add opendir.
10820
10821 2011-09-17  Bruno Haible  <bruno@clisp.org>
10822
10823         inet_pton: Support for MSVC on Windows Vista or newer.
10824         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10825         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10826         HAVE_DECL_INET_PTON is defined.
10827         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10828         On platforms with <winsock2.h>, test whether inet_pton is declared in
10829         <ws2tcpip.h>. If so, arrange to replace it.
10830         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10831         REPLACE_INET_PTON.
10832         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10833         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10834         (Depends-on, configure.ac): Update condition.
10835         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10836
10837 2011-09-17  Bruno Haible  <bruno@clisp.org>
10838
10839         inet_ntop: Support for MSVC on Windows Vista or newer.
10840         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10841         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10842         HAVE_DECL_INET_NTOP is defined.
10843         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10844         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10845         <ws2tcpip.h>. If so, arrange to replace it.
10846         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10847         REPLACE_INET_NTOP.
10848         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10849         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10850         (Depends-on, configure.ac): Update condition.
10851         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10852
10853 2011-09-16  Eric Blake  <eblake@redhat.com>
10854
10855         test-fsync: yet another enhancement
10856         * tests/test-fsync.c (main): Also test behavior on read-only text
10857         file.
10858
10859 2011-09-16  Bruno Haible  <bruno@clisp.org>
10860
10861         Enhance fsync, fdatasync tests.
10862         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10863         * tests/test-fdatasync.c (main): Likewise.
10864
10865 2011-09-16  Bruno Haible  <bruno@clisp.org>
10866
10867         Support for MSVC compiler: Ensure mode_t gets defined.
10868         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10869         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10871         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10872         * tests/test-fcntl-h.c: Check that mode_t is defined.
10873         * tests/test-sys_stat.c: Likewise.
10874         * tests/test-sys_types.c: Likewise.
10875         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10876         * doc/posix-headers/sys_stat.texi: Likewise.
10877         * doc/posix-headers/sys_types.texi: Likewise.
10878
10879 2011-09-16  Bruno Haible  <bruno@clisp.org>
10880
10881         sys_stat: Support for MSVC.
10882         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10883         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10884         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10885         MSVC.
10886
10887 2011-09-16  Bruno Haible  <bruno@clisp.org>
10888
10889         Support for MSVC compiler: Ensure off_t gets defined.
10890         * lib/unistd.in.h: Include <sys/types.h>.
10891         * tests/test-fcntl-h.c: Check that off_t is defined.
10892         * tests/test-sys_stat.c: Likewise.
10893         * tests/test-sys_types.c: Likewise.
10894
10895 2011-09-16  Eric Blake  <eblake@redhat.com>
10896
10897         fdatasync: port to Solaris
10898         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10899         * modules/fdatasync (Link): Document it.
10900         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10901
10902         fdatasync: port to MacOS X 10.7
10903         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10904         declared.
10905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10906         * modules/unistd (Makefile.am): Substitute it.
10907         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10908         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10909
10910         fdatasync: minor improvements
10911         * modules/fdatasync (Depends-on): Add condition for fsync.
10912         * lib/fdatasync.c (fdatasync): Add comment.
10913         * tests/test-unistd-c++.cc: Test fdatasync.
10914
10915         unistd: update refs to newer POSIX
10916         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10917         Suggested by Bruno Haible.
10918
10919         fdatasync: new module
10920         * modules/fsync (Description): Document difference to fdatasync.
10921         * modules/fdatasync: New module.
10922         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10923         * lib/fdatasync.c (fdatasync): Likewise.
10924         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10925         defaults.
10926         * modules/unistd (Makefile.am): Set witnesses.
10927         * lib/unistd.in.h (fdatasync): Declare.
10928         * MODULES.html.sh: Document it.
10929         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10930         * modules/fdatasync-tests: New test.
10931         * tests/test-fdatasync.c: Likewise.
10932
10933 2011-09-16  Eric Blake  <eblake@redhat.com>
10934
10935         test-fsync: enhance tests
10936         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10937         * tests/test-fsync.c (main): Enhance test.
10938
10939 2011-09-15  Bruno Haible  <bruno@clisp.org>
10940
10941         Support for MSVC compiler: Ensure ssize_t gets defined.
10942         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10943         * doc/posix-headers/stdio.texi: Likewise.
10944         * modules/stdio (Depends-on): Add ssize_t.
10945         * modules/sys_socket (Depends-on): Likewise.
10946         * modules/sys_types (Depends-on): Likewise.
10947         * modules/sys_uio (Depends-on): Likewise.
10948         * modules/unistd (Depends-on): Likewise.
10949         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10950         * tests/test-sys_types.c: Check that ssize_t is defined.
10951
10952 2011-09-14  Bruno Haible  <bruno@clisp.org>
10953
10954         Avoid using #, the m4 comment starter character, near brackets.
10955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10956         delimiter character in sed expressions.
10957         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10958         Suggested by Eric Blake.
10959
10960         Properly quote AC_CHECK_DECLS' 4th argument.
10961         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10962         argument.
10963         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10964         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10966         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10967         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10968         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10969         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10970         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10971         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10972         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10973         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10974         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10975         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10976         * m4/isinf.m4 (gl_ISINF): Likewise.
10977         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10978         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10980         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10982         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10983         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10984         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10985         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10986         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10987         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10990         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10992         Reported by Eric Blake.
10993
10994         Properly quote AC_CHECK_DECL's 4th argument.
10995         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10996         argument.
10997         * m4/argp.m4 (gl_ARGP): Likewise.
10998         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10999         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11000         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11001         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11002         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11003         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11005         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11007         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11008         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11009         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11010         Reported by Eric Blake.
11011
11012 2011-09-14  Eric Blake  <eblake@redhat.com>
11013
11014         opendir: avoid compile warning
11015         * lib/opendir.c (includes): Always include errno.h.
11016         Reported by Tatsuro MATSUOKA.
11017
11018 2011-09-14  Jim Meyering  <meyering@redhat.com>
11019
11020         maint.mk: sc_tight_scope: propagate failure from sub-make
11021         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11022         Reported by Martin von Gagern.
11023
11024 2011-09-13  Bruno Haible  <bruno@clisp.org>
11025
11026         tempname: Support for MSVC.
11027         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11028         MSVC.
11029         * modules/tempname (Depends-on): Add fcntl-h.
11030
11031 2011-09-13  Bruno Haible  <bruno@clisp.org>
11032
11033         sys_time: Support for MSVC.
11034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11035         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11036         include <winsock2.h>.
11037         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11038         function declarations that collide with POSIX.
11039         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11040         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11041
11042 2011-09-13  Bruno Haible  <bruno@clisp.org>
11043
11044         stat: Support for MSVC.
11045         * lib/stat.c: Include pathmax.h.
11046         * modules/stat (Depends-on): Add pathmax.
11047
11048         pathmax: Support for native Windows.
11049         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11050
11051 2011-09-12  Bruno Haible  <bruno@clisp.org>
11052
11053         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11054         * lib/dirent.in.h (struct dirent): New type.
11055         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11056         DT_WHT): New macros.
11057         (DIR): New type.
11058         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11059         (readdir, rewinddir): New declarations.
11060         * lib/dirent-private.h: New file.
11061         * lib/opendir.c: New file.
11062         * lib/readdir.c: New file.
11063         * lib/rewinddir.c: New file.
11064         * lib/closedir.c: New file.
11065         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11066         * m4/opendir.m4: New file.
11067         * m4/readdir.m4: New file.
11068         * m4/rewinddir.m4: New file.
11069         * m4/closedir.m4: New file.
11070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11071         REPLACE_CLOSEDIR here.
11072         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11073         readdir, rewinddir are declared.
11074         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11075         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11076         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11077         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11078         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11079         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11080         * modules/opendir: New file.
11081         * modules/readdir: New file.
11082         * modules/rewinddir: New file.
11083         * modules/closedir: New file.
11084         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11085         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11086         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11087         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11088         * NEWS: Mention the 'fchdir' change.
11089
11090 2011-09-11  Bruno Haible  <bruno@clisp.org>
11091
11092         asm-underscore.m4: Support for MSVC.
11093         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11094         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11095
11096 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11097
11098         Doc about crypt functions.
11099         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11100         needing for _GNU_SOURCE to get crypt.
11101         * doc/posix-functions/encrypt.texi: Likewise.
11102         * doc/posix-functions/setkey.texi: Likewise.
11103
11104 2011-09-11  Bruno Haible  <bruno@clisp.org>
11105
11106         doc: Update regarding MSVC 9.
11107         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11108         tested".
11109         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11110         * doc/posix-headers/*.texi: Likewise.
11111         * doc/pastposix-functions/*.texi: Likewise.
11112         * doc/glibc-functions/*.texi: Likewise.
11113         * doc/glibc-headers/*.texi: Likewise.
11114
11115 2011-09-11  Bruno Haible  <bruno@clisp.org>
11116
11117         unistd et al.: Don't assume <unistd.h> exists.
11118         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11119         does not exist.
11120         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11121         exist. But include <stdlib.h>.
11122         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11123         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11124         symlink() does not exist.
11125         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11126         include <io.h> instead.
11127         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11129         include <direct.h> instead.
11130         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11132         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11133         <io.h> instead.
11134         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11135         correctly if the system does not have hard links.
11136         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11137         <direct.h> instead.
11138         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11139         it when looking for function declarations.
11140         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11141         <direct.h> and <io.h> instead.
11142         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11143
11144 2011-09-11  Bruno Haible  <bruno@clisp.org>
11145
11146         strcase: Support for MSVC.
11147         * modules/strcase (Status, Notice): Remove obsoletion mark.
11148         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11149         * doc/posix-functions/strncasecmp.texi: Likewise.
11150
11151         strings: Don't assume <strings.h> exists.
11152         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11153         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11154         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11155         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11156
11157 2011-09-11  Bruno Haible  <bruno@clisp.org>
11158
11159         dirent: Don't assume <dirent.h> exists.
11160         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11161         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11162         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11163         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11164
11165 2011-09-11  Bruno Haible  <bruno@clisp.org>
11166
11167         Fix wint_t on MSVC.
11168         * lib/wchar.in.h (wint_t): On MSVC, override it.
11169         * lib/wctype.in.h (wint_t): Likewise.
11170         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11171         MSVC.
11172         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11173         * doc/posix-headers/wctype.texi: Likewise.
11174
11175 2011-09-11  Bruno Haible  <bruno@clisp.org>
11176
11177         sys_types: Fix typo.
11178         * lib/sys_types.in.h: Fix typo in comment.
11179         Reported by Paul Eggert.
11180
11181         Support for MSVC compiler: Ensure size_t gets defined.
11182         * modules/strings (Depends-on): Add 'sys_types'.
11183         * modules/sys_uio (Depends-on): Likewise.
11184         * lib/sys_uio.in.h: Update comment.
11185
11186         C++ tests for module 'sys_types'.
11187         * modules/sys_types-c++-tests: New file.
11188         * tests/test-sys_types-c++.cc: New file.
11189
11190         Tests for module 'sys_types'.
11191         * modules/sys_types-tests: New file.
11192         * tests/test-sys_types.c: New file.
11193
11194         New module 'sys_types'.
11195         * lib/sys_types.in.h: New file.
11196         * m4/sys_types_h.m4: New file.
11197         * modules/sys_types: New file.
11198         * doc/posix-headers/sys_types.texi: Mention the new module and the
11199         size_t problem on MSVC 9.
11200
11201 2011-09-11  Bruno Haible  <bruno@clisp.org>
11202
11203         Support for MSVC compiler: Avoid division by a literal 0.
11204         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11205         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11206         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11207         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11208         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11209         * tests/infinity.h: New file.
11210         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11211         on MSVC.
11212         * tests/test-ceilf1.c: Include infinity.h.
11213         (main): Use Infinityf.
11214         * tests/test-ceil1.c: Include infinity.h.
11215         (main): Use Infinityd.
11216         * tests/test-ceill.c: Include infinity.h.
11217         (main): Use Infinityl.
11218         * tests/test-dprintf-posix.c: Include infinity.h.
11219         (test_function): Use Infinityd.
11220         * tests/test-floorf1.c: Include infinity.h.
11221         (main): Use Infinityf.
11222         * tests/test-floor1.c: Include infinity.h.
11223         (main): Use Infinityd.
11224         * tests/test-floorl.c: Include infinity.h.
11225         (main): Use Infinityl.
11226         * tests/test-fprintf-posix.c: Include infinity.h.
11227         (test_function): Use Infinityd.
11228         * tests/test-frexp.c: Include infinity.h.
11229         (main): Use Infinityd.
11230         * tests/test-frexpl.c: Include infinity.h.
11231         (main): Use Infinityl.
11232         * tests/test-isfinite.c: Include infinity.h.
11233         (test_isfinitef): Use Infinityf.
11234         (test_isfinited): Use Infinityd.
11235         (test_isfinitel): Use Infinityl.
11236         * tests/test-isinf.c: Include infinity.h.
11237         (test_isinff): Use Infinityf.
11238         (test_isinfd): Use Infinityd.
11239         (test_isinfl): Use Infinityl.
11240         * tests/test-isnan.c: Include infinity.h.
11241         (test_float): Use Infinityf.
11242         (test_double): Use Infinityd.
11243         (test_long_double): Use Infinityl.
11244         * tests/test-isnanf.h: Include infinity.h.
11245         (main): Use Infinityf.
11246         * tests/test-isnand.h: Include infinity.h.
11247         (main): Use Infinityd.
11248         * tests/test-isnanl.h: Include infinity.h.
11249         (main): Use Infinityl.
11250         * tests/test-ldexpl.c: Include infinity.h.
11251         (main): Use Infinityl.
11252         * tests/test-printf-posix.h: Include infinity.h.
11253         (test_function): Use Infinityd.
11254         * tests/test-roundf1.c: Include infinity.h.
11255         (main): Use Infinityf.
11256         * tests/test-round1.c: Include infinity.h.
11257         (main): Use Infinityd.
11258         * tests/test-roundl.c: Include infinity.h.
11259         (main): Use Infinityl.
11260         * tests/test-signbit.c: Include infinity.h.
11261         (test_signbitf): Use Infinityf.
11262         (test_signbitd): Use Infinityd.
11263         (test_signbitl): Use Infinityl.
11264         * tests/test-snprintf-posix.h: Include infinity.h.
11265         (test_function): Use Infinityd, Infinityl.
11266         * tests/test-sprintf-posix.h: Include infinity.h.
11267         (test_function): Use Infinityd, Infinityl.
11268         * tests/test-truncf1.c: Include infinity.h.
11269         (main): Use Infinityf.
11270         * tests/test-trunc1.c: Include infinity.h.
11271         (main): Use Infinityd.
11272         * tests/test-truncl.c: Include infinity.h.
11273         (main): Use Infinityl.
11274         * tests/test-vasnprintf-posix.c: Include infinity.h.
11275         (test_function): Use Infinityd, Infinityl.
11276         * tests/test-vasprintf-posix.c: Include infinity.h.
11277         (test_function): Use Infinityd, Infinityl.
11278         * modules/ceilf-tests (Files): Add tests/infinity.h.
11279         * modules/ceil-tests (Files): Likewise.
11280         * modules/ceill-tests (Files): Likewise.
11281         * modules/dprintf-posix-tests (Files): Likewise.
11282         * modules/floorf-tests (Files): Likewise.
11283         * modules/floor-tests (Files): Likewise.
11284         * modules/floorl-tests (Files): Likewise.
11285         * modules/fprintf-posix-tests (Files): Likewise.
11286         * modules/frexp-tests (Files): Likewise.
11287         * modules/frexp-nolibm-tests (Files): Likewise.
11288         * modules/frexpl-tests (Files): Likewise.
11289         * modules/frexpl-nolibm-tests (Files): Likewise.
11290         * modules/isfinite-tests (Files): Likewise.
11291         * modules/isinf-tests (Files): Likewise.
11292         * modules/isnan-tests (Files): Likewise.
11293         * modules/isnanf-tests (Files): Likewise.
11294         * modules/isnanf-nolibm-tests (Files): Likewise.
11295         * modules/isnand-tests (Files): Likewise.
11296         * modules/isnand-nolibm-tests (Files): Likewise.
11297         * modules/isnanl-tests (Files): Likewise.
11298         * modules/isnanl-nolibm-tests (Files): Likewise.
11299         * modules/ldexpl-tests (Files): Likewise.
11300         * modules/printf-posix-tests (Files): Likewise.
11301         * modules/roundf-tests (Files): Likewise.
11302         * modules/round-tests (Files): Likewise.
11303         * modules/roundl-tests (Files): Likewise.
11304         * modules/signbit-tests (Files): Likewise.
11305         * modules/snprintf-posix-tests (Files): Likewise.
11306         * modules/sprintf-posix-tests (Files): Likewise.
11307         * modules/truncf-tests (Files): Likewise.
11308         * modules/trunc-tests (Files): Likewise.
11309         * modules/truncl-tests (Files): Likewise.
11310         * modules/vasnprintf-posix-tests (Files): Likewise.
11311         * modules/vasprintf-posix-tests (Files): Likewise.
11312         * modules/vdprintf-posix-tests (Files): Likewise.
11313         * modules/vfprintf-posix-tests (Files): Likewise.
11314         * modules/vprintf-posix-tests (Files): Likewise.
11315         * modules/vsnprintf-posix-tests (Files): Likewise.
11316         * modules/vsprintf-posix-tests (Files): Likewise.
11317         * modules/xprintf-posix-tests (Files): Likewise.
11318
11319 2011-09-11  Bruno Haible  <bruno@clisp.org>
11320
11321         Ensure pid_t gets defined.
11322         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11323         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11324         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11325         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11326         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11327         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11328         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11330         * tests/test-fcntl-h.c: Check that pid_t is defined.
11331         * tests/test-sched.c: Likewise.
11332         * tests/test-termios.c: Likewise.
11333         * tests/test-time.c: Likewise.
11334         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11335         * doc/posix-headers/signal.texi: Likewise.
11336         * doc/posix-headers/sys_types.texi: Likewise.
11337         * doc/posix-headers/time.texi: Likewise.
11338
11339 2011-09-11  Bruno Haible  <bruno@clisp.org>
11340
11341         acl: Fix compilation on Solaris 10 (older version).
11342         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11343         of ACE_EVERYONE.
11344         * lib/set-mode-acl.c (qset_acl): Likewise.
11345         Reported by Christian Jullien <eligis@orange.fr>.
11346
11347 2011-09-10  Bruno Haible  <bruno@clisp.org>
11348
11349         iconv, unsetenv: Add support for MSVC compiler.
11350         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11352
11353 2011-09-10  Bruno Haible  <bruno@clisp.org>
11354
11355         *printf: Add support for MSVC compiler.
11356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11357         handles the exception caused by the %n directive. When cross-compiling,
11358         guess no on native Windows.
11359         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11360         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11361         emulate it through vsnprintf.
11362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11363         * doc/posix-functions/dprintf.texi: Update documentation regarding
11364         MSVC 9.
11365         * doc/posix-functions/fprintf.texi: Likewise.
11366         * doc/posix-functions/printf.texi: Likewise.
11367         * doc/posix-functions/snprintf.texi: Likewise.
11368         * doc/posix-functions/sprintf.texi: Likewise.
11369         * doc/posix-functions/swprintf.texi: Likewise.
11370         * doc/posix-functions/vdprintf.texi: Likewise.
11371         * doc/posix-functions/vfprintf.texi: Likewise.
11372         * doc/posix-functions/vprintf.texi: Likewise.
11373         * doc/posix-functions/vsnprintf.texi: Likewise.
11374         * doc/posix-functions/vsprintf.texi: Likewise.
11375         * doc/glibc-functions/asprintf.texi: Likewise.
11376         * doc/glibc-functions/obstack_printf.texi: Likewise.
11377         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11378         * doc/glibc-functions/vasprintf.texi: Likewise.
11379
11380 2011-09-10  Bruno Haible  <bruno@clisp.org>
11381
11382         nocrash: Add support for native Windows.
11383         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11384
11385 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11386             Bruno Haible  <bruno@clisp.org>
11387
11388         absolute-header, include-next: Add support for MSVC compiler.
11389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11390         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11391         directory separator in #line directives.
11392         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11393         recognize also backslash as directory separator in #line directives.
11394
11395 2011-09-08  Jim Meyering  <meyering@redhat.com>
11396
11397         maint.mk: mark the post-release commit log with "maint: " prefix
11398         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11399         one-line commit-log summary.
11400
11401 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11402             Bruno Haible  <bruno@clisp.org>
11403
11404         Doc about crypt functions.
11405         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11406         systems.
11407         * doc/posix-functions/encrypt.texi: Likewise.
11408         * doc/posix-functions/setkey.texi: Likewise.
11409
11410 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11411
11412         * lib/gc.h: Fix copyright header.
11413
11414 2011-09-07  Bruno Haible  <bruno@clisp.org>
11415
11416         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11417         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11418         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11419
11420 2011-09-07  Bruno Haible  <bruno@clisp.org>
11421
11422         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11423         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11424         * lib/freopen.c: Likewise.
11425         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11426         * lib/lstat.c: Likewise.
11427         * lib/stat.c: Likewise.
11428         * lib/open.c: Use different syntax for include of <fcntl.h>.
11429         * lib/openat.c: Include fcntl.h again, explicitly.
11430
11431 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11432
11433         parse-datetime: document the newly accepted format
11434         * doc/parse-datetime.texi (Combined date and time of day items):
11435         New section.
11436
11437 2011-09-06  Bruno Haible  <bruno@clisp.org>
11438
11439         acl: Fix a test failure on newer Solaris 10 with ZFS.
11440         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11441         ENOSYS as no ACL.
11442         Reported by Jim Meyering.
11443
11444 2011-09-06  Bruno Haible  <bruno@clisp.org>
11445
11446         acl: Update for AIX >= 5.3 with NFS.
11447         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11448         ENOSYS as no ACL.
11449
11450         acl: Fix a test failure on AIX >= 5.3 with NFS.
11451         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11452         as no ACL.
11453
11454 2011-09-06  Bruno Haible  <bruno@clisp.org>
11455
11456         acl: Fix a test failure on IRIX 6.5 with NFS.
11457         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11458         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11459         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11460         * lib/copy-acl.c (qcopy_acl): Likewise.
11461
11462 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11463
11464         openat: port to AIX 7.1 with large files
11465         AIX 7.1 does a "#define openat open64at" if large files are in use,
11466         so we can't simply #undef openat.  Use the orig_openat trick (similar
11467         to orig_open in lib/open.c) to work around the problem.  Problem
11468         reported by Kevin Brott for GNU tar, in the thread containing
11469         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11470         * lib/openat.c (__need_system_fcntl_h): Define first.
11471         Include <fcntl.h> and <sys/types.h> before undefining.
11472         (orig_openat) [HAVE_OPENAT]: New inline function.
11473         (openat) [HAVE_OPENAT]: Do not undef.
11474         (rpl_openat): Use orig_openat, not openat.
11475
11476 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11477             Bruno Haible  <bruno@clisp.org>
11478
11479         acl: Avoid errors on NonStop Kernel.
11480         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11481         ENOTSUP errors.
11482
11483 2011-09-05  Bruno Haible  <bruno@clisp.org>
11484
11485         acl: Clean up Solaris code.
11486         * lib/acl-internal.h: Remove no-op #if.
11487         * lib/file-has-acl.c: Likewise.
11488         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11489         * lib/copy-acl.c (qcopy_acl): Likewise.
11490
11491 2011-09-05  Bruno Haible  <bruno@clisp.org>
11492
11493         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11494         binaries built on the original Solaris 10.
11495         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11496         trivial.
11497
11498 2011-09-05  Bruno Haible  <bruno@clisp.org>
11499
11500         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11501         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11502         10.
11503         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11504         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11505         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11506         instead of acl_get, facl_get, acl_set, facl_set.
11507
11508 2011-09-05  Bruno Haible  <bruno@clisp.org>
11509
11510         copy-file: Try unit tests on more file systems.
11511         * tests/test-copy-file-1.sh: New file.
11512         * tests/test-copy-file-2.sh: New file.
11513         * modules/copy-file-tests (Files): Add them.
11514         (Makefile.am): Add them to TESTS.
11515
11516         acl: Try unit tests on more file systems.
11517         * tests/test-file-has-acl-1.sh: New file.
11518         * tests/test-file-has-acl-2.sh: New file.
11519         * tests/test-set-mode-acl-1.sh: New file.
11520         * tests/test-set-mode-acl-2.sh: New file.
11521         * tests/test-copy-acl-1.sh: New file.
11522         * tests/test-copy-acl-2.sh: New file.
11523         * modules/acl-tests (Files): Add them.
11524         (Makefile.am): Add them to TESTS.
11525
11526 2011-09-04  Bruno Haible  <bruno@clisp.org>
11527
11528         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11529         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11530         10.
11531         (OLD_ALLOW, OLD_DENY): New macros.
11532         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11533         ACE_ACCESS_ALLOWED_ACE_TYPE.
11534         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11535         ACE_ACCESS_DENIED_ACE_TYPE.
11536         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11537         (NEW_ACE_EXECUTE): Fix value.
11538         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11539         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11540         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11541         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11542         NEW_ACE_SYNCHRONIZE): New macros.
11543         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11544         instead of acl_fromtext, acl_set, facl_set.
11545         Fixes a coreutils/tests/cp/perm failure.
11546
11547 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11548
11549         openat: test for fstatat (..., 0) bug
11550         Further testing with tar suggests that fstatat (..., 0)
11551         does not work in general, on AIX 7.1; see
11552         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11553         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11554         replacement fstatat (which is what older AIX releases were using
11555         anyway).
11556         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11557         use is now changed to orig_fstatat.  This was probably the right
11558         thing to do anyway.
11559         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11560         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11561         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11562         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11563         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11564         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11565         if the bug is found.
11566
11567         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11568         This tests for another fstatat bug on AIX 7.1:
11569         fstatat (AT_FDCWD, ..., 0) does not work.  See
11570         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11571         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11572         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11573         (rpl_fstatat): Adjust so that it works around either (or both)
11574         bugs if present.
11575         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11576
11577 2011-09-03  Karl Berry  <karl@gnu.org>
11578
11579         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11580         in index entries.
11581
11582 2011-09-02  Bruno Haible  <bruno@clisp.org>
11583
11584         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11585         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11586         values of AR, ARFLAGS, RANLIB.
11587         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11588
11589 2011-09-02  Bruno Haible  <bruno@clisp.org>
11590
11591         Find 'ar' program that fits with --host argument.
11592         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11593
11594 2011-09-02  Bruno Haible  <bruno@clisp.org>
11595
11596         tests: init.sh: Support any non-GNU diff.
11597         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11598         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11599         Solaris 8.
11600
11601 2011-09-02  Bruno Haible  <bruno@clisp.org>
11602
11603         tests: init.sh: work also with any non-GNU diff that supports -u
11604         * tests/init.sh: Relax check for diff -u support.
11605         Rather than checking for GNU diff via --version, simply check
11606         for support for -u itself.  Useful at least on OpenBSD 4.9,
11607         AIX 7.1, IRIX 6.5, and Solaris 10.
11608
11609 2011-09-01  Bruno Haible  <bruno@clisp.org>
11610
11611         strtoimax, strtoumax: Document problem on HP-UX 11.
11612         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11613         * doc/posix-functions/strtoumax.texi: Likewise.
11614
11615 2011-09-01  Bruno Haible  <bruno@clisp.org>
11616
11617         strtoumax: Avoid link error on OSF/1 with DTK cc.
11618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11619         defined as a function.
11620         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11621         strtoumax is defined, not whether it is declared.
11622
11623 2011-09-01  Bruno Haible  <bruno@clisp.org>
11624
11625         strtoimax: Avoid link error on OSF/1 with DTK cc.
11626         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11627         defined as a function.
11628         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11629         strtoimax is defined, not whether it is declared.
11630
11631 2011-09-01  Bruno Haible  <bruno@clisp.org>
11632
11633         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11634         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11635         as a function.
11636         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11637         whether it is declared.
11638
11639 2011-09-01  Bruno Haible  <bruno@clisp.org>
11640
11641         imaxabs: Avoid link error on OSF/1 with DTK cc.
11642         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11643         as a function.
11644         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11645         whether it is declared.
11646
11647 2011-09-01  Bruno Haible  <bruno@clisp.org>
11648
11649         Tests for module 'strtoumax'.
11650         * modules/strtoumax-tests: New file.
11651         * tests/test-strtoumax.c: New file.
11652
11653         Tests for module 'strtoimax'.
11654         * modules/strtoimax-tests: New file.
11655         * tests/test-strtoimax.c: New file.
11656
11657         Tests for module 'imaxdiv'.
11658         * modules/imaxdiv-tests: New file.
11659         * tests/test-imaxdiv.c: New file.
11660
11661         Tests for module 'imaxabs'.
11662         * modules/imaxabs-tests: New file.
11663         * tests/test-imaxabs.c: New file.
11664
11665 2011-09-01  Bruno Haible  <bruno@clisp.org>
11666
11667         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11668         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11669         pthread_create.
11670
11671 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         openat: work around AIX 7.1 fstatat issue
11674         This should fix the problem that was not properly fixed
11675         in the previous change, dated 2011-08-30.
11676         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11677         __need_system_stat_h defined.
11678         (orig_fstatat) [HAVE_FSTATAT]: New function.
11679         (rpl_fstatat): Go back to the old way of doing things,
11680         except call orig_fstatat instead of fstatat.
11681         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11682         Remove unnecessary check whether fstatat fills in st_size etc.
11683
11684 2011-09-01  Bruno Haible  <bruno@clisp.org>
11685
11686         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11687         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11688         just include the system's header.
11689
11690 2011-08-31  Jim Meyering  <meyering@redhat.com>
11691
11692         tests: avoid spurious assertion failure in test-float.c on ppc64
11693         * tests/test-float.c (test_long_double): Comment out an assertion,
11694         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11695         with gcc-4.4.4.
11696
11697         maint: indent with spaces, not TABs
11698         I need to get in the habit of running gnulib's "make check".
11699         Both of these would have been caught.
11700         * m4/largefile.m4: Indent with spaces, not TABs.
11701         * lib/parse-datetime.y (iso_8601_time): Likewise.
11702         Spotted by Pádraig Brady.
11703
11704         test-parse-datetime.c: accommodate a relatively strict gcc warning
11705         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11706         to avoid a warning from gcc's -Werror=missing-declarations.
11707         Insert a few spaces-before-funcall-parenthesis.
11708
11709 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11710
11711         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11712         The parser now accepts ISO 8601 date-time strings with "T" as the
11713         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11714         with a space between the date and time strings.  Now it also parses
11715         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11716         variants like "2004-02-29T16:21:42.333-07:00"
11717         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11718         of day representation using the 'T' separator character.
11719         * doc/parse-datetime.texi (General date syntax): replace use of
11720         deprecated --iso-8601 option with --rfc-3339 in example of date
11721         command output formats that can be parsed.
11722         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11723         lib/parse-datetime.y.
11724         (gmt_offset): New function.
11725         (main): Add additional test cases to validate ISO8601 extended
11726         date and time of day parsing.
11727
11728 2011-08-31  Bruno Haible  <bruno@clisp.org>
11729
11730         freopen: Documentation.
11731         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11732         name.
11733         Reported by Claudio Bley <claudio.bley@gmail.com>.
11734
11735 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11736
11737         freopen: Don't crash if the filename argument is NULL.
11738         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11739         NULL.
11740
11741 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11742
11743         openat: work around AIX 7.1 fstatat bug
11744         Problem reported by Kevin Brott for GNU tar, in the thread containing
11745         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11746         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11747         FSTATAT_ST_SIZE_ETC_BROKEN.
11748         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11749         rpl_fstatat.
11750         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11751         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11752         AC_CHECK_FUNCS_ONCE for fstatat.
11753         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11754         fchmodat, mkdirat, openat and unlinkat.
11755
11756 2011-08-30  Bruno Haible  <bruno@clisp.org>
11757
11758         Avoid endless recursions if config.h includes some header files.
11759         * lib/fopen.c (__need_FILE): Define already before including config.h.
11760         * lib/freopen.c (__need_FILE): Likewise.
11761         * lib/open.c (__need_system_fcntl_h): Likewise.
11762         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11763         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11764         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11765
11766 2011-08-25  Karl Berry  <karl@gnu.org>
11767
11768         * config/srclist.txt (ylwrap): new try.
11769         * build-aux/ylwrap: new file.
11770
11771 2011-08-23  Bruno Haible  <bruno@clisp.org>
11772
11773         tmpdir: Use a good default directory on native Windows.
11774         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11775         (P_tmpdir): Default to _P_tmpdir on native Windows.
11776         (path_search): On native Windows, try the value returned by GetTempPath
11777         before trying P_tmpdir.
11778         * modules/tmpdir (Depends-on): Add pathmax.
11779         Suggested by John Darrington <john@darrington.wattle.id.au>.
11780
11781 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11782
11783         doc: fix typo in README-release
11784         * top/README-release: Capitalize first word of a sentence.
11785
11786 2011-08-19  Jim Meyering  <meyering@redhat.com>
11787
11788         fts: do not exhaust memory when processing million-entry directories
11789         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11790         directory would require about 256*N bytes of memory.  Thus, it was
11791         easy to construct a directory too large to be processed by any of
11792         those tools.  With this change, fts' maximum memory utilization is
11793         now limited to around 30MB.
11794         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11795         (fts_read): When we've processed the final entry (i.e., when
11796         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11797         using the parent entry to read any remaining entries.  Dispatch
11798         depending on what fts_build returns:
11799         - NULL+stop, aka failure: stop
11800         - NULL otherwise: move up in the dir hierarchy
11801         - non-NULL: handle this new entry
11802         (fts_build): Declare and use new local, continue_readdir.
11803         Prepare to be called from fts_read, when the entries
11804         from a partially-read directory have just been exhausted.
11805         In that case, we'll skip the opendir and instead use the parent's
11806         fts_dirp and derive dir_fd from that.
11807         Finally, in the readdir loop, if we read max_entries entries,
11808         exit the loop ensuring *not* to call closedir.  This is required
11809         so that fts_dirp can be reused on a subsequent call.
11810         Prompted by Ben England's report of memory exhaustion in find
11811         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11812
11813         maint: fts: move decl of `dp' down into while loop; split a long line
11814         * lib/fts.c (fts_build): No semantic change.
11815
11816         fts: add/use new struct member, fts_dirp
11817         We are about to use this to manage any directory with
11818         too many entries to read all of them into memory at once.
11819         To do that, we'll need to save the DIR* pointer in each
11820         affected FTSENT struct.
11821         * lib/fts_.h: Include <dirent.h>.
11822         (struct FTSENT) [fts_dirp]: New member.
11823         * lib/fts.c (closedir_and_clear): Define.
11824         Use it in place of closedir so that we are sure to
11825         clear the new fts_dirp member when done with it.
11826         (fts_alloc): Initialize the new member.
11827         (fts_lfree): Free, if needed.
11828
11829         maint: fts: give __opendir2 a new parameter and rename
11830         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11831         than surreptitiously using sole caller's "dir_fd".
11832         (fts_opendir): Rename from __opendir2.
11833
11834         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11835         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11836
11837         maint: fts.c: correct off-by-one indentation
11838         * lib/fts.c (fts_build): Correct indentation, change style
11839         of a couple of block comments, and bracing style.
11840
11841         maint: fts.c: move __opendir2 #define "up" out of function body
11842         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11843
11844         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11845         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11846         out for a long time and besides was useful only on BSD systems.
11847
11848 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11849
11850         regex: port to Stratus OpenVOS
11851         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11852         define to empty, rather than attempting nonportable optimizations.
11853         Problem reported by Paul Green in:
11854         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11855         and fix suggested by Eric Blake in:
11856         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11857
11858 2011-08-17  Eric Blake  <eblake@redhat.com>
11859
11860         getcwd: fix test failures on mingw
11861         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11862         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11863         test if long directory cannot be created, and allow mingw errno.
11864
11865         getcwd-lgpl: fix m4 to match relaxed test for BSD
11866         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11867         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11868         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11869         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11870         signature problem.
11871
11872         getcwd: fix compilation on mingw64
11873         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11874         getcwd.
11875         Reported by Marc-André Lureau.
11876
11877         pipe2: silence compiler warning
11878         * lib/pipe2.c (pipe2): Hide label if it is not used.
11879
11880 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11881
11882         relocatable-prog: fix link error
11883         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11884         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11885         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11886         into modules/relocatable-lib without noticing that
11887         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11888         also needs to build relocatable.c.
11889
11890 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11891
11892         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11894         shell code: it contained a 'break' that was not in a loop.
11895         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11896         via a shell-language loop; this may have been true in old Autoconf
11897         versions, but it's not true in Autoconf 2.68.  I found this bug
11898         when testing coreutils git on Solaris 8, whose shell complains
11899         about the syntax error.
11900
11901 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11902
11903         * lib/base64.c: Fix comment to reference RFC 4648.
11904         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11905         <gvtulder@gmail.com>.
11906
11907 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11908
11909         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11910
11911         po/Makefile.in.in: fix make -q problem
11912         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11913         rule, since there's no file named 'check-macro-version' and its
11914         use as a file breaks make -q.
11915         (all): Don't depend on check-macro-version.
11916         (CHECK_MACRO_VERSION): New macro.
11917         (stamp-po): Use it.
11918
11919         configmake: fix make -q problem
11920         * modules/configmake (configmake.h): Update configmake.h's time stamp
11921         even if the file does not change.  Otherwise, 'make -q' fails.
11922         Problem reported by Simon Josefsson in
11923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11924
11925 2011-08-11  Jim Meyering  <meyering@redhat.com>
11926
11927         git-version-gen: correct the advice in a comment
11928         * build-aux/git-version-gen: Correct comment.
11929         Don't recommend to list .tarball-version in .gitignore.
11930
11931 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11932
11933         base64: fix off-by-one buffer size bug
11934         Problem and (trivial) fix reported by Gijs van Tulder in
11935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11936         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11937         * tests/test-base64.c (main): Catch the bug.
11938
11939 2011-08-10  Eric Blake  <eblake@redhat.com>
11940
11941         closein: correct comments
11942         * lib/closein.c (close_stdin): Improve comments.
11943
11944 2011-08-09  Bruno Haible  <bruno@clisp.org>
11945
11946         More tests for 'fseeko'.
11947         * tests/test-fseeko3.c: New file, from Eric Blake.
11948         * tests/test-fseeko3.sh: New file.
11949         * modules/fseeko-tests (Files): Add them.
11950         (TESTS): Add test-fseeko3.sh.
11951         (check_PROGRAMS): Add test-fseeko3.
11952
11953 2011-08-09  Eric Blake  <eblake@redhat.com>
11954
11955         fseeko: remove unneeded hack
11956         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11957
11958         fseeko: fix bug on glibc
11959         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11960         Reported by John W. Eaton.
11961
11962 2011-08-08  Bruno Haible  <bruno@clisp.org>
11963
11964         unictype/base: Fix interoperability with preinstalled libunistring.
11965         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11966         Reported by Simon Josefsson.
11967
11968 2011-08-08  Bruno Haible  <bruno@clisp.org>
11969
11970         iswblank: Detect declaration correctly.
11971         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11972         AC_CHECK_DECLS invocation.
11973
11974 2011-08-08  Bruno Haible  <bruno@clisp.org>
11975
11976         tcgetsid: Detect declaration correctly.
11977         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11978         AC_CHECK_DECLS invocation.
11979         Reported by Simon Josefsson.
11980
11981 2011-08-08  Eric Blake  <eblake@redhat.com>
11982
11983         largefile: fix typo that regressed large file support
11984         * modules/largefile (configure.ac-early): Fix section name.
11985
11986 2011-08-06  Karl Berry  <karl@gnu.org>
11987
11988         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11989         a separate module.
11990
11991 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11992
11993         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11994         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11995         get prototype for free.
11996
11997 2011-08-04  Bruno Haible  <bruno@clisp.org>
11998
11999         Tests for module 'pathmax'.
12000         * modules/pathmax-tests: New file.
12001         * tests/test-pathmax.c: New file.
12002
12003         canonicalize-lgpl: Support larger filenames on the Hurd.
12004         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12005         Reported by Paul Eggert.
12006
12007         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12008         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12009         * lib/chdir-long.h: Include pathmax.h.
12010         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12011         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12012         (PATH_MAX): Remove code that is done by pathmax.h.
12013         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12014         * lib/tmpfile.c: Add a comment.
12015         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12016         * modules/chdir-long (Depends-on): Add pathmax.
12017         * modules/getcwd (Depends-on): Add pathmax.
12018         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12019         is not defined.
12020         * doc/posix-headers/limits.texi: Mention the pathmax module.
12021         * NEWS: Mention the change.
12022
12023 2011-08-02  Bruno Haible  <bruno@clisp.org>
12024
12025         pthread_sigmask: Actually use results of gl_THREADLIB.
12026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12027         gl_THREADLIB, not gl_[]THREADLIB.
12028         Reported by Eric Blake.
12029
12030 2011-08-02  Jim Meyering  <meyering@redhat.com>
12031
12032         maint.mk: relax the default _gl_TS_function_match regexp
12033         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12034         space between function name and "(" in an "extern" declaration.
12035         That would fail to match a decl with no space there: extern void foo();
12036
12037 2011-07-31  Iain Nicol  <iain@thenicols.net>
12038
12039         git-version-gen: document that EXTRA_DIST must include .version
12040         * build-aux/git-version-gen: In the how-to-use comment, document
12041         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12042         will fail when run from an unpacked distribution tarball.
12043
12044 2011-08-01  Bruno Haible  <bruno@clisp.org>
12045
12046         wctype-h: Fix last change.
12047         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12048         REPLACE_TOWLOWER to 0.
12049         Reported by Sam Steingold <sds@gnu.org>.
12050
12051 2011-07-31  Bruno Haible  <bruno@clisp.org>
12052
12053         frexpl: Update autoconf test.
12054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12055         according to changes of 2011-06-20.
12056
12057 2011-07-31  Bruno Haible  <bruno@clisp.org>
12058
12059         sys_utsname: Add support for Minix.
12060         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12061         <sys/utsname.h>.
12062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12063         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12064
12065 2011-07-31  Bruno Haible  <bruno@clisp.org>
12066
12067         strings: Add support for Minix.
12068         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12069         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12070         * doc/posix-headers/strings.texi: Document the Minix problem.
12071
12072 2011-07-31  Bruno Haible  <bruno@clisp.org>
12073
12074         wctype-h: Add support for Minix.
12075         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12076         REPLACE_TOWLOWER.
12077         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12078         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12079         REPLACE_ISWCNTRL.
12080
12081 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12084         This is a performance improvement for 64-bit hosts: it causes the
12085         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12086
12087 2011-07-31  Bruno Haible  <bruno@clisp.org>
12088
12089         stdioext: Add support for Minix.
12090         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12091         * lib/fpurge.c (fpurge): Likewise.
12092         * lib/freadahead.c (freadahead): Likewise.
12093         * lib/freadable.c (freadable): Likewise.
12094         * lib/freading.c (freading): Likewise.
12095         * lib/freadptr.c (freadptr): Likewise.
12096         * lib/freadseek.c (freadptrinc): Likewise.
12097         * lib/fseeko.c (rpl_fseeko): Likewise.
12098         * lib/fseterr.c (fseterr): Likewise.
12099         * lib/fwritable.c (fwritable): Likewise.
12100         * lib/fwriting.c (fwriting): Likewise.
12101         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12102         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12103
12104 2011-07-31  Bruno Haible  <bruno@clisp.org>
12105
12106         errno: Port to Minix.
12107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12108         ECONNABORTED are defined.
12109         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12110         GNULIB_defined_ECONNABORTED): New macros.
12111         * lib/strerror-override.h (strerror_override): Test also
12112         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12113         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12114         ECONNABORTED.
12115         * doc/posix-headers/errno.texi: Mention the Minix problem.
12116
12117 2011-07-31  Bruno Haible  <bruno@clisp.org>
12118
12119         Work around declaration collisions on Minix.
12120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12121         defined, set REPLACE_MBSINIT.
12122         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12123         defined, set REPLACE_MBRTOWC.
12124         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12125         set REPLACE_MBRLEN.
12126         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12127         defined, set REPLACE_MBSRTOWCS.
12128         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12129         defined, set REPLACE_WCRTOMB.
12130         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12131         defined, set REPLACE_WCSRTOMBS.
12132
12133 2011-07-31  Bruno Haible  <bruno@clisp.org>
12134
12135         Add support for Minix with ACK compiler.
12136         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12137         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12138         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12139
12140 2011-07-31  Bruno Haible  <bruno@clisp.org>
12141
12142         Documentation about Minix.
12143         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12144         * doc/glibc-headers/*.texi: Likewise.
12145         * doc/posix-functions/*.texi: Likewise.
12146         * doc/glibc-functions/*.texi: Likewise.
12147
12148 2011-07-31  Bruno Haible  <bruno@clisp.org>
12149
12150         snippet/warn-on-use: Fix indentation.
12151         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12152
12153 2011-07-25  Jim Meyering  <meyering@redhat.com>
12154
12155         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12156         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12157         commands.
12158
12159 2011-07-27  Jim Meyering  <meyering@redhat.com>
12160
12161         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12162         * top/maint.mk (gl_extract_significant_defines_): Now that
12163         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12164         gnulib/lib/signal.in.h, and now that we recommend to
12165         define-if-undefined those two symbols in application code,
12166         we must filter them out of the "significant" list.
12167         This avoids a "make syntax-check" failure in coreutils.
12168
12169 2011-07-26  Eric Blake  <eblake@redhat.com>
12170
12171         warnings: add comments about previous patch
12172         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12173         * m4/include_next.m4: Likewise.
12174         * m4/warn-on-use.m4: Likewise.
12175         * m4/warnings.m4: Likewise, and simplify use.
12176         Suggested by Stefano Lattarini.
12177
12178         include-next, warnings: support older autoconf
12179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12180         AS_VAR_PUSHDEF in a way that works with older autoconf.
12181         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12182         Reported by Daniel P. Berrange.
12183
12184 2011-07-25  Bruno Haible  <bruno@clisp.org>
12185
12186         fseek, ftell: Fix doc.
12187         * doc/posix-functions/fseek.texi: Reword statement about
12188         AC_SYS_LARGEFILE.
12189         * doc/posix-functions/ftell.texi: Likewise.
12190
12191 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12192             Bruno Haible  <bruno@clisp.org>
12193
12194         Add dependencies to the 'largefile' module.
12195         * modules/fopen (Depends-on): Add 'largefile'.
12196         * modules/freopen (Depends-on): Likewise.
12197         * modules/fseeko (Depends-on): Likewise.
12198         * modules/ftello (Depends-on): Likewise.
12199         * modules/glob (Depends-on): Likewise.
12200         * modules/lseek (Depends-on): Likewise.
12201         * modules/lstat (Depends-on): Likewise.
12202         * modules/mkostemp (Depends-on): Likewise.
12203         * modules/mkostemps (Depends-on): Likewise.
12204         * modules/mkstemp (Depends-on): Likewise.
12205         * modules/mkstemps (Depends-on): Likewise.
12206         * modules/open (Depends-on): Likewise.
12207         * modules/openat (Depends-on): Likewise.
12208         * modules/pread (Depends-on): Likewise.
12209         * modules/pwrite (Depends-on): Likewise.
12210         * modules/scandir (Depends-on): Likewise.
12211         * modules/stat (Depends-on): Likewise.
12212         * modules/tmpfile (Depends-on): Likewise.
12213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12214         since the containing module now depends on the largefile module.
12215         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12216         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12217         off_t is fixed by gnulib.
12218         * doc/posix-functions/freopen.texi: Likewise.
12219         * doc/posix-functions/fseeko.texi: Likewise.
12220         * doc/posix-functions/fstatat.texi: Likewise.
12221         * doc/posix-functions/ftello.texi: Likewise.
12222         * doc/posix-functions/glob.texi: Likewise.
12223         * doc/posix-functions/lseek.texi: Likewise.
12224         * doc/posix-functions/lstat.texi: Likewise.
12225         * doc/posix-functions/mkstemp.texi: Likewise.
12226         * doc/posix-functions/open.texi: Likewise.
12227         * doc/posix-functions/openat.texi: Likewise.
12228         * doc/posix-functions/pread.texi: Likewise.
12229         * doc/posix-functions/pwrite.texi: Likewise.
12230         * doc/posix-functions/scandir.texi: Likewise.
12231         * doc/posix-functions/stat.texi: Likewise.
12232         * doc/posix-functions/tmpfile.texi: Likewise.
12233         * doc/glibc-functions/mkostemp.texi: Likewise.
12234         * doc/glibc-functions/mkostemps.texi: Likewise.
12235         * doc/glibc-functions/mkstemps.texi: Likewise.
12236
12237 2011-07-25  Bruno Haible  <bruno@clisp.org>
12238
12239         fcntl: Move AC_LIBOBJ invocation to module description.
12240         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12241         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12242
12243         fcntl: Remove call-in from fchdir.m4.
12244         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12246
12247         dup3: Remove potential call-in from fchdir.m4.
12248         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12250
12251         dup2: Move AC_LIBOBJ invocation to module description.
12252         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12253         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12254         Don't invoke AC_LIBOBJ.
12255         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12256
12257         dup2: Remove call-in from fchdir.m4.
12258         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12260
12261         fclose: Move AC_LIBOBJ invocation to module description.
12262         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12263         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12264         to 1.
12265         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12266
12267         fclose: Remove call-in from close.m4.
12268         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12269         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12270
12271         close: Move AC_LIBOBJ invocation to module description.
12272         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12273         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12274         1.
12275         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12276
12277         close: Remove call-in from fchdir.m4.
12278         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12280
12281         open: Move AC_LIBOBJ invocation to module description.
12282         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12283         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12284         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12285
12286         open: Remove call-in from fchdir.m4.
12287         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12289
12290         fchdir: Start to remove gl_REPLACE_* idiom.
12291         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12292         (gl_FUNC_FCHDIR): Invoke it.
12293
12294 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12295
12296         * lib/ftell.c (ftell): Comment out cast.
12297
12298         close: use gl_REPLACE_FCLOSE only if defined
12299         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12300         is defined.  The close module doesn't depend on the fclose module
12301         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12303         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12304
12305 2011-07-24  Jim Meyering  <meyering@redhat.com>
12306
12307         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12308         * tests/test-select.h (test_function): Declare as "static".
12309
12310 2011-07-24  Bruno Haible  <bruno@clisp.org>
12311
12312         doc: Mention the effects of AC_SYS_LARGEFILE.
12313         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12314         on this function.
12315         * doc/posix-functions/aio_error.texi: Likewise.
12316         * doc/posix-functions/aio_fsync.texi: Likewise.
12317         * doc/posix-functions/aio_read.texi: Likewise.
12318         * doc/posix-functions/aio_return.texi: Likewise.
12319         * doc/posix-functions/aio_suspend.texi: Likewise.
12320         * doc/posix-functions/aio_write.texi: Likewise.
12321         * doc/posix-functions/fgetpos.texi: Likewise.
12322         * doc/posix-functions/fopen.texi: Likewise.
12323         * doc/posix-functions/freopen.texi: Likewise.
12324         * doc/posix-functions/fsetpos.texi: Likewise.
12325         * doc/posix-functions/fstatvfs.texi: Likewise.
12326         * doc/posix-functions/ftruncate.texi: Likewise.
12327         * doc/posix-functions/ftw.texi: Likewise.
12328         * doc/posix-functions/getrlimit.texi: Likewise.
12329         * doc/posix-functions/glob.texi: Likewise.
12330         * doc/posix-functions/lio_listio.texi: Likewise.
12331         * doc/posix-functions/lockf.texi: Likewise.
12332         * doc/posix-functions/mkstemp.texi: Likewise.
12333         * doc/posix-functions/mmap.texi: Likewise.
12334         * doc/posix-functions/nftw.texi: Likewise.
12335         * doc/posix-functions/openat.texi: Likewise.
12336         * doc/posix-functions/opendir.texi: Likewise.
12337         * doc/posix-functions/posix_fadvise.texi: Likewise.
12338         * doc/posix-functions/posix_fallocate.texi: Likewise.
12339         * doc/posix-functions/pread.texi: Likewise.
12340         * doc/posix-functions/pwrite.texi: Likewise.
12341         * doc/posix-functions/readdir.texi: Likewise.
12342         * doc/posix-functions/readdir_r.texi: Likewise.
12343         * doc/posix-functions/rewinddir.texi: Likewise.
12344         * doc/posix-functions/scandir.texi: Likewise.
12345         * doc/posix-functions/seekdir.texi: Likewise.
12346         * doc/posix-functions/setrlimit.texi: Likewise.
12347         * doc/posix-functions/statvfs.texi: Likewise.
12348         * doc/posix-functions/telldir.texi: Likewise.
12349         * doc/posix-functions/tmpfile.texi: Likewise.
12350         * doc/posix-functions/truncate.texi: Likewise.
12351         * doc/glibc-functions/fallocate.texi: Likewise.
12352         * doc/glibc-functions/fstatfs.texi: Likewise.
12353         * doc/glibc-functions/fts_children.texi: Likewise.
12354         * doc/glibc-functions/fts_read.texi: Likewise.
12355         * doc/glibc-functions/getdirentries.texi: Likewise.
12356         * doc/glibc-functions/mkostemp.texi: Likewise.
12357         * doc/glibc-functions/mkostemps.texi: Likewise.
12358         * doc/glibc-functions/mkstemps.texi: Likewise.
12359         * doc/glibc-functions/preadv.texi: Likewise.
12360         * doc/glibc-functions/pwritev.texi: Likewise.
12361         * doc/glibc-functions/sendfile.texi: Likewise.
12362         * doc/glibc-functions/statfs.texi: Likewise.
12363
12364 2011-07-24  Bruno Haible  <bruno@clisp.org>
12365
12366         doc: Fix typo.
12367         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12368
12369 2011-07-24  Bruno Haible  <bruno@clisp.org>
12370
12371         doc: Mention fsusage.
12372         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12373
12374 2011-07-24  Bruno Haible  <bruno@clisp.org>
12375
12376         doc: Mention new glibc headers and functions.
12377         * doc/glibc-headers/gshadow.texi: New file.
12378         * doc/glibc-functions/endsgent.texi: New file.
12379         * doc/glibc-functions/fgetsgent.texi: New file.
12380         * doc/glibc-functions/fgetsgent_r.texi: New file.
12381         * doc/glibc-functions/getsgent.texi: New file.
12382         * doc/glibc-functions/getsgent_r.texi: New file.
12383         * doc/glibc-functions/getsgnam.texi: New file.
12384         * doc/glibc-functions/getsgnam_r.texi: New file.
12385         * doc/glibc-functions/putsgent.texi: New file.
12386         * doc/glibc-functions/setsgent.texi: New file.
12387         * doc/glibc-functions/sgetsgent.texi: New file.
12388         * doc/glibc-functions/sgetsgent_r.texi: New file.
12389         * doc/glibc-functions/malloc_info.texi: New file.
12390         * doc/glibc-functions/preadv.texi: New file.
12391         * doc/glibc-functions/pwritev.texi: New file.
12392         * doc/glibc-functions/register_printf_modifier.texi: New file.
12393         * doc/glibc-functions/register_printf_specifier.texi: New file.
12394         * doc/glibc-functions/register_printf_type.texi: New file.
12395         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12396         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12397         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12398         * doc/glibc-functions/pthread_getname_np.texi: New file.
12399         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12400         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12401         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12402         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12403         * doc/glibc-functions/pthread_setname_np.texi: New file.
12404         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12405         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12406         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12407         * doc/glibc-functions/qsort_r.texi: New file.
12408         * doc/glibc-functions/quick_exit.texi: New file.
12409         * doc/glibc-functions/syncfs.texi: New file.
12410         * doc/gnulib.texi: Include them.
12411         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12412         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12413         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12414         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12415         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12416         * doc/glibc-functions/execvpe.texi: Likewise.
12417
12418 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12419
12420         ftell: don't include <unistd.h>
12421         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12422         guaranteed to define off_t, and the ftell module depends on the
12423         stdio module.
12424
12425         ftell: do not assume wraparound signed arithmetic
12426         * lib/ftell.c: Include <limits.h>.
12427         (ftell): Don't assume wraparound signed arithmetic.
12428
12429 2011-07-24  Bruno Haible  <bruno@clisp.org>
12430
12431         close: No longer depend on module 'fclose'.
12432         * modules/close (Depends-on): Remove fclose.
12433         * NEWS: Mention the change.
12434         Suggested by Sam Steingold <sds@gnu.org>.
12435
12436 2011-07-24  Bruno Haible  <bruno@clisp.org>
12437
12438         fsusage: Enable large volume support on AIX >= 5.2.
12439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12440         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12441         instead of STAT_STATVFS.
12442         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12443
12444         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12446         f_blocks field only on MacOS X.
12447
12448         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12450         * modules/fsusage (Depends-on): Add largefile.
12451
12452 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         * README: Modernize discussion of signed integers.
12455         Assuming overflow wraparound is no longer safe.
12456         Mention ones' complement and signed magnitude.
12457
12458 2011-07-22  Bruno Haible  <bruno@clisp.org>
12459
12460         select tests, pselect tests: Refactor.
12461         * tests/test-select.h: New file, extracted from tests/test-select.c.
12462         (select_fn): New type.
12463         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12464         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12465         test_pipe): Add my_select argument.
12466         (test_function): Renamed from main. Add my_select argument.
12467         * tests/test-select.c: Move most code to tests/test-select.h. Include
12468         test-select.h.
12469         * modules/select-tests (Files): Add tests/test-select.h.
12470         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12471         (my_select, main): New functions.
12472         * modules/pselect-tests (Files): Add tests/test-select.h,
12473         tests/macros.h, tests/signature.h.
12474         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12475         (configure.ac): Check for <sys/wait.h>.
12476
12477 2011-07-22  Bruno Haible  <bruno@clisp.org>
12478
12479         sys_select tests: Check the signature of FD_*.
12480         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12481         signature tests from here...
12482         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12483         here.
12484         * modules/sys_select-tests (Files): Add tests/signature.h.
12485
12486 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12487
12488         largefile: new module, replacing large-inode
12489         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12490         * MODULES.html.sh: Add largefile, remove large-inode.
12491         * modules/largefile, m4/largefile.m4: New files.
12492         * modules/large-inode, m4/large-inode.m4: Remove.
12493
12494         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12496         implementations that use only 32 bits to count blocks.
12497         On typical hosts with 1024-byte blocks, this fails with file
12498         systems as small as 4 TiB.  Problem reported by Herb Wartens
12499         <http://debbugs.gnu.org/9140> and this should also fix a similar
12500         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12501
12502         large-inode: New module
12503         * MODULES.html.sh: Add it.
12504         * modules/large-inode, m4/large-inode.m4: New files.
12505
12506         extensions: Enable extensions on MacOS X 10.5 and later.
12507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12508
12509 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12510
12511         file-has-acl: use acl_extended_file_nofollow if available
12512         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12513         (acl_extended_file): New macro.
12514         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12515         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12516
12517 2011-07-21  Bruno Haible  <bruno@clisp.org>
12518
12519         Declare system functions in a way that works with C++.
12520         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12521         declare fdopendir as extern "C".
12522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12523         declare frexpl as extern "C".
12524         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12525         declare gai_strerror as extern "C".
12526         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12527         programs, declare gai_strerror as extern "C".
12528         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12529         declare getlogin_r as extern "C".
12530         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12531         as extern "C".
12532         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12533         declare ldexpl as extern "C".
12534         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12535         as extern "C".
12536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12537         program, declare getmntinfo as extern "C".
12538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12539         stpncpy as extern "C".
12540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12541         program, declare __xpg_strerror_r as extern "C".
12542         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12543         strndup as extern "C".
12544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12545         declare memset and bzero as extern "C".
12546         Reported by Sam Steingold <sds@gnu.org>.
12547
12548 2011-07-12  Jim Meyering  <meyering@redhat.com>
12549
12550         maint.mk: prohibit inclusion of "verify.h" without use
12551         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12552
12553 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12554
12555         timer-time: A new module to check for timer_settime()
12556         * m4/timer_time.m4: Check for the posix function.
12557         * modules/timer-time: Add the new module.
12558         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12559         Mention it.
12560
12561 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12562             Bruno Haible  <bruno@clisp.org>
12563
12564         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12565         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12566         not defined, assume POSIX threads and look for pthread_sigmask in
12567         $LIBS, without changing $CPPFLAGS.
12568
12569 2011-07-19  Bruno Haible  <bruno@clisp.org>
12570
12571         strstr: Update cross-compilation guess.
12572         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12573         CPUs, guess no, in view of glibc
12574         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12575         Suggested by Eric Blake. Reported by Reuben Thomas.
12576
12577 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12578
12579         getopt-gnu: suppress core dumps from detection code
12580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12581         to suppress core dumps that may well occur on glibc systems.
12582         * modules/getopt-gnu: Depend on nocrash.
12583
12584 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12585
12586         pthread_sigmask: ensure usleep is declared
12587         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12588         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12589
12590 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12591
12592         doc: Document NonStop portability issues.
12593         * doc/posix-functions/sigaction.texi (sigaction):
12594         * doc/posix-headers/signal.texi (signal.h):
12595         Document NonStop.  See Joachim Schmitz in
12596         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12597
12598 2011-07-15  Bruno Haible  <bruno@clisp.org>
12599
12600         ffsl, ffsll: Avoid unportable behaviour.
12601         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12602
12603 2011-07-15  Bruno Haible  <bruno@clisp.org>
12604
12605         ffs: More tests.
12606         * tests/test-ffs.c (NBITS): New macro.
12607         (main): Add more tests.
12608         * tests/test-ffsl.c (NBITS): New macro.
12609         (main): Add more tests.
12610         * tests/test-ffsll.c (NBITS): New macro.
12611         (main): Add more tests.
12612
12613 2011-07-15  Eric Blake  <eblake@redhat.com>
12614
12615         ffsl, ffsll: new modules
12616         * modules/ffsl: New file.
12617         * modules/ffsll: Likewise.
12618         * m4/ffsl.m4: Likewise.
12619         * m4/ffsll.m4: Likewise.
12620         * lib/ffsl.c: Likewise.
12621         * lib/ffsl.h: Likewise.
12622         * lib/ffsll.c: Likewise.
12623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12624         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12625         * modules/string (Makefile.am): Substitute witnesses.
12626         * lib/strings.in.h (ffsl, ffsll): Declare.
12627         * modules/ffsl-tests: New test file.
12628         * modules/ffsll-tests: Likewise.
12629         * tests/test-ffsl.c: Likewise.
12630         * tests/test-ffsll.c: Likewise.
12631         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12632         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12633         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12634
12635         ffs: fix m4 prerequisite
12636         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12637
12638         ffs: avoid undefined behavior
12639         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12640         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12641         Reported by Bruno Haible.
12642
12643 2011-07-12  Bruno Haible  <bruno@clisp.org>
12644
12645         pthread_sigmask: Rely on module 'threadlib'.
12646         * modules/pthread_sigmask (Depends-on): Add threadlib.
12647         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12648         is defined.
12649
12650 2011-07-12  Bruno Haible  <bruno@clisp.org>
12651
12652         regex: Depend on module 'strcase'.
12653         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12654
12655 2011-07-12  Jim Meyering  <meyering@redhat.com>
12656
12657         warn-on-use: fix typo in file name
12658         * modules/snippet/warn-on-use (Files): Correct file name:
12659         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12660
12661 2011-07-12  Bruno Haible  <bruno@clisp.org>
12662
12663         strings: Document module.
12664         * doc/posix-headers/strings.texi: Mention module 'strings'.
12665
12666 2011-07-12  Bruno Haible  <bruno@clisp.org>
12667
12668         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12669         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12670         (Files, Makefile.am): Update.
12671         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12672         * modules/stdlib (Depends-on): Update.
12673
12674 2011-07-12  Bruno Haible  <bruno@clisp.org>
12675
12676         * NEWS: Mention the changes.
12677
12678         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12679         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12680         (Files, Makefile.am): Update.
12681         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12682         * modules/arpa_inet (Depends-on): Update.
12683         * modules/ctype (Depends-on): Update.
12684         * modules/dirent (Depends-on): Update.
12685         * modules/fcntl-h (Depends-on): Update.
12686         * modules/glob (Depends-on): Update.
12687         * modules/iconv-h (Depends-on): Update.
12688         * modules/inttypes-incomplete (Depends-on): Update.
12689         * modules/langinfo (Depends-on): Update.
12690         * modules/locale (Depends-on): Update.
12691         * modules/math (Depends-on): Update.
12692         * modules/netdb (Depends-on): Update.
12693         * modules/poll-h (Depends-on): Update.
12694         * modules/pty (Depends-on): Update.
12695         * modules/search (Depends-on): Update.
12696         * modules/signal (Depends-on): Update.
12697         * modules/spawn (Depends-on): Update.
12698         * modules/stdio (Depends-on): Update.
12699         * modules/stdlib (Depends-on): Update.
12700         * modules/string (Depends-on): Update.
12701         * modules/strings (Depends-on): Update.
12702         * modules/sys_file (Depends-on): Update.
12703         * modules/sys_ioctl (Depends-on): Update.
12704         * modules/sys_select (Depends-on): Update.
12705         * modules/sys_socket (Depends-on): Update.
12706         * modules/sys_stat (Depends-on): Update.
12707         * modules/sys_time (Depends-on): Update.
12708         * modules/sys_times (Depends-on): Update.
12709         * modules/sys_utsname (Depends-on): Update.
12710         * modules/sys_wait (Depends-on): Update.
12711         * modules/termios (Depends-on): Update.
12712         * modules/time (Depends-on): Update.
12713         * modules/unistd (Depends-on): Update.
12714         * modules/wchar (Depends-on): Update.
12715         * modules/wctype-h (Depends-on): Update.
12716         * MODULES.html.sh (Support for building libraries and executables):
12717         Update.
12718
12719         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12720         * modules/snippet/unused-parameter: Renamed from
12721         modules/unused-parameter.
12722         (Files, Makefile.am): Update.
12723         * build-aux/snippet/unused-parameter.h: Renamed from
12724         build-aux/unused-parameter.h.
12725         * modules/selinux-h (Depends-on): Update.
12726         * modules/unistr/base (Depends-on): Update.
12727         * MODULES.html.sh (Core language properties): Update.
12728
12729         Rename module 'link-warning' to 'snippet/link-warning'.
12730         * modules/snippet/link-warning: Renamed from modules/link-warning.
12731         (Files, Makefile.am): Update.
12732         * build-aux/snippet/link-warning.h: Renamed from
12733         build-aux/link-warning.h.
12734         * MODULES.html.sh (Support for building libraries and executables):
12735         Update.
12736
12737         Rename module 'c++defs' to 'snippet/c++defs'.
12738         * modules/snippet/c++defs: Renamed from modules/c++defs.
12739         (Files, Makefile.am): Update.
12740         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12741         * modules/arpa_inet (Depends-on): Update.
12742         * modules/ctype (Depends-on): Update.
12743         * modules/dirent (Depends-on): Update.
12744         * modules/fcntl-h (Depends-on): Update.
12745         * modules/glob (Depends-on): Update.
12746         * modules/iconv-h (Depends-on): Update.
12747         * modules/langinfo (Depends-on): Update.
12748         * modules/locale (Depends-on): Update.
12749         * modules/math (Depends-on): Update.
12750         * modules/netdb (Depends-on): Update.
12751         * modules/poll-h (Depends-on): Update.
12752         * modules/pty (Depends-on): Update.
12753         * modules/search (Depends-on): Update.
12754         * modules/signal (Depends-on): Update.
12755         * modules/spawn (Depends-on): Update.
12756         * modules/stdio (Depends-on): Update.
12757         * modules/stdlib (Depends-on): Update.
12758         * modules/string (Depends-on): Update.
12759         * modules/strings (Depends-on): Update.
12760         * modules/sys_ioctl (Depends-on): Update.
12761         * modules/sys_select (Depends-on): Update.
12762         * modules/sys_socket (Depends-on): Update.
12763         * modules/sys_stat (Depends-on): Update.
12764         * modules/sys_time (Depends-on): Update.
12765         * modules/sys_wait (Depends-on): Update.
12766         * modules/termios (Depends-on): Update.
12767         * modules/time (Depends-on): Update.
12768         * modules/unistd (Depends-on): Update.
12769         * modules/wchar (Depends-on): Update.
12770         * modules/wctype-h (Depends-on): Update.
12771
12772         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12773         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12774         (Files, Makefile.am): Update.
12775         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12776         * modules/argv-iter (Depends-on): Update.
12777         * modules/arpa_inet (Depends-on): Update.
12778         * modules/dirent (Depends-on): Update.
12779         * modules/fcntl-h (Depends-on): Update.
12780         * modules/fnmatch (Depends-on): Update.
12781         * modules/getopt-posix (Depends-on): Update.
12782         * modules/glob (Depends-on): Update.
12783         * modules/iconv-h (Depends-on): Update.
12784         * modules/inttypes-incomplete (Depends-on): Update.
12785         * modules/locale (Depends-on): Update.
12786         * modules/math (Depends-on): Update.
12787         * modules/netdb (Depends-on): Update.
12788         * modules/search (Depends-on): Update.
12789         * modules/signal (Depends-on): Update.
12790         * modules/spawn (Depends-on): Update.
12791         * modules/stdio (Depends-on): Update.
12792         * modules/stdlib (Depends-on): Update.
12793         * modules/string (Depends-on): Update.
12794         * modules/strings (Depends-on): Update.
12795         * modules/sys_socket (Depends-on): Update.
12796         * modules/sys_stat (Depends-on): Update.
12797         * modules/sys_time (Depends-on): Update.
12798         * modules/sys_times (Depends-on): Update.
12799         * modules/sys_utsname (Depends-on): Update.
12800         * modules/time (Depends-on): Update.
12801         * modules/unistd (Depends-on): Update.
12802         * modules/wchar (Depends-on): Update.
12803         * MODULES.html.sh (Support for building libraries and executables):
12804         Update.
12805
12806 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12807
12808         Improvements on _Noreturn and related modules.
12809
12810         modules/_Exit-tests: test _Noreturn too
12811         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12812         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12813         (main): Use them.
12814
12815         stdnoreturn, stdnoreturn-tests: remove modules
12816         They're not needed here and a bit premature for use elsewhere.  See
12817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12818         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12819         * tests/test-stdnoreturn.c: Remove files.
12820         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12821         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12822         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12823         and using noreturn.
12824         * modules/openat, modules/sigpipe-die, modules/xalloc:
12825         * modules/xmemdup0, modules/xstrtol:
12826         Remove dependency on stdnoreturn.
12827
12828         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12829         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12830         Reparenthesize to avoid GCC warning.
12831         Support Microsoft's syntax.
12832         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12833
12834         _Noreturn-tests: remove module
12835         * modules/_Noreturn-tests: Remove.
12836         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12837         * tests/test-_Noreturn.c: Remove.
12838         * tests/test-stdnoreturn.c: Merge from the old
12839         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12840
12841 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12842
12843         _Noreturn, stdnoreturn, and related modules.
12844
12845         * top/maint.mk: Adjust to new noreturn support.
12846         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12847         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12848
12849         xalloc: use stdnoreturn.h
12850         * lib/xalloc.h: Include <stdnoreturn.h>.
12851         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12852         * modules/xalloc (Depends-on): Add stdnoreturn.
12853
12854         xstrtol: use stdnoreturn.h
12855         * lib/xstrtol.h: Include <stdnoreturn.h>.
12856         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12857         * modules/xstrtol (Depends-on): Add stdnoreturn.
12858
12859         xmemdup0: use stdnoreturn.h
12860         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12861         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12862         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12863
12864         sigpipe-die: use stdnoreturn.h
12865         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12866         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12867         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12868
12869         openat: use stdnoreturn.h
12870         * lib/openat.h: Include <stdnoreturn.h>.
12871         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12872         * modules/openat (Depends-on): Add stdnoreturn.
12873
12874         * lib/openat-die.c (openat_save_fail): Modernize comment.
12875
12876         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12877
12878         * lib/glthread/thread.h: Modernize comment.
12879
12880         obstack: use _Noreturn
12881         * lib/obstack.c (__attribute__): Remove macro.
12882         (print_and_abort): Use _Noreturn.
12883
12884         c-stack: use _Noreturn
12885         * lib/c-stack.c (die, overflow_handler, segv_handler):
12886         Use _Noreturn rather than __attribute__((noreturn)).
12887
12888         argmatch-tests, exclude_tests: use _Noreturn
12889         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12890         Remove.
12891         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12892
12893         stdlib: use _Noreturn
12894         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12895         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12896         * modules/stdlib (Depends-on): Add _Noreturn.
12897         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12898
12899         stdnoreturn-tests: new module
12900         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12901
12902         stdnoreturn: new module
12903         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12904         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12905
12906         _Noreturn-tests: new module
12907         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12908
12909         _Noreturn: new module
12910         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12911         New section, mentioning it.
12912         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12913
12914         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12915
12916 2011-07-11  Eric Blake  <eblake@redhat.com>
12917
12918         ffs: new module
12919         * modules/ffs: New file.
12920         * m4/ffs.m4: Likewise.
12921         * lib/ffs.c: Likewise.
12922         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12923         * modules/strings (Makefile.am): Substitute witness.
12924         (Depends-on): Add c++defs.
12925         * lib/strings.in.h (ffs): Declare.
12926         * modules/ffs-tests: New test file.
12927         * tests/test-ffs.c: Test new module.
12928         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12929         * doc/posix-functions/ffs.texi (ffs): Likewise.
12930
12931         regex: avoid compiler warning
12932         * lib/regex.c (includes): Include <strings.h>, for use of
12933         strcasecmp in regcomp.c.
12934         Reported by Joachim Schmitz.
12935
12936 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12937
12938         stdint: respect system's intmax_t if INTMAX_MAX
12939         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12940         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12941         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12942         long but int64_t is long long, and where we will clash with the
12943         system intmax_t if we override it.  See
12944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12945         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12946         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12947         similarly for UINTMAX_C.
12948
12949 2011-07-08  Bruno Haible  <bruno@clisp.org>
12950
12951         pthread_sigmask tests: Avoid a compiler warning.
12952         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12953         non-zero.
12954
12955         sigprocmask tests: A better way to avoid a compiler warning.
12956         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12957         (main): Complain if system() returns non-zero.
12958         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12959
12960 2011-07-08  Bruno Haible  <bruno@clisp.org>
12961
12962         pthread_sigmask: Work around IRIX bug.
12963         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12964         bug.
12965         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12966         there may be unblocked pending signals.
12967         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12968
12969 2011-07-08  Bruno Haible  <bruno@clisp.org>
12970
12971         pthread_sigmask: Work around Cygwin bug.
12972         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12973         bug.
12974         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12975         the system's pthread_sigmask function.
12976         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12977
12978 2011-07-08  Bruno Haible  <bruno@clisp.org>
12979
12980         pthread_sigmask: Work around bug in single-threaded implementation.
12981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12982         FreeBSD, HP-UX, Solaris bug.
12983         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12984         * lib/pthread_sigmask.c: Include <stddef.h>.
12985         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12986         the system's pthread_sigmask function.
12987         * modules/pthread_sigmask (configure.ac): Invoke
12988         gl_PREREQ_PTHREAD_SIGMASK.
12989         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12990         HP-UX, Solaris.
12991
12992 2011-07-08  Eric Blake  <eblake@redhat.com>
12993
12994         test-sigprocmask: avoid compiler warning
12995         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12996         * tests/test-sigprocmask.c (main): Use it to silence warning.
12997         Reported by Jim Meyering.
12998
12999         test-snprintf: avoid compiler warning
13000         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13001         * tests/test-vsnprintf.c (main): Likewise.
13002         Reported by Jim Meyering.
13003
13004 2011-07-08  Bruno Haible  <bruno@clisp.org>
13005
13006         Tests for module 'pthread_sigmask'.
13007         * modules/pthread_sigmask-tests: New file.
13008         * tests/test-pthread_sigmask1.c: New file, based on
13009         tests/test-sigprocmask.c.
13010         * tests/test-pthread_sigmask2.c: New file.
13011
13012 2011-07-08  Jim Meyering  <meyering@redhat.com>
13013
13014         test-getopt.h: avoid warning about an unused variable
13015         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13016
13017 2011-07-07  Jim Meyering  <meyering@redhat.com>
13018
13019         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13020         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13021         now that it no longer contains leading TABs.
13022         Remove unused "url=FIXME" statement.
13023
13024 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13027         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13028         When gl_THREADLIB is not in use, assume that the POSIX sematics
13029         are desired.  This is better for Emacs, which uses POSIX semantics
13030         on GNUish and/or POSIXish platforms, and does not use threads at
13031         all otherwise.
13032
13033         pthread_sigmask: fix typo when testing for libraries
13034         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13035         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13036
13037 2011-07-08  Eric Blake  <eblake@redhat.com>
13038
13039         fts: introduce FTS_NOATIME
13040         * lib/fts_.h (FTS_NOATIME): New bit flag.
13041         (FTS_OPTIONMASK): Adjust.
13042         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13043         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13044
13045 2011-07-08  Bruno Haible  <bruno@clisp.org>
13046
13047         Tests for module 'thread'.
13048         * modules/thread-tests: New file.
13049         * tests/test-thread_self.c: New file.
13050         * tests/test-thread_create.cc: New file.
13051
13052 2011-07-08  Bruno Haible  <bruno@clisp.org>
13053
13054         thread: Avoid gcc warnings when using gl_thread_self().
13055         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13056         'void *'.
13057         (gl_thread_self_pointer): Update.
13058
13059 2011-07-07  Bruno Haible  <bruno@clisp.org>
13060
13061         signal-c++-tests: Check declaration of pthread_sigmask.
13062         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13063         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13064         $(LIB_PTHREAD_SIGMASK).
13065
13066 2011-07-07  Bruno Haible  <bruno@clisp.org>
13067
13068         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13069         * lib/signal.in.h (pthread_sigmask): Override if
13070         REPLACE_PTHREAD_SIGMASK is 1.
13071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13072         REPLACE_PTHREAD_SIGMASK.
13073         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13074         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13075         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13076         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13077         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13078
13079 2011-07-07  Bruno Haible  <bruno@clisp.org>
13080
13081         pthread_sigmask: Ensure declaration in <signal.h>.
13082         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13083         include <pthread.h>.
13084         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13085         problem.
13086
13087 2011-07-07  Bruno Haible  <bruno@clisp.org>
13088
13089         pthread_sigmask: Document the module.
13090         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13091
13092 2011-07-07  Bruno Haible  <bruno@clisp.org>
13093
13094         pthread_sigmask: Follow gnulib conventions.
13095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13096         gl_PTHREAD_SIGMASK.
13097         * modules/pthread_sigmask (configure.ac): Update.
13098
13099 2011-07-07  Bruno Haible  <bruno@clisp.org>
13100
13101         pthread_sigmask: Make declaration C++ safe.
13102         * lib/signal.in.h: In two special conditions, just do an #include_next.
13103         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13104         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13106         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13107         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13108         not REPLACE_PTHREAD_MASK.
13109         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13110         not REPLACE_PTHREAD_MASK.
13111         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13112
13113 2011-07-07  Bruno Haible  <bruno@clisp.org>
13114
13115         pthread_sigmask: Fix return value.
13116         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13117         * lib/pthread_sigmask.c: New file.
13118         * modules/pthread_sigmask (Files): Add it.
13119         (configure.ac): Invoke AC_LIBOBJ.
13120
13121 2011-07-07  Eric Blake  <eblake@redhat.com>
13122
13123         getopt: more portable argv creation
13124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13125         const, use char arrays rather than strings.
13126         Suggested by Paul Eggert.
13127
13128 2011-07-07  Bruno Haible  <bruno@clisp.org>
13129
13130         Tests for module 'sigprocmask'.
13131         * modules/sigprocmask-tests: New file.
13132         * tests/test-sigprocmask.c: New file.
13133
13134 2011-07-07  Bruno Haible  <bruno@clisp.org>
13135
13136         float tests: Tweak.
13137         * tests/test-float.c (main): Tweak skip message.
13138
13139 2011-07-07  Eric Blake  <eblake@redhat.com>
13140
13141         getopt: avoid compiler warning during configure
13142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13143         assigning string literals to non-const pointer.
13144
13145         getopt-gnu: avoid crash in glibc getopt
13146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13147         * tests/test-getopt.h (test_getopt): Enhance test.
13148         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13149         * doc/posix-functions/getopt.texi (getopt): Document it.
13150         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13151         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13152         Likewise.
13153
13154 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13155
13156         getopt: handle W; without long options in getopt [BZ #12922]
13157         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13158         but no long options are defined, just return 'W'.
13159
13160 2011-07-07  Bruno Haible  <bruno@clisp.org>
13161
13162         Avoid literal tabs.
13163         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13164         variable containing a tab instead of a literal tab.
13165         Reported by Jim Meyering.
13166
13167 2011-07-07  Bruno Haible  <bruno@clisp.org>
13168
13169         Comments.
13170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13171
13172 2011-07-06  Bruno Haible  <bruno@clisp.org>
13173
13174         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13175         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13176         <winsock2.h>.
13177         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13178         lib/sys_socket.in.h.
13179         (close, gethostname): Hide declarations from <winsock2.h>.
13180         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13181         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13182         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13183         (select): Don't override if gnulib's <sys/select.h> was already
13184         included.
13185         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13186         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13187         setsockopt, shutdown, select): Tweak indentation.
13188
13189 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13190
13191         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13192         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13193         in an application that does not use the sys_select module.
13194
13195 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13196
13197         poll: do not return 0 on timeout=-1
13198         * lib/poll.c: Loop with yield if no events occured
13199
13200 2011-07-06  Eric Blake  <eblake@redhat.com>
13201
13202         pthread_sigmask: always replace when not using pthread
13203         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13204         replacement when using some threading other than pthread.  Fix
13205         logic bug.
13206
13207 2011-07-06  Bruno Haible  <bruno@clisp.org>
13208
13209         Comments.
13210         * m4/printf.m4: Update comments about mingw.
13211
13212 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         sys_select: define sigset_t more portably
13215         * lib/sys_select.in.h: Always include <sys/types.h>, since
13216         we now need sigset_t and mingw defines it there.
13217         Include <signal.h> before split inclusion guard, to avoid
13218         mishaps on Solaris, whose <signal.h> eventually includes us.
13219         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13220         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13221         which come from ...
13222         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13223         gl_CHECK_TYPE_SIGSET_T.
13224         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13225         does the real work.
13226         * modules/sys_select (Depends-on): Add 'signal'.
13227
13228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13229         Suggested by Bruno Haible.
13230
13231         pselect: Use pthread_sigmask, not sigprocmask.
13232         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13233         multithreaded apps better than sigprocmask does.
13234         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13235         sigprocmask directly.
13236
13237 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13240         Don't #undef,  since we don't need any underlying pselect.
13241         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13242         (Depends-on): Add select.
13243         (Link): Add $(LIBSOCKET).
13244         These changes suggested by Bruno Haible.
13245
13246         pselect: document better
13247         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13248         * doc/posix-functions/pselect.texi (pselect): Document new module.
13249
13250         pthread_sigmask: new module
13251         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13252         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13253         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13254         This is done only as a macro; I don't know how well that'll
13255         work for C++.  Move <sys/types.h> include before the include_next,
13256         to avoid mishap on Solaris.
13257         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13258         * modules/signal (Makefile.am): Substitute the check's results.
13259         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13260
13261         test-pselect: new module
13262         * modules/pselect-tests, tests/test-pselect.c: New files.
13263         * tests/test-select.c, tests/test-sys_select-c++.cc:
13264         If TEST_PSELECT is defined, test pselect instead of testing select.
13265
13266         * tests/test-sys_select.c (sigset_t): Test for it, too.
13267         Suggested by Bruno Haible.
13268
13269 2011-07-05  Eric Blake  <eblake@redhat.com>
13270
13271         snprintf: guarantee %1$d, for libintl
13272         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13273         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13274         * doc/posix-functions/snprintf.texi (snprintf): Update.
13275         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13276         * tests/test-snprintf.c (main): Enhance test.
13277         * tests/test-vsnprintf.c (main): Likewise.
13278
13279 2011-07-05  Jim Meyering  <meyering@redhat.com>
13280
13281         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13282         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13283         per Bruno's request, to accommodate this idiom (no space after "#")
13284         even when the function is inside an #if block:
13285         char *
13286         gets (char *s)
13287         #undef gets
13288         {
13289           ...
13290         }
13291
13292 2011-07-04  Jim Meyering  <meyering@redhat.com>
13293
13294         maint: indent with spaces, not TABs, and add a rule to check this
13295         * tests/test-userspec.c: Indent with spaces, not TABs.
13296         * tests/test-argp.c: Likewise.
13297         * tests/test-c-stack2.sh: Likewise.
13298         * tests/test-parse-duration.sh: Likewise
13299         * m4/strtod.m4: Likewise.
13300         * m4/alloca.m4: Likewise.
13301         * m4/pselect.m4: Likewise.
13302         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13303
13304 2011-07-03  Jim Meyering  <meyering@redhat.com>
13305
13306         maint.mk: correct omissions in prohibit_argmatch_without_use check
13307         This rule would mistakenly report that argmatch.h is included without
13308         use even when both the argmatch and invalid_arg macro were used.
13309         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13310         of argmatch and invalid_arg.
13311
13312 2011-07-03  Bruno Haible  <bruno@clisp.org>
13313
13314         Comments about EINTR.
13315         * lib/safe-read.h: Explain the purpose of this module.
13316         * lib/safe-write.h: Likewise.
13317         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13318         module.
13319         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13320         module.
13321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13322
13323 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13324
13325         xnanosleep: Rewrite to use new dtotimespec module.
13326         It has the conversion code that used to be in xnanosleep.
13327         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13328         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13329         (TIME_T_MAX): Remove.
13330         (xnanosleep): Rewrite in terms of dtotimespec.
13331         * modules/xnanosleep (Depends-on): Add dtotimespec.
13332         Remove intprops, stdbool.
13333
13334         timespec-add, timespec-sub: new modules
13335         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13336         * lib/timespec-add.c, lib/timespec-sub.c:
13337         * modules/timespec-add, modules/timespec-sub: New files.
13338
13339         dtotimespec: new module
13340         * lib/timespec.h (dtotimespec): New decl.
13341         * lib/dtotimespec.c, modules/dtotimespec: New files.
13342
13343         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13344
13345         pselect: new module
13346         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13347         (pselect): New decls.
13348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13349         since the standard pselect decl uses 'restrict'.
13350         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13351         HAVE_PSELECT, REPLACE_PSELECT.
13352         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13353         HAVE_PSELECT, REPLACE_PSELECT.
13354         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13355
13356         sys_select: don't depend on sys_socket
13357         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13359         This fix works on GNU and GNU-like platforms, but has not been tested
13360         on native Windows.
13361         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13363         gl_HEADER_SYS_SOCKET.
13364         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13365         gl_PREREQ_SYS_H_WINSOCK2.
13366
13367 2011-06-29  Eric Blake  <eblake@redhat.com>
13368
13369         pipe2: fix C89 compile problem
13370         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13371         Reported by Bruno Haible.
13372
13373         pipe, pipe2: don't corrupt fd on error
13374         * lib/pipe.c (pipe): Leave fd unchanged on error.
13375         * lib/pipe2.c (pipe2): Likewise.
13376         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13377         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13378
13379 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13380
13381         mmap-anon: do not use regular expressions inadvertently
13382         * m4/mmap-anon.m4: Remove trailing period from strings sought
13383         in the output.
13384
13385 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13386
13387         nanosleep: fix integer overflow problem
13388         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13389         arithmetic wraps around on overflow.
13390
13391         nanosleep: simplify carrying
13392         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13393         first call to the underyling nanosleep, not for the last one.
13394         This doesn't fix any bugs, but it simplifies the computation of
13395         the remaining delay.  Found while auditing integer overflow issues.
13396
13397         dup2: remove test for existence of fcntl
13398         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13399         "#if HAVE_FCNTL", in the configure-time test program.
13400         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13401         and therefore speeds up "configure" a bit.  Found while
13402         adding the dup2 module to Emacs.
13403
13404 2011-06-24  Eric Blake  <eblake@redhat.com>
13405
13406         maint.mk: enhance useless header checks
13407         * top/maint.mk (_sc_header_without_use): Check both include
13408         styles.
13409         (sc_prohibit_assert_without_use)
13410         (sc_prohibit_close_stream_without_use)
13411         (sc_prohibit_getopt_without_use)
13412         (sc_prohibit_quotearg_without_use)
13413         (sc_prohibit_quote_without_use)
13414         (sc_prohibit_long_options_without_use)
13415         (sc_prohibit_inttostr_without_use)
13416         (sc_prohibit_ignore_value_without_use)
13417         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13418         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13419         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13420         (sc_prohibit_hash_pjw_without_use)
13421         (sc_prohibit_safe_read_without_use)
13422         (sc_prohibit_argmatch_without_use)
13423         (sc_prohibit_canonicalize_without_use)
13424         (sc_prohibit_root_dev_ino_without_use)
13425         (sc_prohibit_openat_without_use)
13426         (sc_prohibit_c_ctype_without_use)
13427         (sc_prohibit_signal_without_use)
13428         (sc_prohibit_stdio--_without_use)
13429         (sc_prohibit_stdio-safer_without_use)
13430         (sc_prohibit_strings_without_use)
13431         (sc_prohibit_intprops_without_use)
13432         (sc_prohibit_stddef_without_use)
13433         (sc_prohibit_xfreopen_without_use): Update clients.
13434
13435 2011-06-24  Jim Meyering  <meyering@redhat.com>
13436
13437         syntax-check: keep one maint.mk rule in sync with its header
13438         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13439         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13440         I prefer to avoid temporary files here, so use <(...), but that
13441         is not supported by /bin/sh, so...
13442         (SHELL): Define to /bin/bash.
13443
13444 2011-06-24  Eric Blake  <eblake@redhat.com>
13445
13446         maint.mk: update sc_prohibit_intprops_without_use
13447         * top/maint.mk (_intprops_names): Match recent changes.
13448
13449 2011-06-24  Bruno Haible  <bruno@clisp.org>
13450
13451         strerror-override: No-op tweak.
13452         * lib/strerror-override.h (strerror_override): Reorder conditions,
13453         for consistency with lib/strerror-override.c.
13454
13455 2011-06-23  Eric Blake  <eblake@redhat.com>
13456
13457         maint.mk: test further PATH_MAX issues
13458         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13459         (sc_prohibit_path_max_allocation): ...and also test alloca.
13460         Suggested by Jim Meyering.
13461
13462 2011-06-22  Eric Blake  <eblake@redhat.com>
13463
13464         maint.mk: add syntax-check to avoid char[PATH_MAX]
13465         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13466
13467         stat: be robust to PATH_MAX definition
13468         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13469         * modules/stat (Depends-on): Add verify.
13470
13471         link: work around IRIX bug
13472         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13473         * lib/link.c (rpl_link): Work around it.
13474         * tests/test-link.h (test_link): Enhance test.
13475         * doc/posix-functions/link.texi (link): Document the bug.
13476
13477         getopt: silence clang warning
13478         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13479         dereference.
13480         Reported by Gustavo Martin Domato.
13481
13482 2011-06-22  Jim Meyering  <meyering@redhat.com>
13483
13484         bootstrap: do not insert a blank line into each .gitignore file
13485         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13486
13487 2011-06-21  Eric Blake  <eblake@redhat.com>
13488
13489         perror: test for output mismatch
13490         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13491         perror on IRIX.
13492
13493         strerror_r: fix OpenBSD behavior on out-of-range
13494         * lib/strerror_r.c (strerror_r): Always use maximal string.
13495         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13496
13497         strerror_r: fix OpenBSD behavior on 0
13498         * lib/strerror-override.c (strerror_override): Also override 0
13499         when needed.
13500         * lib/strerror-override.h (strerror_override): Likewise.
13501         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13502         earlier.
13503         * lib/strerror_r.c (strerror_r): Likewise.
13504         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13505         behavior...
13506         (gl_FUNC_STRERROR_0): ...into new macro.
13507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13508         is overridden.
13509         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13510         * modules/strerror-override (Files): Add strerror.m4.
13511         (configure.ac): Also provide override for 0 when needed.
13512         * doc/posix-functions/strerror.texi (strerror): Document this.
13513         * doc/posix-functions/perror.texi (perror): Likewise.
13514
13515         perror: adjust array size
13516         * modules/perror (Depends-on): Add strerror-override.
13517         * lib/perror.c (perror): Use it to avoid magic number.
13518
13519         strerror-override: reduce size
13520         * lib/strerror-override.c (strerror_override): Use fewer lines.
13521
13522 2011-06-20  Bruno Haible  <bruno@clisp.org>
13523
13524         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13525         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13526
13527 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         alloca: port to compilers that can optimize like GCC 4.6.0
13530         * lib/alloca.c (find_stack_direction): New signature, taken from
13531         Autoconf git.  This works with GCC 4.6.0.  This code should never
13532         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13533         be used with other compilers that optimize as well as GCC 4.6.0 does.
13534         (alloca): Adjust to new signature.
13535         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13536         New macro, which patches Autoconf in a similar way.
13537
13538         c-stack: stop worrying about stack direction
13539         * lib/c-stack.c (find_stack_direction): Remove.
13540         (segv_handler): Don't worry about stack direction growth, as it's
13541         too much of a pain to configure this correctly, given how compilers
13542         are optimizing-away our stack-growth detection code.  Instead, assume
13543         that any access to just before or just after the stack is OK.
13544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13545         Don't require AC_FUNC_ALLOCA; no longer needed.
13546
13547 2011-06-20  Eric Blake  <eblake@redhat.com>
13548
13549         test-stat: don't allocate PATH_MAX bytes
13550         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13551         PATH_MAX-sized buffer.
13552         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13553         * modules/stat-tests (Depends-on): Likewise.
13554         * tests/test-fstatat.c (includes): Drop pathmax.h.
13555         * tests/test-stat.c (includes): Likewise.
13556         Reported by Bruno Haible.
13557
13558 2011-06-20  Bruno Haible  <bruno@clisp.org>
13559
13560         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13561         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13562         * lib/float.c: New file.
13563         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13564         REPLACE_FLOAT_LDBL.
13565         * modules/float (Files): Add lib/float.c.
13566         (configure.ac): Invoke AC_LIBOBJ.
13567         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13568
13569 2011-06-20  Bruno Haible  <bruno@clisp.org>
13570
13571         Tests for module 'float'.
13572         * modules/float-tests: New file.
13573         * tests/test-float.c: New file.
13574
13575 2011-06-19  Bruno Haible  <bruno@clisp.org>
13576
13577         isinf: Coding style.
13578         * lib/isinf.c: Use GNU coding style.
13579
13580 2011-06-19  Bruno Haible  <bruno@clisp.org>
13581
13582         linkat test: Avoid test failure on AIX 7.1.
13583         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13584         * tests/test-link.h (test_link): Likewise.
13585
13586 2011-06-19  Bruno Haible  <bruno@clisp.org>
13587
13588         pread test: Avoid test failure on OpenBSD 4.9.
13589         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13590
13591 2011-06-19  Bruno Haible  <bruno@clisp.org>
13592
13593         sprintf-posix: Fix test failure on AIX 7.1.
13594         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13595         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13596         on AIX.
13597         * doc/posix-functions/fprintf.texi: Likewise.
13598         * doc/posix-functions/printf.texi: Likewise.
13599         * doc/posix-functions/snprintf.texi: Likewise.
13600         * doc/posix-functions/sprintf.texi: Likewise.
13601         * doc/posix-functions/vdprintf.texi: Likewise.
13602         * doc/posix-functions/vfprintf.texi: Likewise.
13603         * doc/posix-functions/vprintf.texi: Likewise.
13604         * doc/posix-functions/vsnprintf.texi: Likewise.
13605         * doc/posix-functions/vsprintf.texi: Likewise.
13606
13607 2011-06-19  Bruno Haible  <bruno@clisp.org>
13608
13609         roundl-ieee: Fix test failure on AIX 7.1.
13610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13611         * doc/posix-functions/roundl.texi: Mention problem with negative
13612         arguments.
13613
13614 2011-06-19  Bruno Haible  <bruno@clisp.org>
13615
13616         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13617         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13618         * doc/posix-functions/round.texi: Mention problem with negative
13619         arguments.
13620         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13621
13622 2011-06-19  Bruno Haible  <bruno@clisp.org>
13623
13624         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13626         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13627         * doc/posix-functions/roundf.texi: Mention problem with negative
13628         arguments.
13629         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13630
13631 2011-06-19  Bruno Haible  <bruno@clisp.org>
13632
13633         ceilf-ieee: Work around bug on MacOS X 10.5.
13634         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13635
13636         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13637         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13638         IEEE compliant, avoid compiler optimizations.
13639         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13640         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13641         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13642         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13643         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13644         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13647         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13648         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13649
13650 2011-06-19  Bruno Haible  <bruno@clisp.org>
13651
13652         ceilf-ieee: Work around bug on AIX 7.1.
13653         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13654         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13655
13656 2011-06-19  Bruno Haible  <bruno@clisp.org>
13657
13658         ceil-ieee: Work around bug on AIX 7.1.
13659         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13660         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13661
13662 2011-06-18  Bruno Haible  <bruno@clisp.org>
13663
13664         fsync test: Avoid test failure on MacOS X and AIX.
13665         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13666         EINVAL.
13667
13668 2011-06-18  Bruno Haible  <bruno@clisp.org>
13669
13670         openat, fdopendir tests: Fix link errors.
13671         * modules/openat-tests (Depends-on): Add progname.
13672         * modules/fdopendir-tests (Depends-on): Likewise.
13673         * tests/test-fchownat.c: Include progname.h.
13674         (main): Call set_program_name.
13675         * tests/test-fstatat.c: Include progname.h.
13676         (main): Call set_program_name.
13677         * tests/test-mkdirat.c: Include progname.h.
13678         (main): Call set_program_name.
13679         * tests/test-openat.c: Include progname.h.
13680         (main): Call set_program_name.
13681         * tests/test-unlinkat.c: Include progname.h.
13682         (main): Call set_program_name.
13683         * tests/test-fdopendir.c: Include progname.h.
13684         (main): Call set_program_name.
13685
13686 2011-06-18  Bruno Haible  <bruno@clisp.org>
13687
13688         Doc update.
13689         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13690         HP-UX.
13691         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13692
13693 2011-06-18  Bruno Haible  <bruno@clisp.org>
13694
13695         getcwd tests: Avoid compilation error on HP-UX 11.31.
13696         * modules/getcwd-tests (Depends-on): Add pathmax.
13697         * tests/test-getcwd.c: Include pathmax.h.
13698
13699 2011-06-18  Bruno Haible  <bruno@clisp.org>
13700
13701         isfinite, isinf: Fix link error on AIX 6 and 7.
13702         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13703         needed, also test the macro with a 'float' argument.
13704         * m4/isinf.m4 (gl_ISINF): Likewise.
13705
13706 2011-06-18  Bruno Haible  <bruno@clisp.org>
13707
13708         getloadavg: Don't clobber LIBS. Regression from previous commit.
13709         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13710         AC_CHECK_LIB from here...
13711         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13712         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13713         gl_func_getloadavg_done.
13714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13715
13716 2011-06-18  Bruno Haible  <bruno@clisp.org>
13717
13718         clean-temp: Improve documentation.
13719         * lib/clean-temp.h: Explain better how to use this module.
13720         Reported by John Darrington <john@darrington.wattle.id.au>.
13721
13722 2011-06-17  Bruno Haible  <bruno@clisp.org>
13723
13724         pread, pwrite: Avoid cc warning on AIX.
13725         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13726         (pwrite): Likewise.
13727
13728 2011-06-17  Bruno Haible  <bruno@clisp.org>
13729
13730         spawn-pipe tests: Fix link error.
13731         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13733
13734 2011-06-17  Bruno Haible  <bruno@clisp.org>
13735
13736         Tests: Remove unnecessary dependency.
13737         * modules/canonicalize-tests (Depends-on): Remove progname.
13738         * modules/chown-tests (Depends-on): Likewise.
13739         * modules/dirname-tests (Depends-on): Likewise.
13740         * modules/fdopendir-tests (Depends-on): Likewise.
13741         * modules/fdutimensat-tests (Depends-on): Likewise.
13742         * modules/hash-tests (Depends-on): Likewise.
13743         * modules/lchown-tests (Depends-on): Likewise.
13744         * modules/linkat-tests (Depends-on): Likewise.
13745         * modules/renameat-tests (Depends-on): Likewise.
13746         * modules/spawn-pipe-tests (Depends-on): Likewise.
13747         * modules/utimensat-tests (Depends-on): Likewise.
13748
13749 2011-06-17  Bruno Haible  <bruno@clisp.org>
13750
13751         spawn-pipe tests: Fix link error.
13752         * tests/test-spawn-pipe-child.c: Undefine fflush.
13753
13754 2011-06-17  Bruno Haible  <bruno@clisp.org>
13755
13756         Fix tests link errors.
13757         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13758         * modules/chown-tests (Makefile.am): Don't link test-chown with
13759         LIBINTL.
13760         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13761         LIBINTL.
13762         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13763         LIBINTL.
13764         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13765         LIBINTL.
13766
13767 2011-06-16  Bruno Haible  <bruno@clisp.org>
13768
13769         crypto/gc-sha1: Fix recent regression.
13770         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13771         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13772
13773         crypto/gc-md5: Fix recent regression.
13774         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13775
13776         crypto/gc-md4: Fix recent regression.
13777         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13778         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13779
13780         crypto/gc-arctwo: Fix recent regression.
13781         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13782         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13783
13784         crypto/gc-rijndael: Fix recent regression.
13785         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13786         (configure.ac): Invoke AC_LIBOBJ here.
13787         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13789
13790         crypto/gc-hmac-sha1: Fix recent regression.
13791         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13792         (configure.ac): Invoke AC_LIBOBJ here.
13793         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13795
13796         crypto/gc-hmac-md5: Fix recent regression.
13797         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13798         (configure.ac): Invoke AC_LIBOBJ here.
13799         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13801
13802         crypto/gc-des: Fix recent regression.
13803         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13804         (configure.ac): Invoke AC_LIBOBJ here.
13805         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13807
13808         crypto/gc-arcfour: Fix recent regression.
13809         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13810         (configure.ac): Invoke AC_LIBOBJ here.
13811         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13813
13814 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13815
13816         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13817         After the 2011-05-21 change, this macro requires
13818         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13820
13821 2011-06-16  Bruno Haible  <bruno@clisp.org>
13822
13823         fprintftime: Move AC_LIBOBJ invocations to module description.
13824         * m4/fprintftime.m4: Remove file.
13825         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13826         (configure.ac): Remove gl_FPRINTFTIME call.
13827         (Makefile.am): Augment lib_SOURCES.
13828         Reported by Jim Meyering.
13829
13830 2011-06-16  Bruno Haible  <bruno@clisp.org>
13831
13832         tmpfile-safer: Finish 2011-05-23 commit.
13833         * m4/stdio-safer.m4: Really remove file.
13834         Reported by Jim Meyering.
13835
13836 2011-06-16  Bruno Haible  <bruno@clisp.org>
13837
13838         syntax-check: Fix typo.
13839         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13840         printf-posix.m4.
13841         Reported by Jim Meyering.
13842
13843 2011-06-13  Jim Meyering  <meyering@redhat.com>
13844
13845         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13846         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13847
13848 2011-05-23  Bruno Haible  <bruno@clisp.org>
13849
13850         yesno: Move AC_LIBOBJ invocations to module description.
13851         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13852         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13853
13854 2011-05-23  Bruno Haible  <bruno@clisp.org>
13855
13856         xstrtol: Move AC_LIBOBJ invocations to module description.
13857         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13858         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13859
13860 2011-05-23  Bruno Haible  <bruno@clisp.org>
13861
13862         xstrtold: Move AC_LIBOBJ invocations to module description.
13863         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13864         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13865
13866 2011-05-23  Bruno Haible  <bruno@clisp.org>
13867
13868         xstrtod: Move AC_LIBOBJ invocations to module description.
13869         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13870         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13871
13872 2011-05-23  Bruno Haible  <bruno@clisp.org>
13873
13874         xnanosleep: Move AC_LIBOBJ invocations to module description.
13875         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13876         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13877
13878 2011-05-23  Bruno Haible  <bruno@clisp.org>
13879
13880         xgetcwd: Move AC_LIBOBJ invocations to module description.
13881         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13882         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13883
13884 2011-05-23  Bruno Haible  <bruno@clisp.org>
13885
13886         xalloc: Move AC_LIBOBJ invocations to module description.
13887         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13888         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13889
13890 2011-05-23  Bruno Haible  <bruno@clisp.org>
13891
13892         write-any-file: Move AC_LIBOBJ invocations to module description.
13893         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13894         invocation.
13895         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13896
13897 2011-05-23  Bruno Haible  <bruno@clisp.org>
13898
13899         utimens: Move AC_LIBOBJ invocations to module description.
13900         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13901         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13902
13903 2011-05-23  Bruno Haible  <bruno@clisp.org>
13904
13905         utimecmp: Move AC_LIBOBJ invocations to module description.
13906         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13907         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13908
13909 2011-05-23  Bruno Haible  <bruno@clisp.org>
13910
13911         userspec: Move AC_LIBOBJ invocations to module description.
13912         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13913         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13914
13915 2011-05-23  Bruno Haible  <bruno@clisp.org>
13916
13917         unlinkdir: Move AC_LIBOBJ invocations to module description.
13918         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13919         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13920
13921 2011-05-23  Bruno Haible  <bruno@clisp.org>
13922
13923         unistd-safer: Move AC_LIBOBJ invocations to module description.
13924         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13925         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13926
13927 2011-05-23  Bruno Haible  <bruno@clisp.org>
13928
13929         tempname: Move AC_LIBOBJ invocations to module description.
13930         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13931         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13932
13933 2011-05-23  Bruno Haible  <bruno@clisp.org>
13934
13935         strftime: Move AC_LIBOBJ invocations to module description.
13936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13937         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13938
13939 2011-05-23  Bruno Haible  <bruno@clisp.org>
13940
13941         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13942         * m4/stdlib-safer.m4: Remove file.
13943         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13944         (configure.ac): Remove gl_STDLIB_SAFER call.
13945         (Makefile.am): Augment lib_SOURCES.
13946
13947 2011-05-23  Bruno Haible  <bruno@clisp.org>
13948
13949         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13950         * m4/stdio-safer.m4: Remove file.
13951         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13952         (configure.ac): Remove gl_TMPFILE_SAFER call.
13953         (Makefile.am): Augment lib_SOURCES.
13954
13955 2011-05-23  Bruno Haible  <bruno@clisp.org>
13956
13957         popen-safer: Move AC_LIBOBJ invocations to module description.
13958         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13959         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13960         (configure.ac): Remove gl_POPEN_SAFER call.
13961         (Makefile.am): Augment lib_SOURCES.
13962
13963 2011-05-23  Bruno Haible  <bruno@clisp.org>
13964
13965         freopen-safer: Move AC_LIBOBJ invocations to module description.
13966         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13967         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13968         (configure.ac): Remove gl_FREOPEN_SAFER call.
13969         (Makefile.am): Augment lib_SOURCES.
13970
13971 2011-05-23  Bruno Haible  <bruno@clisp.org>
13972
13973         fopen-safer: Move AC_LIBOBJ invocations to module description.
13974         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13975         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13976         (configure.ac): Remove gl_FOPEN_SAFER call.
13977         (Makefile.am): Augment lib_SOURCES.
13978
13979 2011-05-23  Bruno Haible  <bruno@clisp.org>
13980
13981         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13982         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13983         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13984
13985 2011-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13988         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13989         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13990
13991 2011-05-23  Bruno Haible  <bruno@clisp.org>
13992
13993         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13994         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13995         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13996
13997 2011-05-23  Bruno Haible  <bruno@clisp.org>
13998
13999         settime: Move AC_LIBOBJ invocations to module description.
14000         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14001         * modules/settime (Makefile.am): Augment lib_SOURCES.
14002
14003 2011-05-23  Bruno Haible  <bruno@clisp.org>
14004
14005         savedir: Move AC_LIBOBJ invocations to module description.
14006         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14007         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14008
14009 2011-05-23  Bruno Haible  <bruno@clisp.org>
14010
14011         save-cwd: Move AC_LIBOBJ invocations to module description.
14012         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14013         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14014
14015 2011-05-23  Bruno Haible  <bruno@clisp.org>
14016
14017         same: Move AC_LIBOBJ invocations to module description.
14018         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14019         * modules/same (Makefile.am): Augment lib_SOURCES.
14020
14021 2011-05-23  Bruno Haible  <bruno@clisp.org>
14022
14023         safe-write: Move AC_LIBOBJ invocations to module description.
14024         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14025         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14026         instead of gl_SAFE_WRITE.
14027         (Makefile.am): Augment lib_SOURCES.
14028
14029 2011-05-23  Bruno Haible  <bruno@clisp.org>
14030
14031         safe-read: Move AC_LIBOBJ invocations to module description.
14032         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14033         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14034         of gl_SAFE_READ.
14035         (Makefile.am): Augment lib_SOURCES.
14036
14037 2011-05-23  Bruno Haible  <bruno@clisp.org>
14038
14039         safe-alloc: Move AC_LIBOBJ invocations to module description.
14040         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14041         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14042
14043 2011-05-23  Bruno Haible  <bruno@clisp.org>
14044
14045         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14046         * m4/rijndael.m4: Remove file.
14047         * modules/crypto/rijndael (Files): Remove it.
14048         (configure.ac): Remove gl_RIJNDAEL call.
14049         (Makefile.am): Augment lib_SOURCES.
14050
14051 2011-05-23  Bruno Haible  <bruno@clisp.org>
14052
14053         readtokens: Move AC_LIBOBJ invocations to module description.
14054         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14055         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14056
14057 2011-05-23  Bruno Haible  <bruno@clisp.org>
14058
14059         read-file: Move AC_LIBOBJ invocations to module description.
14060         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14061         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14062         of gl_FUNC_READ_FILE.
14063         (Makefile.am): Augment lib_SOURCES.
14064
14065 2011-05-23  Bruno Haible  <bruno@clisp.org>
14066
14067         quotearg: Move AC_LIBOBJ invocations to module description.
14068         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14069         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14070
14071 2011-05-23  Bruno Haible  <bruno@clisp.org>
14072
14073         quote: Move AC_LIBOBJ invocations to module description.
14074         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14075         * modules/quote (Makefile.am): Augment lib_SOURCES.
14076
14077 2011-05-23  Bruno Haible  <bruno@clisp.org>
14078
14079         posixver: Move AC_LIBOBJ invocations to module description.
14080         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14081         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14082
14083 2011-05-23  Bruno Haible  <bruno@clisp.org>
14084
14085         posixtm: Move AC_LIBOBJ invocations to module description.
14086         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14087         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14088
14089 2011-05-23  Bruno Haible  <bruno@clisp.org>
14090
14091         physmem: Move AC_LIBOBJ invocations to module description.
14092         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14093         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14094
14095 2011-05-23  Bruno Haible  <bruno@clisp.org>
14096
14097         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14098         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14099         invocation.
14100         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14101
14102 2011-05-23  Bruno Haible  <bruno@clisp.org>
14103
14104         mpsort: Move AC_LIBOBJ invocations to module description.
14105         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14106         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14107
14108 2011-05-23  Bruno Haible  <bruno@clisp.org>
14109
14110         modechange: Move AC_LIBOBJ invocations to module description.
14111         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14112         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14113
14114 2011-05-23  Bruno Haible  <bruno@clisp.org>
14115
14116         mkdir-p: Move AC_LIBOBJ invocations to module description.
14117         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14118         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14119
14120 2011-05-23  Bruno Haible  <bruno@clisp.org>
14121
14122         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14123         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14124         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14125
14126 2011-05-23  Bruno Haible  <bruno@clisp.org>
14127
14128         mgetgroups: Move AC_LIBOBJ invocations to module description.
14129         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14130         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14131
14132 2011-05-23  Bruno Haible  <bruno@clisp.org>
14133
14134         memxor: Move AC_LIBOBJ invocations to module description.
14135         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14136         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14137
14138 2011-05-23  Bruno Haible  <bruno@clisp.org>
14139
14140         memcoll: Move AC_LIBOBJ invocations to module description.
14141         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14142         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14143
14144 2011-05-23  Bruno Haible  <bruno@clisp.org>
14145
14146         memcasecmp: Move AC_LIBOBJ invocations to module description.
14147         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14148         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14149
14150 2011-05-23  Bruno Haible  <bruno@clisp.org>
14151
14152         crypto/md5: Move AC_LIBOBJ invocations to module description.
14153         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14154         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14155
14156 2011-05-23  Bruno Haible  <bruno@clisp.org>
14157
14158         crypto/md4: Move AC_LIBOBJ invocations to module description.
14159         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14160         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14161
14162 2011-05-23  Bruno Haible  <bruno@clisp.org>
14163
14164         crypto/md2: Move AC_LIBOBJ invocations to module description.
14165         * m4/md2.m4: Remove file.
14166         * modules/crypto/md2 (Files): Remove it.
14167         (configure.ac): Remove gl_MD2 call.
14168         (Makefile.am): Augment lib_SOURCES.
14169
14170 2011-05-23  Bruno Haible  <bruno@clisp.org>
14171
14172         long-options: Move AC_LIBOBJ invocations to module description.
14173         * m4/long-options.m4: Remove file.
14174         * modules/long-options (Files): Remove it.
14175         (configure.ac): Remove gl_LONG_OPTIONS call.
14176         (Makefile.am): Augment lib_SOURCES.
14177
14178 2011-05-23  Bruno Haible  <bruno@clisp.org>
14179
14180         i-ring: Move AC_LIBOBJ invocations to module description.
14181         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14182         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14183
14184 2011-05-23  Bruno Haible  <bruno@clisp.org>
14185
14186         idcache: Move AC_LIBOBJ invocations to module description.
14187         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14188         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14189
14190 2011-05-23  Bruno Haible  <bruno@clisp.org>
14191
14192         human: Move AC_LIBOBJ invocations to module description.
14193         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14194         * modules/human (Makefile.am): Augment lib_SOURCES.
14195
14196 2011-05-23  Bruno Haible  <bruno@clisp.org>
14197
14198         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14199         * m4/hmac-sha1.m4: Remove file.
14200         * modules/crypto/hmac-sha1 (Files): Remove it.
14201         (configure.ac): Remove gl_HMAC_SHA1 call.
14202         (Makefile.am): Augment lib_SOURCES.
14203
14204 2011-05-23  Bruno Haible  <bruno@clisp.org>
14205
14206         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14207         * m4/hmac-md5.m4: Remove file.
14208         * modules/crypto/hmac-md5 (Files): Remove it.
14209         (configure.ac): Remove gl_HMAC_MD5 call.
14210         (Makefile.am): Augment lib_SOURCES.
14211
14212 2011-05-23  Bruno Haible  <bruno@clisp.org>
14213
14214         hash: Move AC_LIBOBJ invocations to module description.
14215         * m4/hash.m4: Remove file.
14216         * modules/hash (Files): Remove it.
14217         (configure.ac): Remove gl_HASH call.
14218         (Makefile.am): Augment lib_SOURCES.
14219
14220 2011-05-23  Bruno Haible  <bruno@clisp.org>
14221
14222         hard-locale: Move AC_LIBOBJ invocations to module description.
14223         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14224         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14225
14226 2011-05-23  Bruno Haible  <bruno@clisp.org>
14227
14228         getugroups: Move AC_LIBOBJ invocations to module description.
14229         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14230         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14231
14232 2011-05-23  Bruno Haible  <bruno@clisp.org>
14233
14234         gettime: Move AC_LIBOBJ invocations to module description.
14235         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14236         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14237
14238 2011-05-23  Bruno Haible  <bruno@clisp.org>
14239
14240         getndelim2: Move AC_LIBOBJ invocations to module description.
14241         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14242         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14243
14244 2011-05-23  Bruno Haible  <bruno@clisp.org>
14245
14246         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14247         * m4/gc-pbkdf2-sha1.m4: Remove file.
14248         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14249         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14250         (Makefile.am): Augment lib_SOURCES.
14251
14252 2011-05-23  Bruno Haible  <bruno@clisp.org>
14253
14254         fts: Move AC_LIBOBJ invocations to module description.
14255         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14256         * modules/fts (configure.ac): ... to here.
14257
14258 2011-05-23  Bruno Haible  <bruno@clisp.org>
14259
14260         file-type: Move AC_LIBOBJ invocations to module description.
14261         * m4/file-type.m4: Remove file.
14262         * modules/file-type (Files): Remove it.
14263         (configure.ac): Remove gl_FILE_TYPE call.
14264         (Makefile.am): Augment lib_SOURCES.
14265
14266 2011-05-23  Bruno Haible  <bruno@clisp.org>
14267
14268         filenamecat*: Respect rules for use of AC_LIBOBJ.
14269         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14270         Remove AC_LIBOBJ invocation.
14271         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14272         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14273
14274 2011-05-23  Bruno Haible  <bruno@clisp.org>
14275
14276         filemode: Move AC_LIBOBJ invocations to module description.
14277         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14278         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14279
14280 2011-05-23  Bruno Haible  <bruno@clisp.org>
14281
14282         openat-safer: Move AC_LIBOBJ invocations to module description.
14283         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14284         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14285
14286 2011-05-23  Bruno Haible  <bruno@clisp.org>
14287
14288         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14289         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14290         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14291
14292 2011-05-23  Bruno Haible  <bruno@clisp.org>
14293
14294         exclude: Move AC_LIBOBJ invocations to module description.
14295         * m4/exclude.m4: Remove file.
14296         * modules/exclude (Files): Remove it.
14297         (configure.ac): Remove gl_EXCLUDE call.
14298         (Makefile.am): Augment lib_SOURCES.
14299
14300 2011-05-23  Bruno Haible  <bruno@clisp.org>
14301
14302         dirname*: Respect rules for use of AC_LIBOBJ.
14303         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14304         invocations.
14305         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14306         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14307
14308 2011-05-23  Bruno Haible  <bruno@clisp.org>
14309
14310         dirent-safer: Move AC_LIBOBJ invocations to module description.
14311         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14312         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14313
14314 2011-05-23  Bruno Haible  <bruno@clisp.org>
14315
14316         crypto/des: Move AC_LIBOBJ invocations to module description.
14317         * m4/des.m4: Remove file.
14318         * modules/crypto/des (Files): Remove it.
14319         (configure.ac): Remove gl_DES call.
14320         (Makefile.am): Augment lib_SOURCES.
14321
14322 2011-05-23  Bruno Haible  <bruno@clisp.org>
14323
14324         cycle-check: Move AC_LIBOBJ invocations to module description.
14325         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14326         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14327
14328 2011-05-23  Bruno Haible  <bruno@clisp.org>
14329
14330         c-strtold: Move AC_LIBOBJ invocations to module description.
14331         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14332         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14333
14334 2011-05-23  Bruno Haible  <bruno@clisp.org>
14335
14336         c-strtod: Move AC_LIBOBJ invocations to module description.
14337         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14338         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14339
14340 2011-05-23  Bruno Haible  <bruno@clisp.org>
14341
14342         crc: Move AC_LIBOBJ invocations to module description.
14343         * m4/crc.m4: Remove file.
14344         * modules/crc (Files): Remove it.
14345         (configure.ac): Remove gl_CRC call.
14346         (Makefile.am): Augment lib_SOURCES.
14347
14348 2011-05-23  Bruno Haible  <bruno@clisp.org>
14349
14350         close-stream: Move AC_LIBOBJ invocations to module description.
14351         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14352         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14353
14354 2011-05-23  Bruno Haible  <bruno@clisp.org>
14355
14356         closeout: Move AC_LIBOBJ invocations to module description.
14357         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14358         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14359
14360 2011-05-23  Bruno Haible  <bruno@clisp.org>
14361
14362         closein: Move AC_LIBOBJ invocations to module description.
14363         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14364         * modules/closein (Makefile.am): Augment lib_SOURCES.
14365
14366 2011-05-23  Bruno Haible  <bruno@clisp.org>
14367
14368         cloexec: Move AC_LIBOBJ invocations to module description.
14369         * m4/cloexec.m4: Remove file.
14370         * modules/cloexec (Files): Remove it.
14371         (configure.ac): Remove gl_CLOEXEC call.
14372         (Makefile.am): Augment lib_SOURCES.
14373
14374 2011-05-23  Bruno Haible  <bruno@clisp.org>
14375
14376         check-version: Move AC_LIBOBJ invocations to module description.
14377         * m4/check-version.m4: Remove file.
14378         * modules/check-version (Files): Remove it.
14379         (configure.ac): Remove gl_CHECK_VERSION call.
14380         (Makefile.am): Augment lib_SOURCES.
14381
14382 2011-05-23  Bruno Haible  <bruno@clisp.org>
14383
14384         chdir-safer: Move AC_LIBOBJ invocations to module description.
14385         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14386         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14387
14388 2011-05-23  Bruno Haible  <bruno@clisp.org>
14389
14390         canonicalize: Move AC_LIBOBJ invocations to module description.
14391         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14392         AC_LIBOBJ invocation.
14393         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14394
14395 2011-05-23  Bruno Haible  <bruno@clisp.org>
14396
14397         canon-host: Move AC_LIBOBJ invocations to module description.
14398         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14399         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14400         instead of gl_CANON_HOST.
14401         (Makefile.am): Augment lib_SOURCES.
14402
14403 2011-05-23  Bruno Haible  <bruno@clisp.org>
14404
14405         backupfile: Move AC_LIBOBJ invocations to module description.
14406         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14407         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14408
14409 2011-05-23  Bruno Haible  <bruno@clisp.org>
14410
14411         argmatch: Move AC_LIBOBJ invocations to module description.
14412         * m4/argmatch.m4: Remove file.
14413         * modules/argmatch (Files): Remove it.
14414         (configure.ac): Remove gl_ARGMATCH call.
14415         (Makefile.am): Augment lib_SOURCES.
14416
14417 2011-05-23  Bruno Haible  <bruno@clisp.org>
14418
14419         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14420         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14421         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14422
14423 2011-05-23  Bruno Haible  <bruno@clisp.org>
14424
14425         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14426         * m4/arcfour.m4: Remove file.
14427         * modules/crypto/arcfour (Files): Remove it.
14428         (configure.ac): Remove gl_ARCFOUR call.
14429         (Makefile.am): Augment lib_SOURCES.
14430
14431 2011-05-22  Bruno Haible  <bruno@clisp.org>
14432
14433         write: Move AC_LIBOBJ invocations to module description.
14434         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14435         * modules/write (configure.ac): ... to here.
14436
14437 2011-05-22  Bruno Haible  <bruno@clisp.org>
14438
14439         wmemset: Move AC_LIBOBJ invocations to module description.
14440         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14441         here...
14442         * modules/wmemset (configure.ac): ... to here.
14443
14444 2011-05-22  Bruno Haible  <bruno@clisp.org>
14445
14446         wmemmove: Move AC_LIBOBJ invocations to module description.
14447         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14448         here...
14449         * modules/wmemmove (configure.ac): ... to here.
14450
14451 2011-05-22  Bruno Haible  <bruno@clisp.org>
14452
14453         wmemcpy: Move AC_LIBOBJ invocations to module description.
14454         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14455         here...
14456         * modules/wmemcpy (configure.ac): ... to here.
14457
14458 2011-05-22  Bruno Haible  <bruno@clisp.org>
14459
14460         wmemcmp: Move AC_LIBOBJ invocations to module description.
14461         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14462         here...
14463         * modules/wmemcmp (configure.ac): ... to here.
14464
14465 2011-05-22  Bruno Haible  <bruno@clisp.org>
14466
14467         wmemchr: Move AC_LIBOBJ invocations to module description.
14468         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14469         here...
14470         * modules/wmemchr (configure.ac): ... to here.
14471
14472 2011-05-22  Bruno Haible  <bruno@clisp.org>
14473
14474         wcswidth: Move AC_LIBOBJ invocations to module description.
14475         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14476         here...
14477         * modules/wcswidth (configure.ac): ... to here.
14478
14479 2011-05-22  Bruno Haible  <bruno@clisp.org>
14480
14481         wcwidth: Respect rules for use of AC_LIBOBJ.
14482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14483         invocation from here...
14484         * modules/wcwidth (configure.ac): ... to here.
14485         (Depends-on): Update conditions.
14486
14487 2011-05-22  Bruno Haible  <bruno@clisp.org>
14488
14489         wctype: Move AC_LIBOBJ invocations to module description.
14490         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14491         invocation from here...
14492         * modules/wctype (configure.ac): ... to here.
14493         (Depends-on): Update conditions.
14494
14495 2011-05-22  Bruno Haible  <bruno@clisp.org>
14496
14497         wctrans: Move AC_LIBOBJ invocations to module description.
14498         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14499         invocation from here...
14500         * modules/wctrans (configure.ac): ... to here.
14501
14502 2011-05-22  Bruno Haible  <bruno@clisp.org>
14503
14504         wctomb: Move AC_LIBOBJ invocations to module description.
14505         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14506         invocations from here...
14507         * modules/wctomb (configure.ac): ... to here.
14508
14509 2011-05-22  Bruno Haible  <bruno@clisp.org>
14510
14511         wctob: Move AC_LIBOBJ invocations to module description.
14512         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14513         gl_PREREQ_WCTOB invocations from here...
14514         * modules/wctob (configure.ac): ... to here.
14515         (Depends-on): Update conditions.
14516
14517 2011-05-22  Bruno Haible  <bruno@clisp.org>
14518
14519         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14520         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14521         here...
14522         * modules/wcsxfrm (configure.ac): ... to here.
14523
14524 2011-05-22  Bruno Haible  <bruno@clisp.org>
14525
14526         wcstok: Move AC_LIBOBJ invocations to module description.
14527         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14528         * modules/wcstok (configure.ac): ... to here.
14529
14530 2011-05-22  Bruno Haible  <bruno@clisp.org>
14531
14532         wcsstr: Move AC_LIBOBJ invocations to module description.
14533         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14534         * modules/wcsstr (configure.ac): ... to here.
14535
14536 2011-05-22  Bruno Haible  <bruno@clisp.org>
14537
14538         wcsspn: Move AC_LIBOBJ invocations to module description.
14539         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14540         * modules/wcsspn (configure.ac): ... to here.
14541
14542 2011-05-22  Bruno Haible  <bruno@clisp.org>
14543
14544         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14545         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14546         gl_PREREQ_WCSRTOMBS invocations from here...
14547         * modules/wcsrtombs (configure.ac): ... to here.
14548
14549 2011-05-22  Bruno Haible  <bruno@clisp.org>
14550
14551         wcsrchr: Move AC_LIBOBJ invocations to module description.
14552         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14553         here...
14554         * modules/wcsrchr (configure.ac): ... to here.
14555
14556 2011-05-22  Bruno Haible  <bruno@clisp.org>
14557
14558         wcspbrk: Move AC_LIBOBJ invocations to module description.
14559         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14560         here...
14561         * modules/wcspbrk (configure.ac): ... to here.
14562
14563 2011-05-22  Bruno Haible  <bruno@clisp.org>
14564
14565         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14566         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14567         gl_PREREQ_WCSNRTOMBS invocations from here...
14568         * modules/wcsnrtombs (configure.ac): ... to here.
14569
14570 2011-05-22  Bruno Haible  <bruno@clisp.org>
14571
14572         wcsnlen: Move AC_LIBOBJ invocations to module description.
14573         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14574         here...
14575         * modules/wcsnlen (configure.ac): ... to here.
14576
14577 2011-05-22  Bruno Haible  <bruno@clisp.org>
14578
14579         wcsncpy: Move AC_LIBOBJ invocations to module description.
14580         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14581         here...
14582         * modules/wcsncpy (configure.ac): ... to here.
14583
14584 2011-05-22  Bruno Haible  <bruno@clisp.org>
14585
14586         wcsncmp: Move AC_LIBOBJ invocations to module description.
14587         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14588         here...
14589         * modules/wcsncmp (configure.ac): ... to here.
14590
14591 2011-05-22  Bruno Haible  <bruno@clisp.org>
14592
14593         wcsncat: Move AC_LIBOBJ invocations to module description.
14594         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14595         here...
14596         * modules/wcsncat (configure.ac): ... to here.
14597
14598 2011-05-22  Bruno Haible  <bruno@clisp.org>
14599
14600         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14601         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14602         from here...
14603         * modules/wcsncasecmp (configure.ac): ... to here.
14604
14605 2011-05-22  Bruno Haible  <bruno@clisp.org>
14606
14607         wcslen: Move AC_LIBOBJ invocations to module description.
14608         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14609         * modules/wcslen (configure.ac): ... to here.
14610
14611 2011-05-22  Bruno Haible  <bruno@clisp.org>
14612
14613         wcsdup: Move AC_LIBOBJ invocations to module description.
14614         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14615         * modules/wcsdup (configure.ac): ... to here.
14616
14617 2011-05-22  Bruno Haible  <bruno@clisp.org>
14618
14619         wcscspn: Move AC_LIBOBJ invocations to module description.
14620         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14621         here...
14622         * modules/wcscspn (configure.ac): ... to here.
14623
14624 2011-05-22  Bruno Haible  <bruno@clisp.org>
14625
14626         wcscpy: Move AC_LIBOBJ invocations to module description.
14627         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14628         * modules/wcscpy (configure.ac): ... to here.
14629
14630 2011-05-22  Bruno Haible  <bruno@clisp.org>
14631
14632         wcscoll: Move AC_LIBOBJ invocations to module description.
14633         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14634         here...
14635         * modules/wcscoll (configure.ac): ... to here.
14636
14637 2011-05-22  Bruno Haible  <bruno@clisp.org>
14638
14639         wcscmp: Move AC_LIBOBJ invocations to module description.
14640         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14641         * modules/wcscmp (configure.ac): ... to here.
14642
14643 2011-05-22  Bruno Haible  <bruno@clisp.org>
14644
14645         wcschr: Move AC_LIBOBJ invocations to module description.
14646         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14647         * modules/wcschr (configure.ac): ... to here.
14648
14649 2011-05-22  Bruno Haible  <bruno@clisp.org>
14650
14651         wcscat: Move AC_LIBOBJ invocations to module description.
14652         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14653         * modules/wcscat (configure.ac): ... to here.
14654
14655 2011-05-22  Bruno Haible  <bruno@clisp.org>
14656
14657         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14658         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14659         here...
14660         * modules/wcscasecmp (configure.ac): ... to here.
14661
14662 2011-05-22  Bruno Haible  <bruno@clisp.org>
14663
14664         wcrtomb: Move AC_LIBOBJ invocations to module description.
14665         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14666         invocations from here...
14667         * modules/wcrtomb (configure.ac): ... to here.
14668
14669 2011-05-22  Bruno Haible  <bruno@clisp.org>
14670
14671         wcpncpy: Move AC_LIBOBJ invocations to module description.
14672         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14673         here...
14674         * modules/wcpncpy (configure.ac): ... to here.
14675
14676 2011-05-22  Bruno Haible  <bruno@clisp.org>
14677
14678         wcpcpy: Move AC_LIBOBJ invocations to module description.
14679         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14680         * modules/wcpcpy (configure.ac): ... to here.
14681
14682 2011-05-22  Bruno Haible  <bruno@clisp.org>
14683
14684         waitpid: Move AC_LIBOBJ invocations to module description.
14685         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14686         invocation from here...
14687         * modules/waitpid (configure.ac): ... to here.
14688
14689 2011-05-22  Bruno Haible  <bruno@clisp.org>
14690
14691         utimensat: Move AC_LIBOBJ invocations to module description.
14692         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14693         here...
14694         * modules/utimensat (configure.ac): ... to here.
14695
14696 2011-05-22  Bruno Haible  <bruno@clisp.org>
14697
14698         usleep: Move AC_LIBOBJ invocations to module description.
14699         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14700         here...
14701         * modules/usleep (configure.ac): ... to here.
14702
14703 2011-05-22  Bruno Haible  <bruno@clisp.org>
14704
14705         unlockpt: Move AC_LIBOBJ invocations to module description.
14706         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14707         gl_PREREQ_UNLOCKPT invocations from here...
14708         * modules/unlockpt (configure.ac): ... to here.
14709
14710 2011-05-22  Bruno Haible  <bruno@clisp.org>
14711
14712         unlink: Respect rules for use of AC_LIBOBJ.
14713         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14714         * modules/unlink (configure.ac): ... to here.
14715
14716 2011-05-22  Bruno Haible  <bruno@clisp.org>
14717
14718         uname: Move AC_LIBOBJ invocations to module description.
14719         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14721         here...
14722         * modules/uname (configure.ac): ... to here.
14723
14724 2011-05-22  Bruno Haible  <bruno@clisp.org>
14725
14726         ttyname_r: Move AC_LIBOBJ invocations to module description.
14727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14728         gl_PREREQ_TTYNAME_R invocations from here...
14729         * modules/ttyname_r (configure.ac): ... to here.
14730
14731 2011-05-22  Bruno Haible  <bruno@clisp.org>
14732
14733         tsearch: Move AC_LIBOBJ invocations to module description.
14734         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14735         invocations from here...
14736         * modules/tsearch (configure.ac): ... to here.
14737
14738 2011-05-22  Bruno Haible  <bruno@clisp.org>
14739
14740         towctrans: Move AC_LIBOBJ invocations to module description.
14741         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14742         AC_LIBOBJ invocation from here...
14743         * modules/towctrans (configure.ac): ... to here.
14744
14745 2011-05-22  Bruno Haible  <bruno@clisp.org>
14746
14747         tmpfile: Move AC_LIBOBJ invocations to module description.
14748         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14749         invocations from here...
14750         * modules/tmpfile (configure.ac): ... to here.
14751
14752 2011-05-22  Bruno Haible  <bruno@clisp.org>
14753
14754         times: Move AC_LIBOBJ invocations to module description.
14755         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14756         * modules/times (configure.ac): ... to here.
14757
14758 2011-05-22  Bruno Haible  <bruno@clisp.org>
14759
14760         time_r: Move AC_LIBOBJ invocations to module description.
14761         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14762         invocations from here...
14763         * modules/time_r (configure.ac): ... to here.
14764
14765 2011-05-22  Bruno Haible  <bruno@clisp.org>
14766
14767         timegm: Move AC_LIBOBJ invocations to module description.
14768         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14769         invocations from here...
14770         * modules/timegm (configure.ac): ... to here.
14771
14772 2011-05-22  Bruno Haible  <bruno@clisp.org>
14773
14774         tcgetsid: Move AC_LIBOBJ invocations to module description.
14775         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14776         and gl_PREREQ_TCGETSID invocations from here...
14777         * modules/tcgetsid (configure.ac): ... to here.
14778         (Depends-on): Update conditions.
14779
14780 2011-05-22  Bruno Haible  <bruno@clisp.org>
14781
14782         symlinkat: Move AC_LIBOBJ invocations to module description.
14783         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14784         here...
14785         * modules/symlinkat (configure.ac): ... to here.
14786
14787 2011-05-22  Bruno Haible  <bruno@clisp.org>
14788
14789         symlink: Move AC_LIBOBJ invocations to module description.
14790         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14791         here...
14792         * modules/symlink (configure.ac): ... to here.
14793
14794 2011-05-22  Bruno Haible  <bruno@clisp.org>
14795
14796         strverscmp: Move AC_LIBOBJ invocations to module description.
14797         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14799         from here...
14800         * modules/strverscmp (configure.ac): ... to here.
14801
14802 2011-05-22  Bruno Haible  <bruno@clisp.org>
14803
14804         strtok_r: Move AC_LIBOBJ invocations to module description.
14805         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14806         and gl_PREREQ_STRTOK_R invocations from here...
14807         * modules/strtok_r (configure.ac): ... to here.
14808         (Depends-on): Update conditions.
14809
14810 2011-05-22  Bruno Haible  <bruno@clisp.org>
14811
14812         strtoumax: Move AC_LIBOBJ invocations to module description.
14813         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14815         from here...
14816         * modules/strtoumax (configure.ac): ... to here.
14817
14818 2011-05-22  Bruno Haible  <bruno@clisp.org>
14819
14820         strtoimax: Move AC_LIBOBJ invocations to module description.
14821         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14823         from here...
14824         * modules/strtoimax (configure.ac): ... to here.
14825
14826 2011-05-22  Bruno Haible  <bruno@clisp.org>
14827
14828         strtoull: Move AC_LIBOBJ invocations to module description.
14829         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14831         from here...
14832         * modules/strtoull (configure.ac): ... to here.
14833
14834 2011-05-22  Bruno Haible  <bruno@clisp.org>
14835
14836         strtoll: Move AC_LIBOBJ invocations to module description.
14837         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14839         here...
14840         * modules/strtoll (configure.ac): ... to here.
14841
14842 2011-05-22  Bruno Haible  <bruno@clisp.org>
14843
14844         strtoul: Move AC_LIBOBJ invocations to module description.
14845         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14846         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14847         * modules/strtoul (configure.ac): ... to here.
14848
14849 2011-05-22  Bruno Haible  <bruno@clisp.org>
14850
14851         strtol: Move AC_LIBOBJ invocations to module description.
14852         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14853         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14854         * modules/strtol (configure.ac): ... to here.
14855
14856 2011-05-22  Bruno Haible  <bruno@clisp.org>
14857
14858         strtod: Move AC_LIBOBJ invocations to module description.
14859         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14860         invocations from here...
14861         * modules/strtod (configure.ac): ... to here.
14862
14863 2011-05-22  Bruno Haible  <bruno@clisp.org>
14864
14865         strstr*: Move AC_LIBOBJ invocations to module description.
14866         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14867         invocations from here...
14868         * modules/strstr-simple (configure.ac): ... to here.
14869         * modules/strstr (configure.ac): ... and here.
14870
14871 2011-05-22  Bruno Haible  <bruno@clisp.org>
14872
14873         strsignal: Move AC_LIBOBJ invocations to module description.
14874         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14875         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14876         * modules/strsignal (configure.ac): ... to here.
14877         (Depends-on): Update conditions.
14878
14879 2011-05-22  Bruno Haible  <bruno@clisp.org>
14880
14881         strsep: Move AC_LIBOBJ invocations to module description.
14882         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14884         here...
14885         * modules/strsep (configure.ac): ... to here.
14886
14887 2011-05-22  Bruno Haible  <bruno@clisp.org>
14888
14889         strptime: Move AC_LIBOBJ invocations to module description.
14890         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14891         gl_PREREQ_STRPTIME invocations from here...
14892         * modules/strptime (configure.ac): ... to here.
14893
14894 2011-05-22  Bruno Haible  <bruno@clisp.org>
14895
14896         strpbrk: Move AC_LIBOBJ invocations to module description.
14897         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14899         here...
14900         * modules/strpbrk (configure.ac): ... to here.
14901
14902 2011-05-22  Bruno Haible  <bruno@clisp.org>
14903
14904         strnlen: Move AC_LIBOBJ invocations to module description.
14905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14906         invocations from here...
14907         * modules/strnlen (configure.ac): ... to here.
14908
14909 2011-05-22  Bruno Haible  <bruno@clisp.org>
14910
14911         strndup: Move AC_LIBOBJ invocations to module description.
14912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14913         invocations from here...
14914         * modules/strndup (configure.ac): ... to here.
14915         (Depends-on): Update conditions.
14916
14917 2011-05-22  Bruno Haible  <bruno@clisp.org>
14918
14919         strncat: Move AC_LIBOBJ invocations to module description.
14920         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14921         invocations from here...
14922         * modules/strncat (configure.ac): ... to here.
14923
14924 2011-05-22  Bruno Haible  <bruno@clisp.org>
14925
14926         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14927         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14928         invocations from here...
14929         * modules/strdup (configure.ac): ... to here.
14930         * modules/strdup-posix (configure.ac): ... and here.
14931
14932 2011-05-22  Bruno Haible  <bruno@clisp.org>
14933
14934         strcspn: Move AC_LIBOBJ invocations to module description.
14935         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14937         here...
14938         * modules/strcspn (configure.ac): ... to here.
14939
14940 2011-05-22  Bruno Haible  <bruno@clisp.org>
14941
14942         strchrnul: Move AC_LIBOBJ invocations to module description.
14943         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14944         gl_PREREQ_STRCHRNUL invocations from here...
14945         * modules/strchrnul (configure.ac): ... to here.
14946
14947 2011-05-22  Bruno Haible  <bruno@clisp.org>
14948
14949         strcasestr*: Move AC_LIBOBJ invocations to module description.
14950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14951         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14952         * modules/strcasestr-simple (configure.ac): ... to here.
14953         * modules/strcasestr (configure.ac): ... and here.
14954
14955 2011-05-22  Bruno Haible  <bruno@clisp.org>
14956
14957         strcase: Move AC_LIBOBJ invocations to module description.
14958         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14959         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14960         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14961         gl_PREREQ_STRNCASECMP invocations from here...
14962         * modules/strcase (configure.ac): ... to here.
14963
14964 2011-05-22  Bruno Haible  <bruno@clisp.org>
14965
14966         stpncpy: Move AC_LIBOBJ invocations to module description.
14967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14968         here...
14969         * modules/stpncpy (configure.ac): ... to here.
14970
14971 2011-05-22  Bruno Haible  <bruno@clisp.org>
14972
14973         stpcpy: Move AC_LIBOBJ invocations to module description.
14974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14976         here...
14977         * modules/stpcpy (configure.ac): ... to here.
14978
14979 2011-05-21  Bruno Haible  <bruno@clisp.org>
14980
14981         stat: Move AC_LIBOBJ invocations to module description.
14982         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14983         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14984         here...
14985         * modules/stat (configure.ac): ... to here.
14986
14987 2011-05-21  Bruno Haible  <bruno@clisp.org>
14988
14989         sleep: Move AC_LIBOBJ invocations to module description.
14990         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14991         * modules/sleep (configure.ac): ... to here.
14992
14993 2011-05-21  Bruno Haible  <bruno@clisp.org>
14994
14995         signbit: Move AC_LIBOBJ invocations to module description.
14996         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14997         * modules/signbit (configure.ac): ... to here.
14998
14999 2011-05-21  Bruno Haible  <bruno@clisp.org>
15000
15001         sigprocmask: Move AC_LIBOBJ invocations to module description.
15002         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15003         gl_PREREQ_SIGPROMASK invocations from here...
15004         * modules/sigprocmask (configure.ac): ... to here.
15005
15006 2011-05-21  Bruno Haible  <bruno@clisp.org>
15007
15008         sigaction: Move AC_LIBOBJ invocations to module description.
15009         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15010         gl_PREREQ_SIGACTION invocations from here...
15011         * modules/sigaction (configure.ac): ... to here.
15012
15013 2011-05-21  Bruno Haible  <bruno@clisp.org>
15014
15015         sig2str: Move AC_LIBOBJ invocations to module description.
15016         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15018         here...
15019         * modules/sig2str (configure.ac): ... to here.
15020
15021 2011-05-21  Bruno Haible  <bruno@clisp.org>
15022
15023         setlocale: Move AC_LIBOBJ invocations to module description.
15024         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15025         gl_PREREQ_SETLOCALE invocations from here...
15026         * modules/setlocale (configure.ac): ... to here.
15027
15028 2011-05-21  Bruno Haible  <bruno@clisp.org>
15029
15030         unsetenv: Move AC_LIBOBJ invocations to module description.
15031         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15032         and gl_PREREQ_UNSETENV invocations from here...
15033         * modules/unsetenv (configure.ac): ... to here.
15034         (Depends-on): Update.
15035
15036 2011-05-21  Bruno Haible  <bruno@clisp.org>
15037
15038         setenv: Move AC_LIBOBJ invocations to module description.
15039         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15040         here...
15041         * modules/setenv (configure.ac): ... to here.
15042
15043 2011-05-21  Bruno Haible  <bruno@clisp.org>
15044
15045         selinux-h: Move AC_LIBOBJ invocations to module description.
15046         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15047         AC_LIBOBJ invocation from here...
15048         * modules/selinux-h (configure.ac): ... to here.
15049
15050 2011-05-21  Bruno Haible  <bruno@clisp.org>
15051
15052         select: Respect rules for use of AC_LIBOBJ.
15053         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15054         here...
15055         * modules/select (configure.ac): ... to here.
15056
15057 2011-05-21  Bruno Haible  <bruno@clisp.org>
15058
15059         scandir: Move AC_LIBOBJ invocations to module description.
15060         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15061         invocations from here...
15062         * modules/scandir (configure.ac): ... to here.
15063
15064 2011-05-21  Bruno Haible  <bruno@clisp.org>
15065
15066         rpmatch: Move AC_LIBOBJ invocations to module description.
15067         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15069         here...
15070         * modules/rpmatch (configure.ac): ... to here.
15071
15072 2011-05-21  Bruno Haible  <bruno@clisp.org>
15073
15074         rmdir: Respect rules for use of AC_LIBOBJ.
15075         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15076         * modules/rmdir (configure.ac): ... to here.
15077
15078 2011-05-21  Bruno Haible  <bruno@clisp.org>
15079
15080         renameat: Move AC_LIBOBJ invocations to module description.
15081         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15082         here...
15083         * modules/renameat (configure.ac): ... to here.
15084
15085 2011-05-21  Bruno Haible  <bruno@clisp.org>
15086
15087         rename: Respect rules for use of AC_LIBOBJ.
15088         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15089         here...
15090         * modules/rename (configure.ac): ... to here.
15091
15092 2011-05-21  Bruno Haible  <bruno@clisp.org>
15093
15094         remove: Move AC_LIBOBJ invocations to module description.
15095         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15096         here...
15097         * modules/remove (configure.ac): ... to here.
15098
15099 2011-05-21  Bruno Haible  <bruno@clisp.org>
15100
15101         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15103         macro.
15104         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15105         * modules/relocatable-lib (configure.ac): ... to here.
15106         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15107         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15108
15109 2011-05-21  Bruno Haible  <bruno@clisp.org>
15110
15111         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15112         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15113         here...
15114         * modules/relocatable-prog (configure.ac): ... to here.
15115
15116 2011-05-21  Bruno Haible  <bruno@clisp.org>
15117
15118         regex: Move AC_LIBOBJ invocations to module description.
15119         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15120         invocations from here...
15121         * modules/regex (configure.ac): ... to here.
15122
15123 2011-05-21  Bruno Haible  <bruno@clisp.org>
15124
15125         realloc-*: Move AC_LIBOBJ invocations to module description.
15126         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15127         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15128         AC_LIBOBJ invocations from here...
15129         * modules/realloc-gnu (configure.ac): ... to here.
15130         * modules/realloc-posix (configure.ac): ... and here.
15131
15132 2011-05-21  Bruno Haible  <bruno@clisp.org>
15133
15134         readutmp: Move AC_LIBOBJ invocations to module description.
15135         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15136         * modules/readutmp (configure.ac): ... to here.
15137
15138 2011-05-21  Bruno Haible  <bruno@clisp.org>
15139
15140         readlinkat: Move AC_LIBOBJ invocations to module description.
15141         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15142         here...
15143         * modules/readlinkat (configure.ac): ... to here.
15144
15145 2011-05-21  Bruno Haible  <bruno@clisp.org>
15146
15147         readlink: Move AC_LIBOBJ invocations to module description.
15148         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15149         gl_PREREQ_READLINK invocations from here...
15150         * modules/readlink (configure.ac): ... to here.
15151
15152 2011-05-21  Bruno Haible  <bruno@clisp.org>
15153
15154         readline: Move AC_LIBOBJ invocations to module description.
15155         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15156         gl_PREREQ_READLINE invocations from here...
15157         * modules/readline (configure.ac): ... to here.
15158
15159 2011-05-21  Bruno Haible  <bruno@clisp.org>
15160
15161         read: Move AC_LIBOBJ invocations to module description.
15162         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15163         * modules/read (configure.ac): ... to here.
15164
15165 2011-05-21  Bruno Haible  <bruno@clisp.org>
15166
15167         rawmemchr: Move AC_LIBOBJ invocations to module description.
15168         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15170         from here...
15171         * modules/rawmemchr (configure.ac): ... to here.
15172
15173 2011-05-21  Bruno Haible  <bruno@clisp.org>
15174
15175         random_r: Move AC_LIBOBJ invocations to module description.
15176         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15177         gl_PREREQ_RANDOM_R invocations from here...
15178         * modules/random_r (configure.ac): ... to here.
15179
15180 2011-05-21  Bruno Haible  <bruno@clisp.org>
15181
15182         pwrite: Move AC_LIBOBJ invocations to module description.
15183         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15184         * modules/pwrite (configure.ac): ... to here.
15185
15186 2011-05-21  Bruno Haible  <bruno@clisp.org>
15187
15188         putenv: Move AC_LIBOBJ invocations to module description.
15189         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15190         * modules/putenv (configure.ac): ... to here.
15191
15192 2011-05-21  Bruno Haible  <bruno@clisp.org>
15193
15194         login_tty: Move AC_LIBOBJ invocations to module description.
15195         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15196         * modules/login_tty (configure.ac): ... to here.
15197
15198 2011-05-21  Bruno Haible  <bruno@clisp.org>
15199
15200         openpty: Move AC_LIBOBJ invocations to module description.
15201         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15202         * modules/openpty (configure.ac): ... to here.
15203
15204 2011-05-21  Bruno Haible  <bruno@clisp.org>
15205
15206         forkpty: Move AC_LIBOBJ invocations to module description.
15207         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15208         * modules/forkpty (configure.ac): ... to here.
15209
15210 2011-05-21  Bruno Haible  <bruno@clisp.org>
15211
15212         ptsname: Move AC_LIBOBJ invocations to module description.
15213         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15214         invocations from here...
15215         * modules/ptsname (configure.ac): ... to here.
15216
15217 2011-05-21  Bruno Haible  <bruno@clisp.org>
15218
15219         pread: Move AC_LIBOBJ invocations to module description.
15220         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15221         * modules/pread (configure.ac): ... to here.
15222
15223 2011-05-21  Bruno Haible  <bruno@clisp.org>
15224
15225         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15226         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15227         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15228         * modules/posix_spawn (configure.ac): ... to here.
15229         * modules/posix_spawnp (configure.ac): ... and here.
15230
15231 2011-05-21  Bruno Haible  <bruno@clisp.org>
15232
15233         popen: Move AC_LIBOBJ invocations to module description.
15234         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15235         invocations from here...
15236         * modules/popen (configure.ac): ... to here.
15237
15238 2011-05-21  Bruno Haible  <bruno@clisp.org>
15239
15240         poll: Move AC_LIBOBJ invocations to module description.
15241         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15242         invocations from here...
15243         * modules/poll (configure.ac): ... to here.
15244
15245 2011-05-21  Bruno Haible  <bruno@clisp.org>
15246
15247         pipe-posix: Move AC_LIBOBJ invocations to module description.
15248         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15249         * modules/pipe-posix (configure.ac): ... to here.
15250
15251 2011-05-21  Bruno Haible  <bruno@clisp.org>
15252
15253         openat: Respect rules for use of AC_LIBOBJ.
15254         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15255         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15256         * modules/openat (configure.ac): ... to here.
15257
15258 2011-05-21  Bruno Haible  <bruno@clisp.org>
15259
15260         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15261         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15262         invocation from here...
15263         * modules/obstack-printf (configure.ac): ... to here.
15264         * modules/obstack-printf-posix (configure.ac): ... and here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15270         from here...
15271         * modules/nl_langinfo (configure.ac): ... to here.
15272
15273 2011-05-21  Bruno Haible  <bruno@clisp.org>
15274
15275         nanosleep: Move AC_LIBOBJ invocations to module description.
15276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15277         gl_PREREQ_NANOSLEEP invocations from here...
15278         * modules/nanosleep (configure.ac): ... to here.
15279
15280 2011-05-21  Bruno Haible  <bruno@clisp.org>
15281
15282         mountlist: Move AC_LIBOBJ invocations to module description.
15283         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15284         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15285         * modules/mountlist (configure.ac): ... to here.
15286
15287 2011-05-21  Bruno Haible  <bruno@clisp.org>
15288
15289         mktime: Respect rules for use of AC_LIBOBJ.
15290         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15291         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15292         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15293         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15294         * modules/mktime (configure.ac): ... to here.
15295         * modules/mktime-internal (configure.ac): ... and here.
15296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15297
15298 2011-05-21  Bruno Haible  <bruno@clisp.org>
15299
15300         mkstemps: Move AC_LIBOBJ invocations to module description.
15301         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15302         here...
15303         * modules/mkstemps (configure.ac): ... to here.
15304
15305 2011-05-21  Bruno Haible  <bruno@clisp.org>
15306
15307         mkstemp: Move AC_LIBOBJ invocations to module description.
15308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15309         gl_PREREQ_MKSTEMP invocations from here...
15310         * modules/mkstemp (configure.ac): ... to here.
15311
15312 2011-05-21  Bruno Haible  <bruno@clisp.org>
15313
15314         mkostemps: Move AC_LIBOBJ invocations to module description.
15315         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15316         here...
15317         * modules/mkostemps (configure.ac): ... to here.
15318
15319 2011-05-21  Bruno Haible  <bruno@clisp.org>
15320
15321         mkostemp: Move AC_LIBOBJ invocations to module description.
15322         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15323         gl_PREREQ_MKOSTEMP invocations from here...
15324         * modules/mkostemp (configure.ac): ... to here.
15325
15326 2011-05-21  Bruno Haible  <bruno@clisp.org>
15327
15328         mknod: Move AC_LIBOBJ invocations to module description.
15329         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15330         * modules/mknod (configure.ac): ... to here.
15331
15332 2011-05-21  Bruno Haible  <bruno@clisp.org>
15333
15334         mkfifoat: Move AC_LIBOBJ invocations to module description.
15335         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15336         here...
15337         * modules/mkfifoat (configure.ac): ... to here.
15338
15339 2011-05-21  Bruno Haible  <bruno@clisp.org>
15340
15341         mkfifo: Respect rules for use of AC_LIBOBJ.
15342         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15343         here...
15344         * modules/mkfifo (configure.ac): ... to here.
15345
15346 2011-05-21  Bruno Haible  <bruno@clisp.org>
15347
15348         mkdtemp: Move AC_LIBOBJ invocations to module description.
15349         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15350         invocations from here...
15351         * modules/mkdtemp (configure.ac): ... to here.
15352
15353 2011-05-21  Bruno Haible  <bruno@clisp.org>
15354
15355         mkdir: Move AC_LIBOBJ invocations to module description.
15356         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15357         * modules/mkdir (configure.ac): ... to here.
15358
15359 2011-05-21  Bruno Haible  <bruno@clisp.org>
15360
15361         memset: Move AC_LIBOBJ invocations to module description.
15362         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15364         here...
15365         * modules/memset (configure.ac): ... to here.
15366
15367 2011-05-21  Bruno Haible  <bruno@clisp.org>
15368
15369         memrchr: Move AC_LIBOBJ invocations to module description.
15370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15372         here...
15373         * modules/memrchr (configure.ac): ... to here.
15374
15375 2011-05-21  Bruno Haible  <bruno@clisp.org>
15376
15377         mempcpy: Move AC_LIBOBJ invocations to module description.
15378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15380         here...
15381         * modules/mempcpy (configure.ac): ... to here.
15382
15383 2011-05-21  Bruno Haible  <bruno@clisp.org>
15384
15385         memmove: Move AC_LIBOBJ invocations to module description.
15386         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15387         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15388         here...
15389         * modules/memmove (configure.ac): ... to here.
15390
15391 2011-05-21  Bruno Haible  <bruno@clisp.org>
15392
15393         memmem*: Move AC_LIBOBJ invocations to module description.
15394         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15395         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15396         here...
15397         (gl_FUNC_MEMMEM): ... and here...
15398         * modules/memmem-simple (configure.ac): ... to here.
15399         * modules/memmem (configure.ac): ... and here.
15400
15401 2011-05-21  Bruno Haible  <bruno@clisp.org>
15402
15403         memcpy: Move AC_LIBOBJ invocations to module description.
15404         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15406         here...
15407         * modules/memcpy (configure.ac): ... to here.
15408
15409 2011-05-21  Bruno Haible  <bruno@clisp.org>
15410
15411         memcmp: Simplify autoconf macro.
15412         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15413         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15414         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15415
15416 2011-05-21  Bruno Haible  <bruno@clisp.org>
15417
15418         memcmp: Move AC_LIBOBJ invocations to module description.
15419         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15420         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15421         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15422         * modules/memcmp (configure.ac): ... to here.
15423         (Depends-on): Update conditions.
15424
15425 2011-05-21  Bruno Haible  <bruno@clisp.org>
15426
15427         memchr: Respect rules for use of AC_LIBOBJ.
15428         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15429         invocations from here...
15430         * modules/memchr (configure.ac): ... to here.
15431
15432 2011-05-21  Bruno Haible  <bruno@clisp.org>
15433
15434         mbtowc: Move AC_LIBOBJ invocations to module description.
15435         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15436         invocations from here...
15437         * modules/mbtowc (configure.ac): ... to here.
15438
15439 2011-05-21  Bruno Haible  <bruno@clisp.org>
15440
15441         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15442         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15443         gl_PREREQ_MBSRTOWCS invocations from here...
15444         * modules/mbsrtowcs (configure.ac): ... to here.
15445
15446 2011-05-21  Bruno Haible  <bruno@clisp.org>
15447
15448         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15449         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15450         gl_PREREQ_MBSNRTOWCS invocations from here...
15451         * modules/mbsnrtowcs (configure.ac): ... to here.
15452
15453 2011-05-21  Bruno Haible  <bruno@clisp.org>
15454
15455         mbsinit: Move AC_LIBOBJ invocations to module description.
15456         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15457         invocations from here...
15458         * modules/mbsinit (configure.ac): ... to here.
15459
15460 2011-05-21  Bruno Haible  <bruno@clisp.org>
15461
15462         mbrlen: Move AC_LIBOBJ invocations to module description.
15463         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15464         invocations from here...
15465         * modules/mbrlen (configure.ac): ... to here.
15466
15467 2011-05-21  Bruno Haible  <bruno@clisp.org>
15468
15469         mbrtowc: Respect rules for use of AC_LIBOBJ.
15470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15471         invocations from here...
15472         * modules/mbrtowc (configure.ac): ... to here.
15473
15474 2011-05-21  Bruno Haible  <bruno@clisp.org>
15475
15476         malloc-*: Move AC_LIBOBJ invocations to module description.
15477         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15478         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15479         AC_LIBOBJ invocations from here...
15480         * modules/malloc-gnu (configure.ac): ... to here.
15481         * modules/malloc-posix (configure.ac): ... and here.
15482
15483 2011-05-21  Bruno Haible  <bruno@clisp.org>
15484
15485         lstat, openat: Respect rules for use of AC_LIBOBJ.
15486         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15487         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15488         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15489         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15490         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15491         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15492         here.
15493         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15494
15495 2011-05-21  Bruno Haible  <bruno@clisp.org>
15496
15497         lseek: Move AC_LIBOBJ invocations to module description.
15498         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15499         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15500         * modules/lseek (configure.ac): ... to here.
15501
15502 2011-05-21  Bruno Haible  <bruno@clisp.org>
15503
15504         linkat: Move AC_LIBOBJ invocations to module description.
15505         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15506         here...
15507         * modules/linkat (configure.ac): ... to here.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         link: Respect rules for use of AC_LIBOBJ.
15512         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15513         * modules/link (configure.ac): ... to here.
15514
15515 2011-05-21  Bruno Haible  <bruno@clisp.org>
15516
15517         lchown: Move AC_LIBOBJ invocations to module description.
15518         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15519         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15520         * modules/lchown (configure.ac): ... to here.
15521
15522 2011-05-21  Bruno Haible  <bruno@clisp.org>
15523
15524         iswctype: Move AC_LIBOBJ invocations to module description.
15525         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15526         here...
15527         * modules/iswctype (configure.ac): ... to here.
15528
15529 2011-05-21  Bruno Haible  <bruno@clisp.org>
15530
15531         iswblank: Move AC_LIBOBJ invocations to module description.
15532         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15533         here...
15534         * modules/iswblank (configure.ac): ... to here.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         atanl: Move AC_LIBOBJ invocations to module description.
15539         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15540         * modules/atanl (configure.ac): ... to here.
15541
15542 2011-05-21  Bruno Haible  <bruno@clisp.org>
15543
15544         acosl: Move AC_LIBOBJ invocations to module description.
15545         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15546         * modules/acosl (configure.ac): ... to here.
15547
15548 2011-05-21  Bruno Haible  <bruno@clisp.org>
15549
15550         asinl: Respect rules for use of AC_LIBOBJ.
15551         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15552         * modules/asinl (configure.ac): ... to here.
15553
15554 2011-05-21  Bruno Haible  <bruno@clisp.org>
15555
15556         tanl: Move AC_LIBOBJ invocations to module description.
15557         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15558         * modules/tanl (configure.ac): ... to here.
15559
15560 2011-05-21  Bruno Haible  <bruno@clisp.org>
15561
15562         cosl: Move AC_LIBOBJ invocations to module description.
15563         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15564         * modules/cosl (configure.ac): ... to here.
15565
15566 2011-05-21  Bruno Haible  <bruno@clisp.org>
15567
15568         sinl: Move AC_LIBOBJ invocations to module description.
15569         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15570         * modules/sinl (configure.ac): ... to here.
15571
15572 2011-05-21  Bruno Haible  <bruno@clisp.org>
15573
15574         logl: Move AC_LIBOBJ invocations to module description.
15575         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15576         * modules/logl (configure.ac): ... to here.
15577
15578 2011-05-21  Bruno Haible  <bruno@clisp.org>
15579
15580         expl: Move AC_LIBOBJ invocations to module description.
15581         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15582         * modules/expl (configure.ac): ... to here.
15583
15584 2011-05-21  Bruno Haible  <bruno@clisp.org>
15585
15586         roundl: Move AC_LIBOBJ invocations to module description.
15587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15588         * modules/roundl (configure.ac): ... to here.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         round: Move AC_LIBOBJ invocations to module description.
15593         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15594         * modules/round (configure.ac): ... to here.
15595
15596 2011-05-21  Bruno Haible  <bruno@clisp.org>
15597
15598         roundf: Move AC_LIBOBJ invocations to module description.
15599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15600         * modules/roundf (configure.ac): ... to here.
15601
15602 2011-05-21  Bruno Haible  <bruno@clisp.org>
15603
15604         truncl: Move AC_LIBOBJ invocations to module description.
15605         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15606         * modules/truncl (configure.ac): ... to here.
15607
15608 2011-05-21  Bruno Haible  <bruno@clisp.org>
15609
15610         trunc: Move AC_LIBOBJ invocations to module description.
15611         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15612         * modules/trunc (configure.ac): ... to here.
15613
15614 2011-05-21  Bruno Haible  <bruno@clisp.org>
15615
15616         truncf: Move AC_LIBOBJ invocations to module description.
15617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15618         * modules/truncf (configure.ac): ... to here.
15619
15620 2011-05-21  Bruno Haible  <bruno@clisp.org>
15621
15622         ceill: Move AC_LIBOBJ invocations to module description.
15623         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15624         * modules/ceill (configure.ac): ... to here.
15625
15626 2011-05-21  Bruno Haible  <bruno@clisp.org>
15627
15628         ceil: Move AC_LIBOBJ invocations to module description.
15629         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15630         * modules/ceil (configure.ac): ... to here.
15631
15632 2011-05-21  Bruno Haible  <bruno@clisp.org>
15633
15634         ceilf: Move AC_LIBOBJ invocations to module description.
15635         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15636         * modules/ceilf (configure.ac): ... to here.
15637
15638 2011-05-21  Bruno Haible  <bruno@clisp.org>
15639
15640         floorl: Respect rules for use of AC_LIBOBJ.
15641         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15642         * modules/floorl (configure.ac): ... to here.
15643
15644 2011-05-21  Bruno Haible  <bruno@clisp.org>
15645
15646         floor: Respect rules for use of AC_LIBOBJ.
15647         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15648         * modules/floor (configure.ac): ... to here.
15649
15650 2011-05-21  Bruno Haible  <bruno@clisp.org>
15651
15652         floorf: Move AC_LIBOBJ invocations to module description.
15653         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15654         * modules/floorf (configure.ac): ... to here.
15655
15656 2011-05-20  Bruno Haible  <bruno@clisp.org>
15657
15658         sqrtl: Respect rules for use of AC_LIBOBJ.
15659         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15660         * modules/sqrtl (configure.ac): ... to here.
15661
15662 2011-05-20  Bruno Haible  <bruno@clisp.org>
15663
15664         ldexpl: Respect rules for use of AC_LIBOBJ.
15665         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15666         * modules/ldexpl (configure.ac): ... to here.
15667
15668 2011-05-20  Bruno Haible  <bruno@clisp.org>
15669
15670         frexpl*: Respect rules for use of AC_LIBOBJ.
15671         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15672         invocation from here...
15673         * modules/frexpl (configure.ac): ... to here.
15674         * modules/frexpl-nolibm (configure.ac): ... and here.
15675
15676 2011-05-20  Bruno Haible  <bruno@clisp.org>
15677
15678         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15679         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15680         invocation from here...
15681         * modules/frexp (configure.ac): ... to here.
15682         * modules/frexp-nolibm (configure.ac): ... and here.
15683
15684 2011-05-20  Bruno Haible  <bruno@clisp.org>
15685
15686         isnan: Respect rules for use of AC_LIBOBJ.
15687         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15688         invocations here.
15689         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15690         REPLACE_ISNAN.
15691         * modules/isnand (configure.ac): Likewise.
15692         * modules/isnanl (configure.ac): Likewise.
15693
15694 2011-05-20  Bruno Haible  <bruno@clisp.org>
15695
15696         isnanl*: Respect rules for use of AC_LIBOBJ.
15697         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15698         invocation from here...
15699         * modules/isnanl (configure.ac): ... to here.
15700         * modules/isnanl-nolibm (configure.ac): ... and here.
15701
15702 2011-05-20  Bruno Haible  <bruno@clisp.org>
15703
15704         isnand*: Move AC_LIBOBJ invocations to module description.
15705         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15706         invocation from here...
15707         * modules/isnand (configure.ac): ... to here.
15708         * modules/isnand-nolibm (configure.ac): ... and here.
15709
15710 2011-05-20  Bruno Haible  <bruno@clisp.org>
15711
15712         isnanf*: Move AC_LIBOBJ invocations to module description.
15713         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15714         invocation from here...
15715         * modules/isnanf (configure.ac): ... to here.
15716         * modules/isnanf-nolibm (configure.ac): ... and here.
15717
15718 2011-05-20  Bruno Haible  <bruno@clisp.org>
15719
15720         isnan*: Separate the AC_LIBOBJ invocations.
15721         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15722         AC_LIBOBJ invocation.
15723         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15724         here.
15725         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15726         AC_LIBOBJ invocation.
15727         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15728         here.
15729         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15730         AC_LIBOBJ invocation.
15731         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15732         here.
15733         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15734
15735 2011-05-08  Bruno Haible  <bruno@clisp.org>
15736
15737         isinf: Move AC_LIBOBJ invocations to module description.
15738         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15739         * modules/isinf (configure.ac): ... to here.
15740
15741 2011-05-08  Bruno Haible  <bruno@clisp.org>
15742
15743         isfinite: Move AC_LIBOBJ invocations to module description.
15744         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15745         * modules/isfinite (configure.ac): ... to here.
15746
15747 2011-05-08  Bruno Haible  <bruno@clisp.org>
15748
15749         isblank: Move AC_LIBOBJ invocations to module description.
15750         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15751         here...
15752         * modules/isblank (configure.ac): ... to here.
15753
15754 2011-05-08  Bruno Haible  <bruno@clisp.org>
15755
15756         isapipe: Move AC_LIBOBJ invocations to module description.
15757         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15758         gl_PREREQ_ISAPIPE invocations from here...
15759         * modules/isapipe (configure.ac): ... to here.
15760         (Depends-on): Update condition.
15761
15762 2011-05-08  Bruno Haible  <bruno@clisp.org>
15763
15764         ioctl: Move AC_LIBOBJ invocations to module description.
15765         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15766         invocations from here...
15767         * modules/ioctl (configure.ac): ... to here.
15768         (Depends-on): Update condition.
15769
15770 2011-05-08  Bruno Haible  <bruno@clisp.org>
15771
15772         imaxdiv: Move AC_LIBOBJ invocations to module description.
15773         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15774         invocations from here...
15775         * modules/imaxdiv (configure.ac): ... to here.
15776
15777 2011-05-08  Bruno Haible  <bruno@clisp.org>
15778
15779         imaxabs: Move AC_LIBOBJ invocations to module description.
15780         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15781         invocations from here...
15782         * modules/imaxabs (configure.ac): ... to here.
15783
15784 2011-05-08  Bruno Haible  <bruno@clisp.org>
15785
15786         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15788         AC_LIBOBJ invocations from here...
15789         * modules/getaddrinfo (configure.ac): ... to here.
15790         (Depends-on): Add conditions.
15791
15792 2011-05-08  Bruno Haible  <bruno@clisp.org>
15793
15794         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15796         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15797         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15798         (gl_PREREQ_INET_PTON): ... from here.
15799         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15800         gl_PREREQ_INET_PTON here.
15801         (Depends-on): Update condition.
15802
15803 2011-05-08  Bruno Haible  <bruno@clisp.org>
15804
15805         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15806         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15807         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15808         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15809         (gl_PREREQ_INET_NTOP): ... from here.
15810         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15811         gl_PREREQ_INET_NTOP here.
15812         (Depends-on): Update condition.
15813
15814 2011-05-08  Bruno Haible  <bruno@clisp.org>
15815
15816         iconv_open: Move AC_LIBOBJ invocations to module description.
15817         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15818         AC_LIBOBJ invocations from here...
15819         * modules/iconv_open (configure.ac): ... to here.
15820
15821 2011-05-08  Bruno Haible  <bruno@clisp.org>
15822
15823         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15824         If module 'iconv_open' is among the main modules and module
15825         'iconv_open-utf' is among the tests dependencies, then
15826         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15827         return the special iconv_t values. Therefore iconv() and iconv_close()
15828         must support these special iconv_t values, already in lib, not only in
15829         tests.
15830         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15831         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15832         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15833         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15834         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15835         (Depends-on): Add the dependencies of iconv_open-utf.
15836         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15837         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15838         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15839
15840 2011-05-08  Bruno Haible  <bruno@clisp.org>
15841
15842         group-member: Move AC_LIBOBJ invocations to module description.
15843         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15844         gl_PREREQ_GROUP_MEMBER invocations from here...
15845         * modules/group-member (configure.ac): ... to here.
15846
15847 2011-05-08  Bruno Haible  <bruno@clisp.org>
15848
15849         grantpt: Move AC_LIBOBJ invocations to module description.
15850         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15851         invocations from here...
15852         * modules/grantpt (configure.ac): ... to here.
15853
15854 2011-05-08  Bruno Haible  <bruno@clisp.org>
15855
15856         glob: Move AC_LIBOBJ invocations to module description.
15857         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15858         from here...
15859         * modules/glob (configure.ac): ... to here.
15860
15861 2011-05-08  Bruno Haible  <bruno@clisp.org>
15862
15863         getusershell: Move AC_LIBOBJ invocations to module description.
15864         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15865         Move AC_LIBOBJ invocation from here...
15866         * modules/getusershell (configure.ac): ... to here.
15867         (Depends-on): Update condition.
15868
15869 2011-05-08  Bruno Haible  <bruno@clisp.org>
15870
15871         gettimeofday: Move AC_LIBOBJ invocations to module description.
15872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15873         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15874         gl_PREREQ_GETTIMEOFDAY invocations from here...
15875         * modules/gettimeofday (configure.ac): ... to here.
15876
15877 2011-05-08  Bruno Haible  <bruno@clisp.org>
15878
15879         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15880         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15881         just gl_FUNC_TZSET.
15882         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15883         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15885         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15886
15887 2011-05-08  Bruno Haible  <bruno@clisp.org>
15888
15889         getsubopt: Move AC_LIBOBJ invocations to module description.
15890         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15891         gl_PREREQ_GETSUBOPT invocations from here...
15892         * modules/getsubopt (configure.ac): ... to here.
15893
15894 2011-05-08  Bruno Haible  <bruno@clisp.org>
15895
15896         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15897         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15898         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15899         * modules/getpass-gnu (configure.ac): ... to here.
15900
15901 2011-05-08  Bruno Haible  <bruno@clisp.org>
15902
15903         getpass: Move AC_LIBOBJ invocations to module description.
15904         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15905         gl_PREREQ_GETPASS invocations from here...
15906         * modules/getpass (configure.ac): ... to here.
15907
15908 2011-05-08  Bruno Haible  <bruno@clisp.org>
15909
15910         getpagesize: Move AC_LIBOBJ invocations to module description.
15911         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15912         from here...
15913         * modules/getpagesize (configure.ac): ... to here.
15914
15915 2011-05-08  Bruno Haible  <bruno@clisp.org>
15916
15917         getopt: Move AC_LIBOBJ invocations to module description.
15918         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15919         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15920         invocations from here...
15921         * modules/getopt-gnu (configure.ac): ... to here.
15922         * modules/getopt-posix (configure.ac): ... and here.
15923         (Depends-on): Update condition.
15924
15925 2011-05-08  Bruno Haible  <bruno@clisp.org>
15926
15927         getopt, argp: Respect rules for use of AC_LIBOBJ.
15928         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15929         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15930         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15931         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15932
15933 2011-05-08  Bruno Haible  <bruno@clisp.org>
15934
15935         getlogin_r: Move AC_LIBOBJ invocations to module description.
15936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15937         gl_PREREQ_GETLOGIN_R invocations from here...
15938         * modules/getlogin_r (configure.ac): ... to here.
15939
15940 2011-05-08  Bruno Haible  <bruno@clisp.org>
15941
15942         getlogin: Move AC_LIBOBJ invocations to module description.
15943         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15944         here...
15945         * modules/getlogin (configure.ac): ... to here.
15946
15947 2011-05-08  Bruno Haible  <bruno@clisp.org>
15948
15949         getloadavg: Move AC_LIBOBJ invocations to module description.
15950         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15951         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15952         * modules/getloadavg (configure.ac): ... to here.
15953
15954 2011-05-08  Bruno Haible  <bruno@clisp.org>
15955
15956         gethrxtime: Move AC_LIBOBJ invocations to module description.
15957         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15958         LIB_GETHRXTIME from here...
15959         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15960         invocations from here...
15961         * modules/gethrxtime (configure.ac): ... to here.
15962
15963 2011-05-08  Bruno Haible  <bruno@clisp.org>
15964
15965         gethostname: Move AC_LIBOBJ invocations to module description.
15966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15967         gl_PREREQ_GETHOSTNAME invocations from here...
15968         * modules/gethostname (configure.ac): ... to here.
15969
15970 2011-05-08  Bruno Haible  <bruno@clisp.org>
15971
15972         getgroups: Move AC_LIBOBJ invocations to module description.
15973         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15974         here...
15975         * modules/getgroups (configure.ac): ... to here.
15976
15977 2011-05-08  Bruno Haible  <bruno@clisp.org>
15978
15979         getdtablesize: Move AC_LIBOBJ invocations to module description.
15980         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15981         invocation from here...
15982         * modules/getdtablesize (configure.ac): ... to here.
15983
15984 2011-05-08  Bruno Haible  <bruno@clisp.org>
15985
15986         getdomainname: Move AC_LIBOBJ invocations to module description.
15987         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15988         gl_PREREQ_GETDOMAINNAME invocations from here...
15989         * modules/getdomainname (configure.ac): ... to here.
15990
15991 2011-05-08  Bruno Haible  <bruno@clisp.org>
15992
15993         getline: Move AC_LIBOBJ invocations to module description.
15994         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15995         invocations from here...
15996         * modules/getline (configure.ac): ... to here.
15997
15998 2011-05-08  Bruno Haible  <bruno@clisp.org>
15999
16000         getline: Simplify.
16001         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16002         It's already handled through the module dependency.
16003
16004 2011-05-08  Bruno Haible  <bruno@clisp.org>
16005
16006         getdelim: Move AC_LIBOBJ invocations to module description.
16007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16008         and gl_PREREQ_GETDELIM invocations from here...
16009         * modules/getdelim (configure.ac): ... to here.
16010         (Depends-on): Fix condition.
16011
16012 2011-05-08  Bruno Haible  <bruno@clisp.org>
16013
16014         getcwd: Move AC_LIBOBJ invocations to module description.
16015         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16016         invocations from here...
16017         * modules/getcwd (configure.ac): ... to here.
16018
16019 2011-05-08  Bruno Haible  <bruno@clisp.org>
16020
16021         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16022         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16023         here...
16024         * modules/getcwd-lgpl (configure.ac): ... to here.
16025
16026 2011-05-07  Bruno Haible  <bruno@clisp.org>
16027
16028         crypto/gc: Move AC_LIBOBJ invocations to module description.
16029         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16030         * modules/crypto/gc (configure.ac): ... to here.
16031
16032 2011-05-07  Bruno Haible  <bruno@clisp.org>
16033
16034         fwriting: Move AC_LIBOBJ invocations to module description.
16035         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16036         here...
16037         * modules/fwriting (configure.ac): ... to here.
16038
16039 2011-05-07  Bruno Haible  <bruno@clisp.org>
16040
16041         fwritable: Move AC_LIBOBJ invocations to module description.
16042         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16043         here...
16044         * modules/fwritable (configure.ac): ... to here.
16045
16046 2011-05-07  Bruno Haible  <bruno@clisp.org>
16047
16048         futimens: Move AC_LIBOBJ invocations to module description.
16049         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16050         here...
16051         * modules/futimens (configure.ac): ... to here.
16052
16053 2011-05-07  Bruno Haible  <bruno@clisp.org>
16054
16055         ftruncate: Move AC_LIBOBJ invocations to module description.
16056         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16057         gl_PREREQ_FTRUNCATE invocations from here...
16058         * modules/ftruncate (configure.ac): ... to here.
16059
16060 2011-05-07  Bruno Haible  <bruno@clisp.org>
16061
16062         fsync: Move AC_LIBOBJ invocations to module description.
16063         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16064         invocations from here...
16065         * modules/fsync (configure.ac): ... to here.
16066
16067 2011-05-07  Bruno Haible  <bruno@clisp.org>
16068
16069         fsusage: Move AC_LIBOBJ invocations to module description.
16070         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16071         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16072         * modules/fsusage (configure.ac): ... to here.
16073
16074 2011-05-07  Bruno Haible  <bruno@clisp.org>
16075
16076         freopen: Move AC_LIBOBJ invocations to module description.
16077         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16078         invocations from here...
16079         * modules/freopen (configure.ac): ... to here.
16080
16081 2011-05-07  Bruno Haible  <bruno@clisp.org>
16082
16083         free: Move AC_LIBOBJ invocations to module description.
16084         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16085         invocations from here...
16086         * modules/free (configure.ac): ... to here.
16087
16088 2011-05-07  Bruno Haible  <bruno@clisp.org>
16089
16090         freadable: Move AC_LIBOBJ invocations to module description.
16091         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16092         here...
16093         * modules/freadable (configure.ac): ... to here.
16094
16095 2011-05-07  Bruno Haible  <bruno@clisp.org>
16096
16097         fpurge: Move AC_LIBOBJ invocations to module description.
16098         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16099         invocations from here...
16100         * modules/fpurge (configure.ac): ... to here.
16101
16102 2011-05-07  Bruno Haible  <bruno@clisp.org>
16103
16104         fpending: Move AC_LIBOBJ invocations to module description.
16105         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16106         gl_FUNC_FPENDING.
16107         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16108         invocations from here...
16109         * modules/fpending (configure.ac): ... to here.
16110
16111 2011-05-07  Bruno Haible  <bruno@clisp.org>
16112
16113         fopen: Move AC_LIBOBJ invocations to module description.
16114         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16115         invocations from here...
16116         * modules/fopen (configure.ac): ... to here.
16117
16118 2011-05-07  Bruno Haible  <bruno@clisp.org>
16119
16120         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16121         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16122         gl_FUNC_FNMATCH_POSIX.
16123         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16124         invocations from here...
16125         * modules/fnmatch (configure.ac): ... to here.
16126         * modules/fnmatch-gnu (configure.ac): ... and here.
16127
16128 2011-05-07  Bruno Haible  <bruno@clisp.org>
16129
16130         flock: Move AC_LIBOBJ invocations to module description.
16131         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16132         invocations from here...
16133         * modules/flock (configure.ac): ... to here.
16134
16135 2011-05-07  Bruno Haible  <bruno@clisp.org>
16136
16137         fileblocks: Move AC_LIBOBJ invocations to module description.
16138         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16139         gl_PREREQ_FILEBLOCKS invocations from here...
16140         * modules/fileblocks (configure.ac): ... to here.
16141
16142 2011-05-06  Bruno Haible  <bruno@clisp.org>
16143
16144         fflush: Move AC_LIBOBJ invocations to module description.
16145         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16146         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16147         invocations from here...
16148         * modules/fflush (configure.ac): ... to here.
16149
16150 2011-05-06  Bruno Haible  <bruno@clisp.org>
16151
16152         fdopendir: Move AC_LIBOBJ invocations to module description.
16153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16154         here...
16155         * modules/fdopendir (configure.ac): ... to here.
16156         (Depends-on): Improve conditions.
16157
16158 2011-05-06  Bruno Haible  <bruno@clisp.org>
16159
16160         _Exit: Move AC_LIBOBJ invocations to module description.
16161         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16162         invocations from here...
16163         * modules/_Exit (configure.ac): ... to here.
16164
16165 2011-05-21  Bruno Haible  <bruno@clisp.org>
16166
16167         euidaccess: Respect rules for use of AC_LIBOBJ.
16168         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16170         from here...
16171         * modules/euidaccess (configure.ac): ... to here.
16172
16173 2011-05-06  Bruno Haible  <bruno@clisp.org>
16174
16175         error: Move AC_LIBOBJ invocations to module description.
16176         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16177         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16178         invocations from here...
16179         * modules/error (configure.ac): ... to here.
16180
16181 2011-05-06  Bruno Haible  <bruno@clisp.org>
16182
16183         duplocale: Move AC_LIBOBJ invocations to module description.
16184         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16185         gl_PREREQ_DUPLOCALE invocations from here...
16186         * modules/duplocale (configure.ac): ... to here.
16187
16188 2011-05-05  Bruno Haible  <bruno@clisp.org>
16189
16190         dirfd: Move AC_LIBOBJ invocations to module description.
16191         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16192         gl_FUNC_DIRFD.
16193         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16194         here...
16195         * modules/dirfd (configure.ac): ... to here.
16196         (Depends-on): Fix condition.
16197
16198 2011-05-05  Bruno Haible  <bruno@clisp.org>
16199
16200         chown: Respect rules for use of AC_LIBOBJ.
16201         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16202         * modules/chown (configure.ac): ... to here.
16203
16204 2011-05-05  Bruno Haible  <bruno@clisp.org>
16205
16206         chdir-long: Move AC_LIBOBJ invocations to module description.
16207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16208         gl_PREREQ_CHDIR_LONG invocations from here...
16209         * modules/chdir-long (configure.ac): ... to here.
16210
16211 2011-05-05  Bruno Haible  <bruno@clisp.org>
16212
16213         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16214         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16215         from here...
16216         * modules/canonicalize-lgpl (configure.ac): ... to here.
16217
16218 2011-05-05  Bruno Haible  <bruno@clisp.org>
16219
16220         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16221         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16222         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16223         REPLACE_CALLOC.
16224         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16225         * modules/calloc-gnu (configure.ac): Likewise.
16226
16227 2011-05-05  Bruno Haible  <bruno@clisp.org>
16228
16229         btowc: Move AC_LIBOBJ invocations to module description.
16230         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16231         invocations from here...
16232         * modules/btowc (configure.ac): ... to here.
16233
16234 2011-05-21  Bruno Haible  <bruno@clisp.org>
16235
16236         atexit: Move AC_LIBOBJ invocations to module description.
16237         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16239         here...
16240         * modules/atexit (configure.ac): ... to here.
16241
16242 2011-05-05  Bruno Haible  <bruno@clisp.org>
16243
16244         atoll: Move AC_LIBOBJ invocations to module description.
16245         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16246         invocations from here...
16247         * modules/atoll (configure.ac): ... to here.
16248
16249 2011-05-05  Bruno Haible  <bruno@clisp.org>
16250
16251         argz: Move AC_LIBOBJ invocations to module description.
16252         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16253         * modules/argz (configure.ac): ... to here.
16254
16255 2011-05-05  Bruno Haible  <bruno@clisp.org>
16256
16257         alphasort: Move AC_LIBOBJ invocations to module description.
16258         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16259         gl_PREREQ_ALPHASORT invocations from here...
16260         * modules/alphasort (configure.ac): ... to here.
16261
16262 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16263
16264         verify: new macro verify_expr; verify_true deprecated
16265         * NEWS: Mention this.
16266         * doc/verify.texi (Compile-time Assertions): Document this.
16267         * lib/verify.h (verify_true): Deprecate.
16268         (verify_expr): New macro.
16269         * tests/test-verify.c (function): Test verify_expr.
16270
16271 2011-06-14  Jim Meyering  <meyering@redhat.com>
16272
16273         init.sh: give more portable redirection-related advice in a comment
16274         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16275         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16276         for lots of discussion.  Stefano Lattarini suggested the solution
16277         of putting "9>&2" after the command.  Reported by Bruno Haible.
16278
16279 2011-06-13  Bruno Haible  <bruno@clisp.org>
16280
16281         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16283         'none'.
16284
16285 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         ftoastr: use strtof only if HAVE_STRTOF
16288         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16290         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16291         * modules/ftoastr (configure.ac): Check for strtof.
16292
16293 2011-06-13  Bruno Haible  <bruno@clisp.org>
16294
16295         gnulib-tool: Addendum to 2011-06-08 commit.
16296         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16297         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16298
16299 2011-06-13  Bruno Haible  <bruno@clisp.org>
16300
16301         fseeko: Provide a non-inline replacement of fseek().
16302         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16303         * modules/fseeko (Depends-on): Add fseek.
16304         * modules/fseek (License): Change to LGPLv2+.
16305
16306 2011-06-13  Bruno Haible  <bruno@clisp.org>
16307
16308         ftello: Provide a non-inline replacement of ftell().
16309         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16310         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16311         not have ftello() (such as on mingw).
16312         * modules/ftello (Depends-on): Add ftell.
16313         * modules/ftell (License): Change to LGPLv2+.
16314
16315 2011-05-07  Bruno Haible  <bruno@clisp.org>
16316
16317         ftell: Move AC_LIBOBJ invocations to module description.
16318         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16319         * modules/ftell (configure.ac): ... to here.
16320
16321 2011-05-07  Bruno Haible  <bruno@clisp.org>
16322
16323         ftello: Respect rules for use of AC_LIBOBJ.
16324         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16325         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16326         here...
16327         * modules/ftello (configure.ac): ... to here.
16328
16329 2011-05-07  Bruno Haible  <bruno@clisp.org>
16330
16331         fseeko: Simplify.
16332         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16333         (gl_FUNC_FSEEKO): Inline it here.
16334
16335 2011-05-07  Bruno Haible  <bruno@clisp.org>
16336
16337         fseek: Move AC_LIBOBJ invocations to module description.
16338         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16339         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16340         * modules/fseek (configure.ac): ... to here.
16341
16342 2011-05-07  Bruno Haible  <bruno@clisp.org>
16343
16344         fseek: Respect rules for use of AC_LIBOBJ.
16345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16346         here...
16347         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16348
16349 2011-05-07  Bruno Haible  <bruno@clisp.org>
16350
16351         fseeko: Respect rules for use of AC_LIBOBJ.
16352         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16353         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16354         here...
16355         * modules/fseeko (configure.ac): ... to here.
16356
16357 2011-06-13  Bruno Haible  <bruno@clisp.org>
16358
16359         gnulib-tool: Allow comments in the 'Depends-on' section.
16360         * doc/gnulib.texi (Module description): Mention comment syntax in the
16361         Depends-on section.
16362         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16363
16364 2011-06-13  Bruno Haible  <bruno@clisp.org>
16365
16366         file-set.h: guard __attibute__ use, now that it's not always defined
16367         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16368         versions that support it.  This fixes a coreutils build failure with
16369         the vendor cc on HP-UX 11.31.
16370
16371 2011-06-12  Bruno Haible  <bruno@clisp.org>
16372
16373         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16374         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16375         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16376         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16377         (acl, aclsort): New declarations.
16378         (aclv_nontrivial): New declaration.
16379         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16380         (file_has_acl): Read also the second kind of HP-UX ACLs.
16381         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16382         kind of HP-UX ACLs if the first kind fails.
16383         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16384         second kind of HP-UX ACLs.
16385         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16386         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16387         agree.
16388         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16389         hpuxjfs.
16390         Handle hpuxjfs.
16391         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16392         hpuxjfs.
16393         Handle hpuxjfs.
16394         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16395         (func_test_same_acls): Use both lsacl and getacl.
16396         Handle hpuxjfs.
16397         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16398         (func_test_same_acls): Use both lsacl and getacl.
16399         Handle hpuxjfs.
16400
16401 2011-06-12  Bruno Haible  <bruno@clisp.org>
16402
16403         acl: Complete the 2010-08-10 fix.
16404         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16405         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16406         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16407         explicitly.
16408         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16409         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16410
16411 2011-06-12  Bruno Haible  <bruno@clisp.org>
16412
16413         spawn-pipe tests: Comments.
16414         * tests/test-spawn-pipe-child.c (main): Update comment.
16415         Reported by James Youngman <jay@gnu.org>.
16416
16417 2011-06-11  James Youngman  <jay@gnu.org>
16418
16419         New module 'stat-size'.
16420         * modules/stat-size: New module.  Provides macros for accessing
16421         file size information in instances of struct stat.  Depends on the
16422         fileblocks module because it calls st_blocks.
16423         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16424         * doc/gnulib.texi: Include stat-size.texi.
16425         * doc/stat-size.texi: Documentation for this module.
16426         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16427         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16428         AC_STRUCT_ST_BLOCKS.
16429
16430 2011-06-09  Bruno Haible  <bruno@clisp.org>
16431
16432         thread: Support pthreads-win32.
16433         * lib/glthread/thread.h (gl_thread_self): Define differently on
16434         pthreads-win32.
16435         (gl_null_thread): New declaration.
16436         (gl_thread_self_pointer): New macro.
16437         * lib/glthread/thread.c (gl_null_thread): New constant.
16438         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16439         gl_thread_self.
16440         * tests/test-tls.c: Likewise.
16441         Suggested by Paul Eggert. Reported by Eric Blake.
16442
16443 2011-06-09  Bruno Haible  <bruno@clisp.org>
16444
16445         thread: Fix confusion between NULL and 0.
16446         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16447         Reported by Paul Eggert.
16448
16449 2011-06-09  Bruno Haible  <bruno@clisp.org>
16450
16451         spawn-pipe tests: Avoid test failure on HP-UX 11.
16452         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16453         is closed.
16454
16455 2011-06-09  Bruno Haible  <bruno@clisp.org>
16456
16457         acl tests: Fix compilation error on HP-UX 11.
16458         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16459
16460 2011-06-09  Bruno Haible  <bruno@clisp.org>
16461
16462         rmdir: Avoid test failure on HP-UX 10.20.
16463         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16464         EEXIST.
16465
16466 2011-06-08  Eric Blake  <eblake@redhat.com>
16467
16468         perror: fix test on mingw
16469         * modules/perror-tests (Depends-on): Add dup2.
16470
16471         strerror_r-posix: fix on MacOS
16472         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16474         logic bug.
16475         * lib/strerror_r.c (strerror_r): Fix the bug.
16476         * lib/strerror.c (strerror): Likewise.
16477         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16478         problem.
16479         * doc/posix-functions/strerror.texi (strerror): Likewise.
16480         * doc/posix-functions/perror.texi (perror): Likewise.
16481         * tests/test-strerror.c (main): Enhance test.
16482         * tests/test-strerror_r.c (main): Likewise.
16483
16484 2011-06-08  Bruno Haible  <bruno@clisp.org>
16485
16486         gnulib-tool: Better isolation between different gnulib-tool invocations.
16487         * gnulib-tool: New option --witness-c-macro.
16488         (witness_c_macro): New variable.
16489         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16490         AM_CPPFLAGS define it as a C macro.
16491         (func_emit_tests_Makefile_am): Likewise.
16492         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16493         read it from there.
16494         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16495         m4_define, not AC_DEFUN.
16496         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16497         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16498         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16499         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16500         s|...|...|, to substitute the values of the GNULIB_* module indicator
16501         variables.
16502         * modules/dirent (Makefile.am): Likewise.
16503         * modules/fcntl-h (Makefile.am): Likewise.
16504         * modules/iconv-h (Makefile.am): Likewise.
16505         * modules/langinfo (Makefile.am): Likewise.
16506         * modules/locale (Makefile.am): Likewise.
16507         * modules/math (Makefile.am): Likewise.
16508         * modules/netdb (Makefile.am): Likewise.
16509         * modules/poll-h (Makefile.am): Likewise.
16510         * modules/pty (Makefile.am): Likewise.
16511         * modules/search (Makefile.am): Likewise.
16512         * modules/signal (Makefile.am): Likewise.
16513         * modules/spawn (Makefile.am): Likewise.
16514         * modules/stdio (Makefile.am): Likewise.
16515         * modules/stdlib (Makefile.am): Likewise.
16516         * modules/string (Makefile.am): Likewise.
16517         * modules/sys_ioctl (Makefile.am): Likewise.
16518         * modules/sys_select (Makefile.am): Likewise.
16519         * modules/sys_socket (Makefile.am): Likewise.
16520         * modules/sys_stat (Makefile.am): Likewise.
16521         * modules/sys_times (Makefile.am): Likewise.
16522         * modules/sys_utsname (Makefile.am): Likewise.
16523         * modules/sys_wait (Makefile.am): Likewise.
16524         * modules/termios (Makefile.am): Likewise.
16525         * modules/time (Makefile.am): Likewise.
16526         * modules/unistd (Makefile.am): Likewise.
16527         * modules/wchar (Makefile.am): Likewise.
16528
16529 2011-06-08  Eric Blake  <eblake@redhat.com>
16530
16531         strerror: simplify replacement
16532         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16533         * modules/strerror (configure.ac): No prereqs needed here...
16534         * modules/strerror-override (configure.ac): ...but this needs it.
16535         (Files): Add file for needed prereq macro.
16536
16537 2011-06-08  Bruno Haible  <bruno@clisp.org>
16538
16539         strerror_r-posix: Tweaks.
16540         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16541         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16542         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16543         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16544         (gl_FUNC_STRERROR_R): ... to here.
16545         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16546
16547 2011-06-07  Eric Blake  <eblake@redhat.com>
16548
16549         perror: document fixed bugs
16550         * doc/posix-functions/perror.texi (perror): Document recent
16551         patches.
16552
16553 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         stat-time: get_stat_birthtime failure is better-defined
16556         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16557         return a timestamp whose tv_sec and tv_nsec values are both -1.
16558         Previously, the spec said only that the tv_nsec value was negative.
16559         This upward-compatible change simplifies GNU tar a bit.
16560
16561 2011-06-07  Eric Blake  <eblake@redhat.com>
16562
16563         strerror_r-posix: work around cygwin 1.7.9
16564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16565         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16566         bug without replacing strerror_r.
16567         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16568         strerror_r is buggy, but without requiring strerror_r compilation.
16569         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16570
16571         test-perror: relax test to ignore cygwin bug
16572         * tests/test-perror2.c (main): Relax test on requiring detection
16573         of stream errors, and use unbuffered stream.
16574         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16575         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16576         * doc/posix-functions/fputc.texi (fputc): Likewise.
16577         * doc/posix-functions/fputs.texi (fputs): Likewise.
16578         * doc/posix-functions/fputws.texi (fputws): Likewise.
16579         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16580         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16581         * doc/posix-functions/getopt.texi (getopt): Likewise.
16582         * doc/posix-functions/perror.texi (perror): Likewise.
16583         * doc/posix-functions/printf.texi (printf): Likewise.
16584         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16585         * doc/posix-functions/psignal.texi (psignal): Likewise.
16586         * doc/posix-functions/putc.texi (putc): Likewise.
16587         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16588         Likewise.
16589         * doc/posix-functions/putchar.texi (putchar): Likewise.
16590         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16591         Likewise.
16592         * doc/posix-functions/puts.texi (puts): Likewise.
16593         * doc/posix-functions/putwc.texi (putwc): Likewise.
16594         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16595         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16596         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16597         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16598         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16599         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16600         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16601         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16602
16603 2011-05-22  Bruno Haible  <bruno@clisp.org>
16604
16605         strerror: Move AC_LIBOBJ invocations to module description.
16606         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16607         gl_PREREQ_STRERROR invocations from here...
16608         * modules/strerror (configure.ac): ... to here.
16609
16610 2011-05-21  Bruno Haible  <bruno@clisp.org>
16611
16612         perror: Use common idiom.
16613         * modules/perror (configure.ac): Reorder statements.
16614
16615 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16616
16617         tests: fix usage message in 'mktempd_'
16618         * tests/init.sh (mktempd_): In the usage message, use literal
16619         'mktempd_', not '$ME' (which is even undefined), as the name of
16620         the subroutine.
16621
16622 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16623
16624         tests init: new function 'fatal_', for hard errors
16625         Before this patch, the only way offered by tests/init.sh to
16626         properly signal a hard error was the `framework_failure_'
16627         function.  But the error message issued by that function,
16628         as its name would suggest, refers to a set-up failure in the
16629         testsuite, while hard errors can obviously also be due to
16630         other reasons.  The best way to fix this inconsistency is to
16631         introduce a new function with a more general error message.
16632         * tests/init.sh (fatal_): New function.
16633
16634 2011-06-06  Eric Blake  <eblake@redhat.com>
16635
16636         canonicalize-lgpl: use common idiom
16637         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16638         over newer POSIX -Rf.
16639         Reported by Bruno Haible.
16640
16641         canonicalize-lgpl: work around AIX realpath bug
16642         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16643         * doc/posix-functions/realpath.texi (realpath): Document it.
16644         Reported by Bruno Haible.
16645
16646         strerror: work around FreeBSD bug
16647         * lib/strerror.c (strerror): Special case 0.
16648         Reported by Bruno Haible.
16649
16650         strerror-override: avoid bloating errno module
16651         * modules/errno (Files, configure.ac): Move replacement strings...
16652         * modules/strerror-override: ...to new module.
16653         * modules/strerror (Depends-on): Add strerror-override.
16654         * modules/strerror_r-posix (Depends-on): Likewise.
16655         * MODULES.html.sh: Document new module.
16656         Reported by Bruno Haible.
16657
16658 2011-06-06  Bruno Haible  <bruno@clisp.org>
16659
16660         spawn-pipe tests: Rename program.
16661         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16662         * tests/test-spawn-pipe-child.c: Update comment.
16663         * tests/test-spawn-pipe.sh: Update.
16664         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16665
16666         spawn-pipe tests: Link the child program only against libc.
16667         * tests/test-spawn-pipe-child.c: New file, extracted from
16668         tests/test-spawn-pipe.c.
16669         (main): Expect only one argument.
16670         (is_open): New function, copied from tests/test-pipe.c.
16671         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16672         (child_main): Remove function.
16673         (test_pipe): Pass only one argument to the child program.
16674         (main): Remove child process code. Expect the child program's name as
16675         first argument.
16676         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16677         argument.
16678         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16679         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16680         test-spawn-pipe-child against no libraries.
16681
16682 2011-06-06  Bruno Haible  <bruno@clisp.org>
16683
16684         careadlinkat: Avoid mismatch between ssize_t and int.
16685         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16686         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16687
16688 2011-06-06  Jim Meyering  <meyering@redhat.com>
16689
16690         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16691         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16692         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16693
16694 2011-06-05  Bruno Haible  <bruno@clisp.org>
16695
16696         ansi-c++-opt: Interoperability with libtool.
16697         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16698         set the variable to "no", not to ":".
16699         * NEWS: Mention the change.
16700
16701 2011-06-05  Bruno Haible  <bruno@clisp.org>
16702
16703         acl: Fix test failure on AIX 7.
16704         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16705         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16706
16707 2011-06-05  Bruno Haible  <bruno@clisp.org>
16708
16709         pipe-filter-ii: Fix test failure on AIX and IRIX.
16710         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16711         with EAGAIN, retry with a smaller buffer size.
16712
16713 2011-06-05  Bruno Haible  <bruno@clisp.org>
16714
16715         localename: Fix link dependencies.
16716         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16717         * modules/localename-tests (Makefile.am): Link test-localename with
16718         $(LIBTHREAD).
16719
16720 2011-06-05  Bruno Haible  <bruno@clisp.org>
16721
16722         error: Avoid gcc warning.
16723         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16724
16725 2011-06-05  Bruno Haible  <bruno@clisp.org>
16726
16727         unsetenv: Avoid gcc warning.
16728         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16729
16730 2011-06-05  Bruno Haible  <bruno@clisp.org>
16731
16732         setenv: Avoid gcc warning.
16733         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16734
16735 2011-06-05  Bruno Haible  <bruno@clisp.org>
16736
16737         sys_select: Ensure memset is declared also on AIX 7.
16738         * lib/sys_select.in.h: Include <string.h> also on AIX.
16739         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16740         self-contained also on AIX 7.1.
16741
16742 2011-06-04  Jim Meyering  <meyering@redhat.com>
16743
16744         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16745         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16746         function name, "error".
16747         (_gl_translatable_diag_func_re): New configurable variable.
16748
16749 2011-06-04  Bruno Haible  <bruno@clisp.org>
16750
16751         getopt: Avoid gcc warning.
16752         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16753
16754 2011-06-04  Bruno Haible  <bruno@clisp.org>
16755
16756         strerror_r: Fix comments.
16757         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16758         commit.
16759
16760 2011-06-04  Bruno Haible  <bruno@clisp.org>
16761
16762         perror: Fix compilation error.
16763         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16764         Undefine fprintf, not sprintf.
16765         * modules/perror (Depends-on): Remove intprops, verify.
16766
16767 2011-06-04  Bruno Haible  <bruno@clisp.org>
16768
16769         setlocale: Enable replacement on Cygwin 1.5.
16770         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16771         Cygwin 1.5.x.
16772         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16773         LC_CTYPE category also exists on Cygwin 1.5.x.
16774
16775 2011-06-04  Bruno Haible  <bruno@clisp.org>
16776
16777         strerror-override: Don't disable symbol renamings.
16778         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16779         * lib/strerror-override.c: Include config.h.
16780         (strerror_override): Don't undefine.
16781
16782 2011-06-03  Bruno Haible  <bruno@clisp.org>
16783
16784         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16785         * lib/localename.h: Update copyright header.
16786         * lib/localename.c: Likewise.
16787         * lib/relocatable.h: Likewise.
16788         * lib/relocatable.c: Likewise.
16789
16790 2011-06-02  Bruno Haible  <bruno@clisp.org>
16791
16792         doc: Fix a module name.
16793         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16794
16795 2011-06-02  Bruno Haible  <bruno@clisp.org>
16796
16797         pipe2: Remove dependency on 'nonblocking' module.
16798         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16799         O_NONBLOCK is defined by gnulib.
16800         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16801         is zero.
16802         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16803         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16804         defined by gnulib.
16805         (get_nonblocking_flag): New function.
16806         (main): Test O_NONBLOCK flag only if it is nonzero.
16807         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16808
16809 2011-06-03  Jim Meyering  <meyering@redhat.com>
16810
16811         maint: three new prohibit-header-without-use rules
16812         Prohibit use of cloexec.h, posixver.h, same.h without use.
16813         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16814         (sc_prohibit_posixver_without_use): Likewise.
16815         (sc_prohibit_same_without_use): Likewise.
16816
16817 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         allocator: 'die' routine is now given requested size
16820         * lib/allocator.h (struct allocator.die): New size arg.
16821         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16822         If the actual problem is an ssize_t limitation, not a size_t or
16823         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16824
16825 2011-06-01  Eric Blake  <eblake@redhat.com>
16826
16827         strerror: drop strerror_r dependency
16828         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16829         * lib/strerror-override.c (strerror_override): ...to new file.
16830         * lib/strerror-override.h: Add prototype.
16831         * lib/strerror-impl.h: Delete.
16832         * lib/strerror.c (strerror): New implementation.
16833         * modules/errno (Files): Add new files.
16834         (configure.ac): Compile new file as appropriate.
16835         * modules/strerror (Files): Drop unused file.
16836         (Depends-on): Drop strerror_r-posix.
16837         * MODULES.html.sh: Document strerror_r-posix.
16838         Requested by Sam Steingold.
16839
16840         perror: call strerror_r directly
16841         * modules/perror (Files): Drop strerror-impl.h.
16842         * lib/perror.c (perror): Use our own stack buffer, rather than
16843         calling a wrapper that uses static storage.
16844         * doc/posix-functions/perror.texi (perror): Document a limitation
16845         of our replacement.
16846
16847         strerror_r: fix includes for FreeBSD
16848         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16849         since we use abort on some platforms.
16850         Reported by Matthias Bolte.
16851
16852 2011-05-31  Bruno Haible  <bruno@clisp.org>
16853
16854         Fix link errors in tests: openat-die uses gettext-h.
16855         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16856         against $(LIBINTL).
16857         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16858         against $(LIBINTL).
16859         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16860         $(LIBINTL).
16861         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16862         against $(LIBINTL).
16863         * modules/linkat-tests (Makefile.am): Link test-linkat against
16864         $(LIBINTL).
16865         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16866         $(LIBINTL).
16867         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16868         against $(LIBINTL).
16869         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16870         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16871         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16872         $(LIBINTL).
16873         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16874         $(LIBINTL).
16875         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16876         $(LIBINTL).
16877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16878
16879 2011-05-31  Bruno Haible  <bruno@clisp.org>
16880
16881         Fix link errors in tests: wait-process uses gettext-h.
16882         * modules/nonblocking-pipe-tests (Makefile.am): Set
16883         test_nonblocking_pipe_main_LDADD.
16884         * modules/nonblocking-socket-tests (Makefile.am): Link
16885         test-nonblocking-socket-main against $(LIBINTL).
16886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16887
16888 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         assert-h: work around 'verify' incompatibility
16891         * lib/verify.h: Use @...@ directives, not ifdef.
16892         * modules/assert-h (assert.h): Implement the directives.
16893         (assert.h): Substitute the symbol-prefix more consistently.
16894
16895 2011-05-29  Jim Meyering  <meyering@redhat.com>
16896
16897         trim: remove three superfluous assignments
16898         * lib/trim.c (trim2): Remove three superfluous assignments
16899         and correct brace positioning.
16900
16901 2011-05-29  Bruno Haible  <bruno@clisp.org>
16902
16903         wctype-h: Avoid namespace pollution on Solaris 2.6.
16904         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16905         identifiers.
16906         * doc/posix-headers/wctype.texi: Mention the problem.
16907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16908
16909 2011-05-28  Jim Meyering  <meyering@redhat.com>
16910
16911         parse-datetime.y: accommodate -Wstrict-overflow
16912         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16913         placate -Wstrict-overflow.
16914
16915         trim: avoid a warning from -O2 -Wstrict-overflow
16916         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16917
16918 2011-05-29  Bruno Haible  <bruno@clisp.org>
16919
16920         gnulib-tool: Fix bug in yesterday's commit.
16921         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16922         twice.
16923
16924 2011-05-29  Bruno Haible  <bruno@clisp.org>
16925
16926         Allow multiple gnulib generated include files to be combined.
16927         * gnulib-tool (func_compute_include_guard_prefix): New function.
16928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16929         ${gl_include_guard_prefix} references.
16930         (func_import, func_create_testdir): Invoke
16931         func_compute_include_guard_prefix.
16932         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16933         * lib/ctype.in.h: Likewise.
16934         * lib/dirent.in.h: Likewise.
16935         * lib/errno.in.h: Likewise.
16936         * lib/fcntl.in.h: Likewise.
16937         * lib/float.in.h: Likewise.
16938         * lib/getopt.in.h: Likewise.
16939         * lib/iconv.in.h: Likewise.
16940         * lib/langinfo.in.h: Likewise.
16941         * lib/locale.in.h: Likewise.
16942         * lib/math.in.h: Likewise.
16943         * lib/netdb.in.h: Likewise.
16944         * lib/netinet_in.in.h: Likewise.
16945         * lib/poll.in.h: Likewise.
16946         * lib/pthread.in.h: Likewise.
16947         * lib/pty.in.h: Likewise.
16948         * lib/sched.in.h: Likewise.
16949         * lib/se-selinux.in.h: Likewise.
16950         * lib/search.in.h: Likewise.
16951         * lib/signal.in.h: Likewise.
16952         * lib/spawn.in.h: Likewise.
16953         * lib/stdarg.in.h: Likewise.
16954         * lib/stddef.in.h: Likewise.
16955         * lib/stdint.in.h: Likewise.
16956         * lib/stdio.in.h: Likewise.
16957         * lib/stdlib.in.h: Likewise.
16958         * lib/string.in.h: Likewise.
16959         * lib/strings.in.h: Likewise.
16960         * lib/sys_file.in.h: Likewise.
16961         * lib/sys_ioctl.in.h: Likewise.
16962         * lib/sys_select.in.h: Likewise.
16963         * lib/sys_socket.in.h: Likewise.
16964         * lib/sys_stat.in.h: Likewise.
16965         * lib/sys_time.in.h: Likewise.
16966         * lib/sys_times.in.h: Likewise.
16967         * lib/sys_uio.in.h: Likewise.
16968         * lib/sys_utsname.in.h: Likewise.
16969         * lib/sys_wait.in.h: Likewise.
16970         * lib/sysexits.in.h: Likewise.
16971         * lib/termios.in.h: Likewise.
16972         * lib/time.in.h: Likewise.
16973         * lib/unistd.in.h: Likewise.
16974         * lib/wchar.in.h: Likewise.
16975         * lib/wctype.in.h: Likewise.
16976         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16977         * modules/ctype (Makefile.am): Likewise.
16978         * modules/dirent (Makefile.am): Likewise.
16979         * modules/errno (Makefile.am): Likewise.
16980         * modules/fcntl-h (Makefile.am): Likewise.
16981         * modules/float (Makefile.am): Likewise.
16982         * modules/getopt-posix (Makefile.am): Likewise.
16983         * modules/iconv-h (Makefile.am): Likewise.
16984         * modules/langinfo (Makefile.am): Likewise.
16985         * modules/locale (Makefile.am): Likewise.
16986         * modules/math (Makefile.am): Likewise.
16987         * modules/netdb (Makefile.am): Likewise.
16988         * modules/netinet_in (Makefile.am): Likewise.
16989         * modules/poll-h (Makefile.am): Likewise.
16990         * modules/pthread (Makefile.am): Likewise.
16991         * modules/pty (Makefile.am): Likewise.
16992         * modules/sched (Makefile.am): Likewise.
16993         * modules/search (Makefile.am): Likewise.
16994         * modules/selinux-h (Makefile.am): Likewise.
16995         * modules/signal (Makefile.am): Likewise.
16996         * modules/spawn (Makefile.am): Likewise.
16997         * modules/stdarg (Makefile.am): Likewise.
16998         * modules/stddef (Makefile.am): Likewise.
16999         * modules/stdint (Makefile.am): Likewise.
17000         * modules/stdio (Makefile.am): Likewise.
17001         * modules/stdlib (Makefile.am): Likewise.
17002         * modules/string (Makefile.am): Likewise.
17003         * modules/strings (Makefile.am): Likewise.
17004         * modules/sys_file (Makefile.am): Likewise.
17005         * modules/sys_ioctl (Makefile.am): Likewise.
17006         * modules/sys_select (Makefile.am): Likewise.
17007         * modules/sys_socket (Makefile.am): Likewise.
17008         * modules/sys_stat (Makefile.am): Likewise.
17009         * modules/sys_time (Makefile.am): Likewise.
17010         * modules/sys_times (Makefile.am): Likewise.
17011         * modules/sys_uio (Makefile.am): Likewise.
17012         * modules/sys_utsname (Makefile.am): Likewise.
17013         * modules/sys_wait (Makefile.am): Likewise.
17014         * modules/sysexits (Makefile.am): Likewise.
17015         * modules/termios (Makefile.am): Likewise.
17016         * modules/time (Makefile.am): Likewise.
17017         * modules/unistd (Makefile.am): Likewise.
17018         * modules/wchar (Makefile.am): Likewise.
17019         * modules/wctype-h (Makefile.am): Likewise.
17020         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17021
17022 2011-05-29  Bruno Haible  <bruno@clisp.org>
17023
17024         assert-h: Allow multiple gnulib generated replacements to coexist.
17025         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17026
17027 2011-05-29  Bruno Haible  <bruno@clisp.org>
17028
17029         argp: Allow coexistence with strerror_r-posix module.
17030         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17031         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17032         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17033         not the glibc signature.
17034
17035 2011-05-28  Bruno Haible  <bruno@clisp.org>
17036
17037         gnulib-tool: Alternative structure of testdirs, similar to --import.
17038         * gnulib-tool: New option --single-configure.
17039         (func_usage): Document it.
17040         (single_configure): New variable.
17041         (func_modules_transitive_closure_separately,
17042         func_modules_transitive_closure_separately,
17043         func_determine_use_libtests, func_modules_add_dummy_separately,
17044         func_modules_to_filelist_separately): New functions, extracted from
17045         func_import.
17046         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17047         (func_import): Use the new functions.
17048         (func_create_testdir): Set final_modules. Handle $single_configure =
17049         true case.
17050
17051 2011-05-28  Bruno Haible  <bruno@clisp.org>
17052
17053         getloadavg: Remove an unreliable safety check.
17054         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17055         getloadavg.c is in place.
17056         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17057         Reported by Sam Steingold <sds@gnu.org>.
17058
17059 2011-05-28  Bruno Haible  <bruno@clisp.org>
17060
17061         doc: Cleanup yet another file produced by texinfo.tex.
17062         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17063
17064 2011-05-28  Bruno Haible  <bruno@clisp.org>
17065
17066         Finish the conditional dependencies mechanism.
17067         * gnulib-tool: New option --no-conditional-dependencies.
17068         (func_usage): Document it. Don't mark --conditional-dependencies as
17069         experimental.
17070         (cond_dependencies): The possible values can now be true, false, empty.
17071         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17072         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17073         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17074
17075 2011-05-28  Bruno Haible  <bruno@clisp.org>
17076
17077         doc: Use a recent texinfo.tex.
17078         * doc/Makefile (tex_opts): New variable.
17079         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17080
17081 2011-05-28  Jim Meyering  <meyering@redhat.com>
17082
17083         intprops.h: adjust comment to match code change
17084         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17085         only once, it *may* have side effects.  Also fix an unrelated typo.
17086         (_GL_INT_SIGNED): Likewise.
17087
17088 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17089
17090         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17091
17092 2011-05-26  Bruno Haible  <bruno@clisp.org>
17093
17094         mbsrchr: Avoid collision with system function on Interix.
17095         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17096         Reported by Markus Duft <mduft@gentoo.org>.
17097
17098 2011-05-15  James Youngman  <jay@gnu.org>
17099
17100         getopt: for ambiguous options, enumerate the possibilities.
17101         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17102         the ambiguous options when an ambiguous prefix is given. This was
17103         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17104         glibc change was
17105         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17106
17107 2011-05-25  Eric Blake  <eblake@redhat.com>
17108
17109         getcwd: work around mingw bug
17110         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17111         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17112         Reported by Matthias Bolte.
17113
17114 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17115
17116         test-intprops: disable -Wtype-limits diagnostics
17117         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17118         diagnostics.  Otherwise, the integer overflow macros generate many
17119         diagnostics.  Reported by Jim Meyering in
17120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17121
17122         intprops: shorten, to pacify gcc -Woverlength-strings
17123         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17124         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17125         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17126         likely to run afoul of C compiler limits for string constant lengths.
17127         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17128
17129 2011-05-24  Eric Blake  <eblake@redhat.com>
17130
17131         docs: document recently fixed glibc printf bug
17132         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17133         * doc/posix-functions/printf.texi (printf): Likewise.
17134         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17135         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17136
17137         closein-tests: convert to init.sh
17138         * modules/closein-tests (Files): Add init.sh
17139         * tests/test-closein.sh Use it.
17140
17141         yesno-tests: convert to init.sh
17142         * modules/yesno-tests (Files): Add init.sh.
17143         * tests/test-yesno.sh: Use it.
17144
17145         atexit-tests: ensure reliable exit status
17146         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17147         Reported by Bruno Haible.
17148
17149 2011-05-24  Bruno Haible  <bruno@clisp.org>
17150
17151         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17153         gl_PREREQ_STRERROR_R invocations from here...
17154         * modules/strerror_r-posix (configure.ac): ... to here.
17155
17156 2011-05-24  Eric Blake  <eblake@redhat.com>
17157
17158         strerror_r: fix missing header
17159         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17160
17161         strerror_r: fix AIX test failures
17162         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17163         ERANGE failure.
17164
17165         strerror_r: fix Solaris test failures
17166         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17167         failures.
17168         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17169
17170         strerror_r: enforce POSIX recommendations
17171         * lib/strerror_r.c (safe_copy): New helper method.
17172         (strerror_r): Guarantee a non-empty string.
17173         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17174         recent POSIX rulings and to match our strerror guarantees.
17175         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17176
17177 2011-05-24  Jim Meyering  <meyering@redhat.com>
17178
17179         test-perror2.c: avoid warning about unused variable
17180         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17181
17182 2011-05-24  Eric Blake  <eblake@redhat.com>
17183
17184         perror: avoid spurious test failure on HP-UX
17185         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17186
17187         tests: fix logic bug in init.sh
17188         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17189         shell.
17190
17191 2011-05-24  Jim Meyering  <meyering@redhat.com>
17192
17193         utimensat: do not reference an out-of-scope buffer
17194         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17195         declared in an inner scope, yet "times" would be dereferenced outside
17196         the scope in which "ts" was valid.
17197         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17198         of ts[2] "out/up", so that the use of aliased "times" (via
17199         "times = ts;") does not end up referencing an out-of-scope "ts"
17200
17201         opendir-safer.c: don't clobber errno; don't close negative FD
17202         * lib/opendir-safer.c (opendir_safer):
17203         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17204         file descriptor, and more importantly, don't clobber the
17205         offending errno value with EINVAL.  Before, upon failure
17206         of dup_safer, we would pass the negative file descriptor to
17207         fdopendir, which would clobber errno.
17208
17209 2011-05-23  Bruno Haible  <bruno@clisp.org>
17210
17211         idcache: Fix module description.
17212         * modules/idcache (Include): Set to "idcache.h".
17213
17214 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         gnulib-tool: fix portability problem with MacOS sed
17217         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17218         before the "}".  Problem reported by Leo in
17219         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17220         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17221         sed_extract_condition1, sed_extract_condition2.
17222
17223 2011-05-23  Bruno Haible  <bruno@clisp.org>
17224
17225         hash: Simplify autoconf macro.
17226         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17227
17228 2011-05-23  Bruno Haible  <bruno@clisp.org>
17229
17230         getugroups: Fix module description.
17231         * modules/getugroups (Include): Set to "getugroups.h".
17232
17233 2011-05-23  Bruno Haible  <bruno@clisp.org>
17234
17235         linkat: Simplify autoconf macro.
17236         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17237
17238 2011-05-23  Bruno Haible  <bruno@clisp.org>
17239             Eric Blake  <eblake@redhat.com>
17240
17241         linkat, renameat: Update dependencies.
17242         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17243         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17244         symlinkat.
17245
17246 2011-05-23  Jim Meyering  <meyering@redhat.com>
17247
17248         maint.mk: more tight_scope improvements
17249         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17250         (_gl_TS_headers): Define only in if-0'd block.
17251         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17252         sometimes we must *not* use it.  Adjust uses accordingly.
17253         (sc_tight_scope): Use much simpler grep-based test to determine
17254         whether we skip this rule.
17255
17256         maint.mk: generalize/improve the tight-scope rule
17257         * top/maint.mk: Emit a warning when the test is skipped.
17258         (_gl_TS_dir): Add $(srcdir)/ prefix.
17259         (_gl_TS_function_match): Simplify, rather than trying
17260         to enumerate common types.  Otherwise, it would fail to match an
17261         "extern unsigned char const *" declaration in idutils.
17262         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17263         a way to support use of that type of macro.
17264         (_gl_TS_var_match): Simplify regexp.
17265         (_gl_TS_obj_files): New configurable variable.
17266         (_gl_TS_headers): Likewise.
17267
17268 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17269
17270         verify: fix bug when gnulib <assert.h> is also included
17271         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17272         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17273         Perhaps there's a better way, but this fixes the immediate problem.
17274         Problem reported by Bruno Haible in
17275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17276
17277 2011-05-22  Bruno Haible  <bruno@clisp.org>
17278
17279         xgetcwd: Simplify autoconf macro.
17280         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17281
17282 2011-05-22  Bruno Haible  <bruno@clisp.org>
17283
17284         New module 'mktime-internal'.
17285         * modules/mktime-internal: New file.
17286         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17287         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17288         mktime_internal as a C macro if libc has __mktime_internal.
17289         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17290         conditions.
17291         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17292
17293 2011-05-22  Bruno Haible  <bruno@clisp.org>
17294
17295         timegm: Correct mktime replacement statements.
17296         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17297         defining mktime as a C macro. This completes a 2009-07-28 commit.
17298
17299 2011-05-22  Bruno Haible  <bruno@clisp.org>
17300
17301         timegm: Simplify autoconf macro.
17302         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17303
17304 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17305
17306         clock-time: change to LGPLv2+.
17307         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17308         BSD-like but we have no mark for that; this is good enough for now.
17309
17310 2011-05-21  Bruno Haible  <bruno@clisp.org>
17311
17312         strerror_r: Fix comments.
17313         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17314
17315 2011-05-21  Bruno Haible  <bruno@clisp.org>
17316
17317         relocatable-prog-wrapper: Fix possible link error.
17318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17319         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17320         (gl_FUNC_SETENV): ... to here.
17321         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17322         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17323
17324 2011-05-21  Bruno Haible  <bruno@clisp.org>
17325
17326         relocatable-prog-wrapper: Assume strerror() exists.
17327         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17328         m4/strerror.m4.
17329         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17330         * lib/relocwrapper.c: Remove mention of strerror module.
17331         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17333         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17334         C macro.
17335
17336 2011-05-21  Bruno Haible  <bruno@clisp.org>
17337
17338         select: Simplify replacement idiom.
17339         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17340         Win32 platforms.
17341         * lib/sys_select.in.h (select): Simplify accordingly.
17342         * modules/select (Depends-on): Likewise.
17343
17344 2011-05-21  Bruno Haible  <bruno@clisp.org>
17345
17346         mkdir-p: Simplify autoconf macro.
17347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17348         gl_FUNC_LCHOWN.
17349
17350 2011-05-21  Eric Blake  <eblake@redhat.com>
17351
17352         strerror_r: avoid clobbering strerror on cygwin
17353         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17354         fall back instead to sys_errlist.
17355         * modules/strerror (configure.ac): Add witness.
17356         * tests/test-strerror_r.c (main): Enhance test.
17357         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17358         * tests/test-perror2.c (main): Free memory before exit.
17359
17360 2011-05-21  Bruno Haible  <bruno@clisp.org>
17361
17362         mkdtemp: Use gnulib naming conventions.
17363         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17364         * modules/mkdtemp (configure.ac): Update.
17365
17366 2011-05-20  Eric Blake  <eblake@redhat.com>
17367
17368         strerror_r: avoid corrupting errno on Solaris
17369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17370         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17371
17372         strerror_r: avoid compiler warning
17373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17374
17375         strerror_r: simplify AIX code
17376         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17377
17378         test-perror: avoid spurious failure on FreeBSD
17379         * modules/perror-tests (Depends-on): Add strerror, now that
17380         strerror_r no longer pulls it in.
17381
17382 2011-05-20  Bruno Haible  <bruno@clisp.org>
17383
17384         strerror_r-posix: Remove unused dependencies.
17385         * modules/strerror_r-posix (Depends-on): Remove strerror.
17386         Reported by Eric Blake.
17387
17388 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17389
17390         intprops: remove assumption about A|B representation
17391         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17392         is a valid integer if both A and B are.  Although this is true for
17393         all known practical hosts, the C standard doesn't guarantee it,
17394         and the code need not assume it.  Also, this change may work around
17395         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17397
17398 2011-05-20  Eric Blake  <eblake@redhat.com>
17399
17400         perror: work around FreeBSD bug
17401         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17402         is broken.  Move AC_LIBOBJ...
17403         * modules/perror (configure.ac): Here.
17404         * doc/posix-functions/perror.texi (perror): Document this.
17405         * tests/test-perror2.c (main): Enhance test.
17406
17407         test-perror: check for strerror interactions
17408         * tests/macros.h (STREQ): Add macro.
17409         * modules/perror-tests (Files): Add second test.
17410         * tests/test-perror2.c (main): New file.
17411         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17412
17413         test-perror: rewrite to use init script
17414         * modules/perror-tests (Files): Add init.sh.
17415         * tests/test-perror.sh: Use temporary directory.
17416
17417 2011-05-20  Jim Meyering  <meyering@redhat.com>
17418
17419         maint: replace misused "a" with "an"
17420         * doc/intprops.texi: "a integer"
17421         * doc/regex.texi: "a explanation"
17422         * lib/alignof.h: "a object"
17423         * lib/argmatch.h: "a explanation"
17424         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17425         * lib/stdint.in.h: "a integer"
17426         * lib/userspec.c: "a owner"
17427         * doc/gnulib.texi: Fix "a idea", and reword.
17428
17429 2011-05-19  Jim Meyering  <meyering@redhat.com>
17430
17431         maint: correct misuse of "a" and "an"
17432         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17433         * lib/argp-help.c: "an docum...": s/an/a/
17434         * lib/argp-parse.c: "An vector": s/An/A/
17435         * lib/execute.c: "an native": s/an/a/
17436         * lib/spawn-pipe.c: Likewise.
17437         * lib/gc.h: "an Gc_rc": s/an/a/
17438         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17439         * lib/fts.c: "an stat.st_dev": s/an/a/
17440
17441 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         intprops-tests: work around HP-UX 11.23 cc bug with constants
17444         * tests/test-intprops.c (VERIFY): New macro.
17445         (main): Use it, instead of verify, to work around the compiler bug; see
17446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17447
17448         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17449         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17450         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17451         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17452         (_GL_REMAINDER_OVERFLOW): Use it.
17453
17454         intprops-tests: revert unsigned part of previous change
17455         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17456         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17457         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17459
17460 2011-05-19  Bruno Haible  <bruno@clisp.org>
17461
17462         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17463         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17464         strerror_r() returned without filling the buffer.
17465         Reported by Eric Blake.
17466
17467 2011-05-19  Eric Blake  <eblake@redhat.com>
17468
17469         strerror_r: guarantee unchanged errno
17470         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17471         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17472         failure.
17473         * tests/test-strerror_r.c (main): Enhance test.
17474
17475 2011-05-19  Bruno Haible  <bruno@clisp.org>
17476
17477         strerror_r: Reorder #if blocks.
17478         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17479         for consistency with the previous commit.
17480
17481 2011-05-19  Bruno Haible  <bruno@clisp.org>
17482
17483         perror: Avoid clobbering the strerror buffer when possible.
17484         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17485         * lib/strerror.c: Include it.
17486         * modules/strerror (Files): Add lib/strerror-impl.h.
17487         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17488         (my_strerror): New function, defined through lib/strerror-impl.h.
17489         (perror): Use it instead of strerror.
17490         * modules/perror (Files): Add lib/strerror-impl.h.
17491         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17492
17493 2011-05-19  Eric Blake  <eblake@redhat.com>
17494
17495         strerror_r: fix on newer cygwin
17496         * lib/strerror_r.c (strerror_r): Cygwin now has
17497         __xpg_strerror_r, use it.
17498
17499 2011-05-19  Bruno Haible  <bruno@clisp.org>
17500
17501         strerror_r: Avoid clobbering the strerror buffer when possible.
17502         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17503         (sys_nerr, sys_errlist): New declarations.
17504         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17505         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17506         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17507
17508 2011-05-19  Bruno Haible  <bruno@clisp.org>
17509
17510         strerror_r: Fix test failure on mingw.
17511         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17512         EXTEND_STRERROR_R.
17513         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17514         macros from errno.in.h instead.
17515
17516 2011-05-19  Eric Blake  <eblake@redhat.com>
17517
17518         strerror: relax test for Solaris
17519         * tests/test-strerror.c (main): Permit Solaris behavior.
17520         * tests/test-strerror_r.c (main): Likewise.
17521
17522         strerror: enforce POSIX ruling on strerror(0)
17523         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17524         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17525         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17526         * doc/posix-functions/strerror.texi (strerror): Document it.
17527         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17528         * tests/test-strerror.c (main): Strengthen test.
17529         * tests/test-strerror_r.c (main): Likewise.
17530
17531 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17532
17533         intprop-tests: port to older and more-pedantic compilers
17534         * modules/intprops-tests (Files): Add tests/macros.h.
17535         * tests/test-intprops.c: Include macros.h.
17536         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17537         it's no longer documented to expand to an integer constant expression.
17538         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17539         argument is floating point, as it's no longer documented to expand
17540         to an integer constant expression in that case.
17541         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17542         compiler bugs reported by Bruno Haible.  See
17543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17544         (U0, U1): New constants, to work around the same bugs.  Also,
17545         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17546
17547         intprops: work around C compiler bugs
17548         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17549         bug in Sun C 5.11 2010/08/13 and other compilers; see
17550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17551
17552         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17553         * doc/intprops.texi (Integer Type Determination): Fix
17554         documentation for TYPE_IS_INTEGER: it returns an constant
17555         expression, not an integer constant expression.  Fix doc for
17556         TYPE_SIGNED: it returns an integer constant expression only if its
17557         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17558         hardly worth documented that way....)
17559
17560 2011-05-18  Bruno Haible  <bruno@clisp.org>
17561
17562         strerror_r: Avoid clobbering the strerror buffer when possible.
17563         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17564         Handle gnulib defined errno values here. When strerror() returns NULL
17565         or an empty string, return EINVAL.
17566         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17567         gnulib defined errno values here.
17568         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17569
17570 2011-05-18  Eric Blake  <eblake@redhat.com>
17571
17572         fnmatch: avoid compiler warning
17573         * lib/fnmatch_loop.c (FCT): Use correct type.
17574         Reported by Matthias Bolte.
17575
17576 2011-05-13  Jim Meyering  <meyering@redhat.com>
17577
17578         maint.mk: three new prohibit_<HDR>_without_use rules
17579         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17580         (sc_prohibit_stdio-safer_without_use): Likewise.
17581         (sc_prohibit_xfreopen_without_use): Likewise.
17582
17583 2011-05-17  Jim Meyering  <meyering@redhat.com>
17584
17585         announce-gen: fail if the NEWS delta is empty
17586         If there's nothing noteworthy in NEWS, then either you forgot
17587         or you shouldn't be releasing.
17588         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17589
17590 2011-05-17  Pádraig Brady <P@draigBrady.com>
17591
17592         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17593         reserved symbols starting with double underscore from the check.
17594
17595 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         intprops: add doc
17598         * doc/intprops.texi: New file, documenting intprops.
17599         * doc/gnulib.texi (Particular Modules): Include it.
17600
17601         verify: add doc to gnulib manual and fix example
17602         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17603         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17604         (Compile-time Assertions): Fix example so it can't overflow.
17605
17606 2011-05-17  Jim Meyering  <meyering@redhat.com>
17607
17608         warnings.m4: don't usurp save_CPPFLAGS variable name
17609         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17610
17611         doc: fix typo
17612         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17613
17614 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17615             Bruno Haible  <bruno@clisp.org>
17616
17617         doc: Tweak recent change.
17618         * README (Portability guidelines): Tweak new text.
17619         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17620         Interix 6.1.
17621
17622 2011-05-16  Eric Blake  <eblake@redhat.com>
17623
17624         inttypes: avoid autoconf warning
17625         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17626         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17627
17628 2011-05-16  Sam Steingold <sds@gnu.org>
17629         and Eric Blake  <eblake@redhat.com>
17630
17631         vc-list-files: accept multiple directory operands
17632         * build-aux/vc-list-files: Iterate over all remaining operands.
17633
17634 2011-05-16  Bruno Haible  <bruno@clisp.org>
17635
17636         Fix confusion regarding deprecated modules.
17637         * modules/calloc (Status, Notice): Mark module as deprecated, not
17638         obsolete.
17639         * modules/fnmatch-posix (Status, Notice): Likewise.
17640         * modules/getdate (Status, Notice): Likewise.
17641         * modules/getopt (Status, Notice): Likewise.
17642         * modules/malloc (Status, Notice): Likewise.
17643         * modules/pipe (Status, Notice): Likewise.
17644         * modules/realloc (Status, Notice): Likewise.
17645         * modules/rename-dest-slash (Status, Notice): Likewise.
17646         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17647         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17648         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17649         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17650         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17651
17652 2011-05-16  Bruno Haible  <bruno@clisp.org>
17653
17654         doc: List the target platforms.
17655         * doc/gnulib-intro.texi (Target Platforms): New section.
17656         * doc/gnulib.texi (Introduction): Update menu.
17657         * README (Portability guidelines): Refer to the new section. Update
17658         statement about oldest supported environment. Remove rationale why
17659         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17660         unportable C89 function.
17661         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17662         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17663
17664 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17665
17666         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17667
17668 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17669
17670         intprops-tests: new module
17671         * modules/intprops-tests, tests/test-intprops.c: New files.
17672
17673         intprops: add safe, portable integer overflow checking
17674         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17675         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17676         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17677         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17678         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17679         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17680         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17681         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17682         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17683         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17684         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17685
17686 2011-05-12  James Youngman  <jay@gnu.org>
17687
17688         Add a test for glibc's Bugzilla bug #12378.
17689         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17690         doesn't allow the literal matching of a lone "[" (which is
17691         required by POSIX).
17692         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17693
17694 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17695
17696         Sync glibc change fixing Bugzilla bug #12378.
17697         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17698         beginning and fall back to matching as normal character if the
17699         string ends before the matching ']' is found.  This is what POSIX
17700         requires.
17701
17702 2011-05-13  Eric Blake  <eblake@redhat.com>
17703
17704         getcwd-lgpl: relax test for FreeBSD
17705         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17706         issue.
17707         * tests/test-getcwd-lgpl.c (main): Relax test.
17708         Reported by Matthias Bolte.
17709
17710 2011-05-11  Eric Blake  <eblake@redhat.com>
17711
17712         test-fflush: silence compiler warning
17713         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17714
17715 2011-05-11  Bruno Haible  <bruno@clisp.org>
17716
17717         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17718         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17719         * modules/canonicalize (Depends-on): Add 'nocrash'.
17720         * modules/canonicalize-lgpl (Depends-on): Likewise.
17721         * doc/posix-functions/realpath.texi: Update platforms list.
17722         Reported by Ryan Schmidt <ryandesign@macports.org>.
17723
17724 2011-05-11  Bruno Haible  <bruno@clisp.org>
17725
17726         group-member: Declare function in <unistd.h>.
17727         * lib/unistd.in.h (group_member): New declaration.
17728         * lib/group-member.h: Remove file.
17729         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17730         * tests/test-unistd-c++.cc: Check signature of group_member.
17731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17732         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17733         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17734         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17735         HAVE_GROUP_MEMBER.
17736         * modules/group-member (Files): Remove lib/group-member.h.
17737         (Depends-on): Add unistd. Specify conditions.
17738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17739         (Include): Change to <unistd.h>.
17740         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17741         HAVE_GROUP_MEMBER.
17742         * NEWS: Mention the change.
17743         * lib/euidaccess.c: Don't include group-member.h.
17744
17745 2011-05-11  Bruno Haible  <bruno@clisp.org>
17746
17747         group-member: Document module.
17748         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17749         module.
17750
17751 2011-05-11  Bruno Haible  <bruno@clisp.org>
17752
17753         fclose: Fix mistake earlier today.
17754         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17755
17756 2011-05-11  Eric Blake  <eblake@redhat.com>
17757
17758         fclose: preserve fflush errors
17759         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17760         Reported by Jim Meyering.
17761
17762         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17763         * build-aux/bootstrap (check_versions): When no specific version
17764         is required, merely check that the app produces an exit status
17765         that indicates its existence.
17766
17767         maint.mk: drop redundant check
17768         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17769         the same but better.
17770
17771 2011-05-11  Bruno Haible  <bruno@clisp.org>
17772
17773         fclose: Fix possible link error.
17774         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17775         unregister_shadow_fd. Improve comments.
17776         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17777         Eric Blake.
17778
17779 2011-05-11  Jim Meyering  <meyering@redhat.com>
17780
17781         maint.mk: improve "can not" detection and generalize rule name
17782         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17783         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17784         Use the same technique as in sc_prohibit_doubled_word, so that
17785         we recognize "can not" also when the words are separated by a newline.
17786         Suggested by Eric Blake.
17787         (perl_filename_lineno_text_): Define.  Factored out of...
17788         (prohibit_doubled_word_): ...here.  Use the new definition.
17789         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17790         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17791         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17792
17793 2011-05-10  Eric Blake  <eblake@redhat.com>
17794
17795         fclose: avoid double close race when possible
17796         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17797         all but WINDOWS_SOCKETS.
17798
17799 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17800
17801         openat: correct new comment
17802         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17803
17804 2011-05-10  Jim Meyering  <meyering@redhat.com>
17805
17806         openat: add comments
17807         * lib/openat-proc.c (openat_proc_name): Add comments,
17808         mostly from Eric Blake.
17809
17810 2011-05-09  Eric Blake  <eblake@redhat.com>
17811
17812         openat: reduce syscalls in first probe of /proc
17813         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17814         be a directory.  Simplify the probe for .. bugs.
17815         * modules/openat (Depends-on): Drop same-inode.
17816         Reported by Bastien ROUCARIES.
17817
17818 2011-05-09  Jim Meyering  <meyering@redhat.com>
17819
17820         maint.mk: change semantics/name of tight_scope variables
17821         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17822         Rename variables to align with semantics that make them more useful.
17823
17824         maint.mk: tweak new rule's name not to impinge
17825         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17826         (sc_tight_scope): Use new rule name rather than $@-0.
17827
17828         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17829         * top/maint.mk (sc_tight_scope): New rule.
17830         (sc_tight_scope-0): New rule, ifdef'd out.
17831         (_gl_TS_dir): Default.
17832         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17833         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17834
17835 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17836
17837         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17838         Haible <bruno@clisp.org>.
17839
17840 2011-05-08  Bruno Haible  <bruno@clisp.org>
17841
17842         Comments.
17843         * m4/isnanf.m4: Add comment.
17844         * m4/isnanl.m4: Likewise.
17845
17846 2011-05-08  Bruno Haible  <bruno@clisp.org>
17847
17848         glob: Remove obsolete macro.
17849         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17850
17851 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17852
17853         intprops: Sun C 5.11 supports __typeof__
17854         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17855         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17856         which is new.
17857         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17858
17859         intprops: switch to usual gnulib indenting and naming
17860         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17861         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17862
17863         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17864
17865 2011-05-08  Jim Meyering  <meyering@redhat.com>
17866
17867         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17868         * top/maint.mk (release-prep): Use make's --no-print-directory
17869         option when generating the announcement.  This eliminates the
17870         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17871         generated announcement template.
17872
17873 2011-05-08  Bruno Haible  <bruno@clisp.org>
17874
17875         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17876         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17877         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17878
17879 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17880
17881         ignore-value, verify: Omit include files from lib_SOURCES.
17882         * modules/ignore-value, modules/verify (Makefile.am):
17883         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17884         that leads Automake to duplicate use of am__objects_... variables
17885         in Makefile.in.  See
17886         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17887
17888 2011-05-07  Bruno Haible  <bruno@clisp.org>
17889
17890         fclose: Simplify autoconf macro.
17891         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17892         defined.
17893
17894 2011-05-07  Bruno Haible  <bruno@clisp.org>
17895
17896         canonicalize-lgpl: Fix autoconf macro ordering bug.
17897         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17898         gl_STDLIB_H_DEFAULTS.
17899
17900 2011-05-06  Eric Blake  <eblake@redhat.com>
17901
17902         maintainer-makefile: make sc_po_check easier to tune
17903         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17904         to probe for strings, such as an alternate location for gnulib.
17905
17906         fclose: guarantee behavior on seekable stdin
17907         * modules/fclose (Depends-on): Add fflush.
17908         * doc/posix-functions/fclose.texi (fclose): Document this.
17909         * tests/test-fclose.c (main): Make test for this unconditional.
17910
17911 2011-05-06  Bruno Haible  <bruno@clisp.org>
17912
17913         fflush, fpurge: Relicense under LGPLv2+.
17914         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17915         * modules/fpurge (License): Likewise.
17916         With permission from Eric Blake and Jim Meyering.
17917         Suggested by Eric Blake.
17918
17919 2011-05-06  Karl Berry  <karl@gnu.org>
17920
17921         * MODULES.html.sh (func_all_modules): remove exit.
17922
17923 2011-05-06  Jim Meyering  <meyering@redhat.com>
17924
17925         maint.mk: use info-gnu@ as the default only for a stable release
17926         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17927         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17928         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17930
17931 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17932
17933         assert-h: new module, which supports C1X-style static_assert
17934         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17935         * lib/verify.h: Revamp so that this can be copied into assert.h,
17936         while retaining the ability to use it standalone as before.
17937         Rename private identifiers so as not to encroach on the
17938         standard C namespace, since this is now used by assert.h.
17939         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17940         the old verify_true.
17941         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17942         the old verify_true.  Use _GL_VERIFY_TYPE.
17943         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17944         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17945         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17946         defined when this file is copied into the replacement assert.h.
17947         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17948         and _Static_assert is not built in.
17949         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17950         defined, and use the new macros mentioned above.
17951         * doc/posix-headers/assert.texi: Document this.
17952
17953 2011-05-05  Bruno Haible  <bruno@clisp.org>
17954
17955         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17956         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17957         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17958         gl_REPLACE_FCLOSE here.
17959         * modules/fflush (Depends-on): Remove fclose.
17960         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17961         combination with module 'fclose'.
17962
17963 2011-05-05  Bruno Haible  <bruno@clisp.org>
17964
17965         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17966         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17967         gl_FUNC_FFLUSH.
17968         (gl_FUNC_FFLUSH): Use it.
17969         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17971         gl_REPLACE_FSEEKO here.
17972
17973 2011-05-05  Bruno Haible  <bruno@clisp.org>
17974
17975         tzset: Relicense under LGPL.
17976         * modules/tzset (License): Change to LGPL.
17977         No agreement needed; it's a no-op.
17978
17979         strtoimax, strtoumax: Relicense under LGPL.
17980         * modules/strtoimax (License): Change to LGPL.
17981         * modules/strtoumax (License): Likewise.
17982         With permission from Jim Meyering, Paul Eggert:
17983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17985
17986         getgroups: Relicense under LGPL.
17987         * modules/getgroups (License): Change to LGPL.
17988         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17992
17993         nanosleep: Relicense under LGPL.
17994         * modules/nanosleep (License): Change to LGPL.
17995         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17996         Haible:
17997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18001
18002         futimens: Relicense under LGPL.
18003         * modules/futimens (License): Change to LGPL.
18004         With permission from Eric Blake:
18005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18006
18007         fflush: Relicense under LGPL.
18008         * modules/fflush (License): Change to LGPL.
18009         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18013
18014         tmpfile: Relicense under LGPL.
18015         * modules/tmpfile (License): Change to LGPL.
18016         With permission from Ben Pfaff:
18017         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18018
18019         isfinite: Relicense under LGPL.
18020         * modules/isfinite (License): Change to LGPL.
18021         With permission from Ben Pfaff, Bruno Haible:
18022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18024
18025         acosl..tanl: Relicense under LGPL.
18026         * modules/acosl (License): Change to LGPL.
18027         * modules/asinl (License): Likewise.
18028         * modules/atanl (License): Likewise.
18029         * modules/cosl (License): Likewise.
18030         * modules/expl (License): Likewise.
18031         * modules/logl (License): Likewise.
18032         * modules/sinl (License): Likewise.
18033         * modules/sqrtl (License): Likewise.
18034         * modules/tanl (License): Likewise.
18035         Source code originally from glibc and Paolo Bonzini. Agreements:
18036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18038
18039 2011-05-05  Bruno Haible  <bruno@clisp.org>
18040
18041         signal: Define sighandler_t.
18042         * lib/signal.in.h (sighandler_t): New type.
18043         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18044         whether sighandler_t is defined.
18045         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18046         * modules/signal (Depends-on): Add extensions.
18047         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18048         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18049         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18050
18051 2011-05-05  Eric Blake  <eblake@redhat.com>
18052
18053         maint: remove useless REPLACE_*_H macros
18054         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18055         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18056         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18057         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18058         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18059         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18060         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18061         * m4/btowc.m4: Update callers.
18062         * m4/dirfd.m4: Likewise.
18063         * m4/duplocale.m4: Likewise.
18064         * m4/fchdir.m4: Likewise.
18065         * m4/fdopendir.m4: Likewise.
18066         * m4/inet_ntop.m4: Likewise.
18067         * m4/inet_pton.m4: Likewise.
18068         * m4/ioctl.m4: Likewise.
18069         * m4/mbrlen.m4: Likewise.
18070         * m4/mbrtowc.m4: Likewise.
18071         * m4/mbsinit.m4: Likewise.
18072         * m4/mbsnrtowcs.m4: Likewise.
18073         * m4/mbsrtowcs.m4: Likewise.
18074         * m4/poll.m4: Likewise.
18075         * m4/setlocale.m4: Likewise.
18076         * m4/wcrtomb.m4: Likewise.
18077         * m4/wcsnrtombs.m4: Likewise.
18078         * m4/wcsrtombs.m4: Likewise.
18079         * m4/wctob.m4: Likewise.
18080         * m4/wcwidth.m4: Likewise.
18081         * modules/posix_spawn: Likewise.
18082         * modules/posix_spawn_file_actions_addclose: Likewise.
18083         * modules/posix_spawn_file_actions_adddup2: Likewise.
18084         * modules/posix_spawn_file_actions_addopen: Likewise.
18085         * modules/posix_spawn_file_actions_destroy: Likewise.
18086         * modules/posix_spawn_file_actions_init: Likewise.
18087         * modules/posix_spawnattr_destroy: Likewise.
18088         * modules/posix_spawnattr_getflags: Likewise.
18089         * modules/posix_spawnattr_getpgroup: Likewise.
18090         * modules/posix_spawnattr_getschedparam: Likewise.
18091         * modules/posix_spawnattr_getschedpolicy: Likewise.
18092         * modules/posix_spawnattr_getsigdefault: Likewise.
18093         * modules/posix_spawnattr_getsigmask: Likewise.
18094         * modules/posix_spawnattr_init: Likewise.
18095         * modules/posix_spawnattr_setflags: Likewise.
18096         * modules/posix_spawnattr_setpgroup: Likewise.
18097         * modules/posix_spawnattr_setschedparam: Likewise.
18098         * modules/posix_spawnattr_setschedpolicy: Likewise.
18099         * modules/posix_spawnattr_setsigdefault: Likewise.
18100         * modules/posix_spawnattr_setsigmask: Likewise.
18101         * modules/posix_spawnp: Likewise.
18102
18103 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18104
18105         Add option to do-release-commit-and-tag to specify branch.
18106         * build-aux/do-release-commit-and-tag: Add --branch.
18107
18108 2011-05-03  Bruno Haible  <bruno@clisp.org>
18109
18110         Avoid unnecessary compilation units, through conditional dependencies.
18111         * modules/accept (Depends-on): Add conditions to the dependencies.
18112         * modules/acosl (Depends-on): Likewise.
18113         * modules/argz (Depends-on): Likewise.
18114         * modules/asinl (Depends-on): Likewise.
18115         * modules/atanl (Depends-on): Likewise.
18116         * modules/atoll (Depends-on): Likewise.
18117         * modules/bind (Depends-on): Likewise.
18118         * modules/btowc (Depends-on): Likewise.
18119         * modules/canonicalize-lgpl (Depends-on): Likewise.
18120         * modules/ceil (Depends-on): Likewise.
18121         * modules/ceilf (Depends-on): Likewise.
18122         * modules/ceill (Depends-on): Likewise.
18123         * modules/chdir-long (Depends-on): Likewise.
18124         * modules/chown (Depends-on): Likewise.
18125         * modules/close (Depends-on): Likewise.
18126         * modules/connect (Depends-on): Likewise.
18127         * modules/cosl (Depends-on): Likewise.
18128         * modules/dirfd (Depends-on): Likewise.
18129         * modules/dprintf (Depends-on): Likewise.
18130         * modules/dprintf-posix (Depends-on): Likewise.
18131         * modules/error (Depends-on): Likewise.
18132         * modules/euidaccess (Depends-on): Likewise.
18133         * modules/expl (Depends-on): Likewise.
18134         * modules/faccessat (Depends-on): Likewise.
18135         * modules/fchdir (Depends-on): Likewise.
18136         * modules/fclose (Depends-on): Likewise.
18137         * modules/fcntl (Depends-on): Likewise.
18138         * modules/fdopendir (Depends-on): Likewise.
18139         * modules/fflush (Depends-on): Likewise.
18140         * modules/floor (Depends-on): Likewise.
18141         * modules/floorf (Depends-on): Likewise.
18142         * modules/floorl (Depends-on): Likewise.
18143         * modules/fnmatch (Depends-on): Likewise.
18144         * modules/fopen (Depends-on): Likewise.
18145         * modules/fprintf-posix (Depends-on): Likewise.
18146         * modules/frexp (Depends-on): Likewise.
18147         * modules/frexp-nolibm (Depends-on): Likewise.
18148         * modules/frexpl (Depends-on): Likewise.
18149         * modules/frexpl-nolibm (Depends-on): Likewise.
18150         * modules/fseek (Depends-on): Likewise.
18151         * modules/fsusage (Depends-on): Likewise.
18152         * modules/ftell (Depends-on): Likewise.
18153         * modules/ftello (Depends-on): Likewise.
18154         * modules/futimens (Depends-on): Likewise.
18155         * modules/getcwd (Depends-on): Likewise.
18156         * modules/getcwd-lgpl (Depends-on): Likewise.
18157         * modules/getdelim (Depends-on): Likewise.
18158         * modules/getdomainname (Depends-on): Likewise.
18159         * modules/getgroups (Depends-on): Likewise.
18160         * modules/gethostname (Depends-on): Likewise.
18161         * modules/getline (Depends-on): Likewise.
18162         * modules/getlogin_r (Depends-on): Likewise.
18163         * modules/getopt-posix (Depends-on): Likewise.
18164         * modules/getpeername (Depends-on): Likewise.
18165         * modules/getsockname (Depends-on): Likewise.
18166         * modules/getsockopt (Depends-on): Likewise.
18167         * modules/getsubopt (Depends-on): Likewise.
18168         * modules/getusershell (Depends-on): Likewise.
18169         * modules/glob (Depends-on): Likewise.
18170         * modules/grantpt (Depends-on): Likewise.
18171         * modules/iconv_open (Depends-on): Likewise.
18172         * modules/iconv_open-utf (Depends-on): Likewise.
18173         * modules/inet_ntop (Depends-on): Likewise.
18174         * modules/inet_pton (Depends-on): Likewise.
18175         * modules/ioctl (Depends-on): Likewise.
18176         * modules/isapipe (Depends-on): Likewise.
18177         * modules/isfinite (Depends-on): Likewise.
18178         * modules/isinf (Depends-on): Likewise.
18179         * modules/lchown (Depends-on): Likewise.
18180         * modules/ldexpl (Depends-on): Likewise.
18181         * modules/link (Depends-on): Likewise.
18182         * modules/linkat (Depends-on): Likewise.
18183         * modules/listen (Depends-on): Likewise.
18184         * modules/logl (Depends-on): Likewise.
18185         * modules/lstat (Depends-on): Likewise.
18186         * modules/mbrlen (Depends-on): Likewise.
18187         * modules/mbrtowc (Depends-on): Likewise.
18188         * modules/mbsinit (Depends-on): Likewise.
18189         * modules/mbsnrtowcs (Depends-on): Likewise.
18190         * modules/mbsrtowcs (Depends-on): Likewise.
18191         * modules/mbtowc (Depends-on): Likewise.
18192         * modules/memcmp (Depends-on): Likewise.
18193         * modules/mkdir (Depends-on): Likewise.
18194         * modules/mkdtemp (Depends-on): Likewise.
18195         * modules/mkfifo (Depends-on): Likewise.
18196         * modules/mkfifoat (Depends-on): Likewise.
18197         * modules/mknod (Depends-on): Likewise.
18198         * modules/mkostemp (Depends-on): Likewise.
18199         * modules/mkostemps (Depends-on): Likewise.
18200         * modules/mkstemp (Depends-on): Likewise.
18201         * modules/mkstemps (Depends-on): Likewise.
18202         * modules/mktime (Depends-on): Likewise.
18203         * modules/nanosleep (Depends-on): Likewise.
18204         * modules/open (Depends-on): Likewise.
18205         * modules/openat (Depends-on): Likewise.
18206         * modules/perror (Depends-on): Likewise.
18207         * modules/poll (Depends-on): Likewise.
18208         * modules/popen (Depends-on): Likewise.
18209         * modules/posix_spawn (Depends-on): Likewise.
18210         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18211         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18212         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18213         * modules/posix_spawnp (Depends-on): Likewise.
18214         * modules/pread (Depends-on): Likewise.
18215         * modules/printf-posix (Depends-on): Likewise.
18216         * modules/ptsname (Depends-on): Likewise.
18217         * modules/putenv (Depends-on): Likewise.
18218         * modules/pwrite (Depends-on): Likewise.
18219         * modules/readline (Depends-on): Likewise.
18220         * modules/readlink (Depends-on): Likewise.
18221         * modules/readlinkat (Depends-on): Likewise.
18222         * modules/recv (Depends-on): Likewise.
18223         * modules/recvfrom (Depends-on): Likewise.
18224         * modules/regex (Depends-on): Likewise.
18225         * modules/remove (Depends-on): Likewise.
18226         * modules/rename (Depends-on): Likewise.
18227         * modules/renameat (Depends-on): Likewise.
18228         * modules/rmdir (Depends-on): Likewise.
18229         * modules/round (Depends-on): Likewise.
18230         * modules/roundf (Depends-on): Likewise.
18231         * modules/roundl (Depends-on): Likewise.
18232         * modules/rpmatch (Depends-on): Likewise.
18233         * modules/select (Depends-on): Likewise.
18234         * modules/send (Depends-on): Likewise.
18235         * modules/sendto (Depends-on): Likewise.
18236         * modules/setenv (Depends-on): Likewise.
18237         * modules/setlocale (Depends-on): Likewise.
18238         * modules/setsockopt (Depends-on): Likewise.
18239         * modules/shutdown (Depends-on): Likewise.
18240         * modules/sigaction (Depends-on): Likewise.
18241         * modules/signbit (Depends-on): Likewise.
18242         * modules/sigprocmask (Depends-on): Likewise.
18243         * modules/sinl (Depends-on): Likewise.
18244         * modules/sleep (Depends-on): Likewise.
18245         * modules/snprintf (Depends-on): Likewise.
18246         * modules/snprintf-posix (Depends-on): Likewise.
18247         * modules/socket (Depends-on): Likewise.
18248         * modules/sprintf-posix (Depends-on): Likewise.
18249         * modules/sqrtl (Depends-on): Likewise.
18250         * modules/stat (Depends-on): Likewise.
18251         * modules/strchrnul (Depends-on): Likewise.
18252         * modules/strdup-posix (Depends-on): Likewise.
18253         * modules/strerror (Depends-on): Likewise.
18254         * modules/strerror_r-posix (Depends-on): Likewise.
18255         * modules/strndup (Depends-on): Likewise.
18256         * modules/strnlen (Depends-on): Likewise.
18257         * modules/strptime (Depends-on): Likewise.
18258         * modules/strsep (Depends-on): Likewise.
18259         * modules/strsignal (Depends-on): Likewise.
18260         * modules/strstr-simple (Depends-on): Likewise.
18261         * modules/strtod (Depends-on): Likewise.
18262         * modules/strtoimax (Depends-on): Likewise.
18263         * modules/strtok_r (Depends-on): Likewise.
18264         * modules/strtoumax (Depends-on): Likewise.
18265         * modules/symlink (Depends-on): Likewise.
18266         * modules/symlinkat (Depends-on): Likewise.
18267         * modules/tanl (Depends-on): Likewise.
18268         * modules/tcgetsid (Depends-on): Likewise.
18269         * modules/tmpfile (Depends-on): Likewise.
18270         * modules/trunc (Depends-on): Likewise.
18271         * modules/truncf (Depends-on): Likewise.
18272         * modules/truncl (Depends-on): Likewise.
18273         * modules/uname (Depends-on): Likewise.
18274         * modules/unlink (Depends-on): Likewise.
18275         * modules/unlockpt (Depends-on): Likewise.
18276         * modules/unsetenv (Depends-on): Likewise.
18277         * modules/usleep (Depends-on): Likewise.
18278         * modules/utimensat (Depends-on): Likewise.
18279         * modules/vasprintf (Depends-on): Likewise.
18280         * modules/vdprintf (Depends-on): Likewise.
18281         * modules/vdprintf-posix (Depends-on): Likewise.
18282         * modules/vfprintf-posix (Depends-on): Likewise.
18283         * modules/vprintf-posix (Depends-on): Likewise.
18284         * modules/vsnprintf (Depends-on): Likewise.
18285         * modules/vsnprintf-posix (Depends-on): Likewise.
18286         * modules/vsprintf-posix (Depends-on): Likewise.
18287         * modules/wcrtomb (Depends-on): Likewise.
18288         * modules/wcscasecmp (Depends-on): Likewise.
18289         * modules/wcscspn (Depends-on): Likewise.
18290         * modules/wcsdup (Depends-on): Likewise.
18291         * modules/wcsncasecmp (Depends-on): Likewise.
18292         * modules/wcsnrtombs (Depends-on): Likewise.
18293         * modules/wcspbrk (Depends-on): Likewise.
18294         * modules/wcsrtombs (Depends-on): Likewise.
18295         * modules/wcsspn (Depends-on): Likewise.
18296         * modules/wcsstr (Depends-on): Likewise.
18297         * modules/wcstok (Depends-on): Likewise.
18298         * modules/wcswidth (Depends-on): Likewise.
18299         * modules/wctob (Depends-on): Likewise.
18300         * modules/wctomb (Depends-on): Likewise.
18301         * modules/wctype (Depends-on): Likewise.
18302         * modules/wcwidth (Depends-on): Likewise.
18303         * modules/write (Depends-on): Likewise.
18304
18305 2011-05-03  Bruno Haible  <bruno@clisp.org>
18306
18307         Support for conditional dependencies.
18308         * doc/gnulib.texi (Module description): Document the syntax of
18309         conditional dependencies.
18310         * gnulib-tool: New option --conditional-dependencies.
18311         (func_usage): Document it.
18312         (cond_dependencies): New variable.
18313         (func_get_automake_snippet_conditional,
18314         func_get_automake_snippet_unconditional): New functions, extracted from
18315         func_get_automake_snippet.
18316         (func_get_automake_snippet): Use them.
18317         (sed_first_32_chars): New variable.
18318         (func_module_shellfunc_name): New function.
18319         (func_module_shellvar_name): New function.
18320         (func_module_conditional_name): New function.
18321         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18322         func_cond_module_condition): New functions.
18323         (func_modules_transitive_closure): Add support for conditional
18324         dependencies.
18325         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18326         conditional automake snippet in an automake conditional.
18327         (func_emit_autoconf_snippets): Emit shell functions that contain the
18328         code for conditional modules.
18329         (func_import, func_create_testdir): Update specification.
18330
18331 2011-05-03  Eric Blake  <eblake@redhat.com>
18332
18333         test-getaddrinfo: report error information
18334         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18335
18336 2011-05-03  Jim Meyering  <meyering@redhat.com>
18337
18338         bootstrap: avoid build failure when $GZIP is set
18339         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18340         program name.  If defined at all, it is supposed to list gzip options.
18341         Reported by Alan Curry in http://debbugs.gnu.org/8609
18342
18343 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18344
18345         readme-release: new module with release instructions
18346         * modules/readme-release: New module.
18347         * top/README-release: New file, from coreutils, grep, diffutils.
18348         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18349
18350 2011-05-02  Eric Blake  <eblake@redhat.com>
18351
18352         fflush: also replace fclose when fixing fflush
18353         * modules/fflush (Depends-on): Add fclose.
18354         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18355         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18356         memstreams with no backing fd.
18357         * doc/posix-functions/fclose.texi (fclose): Document the use of
18358         fflush module to fix the bug.
18359         * tests/test-fclose.c (main): Relax test when fclose is used in
18360         isolation.
18361
18362         fclose: add some tests
18363         * modules/fclose-tests: New test module.
18364         * tests/test-fclose.c: New file.
18365         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18366
18367         fclose: reduced dependencies
18368         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18369         simpler lseek.
18370         * lib/fclose.c (rpl_fclose): Likewise.
18371         Reported by Simon Josefsson.
18372
18373         exit: drop remaining clients
18374         * modules/argmatch (Depends-on): Replace exit with stdlib.
18375         * modules/copy-file (Depends-on): Likewise.
18376         * modules/execute (Depends-on): Likewise.
18377         * modules/exitfail (Depends-on): Likewise.
18378         * modules/obstack (Depends-on): Likewise.
18379         * modules/pagealign_alloc (Depends-on): Likewise.
18380         * modules/pipe-filter-gi (Depends-on): Likewise.
18381         * modules/pipe-filter-ii (Depends-on): Likewise.
18382         * modules/savewd (Depends-on): Likewise.
18383         * modules/spawn-pipe (Depends-on): Likewise.
18384         * modules/wait-process (Depends-on): Likewise.
18385         * modules/xsetenv (Depends-on): Likewise.
18386         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18387         * modules/git-merge-changelog (Depends-on): Likewise.
18388         * modules/long-options (Depends-on): Likewise.
18389         * modules/pt_chown (Depends-on): Likewise.
18390         * modules/sysexits (Depends-on): Likewise.
18391
18392         freading: relax license from LGPLv3+ to LGPLv2+
18393         * modules/freading (License): Relax LGPL version.
18394
18395 2011-05-02  Bruno Haible  <bruno@clisp.org>
18396
18397         fchdir: Remove unused dependencies.
18398         * modules/fchdir (Depends-on): Remove include_next.
18399
18400 2011-05-02  Bruno Haible  <bruno@clisp.org>
18401
18402         gnulib-tool: Refactor.
18403         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18404         from func_emit_autoconf_snippets.
18405         (func_emit_autoconf_snippets): Use it.
18406
18407 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18408
18409         * NEWS: Document removal of 'exit'.
18410         * modules/exit: Remove file.
18411
18412 2011-05-01  Bruno Haible  <bruno@clisp.org>
18413
18414         Update DEPENDENCIES.
18415         * DEPENDENCIES (gettext): Recommend the newest release.
18416         Reported by Simon Josefsson.
18417
18418 2011-05-01  Bruno Haible  <bruno@clisp.org>
18419
18420         gnulib-tool: Reduce code duplication.
18421         * gnulib-tool (func_emit_autoconf_snippets): New function.
18422         (func_import, func_create_testdir): Use it.
18423
18424 2011-04-30  Eric Blake  <eblake@redhat.com>
18425
18426         fclose: don't fail on non-seekable input stream
18427         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18428         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18429         since fflush is allowed to fail in that case.
18430
18431 2011-04-30  Bruno Haible  <bruno@clisp.org>
18432
18433         dup3: cleanup
18434         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18435
18436 2011-04-30  Bruno Haible  <bruno@clisp.org>
18437
18438         netdb: Make it work in C++ mode.
18439         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18440         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18441         module.
18442         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18443         gl_MODULE_INDICATOR_FOR_TESTS.
18444         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18445         * modules/netdb-c++-tests: New file.
18446         * tests/test-netdb-c++.cc: New file.
18447
18448 2011-04-30  Bruno Haible  <bruno@clisp.org>
18449
18450         New modules 'vfscanf', 'vscanf'.
18451         * modules/vfscanf: New file.
18452         * modules/vscanf: New file.
18453         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18454         here.
18455         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18456         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18457
18458 2011-04-30  Bruno Haible  <bruno@clisp.org>
18459
18460         passfd: Add comments.
18461         * lib/passfd.c: Add comments about platforms.
18462
18463 2011-04-30  Bruno Haible  <bruno@clisp.org>
18464
18465         sys_uio: Make <sys/uio.h> self-contained.
18466         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18467         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18468
18469 2011-04-30  Bruno Haible  <bruno@clisp.org>
18470
18471         sys_socket: Ensure 'struct iovec' definition.
18472         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18473         <sys/socket.h>.
18474         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18475
18476 2011-04-30  Bruno Haible  <bruno@clisp.org>
18477
18478         sys_uio: Protect definition of 'struct iovec'.
18479         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18480         it as a C struct.
18481
18482 2011-04-30  Bruno Haible  <bruno@clisp.org>
18483
18484         manywarnings: fix indentation
18485         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18486
18487 2011-04-30  Pádraig Brady <P@draigBrady.com>
18488
18489         manywarnings: add -Wno-missing-field-initializers if needed.
18490         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18491         option if it's needed to allow initialization with { 0, }
18492
18493 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18494
18495         announce-gen: cosmetic improvement
18496         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18497
18498 2011-04-29  Jim Meyering  <meyering@redhat.com>
18499
18500         vc-list-files: indent with spaces, not TABs
18501         * build-aux/vc-list-files: Convert leading TABs to spaces,
18502         to match the style of most other files in gnulib.
18503
18504         announce-gen: indent with spaces, not TABs
18505         * build-aux/announce-gen: Convert all TABs to spaces, to match
18506         the style of most other files in gnulib.
18507
18508 2011-04-29  Eric Blake  <eblake@redhat.com>
18509
18510         quotearg: avoid uninitialized variable use
18511         * lib/quotearg.c (quoting_options_from_style): Initialize
18512         remaining fields, and ensure that custom styles are only used via
18513         quoting_options rather than quoting_style.
18514
18515 2011-04-29  Jim Meyering  <meyering@redhat.com>
18516
18517         maint.mk: remove unused VC-tag variable
18518         * top/maint.mk (VC-tag): Remove unused variable.
18519
18520 2011-04-29  Bruno Haible  <bruno@clisp.org>
18521
18522         netdb: fix gai_strerror replacements
18523         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18524         * modules/netdb: Substitute it.
18525
18526 2011-04-29  Jim Meyering  <meyering@redhat.com>
18527
18528         test-getcwd.c: avoid new set-but-not-used warning
18529         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18530         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18531         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18532         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18533
18534         test-hash.c: avoid a new shadowing warning
18535         * tests/test-hash.c (main): Don't shadow "dup".
18536
18537 2011-04-28  Eric Blake  <eblake@redhat.com>
18538
18539         getaddrinfo: fix gai_strerror signature
18540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18541         and work around mingw with UNICODE defined.
18542         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18543         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18544         * modules/netdb (Makefile.am): Substitute it.
18545         * lib/netdb.in.h (gai_strerror): Declare replacement.
18546         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18547         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18548         the fix.
18549
18550         getsockopt: avoid compiler warning
18551         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18552         Reported by Matthias Bolte.
18553
18554         tests: drop unused link dependency
18555         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18556         * modules/dirent-safer-tests (Makefile.am): Likewise.
18557         * modules/fdopendir-tests (Makefile.am): Likewise.
18558         * modules/mkfifoat-tests (Makefile.am): Likewise.
18559         * modules/openat-safer-tests (Makefile.am): Likewise.
18560         * modules/openat-tests (Makefile.am): Likewise.
18561         * modules/readlinkat-tests (Makefile.am): Likewise.
18562         * modules/symlinkat-tests (Makefile.am): Likewise.
18563         * modules/linkat-tests (Makefile.am): Likewise.
18564         (Depends-on): Switch to filenamecat-lgpl.
18565         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18566         LIBINTL.
18567         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18568         * tests/test-linkat.c (main): Don't require xalloc.
18569
18570         hash, mgetgroups: drop xalloc dependency
18571         * lib/hash.c (includes): Adjust includes.
18572         * lib/mgetgroups.c (includes): Likewise.
18573         (xgetgroups): Move...
18574         * lib/xgetgroups.c: ...to new file.
18575         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18576         * modules/xgetgroups: New file, split from...
18577         * modules/mgetgroups: ...here.
18578         (Depends-on): Add xalloc-oversized.
18579         * modules/hash (Depends-on): Likewise.
18580         * modules/hash-tests (Depends-on): Drop xalloc.
18581         (test_hash_LDADD): Drop unused library.
18582         * tests/test-hash.c (main): Break xalloc dependency.
18583         (includes): Drop unused include.
18584
18585         xalloc-oversized: new module
18586         * modules/xalloc-oversized: New module.
18587         * modules/xalloc (Depends-on): Add it.
18588         * lib/xalloc.h (xalloc_oversized): Move...
18589         * lib/xalloc-oversized.h: ...into new file.
18590
18591         utimecmp: drop dependency on xmalloc
18592         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18593         due to memory pressure.
18594         * modules/utimecmp (Depends-on): Drop xalloc.
18595
18596 2011-04-27  Eric Blake  <eblake@redhat.com>
18597
18598         getcwd: fix mingw bugs
18599         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18600         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18601         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18602
18603 2011-04-27  Bruno Haible  <bruno@clisp.org>
18604
18605         mkstemps: Ensure declaration on MacOS X 10.5.
18606         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18607         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18608         MacOS X.
18609
18610 2011-04-27  Bruno Haible  <bruno@clisp.org>
18611
18612         mkstemp: More documentation.
18613         * doc/posix-functions/mkstemp.texi: Document header file problem on
18614         MacOS X.
18615
18616 2011-04-27  Bruno Haible  <bruno@clisp.org>
18617
18618         mkstemp: Tweak configure message when cross-compiling.
18619         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18620         result as a guess.
18621
18622 2011-04-27  Bruno Haible  <bruno@clisp.org>
18623
18624         clean-temp: Clarify what it does.
18625         * lib/clean-temp.h: Add more comments.
18626         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18627         module.
18628         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18629         * doc/glibc-functions/mkstemps.texi: Likewise.
18630         * doc/glibc-functions/mkostemps.texi: Likewise.
18631
18632 2011-04-27  Eric Blake  <eblake@redhat.com>
18633
18634         fchdir: avoid extra chdir and fix test
18635         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18636         getcwd-lgpl.
18637         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18638         have to be canonical.
18639         (canonicalize_file_name): Drop unused macro.
18640         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18641
18642         filenamecat-lgpl: fix licence
18643         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18644         when it was first created.
18645
18646         linkat, renameat: add missing dependency
18647         * modules/linkat (Depends-on): Require getcwd-lgpl.
18648         * modules/renameat (Depends-on): Likewise.
18649
18650         tests: reduce dependencies
18651         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18652         * tests/test-renameat.c (main): Likewise.
18653         * modules/linkat-tests (Depends-on): Relax dependency.
18654         * modules/renameat-tests (Depends-on): Likewise.
18655         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18656         dependency explicit.
18657
18658         save-cwd: reduce default dependency
18659         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18660         * lib/save-cwd.c: Update comments.
18661         * NEWS: Document the semantic change.
18662
18663         getcwd: enhance tests
18664         * tests/test-getcwd-lgpl.c: New file, taken from...
18665         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18666         repeat long path stress tests from m4 probe.
18667         * modules/getcwd-lgpl-tests: New module.
18668         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18669         * m4/getcwd-abort-bug.m4: Update comment.
18670         * m4/getcwd-path-max.m4: Likewise.
18671
18672         getcwd-lgpl: new module
18673         * modules/getcwd-lgpl: New module.
18674         * lib/getcwd-lgpl.c: New file.
18675         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18676         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18677         * modules/getcwd (configure.ac): Set C witness.
18678         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18679
18680         getcwd: tweak comments
18681         * m4/getcwd-abort-bug.m4: Fix comments.
18682         * m4/getcwd-path-max.m4: Likewise.
18683         * m4/getcwd.m4: Likewise.
18684
18685 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18686         and Eric Blake  <eblake@redhat.com>
18687
18688         mkstemp: replace if system version uses wrong permissions
18689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18690         read/write mode bits set in file created by mkstemp.
18691         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18692
18693 2011-04-27  Eric Blake  <eblake@redhat.com>
18694
18695         passfd: avoid compiler warning
18696         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18697         Reported by Laine Stump.
18698
18699 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18700
18701         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18702         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18703
18704 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18705         and Eric Blake  <eblake@redhat.com>
18706
18707         mkstemp: mention clean-temp module
18708         * lib/mkstemp.c: Add comment.
18709         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18710
18711 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18712
18713         inttypes: also provide default values for 32-bit tests
18714         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18715         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18716
18717 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         strtoumax: remove dependency on strtoimax
18720         This is like the strtoull change of yesterday.
18721         * modules/strtoumax (Files): Add lib/strtoimax.c.
18722         (Depends-on): Remove strtoimax and add verify.
18723
18724         inttypes-incomplete: new module
18725         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18726         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18727         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18728         of gl_INTTYPES_H.
18729         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18730         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18731         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18732         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18733         * modules/strtoumax, modules/xstrtol (Depends-on):
18734         Depend on inttypes-incomplete, not inttypes.
18735         * modules/inttypes-incomplete: New module, containing the contents
18736         of the old modules/inttypes module, except that the Files: section
18737         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18738         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18739         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18740         (Depends-on): Depend only on inttypes-incomplete.
18741         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18742
18743         inttypes: omit now-redundant strtoimax and strtoumax work
18744         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18745         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18746
18747         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18748         This supports apps that need pointers to strtoimax and strtoumax,
18749         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18750         nonexistent functions.  See
18751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18752         et seq.
18753         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18754         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18755         a macro.
18756         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18757
18758 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18759
18760         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18761
18762 2011-04-25  Bruno Haible  <bruno@clisp.org>
18763
18764         strtol, strtoul: Mark modules as obsolete.
18765         * modules/strtol (Status, Notice): New sections.
18766         * modules/strtoul (Status, Notice): New sections.
18767
18768 2011-04-25  Bruno Haible  <bruno@clisp.org>
18769
18770         strtod: Remove check for strtod, unless supporting old platforms.
18771         * modules/strtod-obsolete: New file.
18772         * m4/strtod-obsolete.m4: New file.
18773         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18774         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18775         * modules/strtod (Depends-on): Add strtod-obsolete.
18776         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18777
18778 2011-04-25  Bruno Haible  <bruno@clisp.org>
18779
18780         strcase: Make module obsolete.
18781         * modules/strcase (Status, Notice): New sections.
18782
18783 2011-04-25  Bruno Haible  <bruno@clisp.org>
18784
18785         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18786         * modules/dup2-obsolete: New file.
18787         * m4/dup2-obsolete.m4: New file.
18788         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18789         gl_FUNC_DUP2_OBSOLETE is not also defined.
18790         * modules/dup2 (Depends-on): Add dup2-obsolete.
18791         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18792
18793 2011-04-25  Bruno Haible  <bruno@clisp.org>
18794
18795         strnlen: Avoid memchr related link error on old obsolete platforms.
18796         * modules/memchr-obsolete: New file.
18797         * m4/memchr-obsolete.m4: New file.
18798         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18799         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18800         * modules/memchr (Depends-on): Add memchr-obsolete.
18801         * modules/strnlen (Depends-on): Likewise.
18802         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18803
18804 2011-04-25  Jim Meyering  <meyering@redhat.com>
18805
18806         maint.mk: makefile_at_at_check extend and clean up
18807         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18808         in addition to */Makefile.am.
18809         Exempt legitimate uses of @VAR@ notation, e.g.,
18810         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18811         Remove obsolete coreutils-specific comment.
18812         Prompted by discussion here:
18813         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18814
18815 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18816
18817         strtoul: remove dependency on strtol
18818         This is so that 'configure' need not check for strtol merely because
18819         the application needs strtoul.
18820         * modules/strtoul (Files): Add lib/strtol.c.
18821         (Depends-on): Remove strtol.
18822
18823         strtoull: remove dependency on strtoul
18824         This is like the strtoll change.
18825         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18826         (Depends-on): Remove strtoul.
18827
18828         strtoll: remove dependency on strtol
18829         This is so that 'configure' need not check for strtol merely because
18830         the application needs strtoll.
18831         * modules/strtoll (Files): Add lib/strtol.c.
18832         (Depends-on): Remove strtol.
18833
18834 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18835
18836         inttypes: Move some configure check to module 'imaxdiv'.
18837         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18838         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18839         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18840
18841 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18842
18843         inttypes: Move some configure check to module 'imaxabs'.
18844         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18845         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18846         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18847
18848 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18849
18850         inttypes: Remove configure tests that are not needed since 2009-12-31.
18851         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18852         gl_cv_header_working_inttypes_h.
18853
18854 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18855
18856         * modules/strnlen (Depends-on): Remove memchr.
18857         The strnlen implementation doesn't need the memchr module's fixes; see
18858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18859
18860         strtol: remove dependency on wchar
18861         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18862         * modules/strtol (Depends-on): Remove wchar.
18863
18864 2011-04-21  Eric Blake  <eblake@redhat.com>
18865
18866         passfd: fix test regression on Linux
18867         * modules/passfd-tests (configure.ac): Correct socketpair check.
18868
18869         passfd: speed up configure and drop unused code
18870         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18871         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18872         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18873         Instead of probing at configure for unix_scm_rights_bsd44_way,
18874         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18875         check to a struct member probe.
18876         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18877         (sendfd, recvfd): Update preprocessor checks.
18878         * modules/passfd (Files): Reflect rename, and drop unused file.
18879         (Depends-on): Drop unused dependency.
18880
18881         passfd: allow compilation on mingw
18882         * modules/sys_socket (Depends-on): Add sys_uio.
18883         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18884         iovec and a minimal struct msghdr.
18885         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18886         * tests/test-sys_socket.c (main): Enhance test.
18887         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18888         guaranteed to provide what we need.
18889         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18890         * modules/passfd-tests (Depends-on): Add sys_wait.
18891         * tests/test-passfd.c (main): Skip test on mingw, for now.
18892         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18893         partial 'struct msghdr' implementation.
18894
18895         sys_uio: new module
18896         * modules/sys_uio: New module.
18897         * modules/sys_uio-tests: Likewise.
18898         * lib/sys_uio.in.h: New file.
18899         * m4/sys_uio_h.m4: Likewise.
18900         * tests/test-sys_uio.c: Likewise.
18901         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18902         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18903
18904 2011-04-20  Jim Meyering  <meyering@redhat.com>
18905
18906         useless-if-before-free: avoid false-positive
18907         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18908         disjunct so that it too requires a terminating ";".  Without that,
18909         this script would identify as useless one statement from gcc that
18910         was not:
18911           if (aligned_ptr)
18912             free (((void **) aligned_ptr) [-1]);
18913
18914 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18915
18916         doc: update users.txt.
18917         * users.txt: Add barcode.
18918
18919 2011-04-19  Bruno Haible  <bruno@clisp.org>
18920
18921         ioctl: Remove link dependency on native Windows.
18922         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18923         (gl_close_fn, gl_ioctl_fn): New types.
18924         (struct fd_hook): Renamed from struct close_hook. Change type of
18925         private_close_fn field. Add private_ioctl_fn field.
18926         (close_hook_fn): Add parameter for primary close method.
18927         (execute_close_hooks, execute_all_close_hooks): Likewise.
18928         (ioctl_hook_fn): New type.
18929         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18930         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18931         argument.
18932         (unregister_fd_hook): Renamed from unregister_close_hook.
18933         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18934         Don't include <unistd.h>.
18935         (close): Remove undef.
18936         (anchor): Update.
18937         (execute_close_hooks): Add argument for primary close method.
18938         (execute_all_close_hooks): Likewise.
18939         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18940         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18941         argument. Allow each argument to be NULL.
18942         (unregister_fd_hook): Renamed from unregister_close_hook.
18943         * lib/close.c (rpl_close): Pass 'close' function pointer to
18944         execute_all_close_hooks.
18945         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18946         (primary_ioctl): New function.
18947         (ioctl): Don't call ioctlsocket here. Instead, call
18948         execute_all_ioctl_hooks.
18949         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18950         close method.
18951         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18952         (fd_sockets_hook): Renamed from close_sockets_hook.
18953         (gl_sockets_startup, gl_sockets_cleanup): Update.
18954         * modules/fd-hook: Renamed from modules/close-hook. Update.
18955         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18956         * modules/sockets (Depends-on): Likewise.
18957         * modules/ioctl (Depends-on): Add fd-hook.
18958         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18959         GNULIB_SOCKET.
18960
18961 2011-04-19  Bruno Haible  <bruno@clisp.org>
18962
18963         Move the support of O_NONBLOCK in open() to the 'open' module.
18964         * modules/nonblocking (Depends-on): Remove 'open'.
18965         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18966         gl_cv_have_open_O_NONBLOCK.
18967         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18968         O_NONBLOCK support.
18969         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18970
18971 2011-04-17  Bruno Haible  <bruno@clisp.org>
18972
18973         pipe2: Simplify code.
18974         * lib/pipe2.c (pipe2): Reduce code duplication.
18975
18976 2011-04-17  Bruno Haible  <bruno@clisp.org>
18977
18978         nonblocking: Add comment.
18979         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18980
18981 2011-04-17  Bruno Haible  <bruno@clisp.org>
18982
18983         nonblocking: Add tests for sockets.
18984         * tests/test-nonblocking-socket.sh: New file.
18985         * tests/test-nonblocking-socket-main.c: New file.
18986         * tests/test-nonblocking-socket-child.c: New file.
18987         * tests/test-nonblocking-socket.h: New file.
18988         * tests/socket-server.h: New file.
18989         * tests/socket-client.h: New file.
18990         * modules/nonblocking-socket-tests: New file.
18991         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18992
18993 2011-04-17  Bruno Haible  <bruno@clisp.org>
18994
18995         nonblocking: Add tests for pipes.
18996         * tests/test-nonblocking-pipe.sh: New file.
18997         * tests/test-nonblocking-pipe-main.c: New file.
18998         * tests/test-nonblocking-pipe-child.c: New file.
18999         * tests/test-nonblocking-pipe.h: New file.
19000         * tests/test-nonblocking-writer.h: New file.
19001         * tests/test-nonblocking-reader.h: New file.
19002         * tests/test-nonblocking-misc.h: New file.
19003         * modules/nonblocking-pipe-tests: New file.
19004         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19005
19006 2011-04-16  Bruno Haible  <bruno@clisp.org>
19007
19008         gettext: Clarify the needed programmer actions.
19009         * modules/gettext (Notice): New field.
19010         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19011
19012 2011-04-16  Bruno Haible  <bruno@clisp.org>
19013
19014         strchrnul: Tweak last commit.
19015         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19016         bug.
19017         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19018         as in _GL_FUNCDECL_SYS.
19019         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19020         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19021
19022 2011-04-15  Eric Blake  <eblake@redhat.com>
19023
19024         strchrnul: work around cygwin bug
19025         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19028         * modules/string (Makefile.am): Substitute it.
19029         * lib/string.in.h (strchrnul): Use it.
19030
19031 2011-04-15  Bruno Haible  <bruno@clisp.org>
19032
19033         Don't require lib/stdio-write.c when only module 'stdio' is used.
19034         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19035         invocation.
19036         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19037
19038 2011-04-14  Bruno Haible  <bruno@clisp.org>
19039
19040         Support non-blocking pipe I/O in read() on native Windows.
19041         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19042         (read): New declaration.
19043         * lib/read.c: New file.
19044         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19045         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19046         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19047         vscanf): New declarations.
19048         * lib/stdio-read.c: New file.
19049         * m4/read.m4: New file.
19050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19051         REPLACE_READ.
19052         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19053         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19054         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19055         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19056         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19057         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19058         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19059         * modules/read: New file.
19060         * modules/nonblocking (Files): Add lib/stdio-read.c.
19061         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19062         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19063         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19064         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19065         * modules/pread (Depends-on): Add read.
19066         * modules/safe-read (Depends-on): Likewise.
19067         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19068         gets, scanf, vfscanf, vscanf): Verify signatures.
19069         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19070         problem with non-blocking pipes.
19071         * doc/posix-functions/fgetc.texi: Likewise.
19072         * doc/posix-functions/fgets.texi: Likewise.
19073         * doc/posix-functions/fread.texi: Likewise.
19074         * doc/posix-functions/fscanf.texi: Likewise.
19075         * doc/posix-functions/getc.texi: Likewise.
19076         * doc/posix-functions/getchar.texi: Likewise.
19077         * doc/posix-functions/gets.texi: Likewise.
19078         * doc/posix-functions/scanf.texi: Likewise.
19079         * doc/posix-functions/vfscanf.texi: Likewise.
19080         * doc/posix-functions/vscanf.texi: Likewise.
19081
19082 2011-04-14  Bruno Haible  <bruno@clisp.org>
19083
19084         Support non-blocking pipe I/O in write() on native Windows.
19085         * lib/write.c (rpl_write): Split a write request that failed merely
19086         because the byte count was larger than the pipe buffer's size.
19087         * doc/posix-functions/write.texi: Mention the problem with large byte
19088         counts.
19089
19090 2011-04-14  Bruno Haible  <bruno@clisp.org>
19091
19092         wchar: Ensure that wchar_t gets defined on uClibc.
19093         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19094         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19095
19096 2011-04-13  Bruno Haible  <bruno@clisp.org>
19097
19098         safe-write, full-read: Avoid unnecessary compilation units.
19099         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19100         (Depends-on): Remove safe-read. Add ssize_t.
19101         * modules/full-read (Files): Add lib/full-write.c.
19102         (Depends-on): Add full-write.
19103
19104 2011-04-13  Bruno Haible  <bruno@clisp.org>
19105
19106         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19107         * modules/pwrite (Depends-on): Add 'write'.
19108
19109 2011-04-13  Bruno Haible  <bruno@clisp.org>
19110
19111         Support non-blocking pipe I/O in write() on native Windows.
19112         * lib/unistd.in.h (write): Enable replacement also if
19113         GNULIB_UNISTD_H_NONBLOCKING is 1.
19114         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19115         (rpl_write): When failing to write on a non-blocking pipe, change
19116         errno from ENOSPC to EAGAIN.
19117         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19118         putchar, puts, vfprintf, vprintf): Enable replacement also if
19119         GNULIB_STDIO_H_NONBLOCKING is 1.
19120         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19121         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19122         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19123         CALL_WITH_SIGPIPE_EMULATION.
19124         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19125         * m4/nonblocking.m4: New file.
19126         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19127         for non-blocking I/O support.
19128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19129         GNULIB_UNISTD_H_NONBLOCKING.
19130         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19131         required for non-blocking I/O support.
19132         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19133         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19134         lib/stdio-write.c, m4/asm-underscore.m4.
19135         (Depends-on): Add stdio, unistd.
19136         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19137         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19138         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19139         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19140         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19141         problem with non-blocking pipes.
19142         * doc/posix-functions/fputc.texi: Likewise.
19143         * doc/posix-functions/fputs.texi: Likewise.
19144         * doc/posix-functions/fwrite.texi: Likewise.
19145         * doc/posix-functions/printf.texi: Likewise.
19146         * doc/posix-functions/putc.texi: Likewise.
19147         * doc/posix-functions/putchar.texi: Likewise.
19148         * doc/posix-functions/puts.texi: Likewise.
19149         * doc/posix-functions/vfprintf.texi: Likewise.
19150         * doc/posix-functions/vprintf.texi: Likewise.
19151         * doc/posix-functions/write.texi: Likewise.
19152
19153 2011-04-10  Jim Meyering  <meyering@redhat.com>
19154
19155         maint.mk: prohibit doubled words
19156         Detect them also when they're separated by a newline.
19157         There are 3 ways to customize it:
19158           - disable the test on a per file basis, as usual with rules using
19159             $(VC_LIST_EXCEPT)
19160           - replace the default doubled-word-selecting regexp (affects all files)
19161           - ignore a particular file-vs-doubled-word match
19162         I nearly used that last one to ignore the "is is" match in
19163         coreutils' NEWS file, since the text was "ls -is is ..."
19164         To do that, I would have added this line to cfg.mk:
19165           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19166         but it would have ignored any "is is" match in NEWS.
19167         Low probability, but still...
19168         Instead, I changed the text, slightly:
19169           -  ls -is is now consistent with ls -lis in ignoring values returned
19170           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19171         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19172         (prohibit_doubled_word_): Define.
19173         (sc_prohibit_doubled_word): New rule.
19174         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19175
19176 2011-04-10  Jim Meyering  <meyering@redhat.com>
19177
19178         maint: fix doubled-word typo in comment
19179         * m4/gethostname.m4: s/is is/it is/
19180         * m4/getdomainname.m4: Likewise.
19181
19182 2011-04-10  Jim Meyering  <meyering@redhat.com>
19183
19184         maint: remove doubled word: s/it it/it/
19185         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19186
19187 2011-04-10  Jim Meyering  <meyering@redhat.com>
19188
19189         maint.mk: remove useless semicolon and backslash
19190         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19191         semicolon and backslash.
19192
19193 2011-04-10  Bruno Haible  <bruno@clisp.org>
19194
19195         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19196         * modules/stdint-tests (Depends-on): Add wchar.
19197
19198 2011-04-10  Jim Meyering  <meyering@redhat.com>
19199
19200         maint: remove doubled words in comments, e.g., s/a a/a/
19201         * lib/strptime.c (day_of_the_week): s/the the/the/
19202         * tests/test-chown.h (test_chown): s/a a/a/
19203
19204         test-chown.h: correct a cast
19205         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19206         when the destination is a stat.st_gid.
19207
19208 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19209
19210         getaddrinfo: Fix test for sa_len member.
19211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19212         include <sys/types.h> before <sys/socket.h>.
19213
19214 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19215
19216         maint: change "can not" to "cannot"
19217         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19218         boundaries.
19219
19220 2011-04-09  Jim Meyering  <meyering@redhat.com>
19221
19222         maint: change "a a" to "a"
19223         * tests/test-lchown.h (test_lchown): s/a a/a/
19224
19225         maint.mk: prohibit \<the the\>
19226         * top/maint.mk (sc_prohibit_the_the): New rule.
19227
19228         maint: fix "the the" in comment
19229         * lib/count-one-bits.h: s/the the/the/
19230
19231         maint: change "can not" to "cannot"
19232         But do not change the occurrences in maintain.texi or in
19233         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19234         * doc/gnulib-tool.texi: s/can not/cannot/
19235         * doc/posix-functions/accept.texi (accept): Likewise.
19236         * doc/posix-functions/socket.texi (socket): Likewise.
19237         * lib/mbrtowc.c: Likewise.
19238
19239         maint.mk: prohibit use of "can not"
19240         * top/maint.mk (sc_prohibit_can_not): New rule.
19241         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19242
19243 2011-04-09  Bruno Haible  <bruno@clisp.org>
19244
19245         careadlinkat: Guard against misuse of careadlinkatcwd.
19246         * lib/careadlinkat.c: Include <stdlib.h>.
19247         (careadlinkatcwd): Check that the fd argument is as expected.
19248
19249 2011-04-09  Bruno Haible  <bruno@clisp.org>
19250
19251         careadlinkat: Use common coding style.
19252         * lib/careadlinkat.c: Move gnulib includes after system includes.
19253
19254 2011-04-09  Bruno Haible  <bruno@clisp.org>
19255
19256         careadlinkat: Clarify specification.
19257         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19258         (careadlinkatcwd): Add comment.
19259         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19260
19261 2011-04-09  Bruno Haible  <bruno@clisp.org>
19262
19263         areadlinkat: Avoid link error on many platforms.
19264         * modules/areadlinkat (Depends-on): Add areadlink.
19265
19266 2011-04-09  Bruno Haible  <bruno@clisp.org>
19267
19268         allocator, careadlinkat: Fix double-inclusion guard.
19269         * lib/allocator.h: Fix double-inclusion guard.
19270         * lib/careadlinkat.h: Likewise.
19271
19272 2011-04-09  Bruno Haible  <bruno@clisp.org>
19273
19274         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19275         * lib/relocwrapper.c: Update dependencies hierarchy.
19276         * build-aux/install-reloc: Update list of files to be compiled.
19277         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19278         lib/allocator.[hc].
19279
19280 2011-04-08  Eric Blake  <eblake@redhat.com>
19281
19282         strftime: silence gnulib-tool warning
19283         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19284
19285 2011-04-08  Bruno Haible  <bruno@clisp.org>
19286
19287         verify: Fix syntax error with GCC 4.6 in C++ mode.
19288         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19289         (HAVE_STATIC_ASSERT): New macro.
19290         (verify_true, verify): Use 'static_assert' if it is supported and
19291         '_Static_assert' is not supported.
19292
19293 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         allocator: New module.
19296         * modules/allocator, lib/allocator.c: New files.
19297         * lib/allocator.h (stdlib_allocator): New decl.
19298         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19299         Remove.  Do not include <stdlib.h>.
19300         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19301         * modules/careadlinkat (Files): Remove lib/allocator.h.
19302         (Depends-on): Add allocator.
19303
19304         stdlib: let modules use system malloc, realloc
19305         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19306         if !_GL_USE_STDLIB_ALLOC.
19307         (malloc, realloc): Limit this change to a smaller scope.
19308
19309         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19310         (malloc, realloc): Don't #undef; no longer needed.
19311         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19312         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19313         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19314         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19315         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19316         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19317         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19318         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19319
19320         careadlinkat: rename members to avoid problem
19321         * lib/allocator.h (struct allocator): Rename members from
19322         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19323         and realloc are #define'd.  Reported by Eric Blake in
19324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19325         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19326
19327 2011-04-08  Eric Blake  <eblake@redhat.com>
19328
19329         nonblocking: reduce dependency
19330         * tests/test-nonblocking.c: Only test sockets when in use.
19331         * modules/nonblocking-tests (Depends-on): Drop socket.
19332         (Makefile.am): Link even if sockets are not present.
19333         * modules/pipe2-tests (Makefile.am): Likewise.
19334         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19335
19336         pipe2: fix O_NONBLOCK support on mingw
19337         * modules/pipe2 (Depends-on): Add nonblocking.
19338         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19339         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19340         * tests/test-nonblocking.c (main): Likewise.
19341         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19342
19343         fcntl-h: fix O_ACCMODE on cygwin
19344         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19345         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19346
19347         pipe-filter: drop O_NONBLOCK workarounds
19348         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19349         * modules/pipe-filter-ii (Depends-on): Likewise.
19350         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19351
19352         nonblocking: provide O_NONBLOCK for mingw
19353         * modules/nonblocking (Depends-on): Add open.
19354         (configure.ac): Set new witness macro.
19355         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19356         * modules/fcntl-h (Makefile.am): Substitute it.
19357         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19358         nonblocking module is in use.
19359         * lib/nonblocking.c: Adjust portability test.
19360         * lib/open.c (open): Don't let native open see gnulib flag.
19361         * tests/test-fcntl-h.c (main): Enhance test.
19362         * tests/test-open.h (test_open): Likewise.
19363         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19364
19365         careadlinkat: fix compilation error on mingw
19366         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19367         within struct allocator.
19368
19369 2011-04-06  Eric Blake  <eblake@redhat.com>
19370
19371         binary-io: relicense under LGPLv2+
19372         * modules/binary-io (License): Relax to LGPLv2+.
19373         Requested for libvirt, and required by pipe2.
19374
19375 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19376
19377         verify: use _Static_assert if available
19378         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19379         (verify_true, verify): Use it if available.  This generates better
19380         diagnostics with GCC 4.6.0 and later.
19381
19382 2011-04-05  Bruno Haible  <bruno@clisp.org>
19383
19384         Remove leftover generated .h files after config.status changed.
19385
19386         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19387         GL_GENERATE_ALLOCA_H.
19388         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19389         GL_GENERATE_ALLOCA_H evaluates to false.
19390
19391         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19392         GL_GENERATE_ARGZ_H.
19393         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19394         evaluates to false.
19395
19396         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19397         GL_GENERATE_BYTESWAP_H.
19398         * modules/byteswap (Makefile.am): Remove byteswap.h if
19399         GL_GENERATE_BYTESWAP_H evaluates to false.
19400
19401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19402         GL_GENERATE_ERRNO_H.
19403         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19404         evaluates to false.
19405
19406         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19407         GL_GENERATE_FLOAT_H.
19408         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19409         evaluates to false.
19410
19411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19412         GL_GENERATE_FNMATCH_H.
19413         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19414         GL_GENERATE_FNMATCH_H evaluates to false.
19415
19416         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19417         GL_GENERATE_GLOB_H.
19418         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19419         evaluates to false.
19420
19421         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19422         automake conditional GL_GENERATE_ICONV_H.
19423         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19424         evaluates to false.
19425
19426         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19427         GL_GENERATE_NETINET_IN_H.
19428         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19429         GL_GENERATE_NETINET_IN_H evaluates to false.
19430
19431         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19432         conditional GL_GENERATE_PTHREAD_H.
19433         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19434         * modules/pthread (Makefile.am): Remove pthread.h if
19435         GL_GENERATE_PTHREAD_H evaluates to false.
19436
19437         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19438         GL_GENERATE_SCHED_H.
19439         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19440         evaluates to false.
19441
19442         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19443         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19444         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19445         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19446
19447         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19448         GL_GENERATE_STDARG_H.
19449         * modules/stdarg (Makefile.am): Remove stdarg.h if
19450         GL_GENERATE_STDARG_H evaluates to false.
19451
19452         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19453         GL_GENERATE_STDBOOL_H.
19454         * modules/stdbool (Makefile.am): Remove stdbool.h if
19455         GL_GENERATE_STDBOOL_H evaluates to false.
19456
19457         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19458         conditional GL_GENERATE_STDDEF_H.
19459         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19460         * modules/stddef (Makefile.am): Remove stddef.h if
19461         GL_GENERATE_STDDEF_H evaluates to false.
19462
19463         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19464         GL_GENERATE_STDINT_H.
19465         * modules/stdint (Makefile.am): Remove stdint.h if
19466         GL_GENERATE_STDINT_H evaluates to false.
19467
19468         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19469         GL_GENERATE_SYSEXITS_H.
19470         * modules/sysexits (Makefile.am): Remove sysexits.h if
19471         GL_GENERATE_SYSEXITS_H evaluates to false.
19472
19473         Reported by Karl Berry and Ralf Wildenhues.
19474
19475 2011-04-05  Bruno Haible  <bruno@clisp.org>
19476
19477         Ensure to rebuild generated .h files when config.status has changed.
19478         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19479         config.status.
19480         * modules/ctype (Makefile.am): Likewise.
19481         * modules/dirent (Makefile.am): Likewise.
19482         * modules/errno (Makefile.am): Likewise.
19483         * modules/fcntl-h (Makefile.am): Likewise.
19484         * modules/float (Makefile.am): Likewise.
19485         * modules/getopt-posix (Makefile.am): Likewise.
19486         * modules/glob (Makefile.am): Likewise.
19487         * modules/iconv-h (Makefile.am): Likewise.
19488         * modules/inttypes (Makefile.am): Likewise.
19489         * modules/langinfo (Makefile.am): Likewise.
19490         * modules/locale (Makefile.am): Likewise.
19491         * modules/math (Makefile.am): Likewise.
19492         * modules/netdb (Makefile.am): Likewise.
19493         * modules/netinet_in (Makefile.am): Likewise.
19494         * modules/poll-h (Makefile.am): Likewise.
19495         * modules/pthread (Makefile.am): Likewise.
19496         * modules/pty (Makefile.am): Likewise.
19497         * modules/sched (Makefile.am): Likewise.
19498         * modules/search (Makefile.am): Likewise.
19499         * modules/selinux-h (Makefile.am): Likewise.
19500         * modules/signal (Makefile.am): Likewise.
19501         * modules/spawn (Makefile.am): Likewise.
19502         * modules/stdarg (Makefile.am): Likewise.
19503         * modules/stdbool (Makefile.am): Likewise.
19504         * modules/stddef (Makefile.am): Likewise.
19505         * modules/stdint (Makefile.am): Likewise.
19506         * modules/stdio (Makefile.am): Likewise.
19507         * modules/stdlib (Makefile.am): Likewise.
19508         * modules/string (Makefile.am): Likewise.
19509         * modules/strings (Makefile.am): Likewise.
19510         * modules/sys_file (Makefile.am): Likewise.
19511         * modules/sys_ioctl (Makefile.am): Likewise.
19512         * modules/sys_select (Makefile.am): Likewise.
19513         * modules/sys_socket (Makefile.am): Likewise.
19514         * modules/sys_stat (Makefile.am): Likewise.
19515         * modules/sys_time (Makefile.am): Likewise.
19516         * modules/sys_times (Makefile.am): Likewise.
19517         * modules/sys_utsname (Makefile.am): Likewise.
19518         * modules/sys_wait (Makefile.am): Likewise.
19519         * modules/sysexits (Makefile.am): Likewise.
19520         * modules/termios (Makefile.am): Likewise.
19521         * modules/time (Makefile.am): Likewise.
19522         * modules/unistd (Makefile.am): Likewise.
19523         * modules/wchar (Makefile.am): Likewise.
19524         * modules/wctype-h (Makefile.am): Likewise.
19525         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19526
19527 2011-04-05  Bruno Haible  <bruno@clisp.org>
19528
19529         pipe2: Relicense under LGPLv2+.
19530         * modules/pipe2 (License): Change to LGPLv2+.
19531         Requested by Eric Blake, for libvirt.
19532
19533 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19534
19535         bootstrap: compute gnulib_extra_files after updating build_aux
19536         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19537         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19538
19539 2011-04-05  Eric Blake  <eblake@redhat.com>
19540
19541         bootstrap: preserve git whitelist item sorting
19542         * build-aux/bootstrap (sort_patterns): New function.
19543         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19544
19545 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19546
19547         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19548         sc_space_tab check.
19549
19550 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         areadlink, areadlinkat: rewrite in terms of careadlinkat
19553         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19554         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19555         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19556         (malloc, realloc): Remove #undefs.
19557         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19558         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19559         readlink, ssize_t, stdint, unistd.
19560         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19561         areadlink, stdint.
19562
19563         careadlinkat: new module
19564         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19565         * modules/careadlinkat: New files, written by me with
19566         a review and feedback from Ben Pfaff in
19567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19568
19569 2011-04-01  Bruno Haible  <bruno@clisp.org>
19570
19571         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19572         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19573         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19574         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19575         Reported by Bruce Korb <bruce.korb@gmail.com>.
19576
19577 2011-04-01  Bruno Haible  <bruno@clisp.org>
19578
19579         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19580         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19581         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19582         * modules/wcpcpy (Depends-on): Add extensions.
19583         * modules/wcpncpy (Depends-on): Likewise.
19584         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19585         systems.
19586         * doc/posix-functions/wcpncpy.texi: Likewise.
19587         * doc/posix-functions/wcwidth.texi: Likewise.
19588
19589 2011-03-31  Eric Blake  <eblake@redhat.com>
19590
19591         nonblocking: fix mingw test failures
19592         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19593         non-blocking flag on regular file.
19594         (get_nonblocking_flag): Set errno on invalid fd.
19595         * tests/test-nonblocking.c (main): Avoid test failure on
19596         directories if fchdir is not active.
19597         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19598
19599 2011-03-31  Bruno Haible  <bruno@clisp.org>
19600
19601         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19602         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19603         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19604         Reported by Simon Josefsson <simon@josefsson.org>.
19605
19606 2011-03-31  Bruno Haible  <bruno@clisp.org>
19607         and Eric Blake  <eblake@redhat.com>
19608
19609         nonblocking: new module
19610         * modules/nonblocking: New module.
19611         * modules/nonblocking-tests: Likewise.
19612         * lib/nonblocking.h: New file.
19613         * lib/nonblocking.c: Likewise.
19614         * tests/test-nonblocking.c: New test.
19615         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19616
19617 2011-03-30  Bruno Haible  <bruno@clisp.org>
19618
19619         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19620         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19621         instead of 'printf' format for GCC >= 4.4.
19622         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19623         (fprintf, printf, vfprintf, vprintf): Declare with
19624         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19625         the system's vfprintf() function.
19626         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19627
19628 2011-03-30  Eric Blake  <eblake@redhat.com>
19629
19630         passfd: fix scoping bug
19631         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19632         before sendmsg/recvmsg.
19633
19634         passfd: standardize coding conventions
19635         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19636         can be learned at compile time.
19637         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19638         ifdefs.
19639         (sendfd, recvfd): Follow gnulib code conventions.
19640
19641         passfd: fix incorrect sendmsg arguments
19642         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19643         incorrect msg_controllen value.
19644         * modules/passfd-tests (Depends-on): Check for alarm.
19645         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19646         Reported by Bastien ROUCARIES.
19647
19648 2011-03-30  Bruno Haible  <bruno@clisp.org>
19649
19650         c-strcasestr: Relicense under LGPLv2+.
19651         * modules/c-strcasestr (License): Change to LGPLv2+.
19652         Requested by Eric Blake, for libvirt.
19653
19654 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19655
19656         * users.txt: Add libidn2.  Fix libtasn1 link.
19657
19658 2011-03-30  Jim Meyering  <meyering@redhat.com>
19659
19660         tests: readlink* ("",... fails with EINVAL on newer kernels
19661         readlink and readlinkat have typically failed with ENOENT for
19662         the invalid, empty file name,  "".  However, with the advent
19663         of linux-2.6.39, they fail with EINVAL.
19664         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19665         when operating on the empty file name.
19666         * tests/test-readlink.h (test_readlink): Likewise.
19667
19668 2011-03-29  Bruno Haible  <bruno@clisp.org>
19669
19670         Relicense some modules under LGPLv2+, for libidn2.
19671         * modules/array-mergesort (License): Change to LGPLv2+.
19672         * modules/c-strcaseeq (License): Likewise.
19673         * modules/striconveh (License): Likewise.
19674         * modules/striconveha (License): Likewise.
19675         * modules/uniconv/base (License): Likewise.
19676         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19677         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19678         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19679         * modules/unictype/base (License): Likewise.
19680         * modules/unictype/bidiclass-of (License): Likewise.
19681         * modules/unictype/category-M (License): Likewise.
19682         * modules/unictype/category-none (License): Likewise.
19683         * modules/unictype/category-of (License): Likewise.
19684         * modules/unictype/category-test (License): Likewise.
19685         * modules/unictype/category-test-withtable (License): Likewise.
19686         * modules/unictype/combining-class (License): Likewise.
19687         * modules/unictype/joiningtype-of (License): Likewise.
19688         * modules/unictype/scripts (License): Likewise.
19689         * modules/uninorm/base (License): Likewise.
19690         * modules/uninorm/canonical-decomposition (License): Likewise.
19691         * modules/uninorm/composition (License): Likewise.
19692         * modules/uninorm/decompose-internal (License): Likewise.
19693         * modules/uninorm/decomposition-table (License): Likewise.
19694         * modules/uninorm/nfc (License): Likewise.
19695         * modules/uninorm/nfd (License): Likewise.
19696         * modules/uninorm/u32-normalize (License): Likewise.
19697         * modules/unistr/base (License): Likewise.
19698         * modules/unistr/u32-cpy (License): Likewise.
19699         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19700         * modules/unistr/u32-to-u8 (License): Likewise.
19701         * modules/unistr/u32-uctomb (License): Likewise.
19702         * modules/unistr/u8-check (License): Likewise.
19703         * modules/unistr/u8-mblen (License): Likewise.
19704         * modules/unistr/u8-mbtouc (License): Likewise.
19705         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19706         * modules/unistr/u8-mbtoucr (License): Likewise.
19707         * modules/unistr/u8-prev (License): Likewise.
19708         * modules/unistr/u8-strlen (License): Likewise.
19709         * modules/unistr/u8-to-u32 (License): Likewise.
19710         * modules/unistr/u8-uctomb (License): Likewise.
19711         * modules/unitypes (License): Likewise.
19712         Requested by Simon Josefsson.
19713
19714 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19715
19716         lib-symbol-visibility: Add a notice.
19717         * modules/lib-symbol-visibility (Notice): New field.
19718
19719 2011-03-29  Bruno Haible  <bruno@clisp.org>
19720
19721         getaddrinfo: Doc fix.
19722         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19723         section "fixed in Gnulib".
19724
19725 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19726
19727         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19728         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19729
19730 2011-03-26  Bruno Haible  <bruno@clisp.org>
19731
19732         unictype/property-byname: Reduce the number of load-time relocations.
19733         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19734         (UC_PROPERTY_INDEX_*): New enumeration values.
19735         (uc_property_byname): Convert an index from the lookup table to an
19736         uc_property_t.
19737         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19738         values.
19739
19740 2011-03-26  Bruno Haible  <bruno@clisp.org>
19741
19742         unictype/property-byname: Allow omitted word separators and aliases.
19743         * lib/unictype/pr_byname.gperf: Add property names without word
19744         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19745         for 'space'.
19746
19747 2011-03-26  Bruno Haible  <bruno@clisp.org>
19748
19749         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19750         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19751         also hyphens to space.
19752         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19753         without spaces.
19754         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19755
19756 2011-03-26  Bruno Haible  <bruno@clisp.org>
19757
19758         unictype/joiningtype-byname: Recognize long names as well.
19759         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19760         a long name.
19761         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19762         unictype/joiningtype_byname.h.
19763         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19764         * lib/unictype/joiningtype_byname.gperf: New file.
19765         * modules/unictype/joiningtype-byname (Files): Add
19766         lib/unictype/joiningtype_byname.gperf.
19767         (Depends-on): Add gperf.
19768         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19769         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19770         long names.
19771
19772         Tests for module 'unictype/joiningtype-longname'.
19773         * modules/unictype/joiningtype-longname-tests: New file.
19774         * tests/unictype/test-joiningtype_longname.c: New file.
19775
19776         New module 'unictype/joiningtype-longname'.
19777         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19778         * lib/unictype/joiningtype_longname.c: New file.
19779         * modules/unictype/joiningtype-longname: New file.
19780         * modules/unictype/joiningtype-all (Depends-on): Add
19781         unictype/joiningtype-longname.
19782
19783 2011-03-26  Bruno Haible  <bruno@clisp.org>
19784
19785         unictype/bidiclass-byname: Recognize long names as well.
19786         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19787         name.
19788         * lib/unictype/bidi_byname.c: Include <string.h>,
19789         unictype/bidi_byname.h.
19790         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19791         * lib/unictype/bidi_byname.gperf: New file.
19792         * modules/unictype/bidiclass-byname (Files): Add
19793         lib/unictype/bidi_byname.gperf.
19794         (Depends-on): Add gperf.
19795         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19796         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19797         long names.
19798
19799         Tests for module 'unictype/bidiclass-longname'.
19800         * modules/unictype/bidiclass-longname-tests: New file.
19801         * tests/unictype/test-bidi_longname.c: New file.
19802
19803         New module 'unictype/bidiclass-longname'.
19804         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19805         * lib/unictype/bidi_longname.c: New file.
19806         * modules/unictype/bidiclass-longname: New file.
19807         * modules/unictype/bidiclass-all (Depends-on): Add
19808         unictype/bidiclass-longname.
19809
19810 2011-03-26  Bruno Haible  <bruno@clisp.org>
19811
19812         unictype/bidi*: Rename modules.
19813         * modules/unictype/bidiclass-all: Renamed from
19814         modules/unictype/bidicategory-all.
19815         * modules/unictype/bidiclass-name: Renamed from
19816         modules/unictype/bidiclass-name.
19817         (Description): Update.
19818         * modules/unictype/bidiclass-name-tests: Renamed from
19819         modules/unictype/bidicategory-name-tests.
19820         * modules/unictype/bidiclass-byname: Renamed from
19821         modules/unictype/bidicategory-byname.
19822         (Description): Update.
19823         * modules/unictype/bidiclass-byname-tests: Renamed from
19824         modules/unictype/bidicategory-byname-tests.
19825         * modules/unictype/bidiclass-of: Renamed from
19826         modules/unictype/bidicategory-of.
19827         (Description): Update.
19828         * modules/unictype/bidiclass-of-tests: Renamed from
19829         modules/unictype/bidicategory-of-tests.
19830         * modules/unictype/bidiclass-test: Renamed from
19831         modules/unictype/bidicategory-test.
19832         (Description): Update.
19833         * modules/unictype/bidiclass-test-tests: Renamed from
19834         modules/unictype/bidicategory-test-tests.
19835         * modules/unictype/bidicategory-all: New file, a simple redirection.
19836         * modules/unictype/bidicategory-name: Likewise.
19837         * modules/unictype/bidicategory-byname: Likewise.
19838         * modules/unictype/bidicategory-of: Likewise.
19839         * modules/unictype/bidicategory-test: Likewise.
19840         * modules/unictype/property-bidi-* (Dependencies): Update.
19841         * lib/unictype/bidi_*.c: Update comment.
19842
19843 2011-03-26  Bruno Haible  <bruno@clisp.org>
19844
19845         unictype/bidi*: Rename functions, part 2.
19846         * modules/unictype/bidicategory-name (configure.ac): Update required
19847         libunistring version.
19848         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19849
19850 2011-03-25  Bruno Haible  <bruno@clisp.org>
19851
19852         New module 'unictype/combining-class-all'.
19853         * modules/unictype/combining-class-all: New file.
19854
19855         Tests for module 'unictype/combining-class-byname'.
19856         * modules/unictype/combining-class-byname-tests: New file.
19857         * tests/unictype/test-combiningclass_byname.c: New file.
19858
19859         New module 'unictype/combining-class-byname'.
19860         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19861         * lib/unictype/combiningclass_byname.c: New file.
19862         * lib/unictype/combiningclass_byname.gperf: New file.
19863         * modules/unictype/combining-class-byname: New file.
19864
19865         Tests for module 'unictype/combining-class-longname'.
19866         * modules/unictype/combining-class-longname-tests: New file.
19867         * tests/unictype/test-combiningclass_longname.c: New file.
19868
19869         New module 'unictype/combining-class-longname'.
19870         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19871         * lib/unictype/combiningclass_longname.c: New file.
19872         * modules/unictype/combining-class-longname: New file.
19873
19874         Tests for module 'unictype/combining-class-name'.
19875         * modules/unictype/combining-class-name-tests: New file.
19876         * tests/unictype/test-combiningclass_name.c: New file.
19877
19878         New module 'unictype/combining-class-name'.
19879         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19880         * lib/unictype/combiningclass_name.c: New file.
19881         * modules/unictype/combining-class-name: New file.
19882
19883 2011-03-25  Bruno Haible  <bruno@clisp.org>
19884
19885         unictype/combining-class: Rename source files.
19886         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19887         of unictype/combining.h.
19888         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19889         Update.
19890         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19891         * modules/unictype/combining-class (Description): Fix.
19892         (Files, Makefile.am): Update.
19893         * tests/unictype/test-combiningclass.c: Renamed from
19894         tests/unictype/test-combining.c.
19895         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19896
19897 2011-03-25  Bruno Haible  <bruno@clisp.org>
19898
19899         unictype: Update list of canonical combining classes.
19900         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19901
19902 2011-03-25  Bruno Haible  <bruno@clisp.org>
19903
19904         unictype/category-byname: Recognize long names as well.
19905         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19906         a long name.
19907         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19908         unictype/categ_byname.h.
19909         (UC_CATEGORY_INDEX_*): New enumeration values.
19910         (uc_general_category_byname): Use uc_general_category_lookup and
19911         convert from index to value.
19912         * lib/unictype/categ_byname.gperf: New file.
19913         * modules/unictype/category-byname (Files): Add
19914         lib/unictype/categ_byname.gperf.
19915         (Depends-on): Add gperf.
19916         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19917         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19918         long names.
19919
19920         Tests for module 'unictype/category-longname'.
19921         * modules/unictype/category-longname-tests: New file.
19922         * tests/unictype/test-categ_longname.c: New file.
19923
19924         New module 'unictype/category-longname'.
19925         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19926         * lib/unictype/categ_longname.c: New file.
19927         * modules/unictype/category-longname: New file.
19928         * modules/unictype/category-all (Depends-on): Add it.
19929
19930 2011-03-25  Bruno Haible  <bruno@clisp.org>
19931
19932         Tests for module 'unictype/category-LC'.
19933         * modules/unictype/category-LC-tests: New file.
19934         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19935
19936         New module 'unictype/category-LC'.
19937         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19938         (UC_CATEGORY_LC): New declaration.
19939         (UC_CASED_LETTER): New macro.
19940         * lib/gen-uni-tables.c (is_category_LC): New function.
19941         (output_categories): Also handle category LC.
19942         (UC_CATEGORY_MASK_LC): New enumeration value.
19943         (general_category_byname): Also handle category LC.
19944         * lib/unictype/categ_LC.c: New file.
19945         * lib/unictype/categ_LC.h: New file, automatically generated.
19946         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19947         category LC.
19948         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19949         * modules/unictype/category-LC: New file.
19950         * modules/unictype/category-byname (Depends-on): Add
19951         unictype/category-LC.
19952         * modules/unictype/category-all (Depends-on): Likewise.
19953
19954 2011-03-25  Eric Blake  <eblake@redhat.com>
19955
19956         xmalloc: revert yesterday's regression
19957         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19958         realloc's underlying behavior (allowing allocation of zero-size
19959         objects, especially if malloc-gnu is also in use).
19960
19961 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19962
19963         maint.mk: add missing version to VC-tag
19964         * top/maint.mk: git tag was missing actual tag name; add it.
19965
19966         valgrind: do leak checking, and exit with code 1 on error (not 0)
19967         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19968         to VALGRIND.
19969
19970 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19971
19972         posix-modules: say what it does.
19973         * posix-modules: Add a line to the --help output saying what it does.
19974
19975 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         xmalloc: Do not leak if underlying realloc is C99 compatible.
19978         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19979         This avoids a leak on C99-based systems.  See
19980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19981
19982 2011-03-24  Eric Blake  <eblake@redhat.com>
19983
19984         realloc: document portability problem
19985         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19986         passing 0 size to realloc.
19987
19988 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19989
19990         doc: update users.txt
19991         * users.txt: Add cvsps, tmpwatch
19992
19993 2011-03-23  Matt Rice  <ratmice@gmail.com>
19994
19995         doc: update users.txt
19996         * users.txt: Add gdb.
19997
19998 2011-03-23  Jim Meyering  <meyering@redhat.com>
19999
20000         doc: update users.txt
20001         Looking through matches up to the following URL (there are still
20002         several more pages), I found several projects that use gnulib:
20003         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20004         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20005         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20006
20007 2011-03-22  Bruno Haible  <bruno@clisp.org>
20008
20009         unictype/bidi*: Rename functions.
20010         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20011         uc_bidi_class, uc_is_bidi_class): New declarations.
20012         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20013         uc_bidi_category_byname.
20014         (uc_bidi_category_byname): New function.
20015         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20016         u_bidi_category_name.
20017         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20018         (uc_bidi_category_name): New function.
20019         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20020         uc_bidi_category.
20021         (uc_bidi_category): New function.
20022         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20023         uc_is_bidi_category. Invoke uc_bidi_class.
20024         (uc_is_bidi_category): New function.
20025         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20026         instead of uc_bidi_category_byname.
20027         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20028         instead of uc_bidi_category_name.
20029         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20030         uc_bidi_category.
20031         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20032         instead of uc_is_bidi_category.
20033
20034 2011-03-21  Bruno Haible  <bruno@clisp.org>
20035
20036         New module 'unictype/joininggroup-all'.
20037         * modules/unictype/joininggroup-all: New file.
20038
20039         Tests for module 'unictype/joininggroup-of'.
20040         * modules/unictype/joininggroup-of-tests: New file.
20041         * tests/unictype/test-joininggroup_of.c: New file.
20042         * tests/unictype/test-joininggroup_of.h: New file, automatically
20043         generated by gen-uni-tables.
20044
20045         New module 'unictype/joininggroup-of'.
20046         * modules/unictype/joininggroup-of: New file.
20047         * lib/unictype/joininggroup_of.c: New file.
20048         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20049         gen-uni-tables.
20050
20051         Tests for module 'unictype/joininggroup-byname'.
20052         * modules/unictype/joininggroup-byname-tests: New file.
20053         * tests/unictype/test-joininggroup_byname.c: New file.
20054
20055         New module 'unictype/joininggroup-byname'.
20056         * modules/unictype/joininggroup-byname: New file.
20057         * lib/unictype/joininggroup_byname.c: New file.
20058         * lib/unictype/joininggroup_byname.gperf: New file.
20059
20060         Tests for module 'unictype/joininggroup-name'.
20061         * modules/unictype/joininggroup-name-tests: New file.
20062         * tests/unictype/test-joininggroup_name.c: New file.
20063
20064         New module 'unictype/joininggroup-name'.
20065         * modules/unictype/joininggroup-name: New file.
20066         * lib/unictype/joininggroup_name.c: New file.
20067         * lib/unictype/joininggroup_name.h: New file.
20068
20069         New module 'unictype/joiningtype-all'.
20070         * modules/unictype/joiningtype-all: New file.
20071
20072         Tests for module 'unictype/joiningtype-of'.
20073         * modules/unictype/joiningtype-of-tests: New file.
20074         * tests/unictype/test-joiningtype_of.c: New file.
20075         * tests/unictype/test-joiningtype_of.h: New file, automatically
20076         generated by gen-uni-tables.
20077
20078         New module 'unictype/joiningtype-of'.
20079         * modules/unictype/joiningtype-of: New file.
20080         * lib/unictype/joiningtype_of.c: New file.
20081         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20082         gen-uni-tables.
20083
20084         Tests for module 'unictype/joiningtype-byname'.
20085         * modules/unictype/joiningtype-byname-tests: New file.
20086         * tests/unictype/test-joiningtype_byname.c: New file.
20087
20088         New module 'unictype/joiningtype-byname'.
20089         * modules/unictype/joiningtype-byname: New file.
20090         * lib/unictype/joiningtype_byname.c: New file.
20091
20092         Tests for module 'unictype/joiningtype-name'.
20093         * modules/unictype/joiningtype-name-tests: New file.
20094         * tests/unictype/test-joiningtype_name.c: New file.
20095
20096         New module 'unictype/joiningtype-name'.
20097         * modules/unictype/joiningtype-name: New file.
20098         * lib/unictype/joiningtype_name.c: New file.
20099
20100         unictype: Add support for Arabic shaping properties.
20101         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20102         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20103         declarations.
20104         (UC_JOINING_GROUP_*): New enumeration values.
20105         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20106         declarations.
20107         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20108         (unicode_joining_type): New variable.
20109         (UC_JOINING_GROUP_*): New enumeration values.
20110         (unicode_joining_group): New variable.
20111         (fill_arabicshaping, joining_type_as_c_identifier,
20112         output_joining_type_test, output_joining_type,
20113         joining_group_as_c_identifier, output_joining_group_test,
20114         output_joining_group): New functions.
20115         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20116         fill_arabicshaping and output_joining_type_test, output_joining_type,
20117         output_joining_group_test, output_joining_group.
20118         Reported by Simon Josefsson.
20119
20120 2011-03-21  Jim Meyering  <meyering@redhat.com>
20121
20122         strftime: fix a bug in yesterday's change
20123         * lib/strftime.c (add): Accommodate width's initial value of -1.
20124         Otherwise, nstrftime would copy uninitialized data into
20125         the result buffer.
20126
20127 2011-03-21  Jim Meyering  <meyering@redhat.com>
20128
20129         tests: add strftime-tests module
20130         * tests/test-strftime.c: New file.
20131         * modules/strftime-tests: New module.
20132
20133 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         strftime: don't assume a byte count fits in 'int'
20136         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20137         found this problem by static analysis, using gcc -Wstrict-overflow
20138         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20139         on an integer overflow having undefined behavior, but it turns out
20140         that the argument is a size, which might not fit in 'int' anyway,
20141
20142 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20143
20144         stdio: don't require ignore_value around fwrite
20145
20146         This patch works around libc bug 11959
20147         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20148         Without this patch, applications must often write
20149         ignore_value (fwrite (...)) even though the ignore_value is
20150         not helpful here.  It's common to write many objects, using
20151         fwrite/printf/etc., and then use ferror to detect output error.
20152
20153         I considered making this patch optional, but decided against it,
20154         because libc is obviously being inconsistent here: there is no
20155         reason libc should insist that user code must inspect fwrite
20156         return's value without also insisting that it inspect printf's,
20157         putchar's, etc.  If user code wants to have a strict style where
20158         all these functions' values are checked (so that ferror need not
20159         be checked), we could add support for that style in a new gnulib
20160         module, but in the meantime it's better to be consistent and to
20161         support common usage.
20162
20163         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20164         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20165         that we are compiling in checking mode, and if not C++, and
20166         if not already wrapping fwrite for some other reason.
20167         (fwrite): #define to rpl_fwrite if the latter is defined.
20168
20169 2011-03-20  Bruno Haible  <bruno@clisp.org>
20170
20171         verror: Fix compilation error introduced on 2011-02-13.
20172         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20173         instead of __attribute__.
20174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20175
20176 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20177             Bruno Haible  <bruno@clisp.org>
20178
20179         socklen: do not depend on sys_socket
20180         While trying to modify Emacs to use gnulib's socklen module,
20181         I discovered a circular dependency: socklen depends on sys_socket
20182         and vice versa.  Emacs can use socklen, but it does not need
20183         sys_socket because it has its own substitute for sys/socket.h.
20184         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20185         gl_TYPE_SOCKLEN_T.
20186         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20187         gl_PREREQ_SYS_H_SOCKET.
20188         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20189         gl_PREREQ_SYS_H_SOCKET.
20190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20191         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20192         * modules/socklen (Depends-on): Do not depend on sys_socket.
20193         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20194
20195 2011-03-20  Jim Meyering  <meyering@redhat.com>
20196
20197         maint.mk: sort file names *after* new transformation
20198         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20199         prefix would have led to an unwarranted failure in GNU parted.
20200         Sort after that transformation.
20201
20202 2011-03-19  Jim Meyering  <meyering@redhat.com>
20203
20204         maint.mk: fix po-file syntax-check rule
20205         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20206         Patch by Bruno Haible.
20207
20208 2011-03-19  Bruno Haible  <bruno@clisp.org>
20209
20210         socklen: Update comment.
20211         * m4/socklen.m4: Update comment about platforms.
20212
20213 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20214             Bruno Haible  <bruno@clisp.org>
20215
20216         inet_ntop, inet_pton: Simplify.
20217         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20218         documented to provide socklen_t and we already depend on sys_socket.
20219         * modules/inet_pton (Depends-on): Likewise.
20220         * lib/arpa_inet.in.h: Adjust comment.
20221
20222 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20223             Bruno Haible  <bruno@clisp.org>
20224
20225         netdb: Simplify.
20226         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20227         documented to provide socklen_t and we already depend on sys_socket.
20228         * lib/netdb.in.h: Adjust comment.
20229
20230 2011-03-19  Bruno Haible  <bruno@clisp.org>
20231
20232         sys_socket, netdb: Document problem with socklen_t.
20233         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20234         platforms.
20235         * doc/posix-headers/netdb.texi: Likewise.
20236
20237 2011-03-18  Eric Blake  <eblake@redhat.com>
20238
20239         maint.mk: let po check work in VPATH build
20240         * top/maint.mk (po_file): Allow cfg.mk override.
20241         (sc_po_check): Allow VPATH use.
20242         Reported by Jiri Denemark.
20243
20244 2011-03-16  Jim Meyering  <meyering@redhat.com>
20245
20246         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20247         Before, you would have had to create one .x-sc_ file per rule in order
20248         to exempt offending files.  Now, you may instead use a Make variable --
20249         usually defined in cfg.mk -- whose name identifies the affected rule.
20250         * top/maint.mk (_sc_excl): Define.
20251         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20252         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20253
20254 2011-03-13  Bruno Haible  <bruno@clisp.org>
20255
20256         ignore-value tests: Avoid warnings.
20257         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20258         empty for gcc < 3.4.
20259
20260 2011-03-13  Bruno Haible  <bruno@clisp.org>
20261
20262         passfd: Fix link error on Solaris.
20263         * modules/passfd (Description): Correct.
20264         (Depends-on): Add socketlib.
20265         (Link): New section.
20266         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20267
20268 2011-03-13  Bruno Haible  <bruno@clisp.org>
20269
20270         passfd: Fix link error on AIX 5.2.
20271         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20272
20273 2011-03-13  Bruno Haible  <bruno@clisp.org>
20274
20275         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20276         * lib/sys_socket.in.h: Include <stddef.h>.
20277         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20278         CMSG_FIRSTHDR. Remove unused variable.
20279
20280 2011-03-13  Bruno Haible  <bruno@clisp.org>
20281
20282         passfd: Fix compilation error on OpenBSD.
20283         * lib/passfd.c: Include <sys/uio.h>.
20284
20285 2011-03-13  Bruno Haible  <bruno@clisp.org>
20286
20287         passfd test: Fix warnings.
20288         * tests/test-passfd.c: Include <sys/wait.h>.
20289         (main): Fix typo.
20290
20291 2011-03-13  Bruno Haible  <bruno@clisp.org>
20292
20293         passfd module, part 4, tweaks.
20294         * tests/test-passfd.c: Reorder includes.
20295         (main): Fix perror and printf calls.
20296
20297 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20298
20299         passfd module, part 4.
20300         * modules/passfd-tests: New file.
20301         * tests/test-passfd.c: New file.
20302
20303 2011-03-13  Jim Meyering  <meyering@redhat.com>
20304
20305         Makefile: rely on GNU make; derive syntax-check rule names
20306         Rather than requiring that each sc_ rule be listed as a dependent
20307         of "check", use features of GNU make to derive the list.
20308         * Makefile (syntax-check-rules): Define.
20309         (check): Depend on the new variable, not the hard-coded list.
20310
20311 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20312             Bruno Haible  <bruno@clisp.org>
20313
20314         passfd module, part 3.
20315         * lib/passfd.h (recvfd): Add a flags argument.
20316         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20317         (recvfd): Add a flags argument.
20318         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20319         exists.
20320         * modules/passfd (Depends-on): Add cloexec.
20321         Suggested by Eric Blake.
20322
20323 2011-03-13  Bruno Haible  <bruno@clisp.org>
20324
20325         passfd module, part 2, tweaks.
20326         * modules/passfd (Files): Reorder.
20327         (Depends-on): Remove errno.
20328         (Include): Remove <sys/socket.h>, <sys/un.h>.
20329         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20330         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20331         specification header. Include <sys/socket.h> always. Don't include
20332         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20333         (sendfd): Clarify that it sets errno when it fails.
20334         (recvfd): Fix specification.
20335
20336 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20337
20338         passfd module, part 2.
20339         * modules/passfd: New file.
20340         * lib/passfd.h: New file.
20341         * lib/passfd.c: New file.
20342
20343 2011-03-12  Bruno Haible  <bruno@clisp.org>
20344
20345         wcswidth, mbswidth: Avoid integer overflow.
20346         * lib/wcswidth.c: Include <limits.h>.
20347         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20348         * lib/mbswidth.c: Include <limits.h>.
20349         (mbsnwidth): Avoid 'int' overflow.
20350         Reported by Jim Meyering.
20351
20352 2011-03-12  Bruno Haible  <bruno@clisp.org>
20353
20354         futimens, utimensat: Avoid endless recursion on Solaris 10.
20355         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20356         Solaris.
20357         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20358         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20359
20360 2011-03-11  Jim Meyering  <meyering@redhat.com>
20361
20362         maint.mk: relax a regexp to accommodate other formatting styles
20363         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20364         between "ngettext" and the following "(".
20365
20366 2011-03-11  Pádraig Brady <P@draigBrady.com>
20367
20368         maint.mk: suppress a false positive warning
20369         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20370         diagnostics are marked with ngettext.
20371
20372 2011-03-10  Eric Blake  <eblake@redhat.com>
20373
20374         wchar: add explicit dependencies, for Tru64
20375         * modules/mbmemcasecoll (Depends-on): Add wchar.
20376         * modules/mbtowc (Depends-on): Likewise.
20377         * modules/vasnprintf (Depends-on): Likewise.
20378         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20379         * modules/wctomb (Depends-on): Likewise.
20380         Reported by Peter O'Gorman.
20381
20382 2011-03-08  Bruno Haible  <bruno@clisp.org>
20383
20384         passfd module, part 1, tweaks.
20385         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20386         Improve indentation. Improve AC_MSG_CHECKING messages.
20387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20388         gl_SOCKET_FAMILIES.
20389
20390 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20391
20392         passfd module, part 1.
20393         * m4/afunix.m4: New file.
20394         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20395         sockets.
20396
20397 2011-03-08  Bruno Haible  <bruno@clisp.org>
20398
20399         regex-quote: New API.
20400         * lib/regex-quote.h: Include <stdbool.h>.
20401         (struct regex_quote_spec): New type.
20402         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20403         New declarations.
20404         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20405         'const struct regex_quote_spec *' argument.
20406         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20407         (pcre_special): New constant.
20408         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20409         New functions.
20410         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20411         'const struct regex_quote_spec *' argument.
20412         * modules/regex-quote (Depends-on): Add stdbool.
20413         * tests/test-regex-quote.c (check): Update for new API. Add test for
20414         anchored results.
20415         * NEWS: Mention the API change.
20416         Reported by Reuben Thomas and Eric Blake.
20417
20418 2011-03-06  Bruno Haible  <bruno@clisp.org>
20419
20420         regex-quote: Fix creation of POSIX extended regular expressions.
20421         * lib/regex-quote.c (ere_special): Add grouping and alternation
20422         operators.
20423
20424 2011-03-05  Bruno Haible  <bruno@clisp.org>
20425
20426         doc: Improve doc regarding autopoint vs. gnulib.
20427         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20428         disable autopoint while running autoreconf.
20429         Suggested by Ralf Wildenhues.
20430
20431 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20432
20433         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20434         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20435
20436 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20437
20438         parse-duration: remove xalloc.h dependency
20439         * lib/parse-duration.c (parse_period): handle NULL return from
20440         strdup instead of calling xstrdup().
20441         * modules/parse-duration: remove "xalloc" dependency
20442
20443 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20444
20445         bootstrap: honor m4_base when running aclocal
20446         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20447
20448 2011-03-02  Jim Meyering  <meyering@redhat.com>
20449
20450         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20451         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20452         on request from Matt Booth.
20453
20454 2011-03-01  Eric Blake  <eblake@redhat.com>
20455
20456         test-link: work on Hurd
20457         * tests/test-link.h (test_link): Hurd rejects linking directories
20458         with EISDIR instead of the POSIX-mandated EPERM.
20459
20460 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20461
20462         stdio: simplify by moving files to printf-posix, sigpipe
20463         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20464         since this symbol is needed only if printf is replaced.
20465         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20466         Require gl_ASM_SYMBOL_PREFIX.
20467         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20468         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20469         (Depends-on): Add 'raise'.
20470         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20471         * modules/stdio (Files): Remove lib/stdio-write.c,
20472         m4/asm-underscore.m4.
20473         (Depends-on): Remove 'raise'.
20474
20475         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20476         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20477         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20478         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20479
20480 2011-02-28  Bruno Haible  <bruno@clisp.org>
20481
20482         localcharset: Assume ANSI C behaviour of free().
20483         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20484         calling free().
20485         Suggested by Simon Josefsson <simon@josefsson.org>.
20486
20487 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20488             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20489             Bruno Haible  <bruno@clisp.org>  (tiny change)
20490
20491         On Cygwin, use /proc file system instead of win32 API.
20492         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20493         Win32 file names.
20494         (DllMain): Simplify by removing Cygwin specific code.
20495         (find_shared_library_fullname): Use Linux specific implementation also
20496         for Cygwin.
20497         (get_shared_library_fullname): Update accordingly.
20498         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20499         Win32 file names.
20500         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20501         Cygwin specific code.
20502
20503 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20504             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20505
20506         Fix OpenMP flag detection for various Fortran compilers.
20507         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20508         OpenMP-conditional compilation construct, to force compile
20509         failure with missing OpenMP flag.
20510         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20511
20512 2011-02-25  Eric Blake  <eblake@redhat.com>
20513
20514         strstr: expand test coverage
20515         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20516         compilation.
20517         * tests/test-memmem.c (main): Duplicate tests.
20518         * tests/test-strcasestr.c (main): Likewise.
20519         * tests/test-c-strcasestr.c (main): Likewise.
20520
20521 2011-02-25  Jim Meyering  <meyering@redhat.com>
20522
20523         maint.mk: detect missing-NL-at-EOF, too
20524         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20525         it also detects when a file lacks a newline at EOF.
20526         (require_exactly_one_NL_at_EOF_): Renamed from
20527         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20528         since people may well have .x-sc_... file names tied to the
20529         existing name.  Suggested by Eric Blake.
20530
20531 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20532
20533         dirname: move m4/dos.m4 functionality into lib/dosname.h
20534
20535         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20536         extracts symbols from it, puts them into config.h; but it's much
20537         easier to use the symbols directly.  filename.h already does this,
20538         but it disagrees with dos.m4 in some respects.  This patch
20539         introduces a different include file dosname.h that packages up
20540         dos.m4, and then later we can work on merging filename.h and
20541         dosname.h.  Applications that need only the easy-to-configure
20542         symbols should consider including dosname.h rather than dirname.h.
20543         * NEWS: Mention incompatible changes.
20544         * m4/dos.m4: Remove.
20545         * lib/dosname.h, modules/dosname: New files.
20546         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20547         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20548         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20549         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20550         Include dosname.h, not dirname.h.
20551         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20552         Include dosname.h, for definitions of symbols like ISSLASH
20553         that used to be in config.h.
20554         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20556         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20557         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20558         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20559         * modules/rmdir (Files): Likewise.
20560         * modules/stat (Files): Likewise.
20561         * modules/unlink (Files): Likewise.
20562         * modules/dirname-lgpl (Depends-on): Add dosname.
20563         * modules/lstat (Depends-on): Likewise.
20564         * modules/openat (Depends-on): Likewise.
20565         * modules/rmdir (Depends-on): Likewise.
20566         * modules/savewd (Depends-on): Likewise.
20567         * modules/stat (Depends-on): Likewise.
20568         * modules/unlink (Depends-on): Likewise.
20569         * modules/openat (Depends-on): Remove dirname-lgpl.
20570         * modules/savewd (Depends-on): Likewise.
20571         * tests/test-dirname.c: Do not use removed symbols like
20572         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20573         the remaining symbols, e.g., ISSLASH ('\\').
20574
20575 2011-02-25  Eric Blake  <eblake@redhat.com>
20576
20577         strstr: revert patches that introduced bug and pessimization
20578         * lib/str-two-way.h: Add another reference.
20579         (two_way_short_needle, two_way_long_needle): Revert changes from
20580         2011-02-24; they pessimize search speed.
20581         (critical_factorization): Partially revert changes from
20582         2010-06-22; they violate the requirement that the left half of the
20583         needle be smaller than the period of the needle.
20584
20585 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         filenamecat: remove unnecessary dependency on dirname-lgpl
20588         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20589         is no direct dependency, just an indirect one via filenamecat-lgpl.
20590
20591         remove: remove unnecessary use of m4/dos.m4
20592         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20593         * modules/remove (FILES): Remove m4/dos.m4.
20594
20595         * lib/openat-proc.c: Don't include dirname.h; not needed.
20596
20597         backupfile: remove unnecessary use of m4/dos.m4
20598         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20599         of its symbols are used by the backupfile code.  backupfile.c does
20600         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20601         for the rare case of programs that want all their backup file
20602         names to live within 8+3 limits, and dos.m4 doesn't address that.
20603         * modules/backupfile (Files): Remove m4/dos.m4.
20604
20605 2011-02-24  Jim Meyering  <meyering@redhat.com>
20606
20607         strstr: fix a bug whereby strstr would mistakenly return NULL
20608         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20609         in period calculation.
20610         (two_way_long_needle): Likewise.
20611         The original problem was reported by Mike Stump in
20612         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20613         Ralf Wildenhues provided the short needle and haystack.
20614         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20615         Add a more involved test to trigger the bug in two_way_long_needle.
20616
20617 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20618
20619         gnulib-tool: remove use of bold display in help screen
20620         * gnulib-tool (func_usage): Do not use bold display anymore in the
20621         help screen.  That was just meant to be a temporary emphasis for a
20622         backward-incompatible change.
20623
20624 2011-02-23  Bruno Haible  <bruno@clisp.org>
20625
20626         Fix misindentation of preprocessor directives.
20627         * lib/argp-namefrob.h: Reindent preprocessor directives.
20628         * lib/getopt_int.h (struct _getopt_data): Likewise.
20629         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20630         * lib/vasnprintf.c (decode_long_double): Likewise.
20631         * tests/test-argmatch.c: Insert blank lines, for clarity.
20632         * tests/test-exclude.c: Likewise.
20633
20634 2011-02-22  Bruno Haible  <bruno@clisp.org>
20635
20636         ioctl: Fix for MacOS X in 64-bit mode.
20637         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20638         value.
20639         Suggested by Eric Blake.
20640         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20641
20642 2011-02-22  Jim Meyering  <meyering@redhat.com>
20643
20644         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20645         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20646         in lib/.
20647
20648 2011-02-22  Eric Blake  <eblake@redhat.com>
20649
20650         maint: avoid any CDPATH issue
20651         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20652
20653         maint: adjust cpp indentation for my modules, as well
20654         * Makefile (sc_cpp_indent_check): Add my name.
20655         * lib/fbufmode.c: Filter through cppi.
20656         * lib/fpurge.c: Likewise.
20657         * lib/freadable.c: Likewise.
20658         * lib/freading.c: Likewise.
20659         * lib/fwritable.c: Likewise.
20660         * lib/fwriting.c: Likewise.
20661         * lib/sigaction.c: Likewise.
20662
20663 2011-02-22  Jim Meyering  <meyering@redhat.com>
20664
20665         maint: adjust cpp indentation to reflect nesting depth
20666         I.e., in a block of code that begins with an unnested "#if",
20667         put one space between the "#" in column 1 and following token.
20668         For example,
20669         -#include <sys/vfs.h>
20670         +# include <sys/vfs.h>
20671         Do this only in .c files that are part of a module I maintain.
20672         * lib/linkat.c: Filter through cppi.
20673         * lib/nanosleep.c: Likewise.
20674         * lib/openat.c: Likewise.
20675         * lib/openat-die.c: Likewise.
20676         * lib/dup3.c: Likewise.
20677         * lib/fchownat.c: Likewise.
20678         * lib/flock.c: Likewise.
20679         * lib/fsync.c: Likewise.
20680         * lib/fts.c: Likewise.
20681         * lib/getpass.c: Likewise.
20682         * lib/gettimeofday.c: Likewise.
20683         * lib/userspec.c: Likewise.
20684         * Makefile (sc_cpp_indent_check): New rule, to check this.
20685
20686 2011-02-22  Bruno Haible  <bruno@clisp.org>
20687
20688         New module 'wctomb'.
20689         * lib/stdlib.in.h (wctomb): New declaration.
20690         * lib/wctomb.c: New file.
20691         * lib/wctomb-impl.h: New file.
20692         * m4/wctomb.m4: New file.
20693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20694         REPLACE_WCTOMB.
20695         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20696         REPLACE_WCTOMB.
20697         * modules/wctomb: New file.
20698         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20699         * doc/posix-functions/wctomb.texi: Mention the new module.
20700         * modules/wctob (Depends-on): Add wctomb.
20701
20702 2011-02-22  Bruno Haible  <bruno@clisp.org>
20703
20704         New module 'mbtowc'.
20705         * lib/stdlib.in.h (mbtowc): New declaration.
20706         * lib/mbtowc.c: New file.
20707         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20708         * m4/mbtowc.m4: New file.
20709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20710         REPLACE_MBTOWC.
20711         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20712         REPLACE_MBTOWC.
20713         * modules/mbtowc: New file.
20714         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20715         * doc/posix-functions/mbtowc.texi: Mention the new module.
20716         * modules/btowc (Depends-on): Add mbtowc.
20717
20718 2011-02-22  Bruno Haible  <bruno@clisp.org>
20719
20720         wcrtomb: Add more tests for native Windows platforms.
20721         * tests/test-wcrtomb-w32-1.sh: New file.
20722         * tests/test-wcrtomb-w32-2.sh: New file.
20723         * tests/test-wcrtomb-w32-3.sh: New file.
20724         * tests/test-wcrtomb-w32-4.sh: New file.
20725         * tests/test-wcrtomb-w32-5.sh: New file.
20726         * tests/test-wcrtomb-w32.c: New file.
20727         * modules/wcrtomb-tests (Files): Add them.
20728         (Makefile.am): Arrange to run these tests.
20729         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20730         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20731
20732 2011-02-20  Bruno Haible  <bruno@clisp.org>
20733
20734         wcrtomb: Enhance test.
20735         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20736
20737 2011-02-20  Bruno Haible  <bruno@clisp.org>
20738
20739         mbrtowc: Tiny optimization.
20740         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20741
20742 2011-02-20  Jim Meyering  <meyering@redhat.com>
20743
20744         test-exclude.c: remove unmatched #endif
20745         * tests/test-exclude.c: Remove stray #endif, left over from
20746         the change of a week ago.
20747
20748 2011-02-19  Jim Meyering  <meyering@redhat.com>
20749
20750         git-version-gen: skip "-dirty" check when appropriate
20751         * build-aux/git-version-gen: Don't run any git commands when the
20752         version string comes from .tarball-version.  Prior to this, we
20753         would run git update-index --refresh even from a just-unpacked
20754         tarball directory, and that could affect a .git/ directory in a
20755         parent of the build directory.  Reported by Mike Frysinger.
20756
20757 2011-02-19  Bruno Haible  <bruno@clisp.org>
20758
20759         unictype/property-byname: Reduce the size of the 'data' segment.
20760         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20761
20762 2011-02-19  Bruno Haible  <bruno@clisp.org>
20763
20764         unictype/scripts: Reduce the size of the 'data' segment.
20765         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20766         '%pic'.
20767         * lib/unictype/scripts_byname.gperf: Regenerated.
20768
20769 2011-02-19  Bruno Haible  <bruno@clisp.org>
20770
20771         stdint: Update documentation.
20772         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20773
20774 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         stdint: omit redundant check for wchar.h
20777         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20778         always tests whether wchar.h exists, so remove the now-redundant test.
20779
20780 2011-02-18  Bruno Haible  <bruno@clisp.org>
20781
20782         stdint: Cut dependency to module 'wchar'.
20783         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20784         include the necessary prerequisites.
20785         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20786         * modules/stdint (Depends-on): Remove wchar.
20787         (Makefile.am): Substitute HAVE_WCHAR_H.
20788         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20789
20790 2011-02-18  Eric Blake  <eblake@redhat.com>
20791
20792         longlong: skip, rather than fail, on cross-compilation
20793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20794         when cross-compiling; regression from 2011-02-16.
20795
20796 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20797
20798         * NEWS: Mention 2011-02-08 change to stdlib.
20799
20800 2011-02-17  Bruno Haible  <bruno@clisp.org>
20801
20802         getloadavg: Add comments about platforms.
20803         * m4/getloadavg.m4: Add comment.
20804         * lib/getloadavg.c: Likewise.
20805
20806 2011-02-17  Bruno Haible  <bruno@clisp.org>
20807
20808         getloadavg: Fix link error on Solaris 2.6.
20809         * modules/getloadavg (Link): New section.
20810         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20811         linking test-getloadavg.
20812         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20813         getloadavg.
20814
20815 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20816
20817         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20818         It was 'int', but this doesn't match the IRIX 6.5 manual.
20819         Suggested by Bruno Haible in
20820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20821
20822 2011-02-17  Bruno Haible  <bruno@clisp.org>
20823
20824         havelib: Fix comments.
20825         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20826         change.
20827
20828 2011-02-17  Bruno Haible  <bruno@clisp.org>
20829
20830         havelib: Update config.rpath.
20831         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20832
20833 2011-02-17  Bruno Haible  <bruno@clisp.org>
20834
20835         getloadavg test: Add some plausibility checks.
20836         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20837         is improbable.
20838
20839 2011-02-16  Eric Blake  <eblake@redhat.com>
20840
20841         maintainer-makefile: make syntax-check a no-op from tarballs
20842         * top/maint.mk (no-vc-detected): New rule.
20843         (local-checks-available): Use it to avoid hanging if someone tries
20844         'make syntax-check' from a tarball.  Also append to any non-syntax
20845         checks already defined in cfg.mk.
20846
20847 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         longlong: tune, particularly for common case of c99
20850
20851         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20852         or running anything if c99, or if unsigned long long int does not
20853         work.  In either case, we know the answer without further tests.
20854         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20855         it at most once, and use its results for both long long int and
20856         unsigned long long int.  This is more likely to be efficient in
20857         the common case where the program wants to check for both long
20858         long int and unsigned long long int.
20859         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20860         since the answer is already known.
20861
20862 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20863
20864         getloadavg: set errno
20865         * lib/getloadavg.c: Set errno when returning -1.  If no other
20866         error number looks appropriate, set it to ENOSYS if the getloadavg
20867         looks like it can't possibly ever work, ENOTSUP otherwise.
20868         Suggested by Bruno Haible in
20869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20870
20871         getloadavg: trim unused parts and speed up 'configure'
20872         * NEWS: Document this.
20873         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20874         always compiled if getloadavg is absent.
20875         Move test code to ...
20876         * tests/test-getloadavg.c: New file, containing previous
20877         contents of test from lib/getloadavg.c.  It also contains
20878         suggestions by Bruno Haible in
20879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20880         * modules/getloadavg-tests: New file.
20881         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20882         Do tests in the same order as they're needed for getloadavg.c.
20883         Omit setgid-related tests that generate symbols KMEM_GROUP,
20884         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20885         Do only the tests that are needed to see whether the system has
20886         getloadavg, moving the other tests into ...
20887         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20888         NLIST_NAME_UNION; nobody should be using it.  Do not define
20889         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20890         relevant, as the user of this module shouldn't care how getloadavg
20891         is implemented.
20892
20893         getloadavg: omit unused var
20894         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20895
20896 2011-02-15  Jim Meyering  <meyering@redhat.com>
20897
20898         doc: update users.txt
20899         * users.txt: Update iwhd's URL.
20900
20901 2011-02-13  Bruno Haible  <bruno@clisp.org>
20902
20903         Consistent macro naming for macros that use GCC __attribute__.
20904         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20905         _ATTRIBUTE_NONNULL_.
20906         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20907         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20908         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20909         ATTRIBUTE_DEPRECATED.
20910         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20911         ATTRIBUTE_NORETURN.
20912         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20913         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20914         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20915         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20916         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20917         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20918         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20919         ATTRIBUTE_SENTINEL.
20920         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20921         ATTRIBUTE_RETURN_CHECK.
20922         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20923         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20924         ATTRIBUTE_NORETURN.
20925         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20926         Reported by Paul Eggert.
20927
20928 2011-02-13  Bruno Haible  <bruno@clisp.org>
20929
20930         Don't interfere with a program's definition of __attribute__.
20931         * lib/argp.h (__attribute__): Remove definition.
20932         (_GL_ATTRIBUTE_FORMAT): New macro.
20933         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20934         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20935         (_GL_ATTRIBUTE_FORMAT): New macro.
20936         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20937         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20938         GCC 3 or newer.
20939         * lib/error.h (__attribute__): Remove definition.
20940         (_GL_ATTRIBUTE_FORMAT): New macro.
20941         (error, error_at_line): Use it.
20942         * lib/hash.h (__attribute__): Remove definition.
20943         (ATTRIBUTE_WUR): Update definition. Define always.
20944         * lib/openat.h (__attribute__): Remove definition.
20945         (ATTRIBUTE_NORETURN): Update definition. Define always.
20946         * lib/sigpipe-die.h (__attribute__): Remove definition.
20947         (ATTRIBUTE_NORETURN): Update definition. Define always.
20948         * lib/vasnprintf.h (__attribute__): Remove definition.
20949         (_GL_ATTRIBUTE_FORMAT): New macro.
20950         (asnprintf, vasnprintf): Use it.
20951         * lib/xalloc.h (__attribute__): Remove definition.
20952         (ATTRIBUTE_NORETURN): Update definition. Define always.
20953         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20954         * lib/xmemdup0.h (__attribute__): Remove definition.
20955         (ATTRIBUTE_NORETURN): Update definition. Define always.
20956         * lib/xprintf.h (__attribute__): Remove definition.
20957         (_GL_ATTRIBUTE_FORMAT): New macro.
20958         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20959         * lib/xstrtol.h (__attribute__): Remove definition.
20960         (ATTRIBUTE_NORETURN): Update definition. Define always.
20961         * lib/xvasprintf.h (__attribute__): Remove definition.
20962         (_GL_ATTRIBUTE_FORMAT): New macro.
20963         (xasprintf, xvasprintf): Use it.
20964         * tests/test-argmatch.c (__attribute__): Remove definition.
20965         (ATTRIBUTE_NORETURN): Update definition. Define always.
20966         * tests/test-exclude.c (__attribute__): Remove definition.
20967         (ATTRIBUTE_NORETURN): Update definition. Define always.
20968         Reported by Paul Eggert.
20969
20970 2011-02-13  Bruno Haible  <bruno@clisp.org>
20971
20972         mbrtowc: Add more tests for native Windows platforms.
20973         * tests/test-mbrtowc-w32-1.sh: New file.
20974         * tests/test-mbrtowc-w32-2.sh: New file.
20975         * tests/test-mbrtowc-w32-3.sh: New file.
20976         * tests/test-mbrtowc-w32-4.sh: New file.
20977         * tests/test-mbrtowc-w32-5.sh: New file.
20978         * tests/test-mbrtowc-w32.c: New file.
20979         * modules/mbrtowc-tests (Files): Add them.
20980         (Makefile.am): Arrange to run these tests.
20981         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20982         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20983
20984 2011-02-13  Bruno Haible  <bruno@clisp.org>
20985
20986         mbrtowc: Work around native Windows bug.
20987         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20988         guess when no suitable locale for testing was found.
20989         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20990
20991 2011-02-13  Bruno Haible  <bruno@clisp.org>
20992
20993         mbsinit: Work around mingw bug.
20994         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20995         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20996         Windows.
20997         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20998
20999 2011-02-13  Bruno Haible  <bruno@clisp.org>
21000
21001         mbsinit: Don't crash for a NULL argument.
21002         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21003         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21004
21005 2011-02-13  Bruno Haible  <bruno@clisp.org>
21006
21007         Don't interfere with a program's definition of __attribute__.
21008         * lib/stdio.in.h (__attribute__): Remove definition.
21009         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21010         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21011         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21012         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21013         * lib/string.in.h (__attribute__): Remove definition.
21014         Reported by Paul Eggert.
21015
21016 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21017
21018         stdlib: don't get in the way of non-GCC __attribute__
21019         See thread starting at
21020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21021         Revert previous stdlib change, installing the following instead:
21022         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21023         to get in the way of a non-GCC compiler that supports __attribute__.
21024         (_GL_ATTRIBUTE_RETURN): New macro.
21025         (_Exit): Use it instead of __attribute__.
21026
21027 2011-02-12  Bruno Haible  <bruno@clisp.org>
21028
21029         quotearg test: Avoid test failure on mingw.
21030         * tests/test-quotearg.sh: Convert the locale identifier from native
21031         Windows syntax to Unix syntax.
21032
21033 2011-02-12  Bruno Haible  <bruno@clisp.org>
21034
21035         setlocale: Prefer gnulib's override over libintl's override.
21036         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21037         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21038         GNULIB_defined_setlocale is set.
21039
21040 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21041
21042         stdlib: support non-GCC __attribute__
21043
21044         Fix a serious and tricky problem encountered when attempting to
21045         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21046         5.5, but it crashed due to memory corruption on Solaris 10 with
21047         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21048         bits that are otherwise zero.  This tagging is optional inside
21049         Emacs but is preferred and is used when __attribute__ ((__aligned
21050         (8))) works, as it does with both recent-enough GCC and with Sun C
21051         5.11.  However, Sun C 5.11 is not GCC and does not #define
21052         __GNUC__ and __GNUC_MINOR__.
21053
21054         When I added the getloadavg module to Emacs, it brought in
21055         stdlib.in.h, which contained this fragment:
21056
21057            #ifndef __attribute__
21058            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21059            #  define __attribute__(Spec)   /* empty */
21060            # endif
21061            #endif
21062
21063         When files that include <stdlib.h> were compiled with Sun C 5.11,
21064         the above code disabled __attribute__ ((__aligned (8))), which
21065         caused variables to not be properly aligned, which eventually led
21066         to the pointer corruption mentioned above.  (This was a bit hard
21067         to diagnose, unfortunately.)
21068
21069         Several "#define __attribute__(X) /* empty */" code snippets need
21070         to be eradicated from Gnulib to work with non-GCC compilers that
21071         support __attribute__.  The Autoconf way to do this is to test for
21072         each kind of attribute that we want support for, and selectively
21073         enable that in source code.
21074
21075         Fix this problem just for stdlib.h, by adding a test for the
21076         __noreturn__ attribute, and change stdlib.in.h to use that test
21077         when needed.  This technique can be easily generalized to the
21078         other *.in.h files and attributes, and a similar technique can be
21079         used for *.h and *.c files.  This patch is enough to solve the
21080         problem for Emacs + getloadavg, and I thought I'd publish it for
21081         feedback before undertaking further, similar fixes in other
21082         modules.
21083
21084         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21085         because it's not needed for stdlib.h.  It merely substitutes the
21086         value directly into stdlib.h.  We may well need to #define it, or
21087         similar symbols, for other modules, but it's nice to also have an
21088         option to not #define it for applications like Emacs that do not
21089         need it.
21090
21091         * lib/stdlib.in.h (__attribute__): Do not #define.
21092         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21093         be defined only if the _Exit module is also used.
21094         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21096         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21097         platforms.
21098         * modules/_Exit (Files): Add m4/attribute.m4.
21099         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21100         * m4/attribute.m4: New file.
21101
21102 2011-02-12  Bruno Haible  <bruno@clisp.org>
21103
21104         wcsrtombs: Work around bug on native Windows.
21105         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21106         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21107         instead of len.
21108         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21109
21110 2011-02-12  Bruno Haible  <bruno@clisp.org>
21111
21112         mbsrtowcs: Work around bug on native Windows.
21113         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21114         against mingw bug.
21115         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21116
21117 2011-02-12  Bruno Haible  <bruno@clisp.org>
21118
21119         Avoid setlocale bugs in tests.
21120         * modules/btowc (Dependencies): Add setlocale.
21121         * modules/c-strcase (Dependencies): Likewise.
21122         * modules/mbmemcasecmp (Dependencies): Likewise.
21123         * modules/mbmemcasecoll (Dependencies): Likewise.
21124         * modules/mbrtowc (Dependencies): Likewise.
21125         * modules/mbscasecmp (Dependencies): Likewise.
21126         * modules/mbscasestr (Dependencies): Likewise.
21127         * modules/mbschr (Dependencies): Likewise.
21128         * modules/mbscspn (Dependencies): Likewise.
21129         * modules/mbsinit (Dependencies): Likewise.
21130         * modules/mbsncasecmp (Dependencies): Likewise.
21131         * modules/mbsnrtowcs (Dependencies): Likewise.
21132         * modules/mbspbrk (Dependencies): Likewise.
21133         * modules/mbspcasecmp (Dependencies): Likewise.
21134         * modules/mbsrchr (Dependencies): Likewise.
21135         * modules/mbsrtowcs (Dependencies): Likewise.
21136         * modules/mbsspn (Dependencies): Likewise.
21137         * modules/mbsstr (Dependencies): Likewise.
21138         * modules/nl_langinfo (Dependencies): Likewise.
21139         * modules/quotearg (Dependencies): Likewise.
21140         * modules/unicase/locale-language (Dependencies): Likewise.
21141         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21142         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21143         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21144         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21145         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21146         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21147         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21148         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21149         * modules/vasnprintf-posix (Dependencies): Likewise.
21150         * modules/wcrtomb (Dependencies): Likewise.
21151         * modules/wcsnrtombs (Dependencies): Likewise.
21152         * modules/wcsrtombs (Dependencies): Likewise.
21153
21154 2011-02-12  Bruno Haible  <bruno@clisp.org>
21155
21156         setlocale: Workaround native Windows bug.
21157         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21158         succeeds but sets LC_CTYPE to "C", report a failure.
21159         * tests/test-setlocale2.sh: New file.
21160         * tests/test-setlocale2.c: New file.
21161         * modules/setlocale-tests (Files): Add the new files.
21162         (Makefile.am): Enable test-setlocale2.sh test.
21163         * doc/posix-functions/setlocale.texi: Mention workaround.
21164
21165 2011-02-11  Bruno Haible  <bruno@clisp.org>
21166
21167         Tests for module 'setlocale'.
21168         * modules/setlocale-tests: New file.
21169         * tests/test-setlocale1.sh: New file.
21170         * tests/test-setlocale1.c: New file.
21171
21172         New module 'setlocale'.
21173         * lib/locale.in.h (setlocale): New declaration.
21174         * lib/setlocale.c: New file, based on
21175         gettext/gettext-runtime/intl/setlocale.c.
21176         * m4/setlocale.m4: New file.
21177         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21178         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21179         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21180         REPLACE_SETLOCALE.
21181         * modules/setlocale: New file.
21182         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21183         * doc/posix-functions/setlocale.texi: Mention the new module.
21184
21185 2011-02-11  Bruno Haible  <bruno@clisp.org>
21186
21187         Prepare for locale dependent tests on mingw.
21188         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21189         because it has the wrong locale encoding.
21190         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21191         French_France.1252 instead of "fr".
21192         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21193         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21194         because it has the wrong locale encoding.
21195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21196         native Windows, try Turkish_Turkey.65001.
21197         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21198         Chinese_China.54936.
21199
21200         Prepare for locale dependent tests on mingw.
21201         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21202         differently.
21203         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21204         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21207
21208 2011-02-11  Eric Blake  <eblake@redhat.com>
21209
21210         strptime: avoid compiler warnings
21211         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21212         compiler warnings about dead code.
21213         Reported by Daniel P. Berrange.
21214
21215 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21216
21217         doc: update users.txt
21218         * users.txt: Add rcs.
21219
21220 2011-02-10  John W. Eaton  <jwe@gnu.org>
21221
21222         doc: update users.txt
21223         * users.txt: Add octave.
21224
21225 2011-02-10  Jim Meyering  <meyering@redhat.com>
21226
21227         doc: update users.txt
21228         * users.txt: Add iwhd.
21229
21230 2011-02-09  Bruno Haible  <bruno@clisp.org>
21231
21232         gnulib-tool: Make copyright notice adjustment more robust.
21233         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21234         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21235         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21236         License".
21237         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21238
21239 2011-02-06  Bruno Haible  <bruno@clisp.org>
21240
21241         New module 'towctrans'.
21242         * modules/towctrans: New file.
21243         * lib/wctype.in.h (towctrans): New declaration.
21244         * lib/towctrans.c: New file.
21245         * lib/towctrans-impl.h: New file.
21246         * m4/towctrans.m4: New file.
21247         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21248         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21249         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21250         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21251         * doc/posix-functions/towctrans.texi: Mention the new module.
21252
21253 2011-02-06  Bruno Haible  <bruno@clisp.org>
21254
21255         New module 'wctrans'.
21256         * modules/wctrans: New file.
21257         * lib/wctype.in.h (wctrans): New declaration.
21258         * lib/wctrans.c: New file.
21259         * lib/wctrans-impl.h: New file.
21260         * m4/wctrans.m4: New file.
21261         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21262         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21263         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21264         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21265         * doc/posix-functions/wctrans.texi: Mention the new module.
21266
21267 2011-02-06  Bruno Haible  <bruno@clisp.org>
21268
21269         New module 'iswctype'.
21270         * modules/iswctype: New file.
21271         * lib/wctype.in.h (iswctype): New declaration.
21272         * lib/iswctype.c: New file.
21273         * lib/iswctype-impl.h: New file.
21274         * m4/iswctype.m4: New file.
21275         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21276         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21277         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21278         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21279         * doc/posix-functions/iswctype.texi: Mention the new module and the
21280         HP-UX 11.00 problem.
21281
21282 2011-02-06  Bruno Haible  <bruno@clisp.org>
21283
21284         New module 'wctype'.
21285         * modules/wctype: Change to represent the wctype() substitute.
21286         * lib/wctype.in.h (wctype): New declaration.
21287         * lib/wctype.c: New file.
21288         * lib/wctype-impl.h: New file.
21289         * m4/wctype.m4: New file.
21290         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21291         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21292         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21293         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21294         * doc/posix-functions/wctype.texi: Mention the new module and the
21295         HP-UX 11.00 problem.
21296
21297 2011-02-06  Bruno Haible  <bruno@clisp.org>
21298
21299         wctype-h: Ensure wctype_t and wctrans_t are defined.
21300         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21301         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21302         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21303         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21304         HAVE_WCTRANS_T.
21305         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21306
21307 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21308
21309         flock: fix license typo
21310
21311         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21312         omitted.
21313
21314 2011-02-08  Bruno Haible  <bruno@clisp.org>
21315
21316         Split large sed scripts, for HP-UX sed.
21317         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21318         to avoid HP-UX limit of 99 commands, in the near future.
21319         * modules/stdlib (Makefile.am): Likewise.
21320         * modules/unistd (Makefile.am): Likewise.
21321         * modules/wchar (Makefile.am): Likewise.
21322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21323         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21325
21326 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21327             Bruno Haible  <bruno@clisp.org>
21328
21329         stdlib: improve random_r modularization
21330         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21331         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21332         you also need the random_r module to get this material right.
21333         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21334         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21335         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21336
21337 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21338
21339         stdlib: don't depend on stdint
21340         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21341         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21342         be independent of whether stdint.h is needed.
21343         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21344         here, instead of ...
21345         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21346         struct random_data should be using the random_r module, not just
21347         the stdlib module (which wouldn't make sense: what package needs
21348         just struct random_data without also needing random_r?).
21349         * modules/stdlib (Depends-on): Remove stdint.
21350
21351         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21352         See the thread rooted at
21353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21354         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21355         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21356         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21357         __VMS)); previously it was always included (via fcntl--.h).
21358         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21359         hand; this is good enough for load averages.  Also, do not use
21360         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21361         flags directly if available and don't bother otherwise.  (Packages
21362         that need the extra reliability should use the modules that define
21363         these flags on older platforms that lack them.)
21364         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21365         fcntl-safer.
21366
21367 2011-02-08  Jim Meyering  <meyering@redhat.com>
21368
21369         di-set.h, ino-map.h: add multiple-inclusion guard
21370         Technically, the guard is required only for ino-map.h, due to its
21371         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21372         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21373         * lib/ino-map.h: Likewise.
21374
21375 2011-02-06  Bruno Haible  <bruno@clisp.org>
21376
21377         iswblank: Ensure declaration on glibc systems.
21378         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21379         * modules/iswblank (Dependencies): Add 'extensions'.
21380         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21381
21382 2011-02-06  Bruno Haible  <bruno@clisp.org>
21383
21384         New module 'iswblank'.
21385         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21386         * modules/iswblank: New file.
21387         * modules/wctype-h (Files): Remove lib/iswblank.c.
21388         (Makefile.am): Substitute GNULIB_ISWBLANK.
21389         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21390         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21391         (gl_WCTYPE_H_DEFAULTS): New macro.
21392         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21393         * modules/iswblank-tests: New file.
21394         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21395         * tests/test-wctype-h.c (main): Remove iswblank tests.
21396         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21397         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21398         of 'wctype-h'.
21399         * NEWS: Mention the change.
21400         * modules/mbchar (Depends-on): Add iswblank.
21401
21402 2011-02-08  Bruno Haible  <bruno@clisp.org>
21403
21404         di-set tests: Refactor.
21405         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21406         unnecessary includes.
21407         (ASSERT): Remove macro.
21408         (main): Make C90 compliant by avoiding variable declaration after
21409         statement.
21410         * modules/di-set-tests (Files): Add tests/macros.h.
21411
21412 2011-02-08  Bruno Haible  <bruno@clisp.org>
21413
21414         ino-map tests: Refactor.
21415         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21416         unnecessary includes.
21417         (ASSERT): Remove macro.
21418         (main): Make C90 compliant by avoiding variable declaration after
21419         statement.
21420         * modules/ino-map-tests (Files): Add tests/macros.h.
21421
21422 2011-02-08  Jim Meyering  <meyering@redhat.com>
21423
21424         di-set: add "const" to a cast
21425         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21426         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21427
21428 2011-02-06  Bruno Haible  <bruno@clisp.org>
21429
21430         Rename module 'wctype' to 'wctype-h'.
21431         * modules/wctype-h: Renamed from modules/wctype.
21432         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21433         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21434         (Files, Depends-on, Makefile.am): Update.
21435         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21436         (Files, Makefile.am): Update.
21437         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21438         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21439         * doc/posix-headers/wctype.texi: Update.
21440         * doc/posix-functions/iswalnum.texi: Update.
21441         * doc/posix-functions/iswalpha.texi: Update.
21442         * doc/posix-functions/iswblank.texi: Update.
21443         * doc/posix-functions/iswcntrl.texi: Update.
21444         * doc/posix-functions/iswdigit.texi: Update.
21445         * doc/posix-functions/iswgraph.texi: Update.
21446         * doc/posix-functions/iswlower.texi: Update.
21447         * doc/posix-functions/iswprint.texi: Update.
21448         * doc/posix-functions/iswpunct.texi: Update.
21449         * doc/posix-functions/iswspace.texi: Update.
21450         * doc/posix-functions/iswupper.texi: Update.
21451         * doc/posix-functions/iswxdigit.texi: Update.
21452         * doc/posix-functions/towlower.texi: Update.
21453         * doc/posix-functions/towupper.texi: Update.
21454         * NEWS: Mention the change.
21455         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21456         * modules/mbchar (Dependencies): Likewise.
21457         * modules/mbswidth (Dependencies): Likewise.
21458         * modules/quotearg (Dependencies): Likewise.
21459         * modules/regex (Dependencies): Likewise.
21460         * modules/wcscasecmp (Dependencies): Likewise.
21461         * modules/wcsncasecmp (Dependencies): Likewise.
21462         * modules/wcwidth (Dependencies): Likewise.
21463
21464 2011-02-06  Bruno Haible  <bruno@clisp.org>
21465
21466         New module 'wcswidth'.
21467         * modules/wcswidth: New file.
21468         * lib/wchar.in.h (wcswidth): New declaration.
21469         * lib/wcswidth.c: New file.
21470         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21471         * m4/wcswidth.m4: New file.
21472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21474         REPLACE_WCSWIDTH.
21475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21476         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21477         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21478         * doc/posix-functions/wcswidth.texi: Mention the new module.
21479
21480 2011-02-06  Bruno Haible  <bruno@clisp.org>
21481
21482         New module 'wcstok'.
21483         * modules/wcstok: New file.
21484         * lib/wchar.in.h (wcstok): New declaration.
21485         * lib/wcstok.c: New file.
21486         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21487         * m4/wcstok.m4: New file.
21488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21491         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21492         * doc/posix-functions/wcstok.texi: Mention the new module.
21493
21494 2011-02-06  Bruno Haible  <bruno@clisp.org>
21495
21496         New module 'wcsstr'.
21497         * modules/wcsstr: New file.
21498         * lib/wchar.in.h (wcsstr): New declaration.
21499         * lib/wcsstr.c: New file.
21500         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21501         * m4/wcsstr.m4: New file.
21502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21505         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21506         * doc/posix-functions/wcsstr.texi: Mention the new module.
21507
21508 2011-02-06  Bruno Haible  <bruno@clisp.org>
21509
21510         New module 'wcspbrk'.
21511         * modules/wcspbrk: New file.
21512         * lib/wchar.in.h (wcspbrk): New declaration.
21513         * lib/wcspbrk.c: New file.
21514         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21515         * m4/wcspbrk.m4: New file.
21516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21519         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21520         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21521
21522 2011-02-06  Bruno Haible  <bruno@clisp.org>
21523
21524         New module 'wcsspn'.
21525         * modules/wcsspn: New file.
21526         * lib/wchar.in.h (wcsspn): New declaration.
21527         * lib/wcsspn.c: New file.
21528         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21529         * m4/wcsspn.m4: New file.
21530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21533         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21534         * doc/posix-functions/wcsspn.texi: Mention the new module.
21535
21536 2011-02-06  Bruno Haible  <bruno@clisp.org>
21537
21538         New module 'wcscspn'.
21539         * modules/wcscspn: New file.
21540         * lib/wchar.in.h (wcscspn): New declaration.
21541         * lib/wcscspn.c: New file.
21542         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21543         * m4/wcscspn.m4: New file.
21544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21547         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21548         * doc/posix-functions/wcscspn.texi: Mention the new module.
21549
21550 2011-02-06  Bruno Haible  <bruno@clisp.org>
21551
21552         New module 'wcsrchr'.
21553         * modules/wcsrchr: New file.
21554         * lib/wchar.in.h (wcsrchr): New declaration.
21555         * lib/wcsrchr.c: New file.
21556         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21557         * m4/wcsrchr.m4: New file.
21558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21561         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21562         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21563
21564 2011-02-06  Bruno Haible  <bruno@clisp.org>
21565
21566         New module 'wcschr'.
21567         * modules/wcschr: New file.
21568         * lib/wchar.in.h (wcschr): New declaration.
21569         * lib/wcschr.c: New file.
21570         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21571         * m4/wcschr.m4: New file.
21572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21575         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21576         * doc/posix-functions/wcschr.texi: Mention the new module.
21577
21578 2011-02-06  Bruno Haible  <bruno@clisp.org>
21579
21580         New module 'wcsdup'.
21581         * modules/wcsdup: New file.
21582         * lib/wchar.in.h (wcsdup): New declaration.
21583         * lib/wcsdup.c: New file.
21584         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21585         * m4/wcsdup.m4: New file.
21586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21589         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21590         * doc/posix-functions/wcsdup.texi: Mention the new module.
21591
21592 2011-02-06  Bruno Haible  <bruno@clisp.org>
21593
21594         New module 'wcsxfrm'.
21595         * modules/wcsxfrm: New file.
21596         * lib/wchar.in.h (wcsxfrm): New declaration.
21597         * lib/wcsxfrm.c: New file.
21598         * lib/wcsxfrm-impl.h: New file.
21599         * m4/wcsxfrm.m4: New file.
21600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21603         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21604         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21605
21606 2011-02-06  Bruno Haible  <bruno@clisp.org>
21607
21608         New module 'wcscoll'.
21609         * modules/wcscoll: New file.
21610         * lib/wchar.in.h (wcscoll): New declaration.
21611         * lib/wcscoll.c: New file.
21612         * lib/wcscoll-impl.h: New file.
21613         * m4/wcscoll.m4: New file.
21614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21617         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21618         * doc/posix-functions/wcscoll.texi: Mention the new module.
21619
21620 2011-02-06  Bruno Haible  <bruno@clisp.org>
21621
21622         New module 'wcsncasecmp'.
21623         * modules/wcsncasecmp: New file.
21624         * lib/wchar.in.h (wcsncasecmp): New declaration.
21625         * lib/wcsncasecmp.c: New file.
21626         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21627         * m4/wcsncasecmp.m4: New file.
21628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21631         HAVE_WCSNCASECMP.
21632         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21633         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21634
21635 2011-02-06  Bruno Haible  <bruno@clisp.org>
21636
21637         New module 'wcscasecmp'.
21638         * modules/wcscasecmp: New file.
21639         * lib/wchar.in.h (wcscasecmp): New declaration.
21640         * lib/wcscasecmp.c: New file.
21641         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21642         * m4/wcscasecmp.m4: New file.
21643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21646         HAVE_WCSCASECMP.
21647         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21648         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21649
21650 2011-02-05  Bruno Haible  <bruno@clisp.org>
21651
21652         New module 'wcsncmp'.
21653         * modules/wcsncmp: New file.
21654         * lib/wchar.in.h (wcsncmp): New declaration.
21655         * lib/wcsncmp.c: New file.
21656         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21657         * m4/wcsncmp.m4: New file.
21658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21661         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21662         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21663
21664 2011-02-05  Bruno Haible  <bruno@clisp.org>
21665
21666         New module 'wcscmp'.
21667         * modules/wcscmp: New file.
21668         * lib/wchar.in.h (wcscmp): New declaration.
21669         * lib/wcscmp.c: New file.
21670         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21671         * m4/wcscmp.m4: New file.
21672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21675         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21676         * doc/posix-functions/wcscmp.texi: Mention the new module.
21677
21678 2011-02-05  Bruno Haible  <bruno@clisp.org>
21679
21680         New module 'wcsncat'.
21681         * modules/wcsncat: New file.
21682         * lib/wchar.in.h (wcsncat): New declaration.
21683         * lib/wcsncat.c: New file.
21684         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21685         * m4/wcsncat.m4: New file.
21686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21689         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21690         * doc/posix-functions/wcsncat.texi: Mention the new module.
21691
21692 2011-02-05  Bruno Haible  <bruno@clisp.org>
21693
21694         New module 'wcscat'.
21695         * modules/wcscat: New file.
21696         * lib/wchar.in.h (wcscat): New declaration.
21697         * lib/wcscat.c: New file.
21698         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21699         * m4/wcscat.m4: New file.
21700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21703         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21704         * doc/posix-functions/wcscat.texi: Mention the new module.
21705
21706 2011-02-05  Bruno Haible  <bruno@clisp.org>
21707
21708         New module 'wcpncpy'.
21709         * modules/wcpncpy: New file.
21710         * lib/wchar.in.h (wcpncpy): New declaration.
21711         * lib/wcpncpy.c: New file.
21712         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21713         * m4/wcpncpy.m4: New file.
21714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21716         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21717         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21718         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21719
21720 2011-02-05  Bruno Haible  <bruno@clisp.org>
21721
21722         New module 'wcsncpy'.
21723         * modules/wcsncpy: New file.
21724         * lib/wchar.in.h (wcsncpy): New declaration.
21725         * lib/wcsncpy.c: New file.
21726         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21727         * m4/wcsncpy.m4: New file.
21728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21731         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21732         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21733
21734 2011-02-05  Bruno Haible  <bruno@clisp.org>
21735
21736         New module 'wcpcpy'.
21737         * modules/wcpcpy: New file.
21738         * lib/wchar.in.h (wcpcpy): New declaration.
21739         * lib/wcpcpy.c: New file.
21740         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21741         * m4/wcpcpy.m4: New file.
21742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21744         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21745         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21746         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21747
21748 2011-02-05  Bruno Haible  <bruno@clisp.org>
21749
21750         New module 'wcscpy'.
21751         * modules/wcscpy: New file.
21752         * lib/wchar.in.h (wcscpy): New declaration.
21753         * lib/wcscpy.c: New file.
21754         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21755         * m4/wcscpy.m4: New file.
21756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21759         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21760         * doc/posix-functions/wcscpy.texi: Mention the new module.
21761
21762 2011-02-05  Bruno Haible  <bruno@clisp.org>
21763
21764         New module 'wcsnlen'.
21765         * modules/wcsnlen: New file.
21766         * lib/wchar.in.h (wcsnlen): New declaration.
21767         * lib/wcsnlen.c: New file.
21768         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21769         * m4/wcsnlen.m4: New file.
21770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21773         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21774         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21775
21776 2011-02-05  Bruno Haible  <bruno@clisp.org>
21777
21778         New module 'wcslen'.
21779         * modules/wcslen: New file.
21780         * lib/wchar.in.h (wcslen): New declaration.
21781         * lib/wcslen.c: New file.
21782         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21783         * m4/wcslen.m4: New file.
21784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21787         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21788         * doc/posix-functions/wcslen.texi: Mention the new module.
21789
21790 2011-02-05  Bruno Haible  <bruno@clisp.org>
21791
21792         New module 'wmemset'.
21793         * modules/wmemset: New file.
21794         * lib/wchar.in.h (wmemset): New declaration.
21795         * lib/wmemset.c: New file.
21796         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21797         * m4/wmemset.m4: New file.
21798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21800         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21801         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21802         * doc/posix-functions/wmemset.texi: Mention the new module.
21803
21804 2011-02-05  Bruno Haible  <bruno@clisp.org>
21805
21806         New module 'wmemmove'.
21807         * modules/wmemmove: New file.
21808         * lib/wchar.in.h (wmemmove): New declaration.
21809         * lib/wmemmove.c: New file.
21810         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21811         * m4/wmemmove.m4: New file.
21812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21814         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21815         HAVE_WMEMMOVE.
21816         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21817         * doc/posix-functions/wmemmove.texi: Mention the new module.
21818
21819 2011-02-05  Bruno Haible  <bruno@clisp.org>
21820
21821         New module 'wmemcpy'.
21822         * modules/wmemcpy: New file.
21823         * lib/wchar.in.h (wmemcpy): New declaration.
21824         * lib/wmemcpy.c: New file.
21825         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21826         * m4/wmemcpy.m4: New file.
21827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21829         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21830         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21831         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21832
21833 2011-02-05  Bruno Haible  <bruno@clisp.org>
21834
21835         New module 'wmemcmp'.
21836         * modules/wmemcmp: New file.
21837         * lib/wchar.in.h (wmemcmp): New declaration.
21838         * lib/wmemcmp.c: New file.
21839         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21840         * m4/wmemcmp.m4: New file.
21841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21844         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21845         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21846
21847 2011-02-07  Jim Meyering  <meyering@redhat.com>
21848
21849         di-set, ino-map: new modules, from coreutils
21850         * lib/di-set.c: New file.
21851         * lib/di-set.h: Likewise.
21852         * lib/ino-map.c: Likewise.
21853         * lib/ino-map.h: Likewise.
21854         * modules/di-set: Likewise.
21855         * modules/di-set-tests: Likewise.
21856         * modules/ino-map: Likewise.
21857         * modules/ino-map-tests: Likewise.
21858         * tests/test-di-set.c: Likewise.
21859         * tests/test-ino-map.c: Likewise.
21860
21861 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21862
21863         getloadavg: merge minor changes from Emacs
21864
21865         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21866         (getloadavg): Use memset, not bzero.
21867
21868         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21869         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21870         clash (bug#86).
21871
21872 2010-11-14  Bruno Haible  <bruno@clisp.org>
21873
21874         Allow multiple gnulib generated replacements to coexist.
21875         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21876         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21877         * lib/langinfo.in.h (nl_item): Likewise.
21878         * lib/math.in.h (_NaN, NAN): Likewise.
21879         * lib/netdb.in.h (struct addrinfo): Likewise.
21880         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21881         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21882         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21883         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21884         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21885         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21886         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21887         pthread_mutexattr_init, pthread_mutexattr_settype,
21888         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21889         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21890         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21891         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21892         * lib/sched.in.h (struct sched_param): Likewise.
21893         * lib/se-selinux.in.h (security_class_t, security_context_t,
21894         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21895         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21896         lsetfilecon, fsetfilecon, security_check_context,
21897         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21898         Likewise.
21899         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21900         Likewise.
21901         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21902         _gl_function_taking_int_returning_void_t, union sigval,
21903         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21904         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21905         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21906         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21907         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21908         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21909         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21910         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21911         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21912         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21913         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21914         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21915         socklen_t, rpl_fd_isset): Likewise.
21916         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21917         * lib/sys_time.in.h (struct timeval): Likewise.
21918         * lib/sys_times.in.h (struct tms): Likewise.
21919         * lib/sys_utsname.in.h (struct utsname):
21920         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21921         * lib/unistd.in.h (getpagesize): Likewise.
21922         * lib/wchar.in.h (mbstate_t): Likewise.
21923         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21924         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21925         towlower, towupper): Likewise.
21926         Reported by Sam Steingold <sds@gnu.org>.
21927
21928 2011-02-05  Eric Blake  <eblake@redhat.com>
21929
21930         unsetenv: work around Haiku issues
21931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21932         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21933
21934 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21935
21936         libposix: avoid calling error() within libposix
21937         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21938         is defined.
21939
21940 2011-02-05  Eric Blake  <eblake@redhat.com>
21941
21942         strerror_r-posix: port to cygwin
21943         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21944         implementation.
21945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21946         * tests/test-strerror_r.c (main): Fix test.
21947         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21948         issue.
21949
21950 2011-02-05  Bruno Haible  <bruno@clisp.org>
21951
21952         New module 'wmemchr'.
21953         * modules/wmemchr: New file.
21954         * lib/wchar.in.h (wmemchr): New declaration.
21955         * lib/wmemchr.c: New file.
21956         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21957         * m4/wmemchr.m4: New file.
21958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21960         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21961         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21962         * doc/posix-functions/wmemchr.texi: Mention the new module.
21963
21964 2011-02-04  Eric Blake  <eblake@redhat.com>
21965
21966         fdopendir: detect FreeBSD bug
21967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21968         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21969
21970 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21971
21972         stdbool: do not define HAVE_STDBOOL_H
21973         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21974         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21975         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21976         imported from the latest Autoconf git.  It was motivated by Emacs,
21977         which uses gnulib but does not need HAVE_STDBOOL_H.
21978
21979 2011-02-04  Bruno Haible  <bruno@clisp.org>
21980
21981         wcsnrtombs: Prepare for new module wwcsnrtombs.
21982         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21983         * lib/wcsnrtombs.c: Include it.
21984         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21985
21986         wcsrtombs: Prepare for new module wwcsrtombs.
21987         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21988         * lib/wcsrtombs.c: Include it.
21989         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21990
21991         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21992         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21993         * lib/mbsnrtowcs.c: Include it.
21994         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21995
21996         mbsrtowcs: Prepare for new module mbsrtowwcs.
21997         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21998         * lib/mbsrtowcs.c: Include it.
21999         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22000
22001 2011-02-04  Bruno Haible  <bruno@clisp.org>
22002
22003         vasnprintf: Reduce use of malloc for small format strings.
22004         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22005         (arguments): Add room for the first 7 arguments.
22006         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22007         (char_directives, u8_directives, u16_directives, u32_directives): Add
22008         room for the first 7 directives.
22009         * lib/printf-parse.c: Include <string.h>.
22010         (PRINTF_PARSE): Change memory handling code so that it uses the first
22011         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22012         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22013         Reported by Pádraig Brady <P@draigbrady.com>.
22014
22015 2011-01-31  Eric Blake  <eblake@redhat.com>
22016
22017         dup2: work around Haiku bug
22018         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22019         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22020         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22021         * tests/test-dup2.c (main): Enhance test.
22022
22023 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22024
22025         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22026         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22027         declared by eglibc 2.11.2.
22028         * lib/stdio.in.h: Likewise.
22029
22030 2011-01-31  Eric Blake  <eblake@redhat.com>
22031
22032         ignore-value: add missing test dependency
22033         * tests/test-ignore-value.c: Revert previous change; stdio.h
22034         provides off_t.
22035         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22036
22037 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22038
22039         mktime: clarify long_int width checking
22040         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22041         the top level, to make it clearer that the assumption about
22042         long_int width is being checked.  See
22043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22044
22045 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22046
22047         ignore-value: Fix self-test.
22048         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22049
22050 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22051
22052         TYPE_MAXIMUM: avoid theoretically undefined behavior
22053         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22054         negative number, which the C Standard says has undefined behavior.
22055         In practice this is not a problem, but might as well do it by the book.
22056         Reported by Rich Felker and Eric Blake; see
22057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22058         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22059         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22061         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22062         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22063         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22064
22065         mktime: #undef mktime before #defining it
22066         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22067
22068         mktime: systematically normalize tm_isdst comparisons
22069         * lib/mktime.c (isdst_differ): New function.
22070         (__mktime_internal): Use it systematically for all isdst comparisons.
22071         This completes the fix for libc BZ #6723, and removes the need for
22072         normalizing tm_isdst.  See
22073         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22074         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22075
22076         mktime: fix some integer overflow issues and sidestep the rest
22077
22078         This was prompted by a bug report by Benjamin Lindner for MinGW
22079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22080         His bug is due to signed integer overflow (0 - INT_MIN), and I
22081         I scanned through mktime.c looking for other integer overflow
22082         problems, fixing all the bugs I found.
22083
22084         Although the C Standard says the resulting code is still not safe
22085         in the presence of integer overflow, in practice it should be good
22086         enough for all real-world two's-complement implementations, except
22087         for debugging environments that deliberately trap on integer
22088         overflow (e.g., gcc -ftrapv).
22089
22090         * lib/mktime.c (WRAPV): New macro.
22091         (SHR): Also check that long_int and time_t shift right in the
22092         usual way, before using the fast-but-unportable method.
22093         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22094         used.  The code already assumed two's complement, so there's
22095         no need to test for alternatives.  All uses removed.
22096         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22097         the C standard.  Problem reported by Rich Felker in
22098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22099         (twos_complement_arithmetic): Also check long_int and time_t.
22100         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22101         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22102         (__mktime_internal): Avoid integer overflow with unary subtraction
22103         in two instances where -1 - X is an adequate replacement for -X,
22104         since the calculations are approximate.
22105
22106 2011-01-29  Eric Blake  <eblake@redhat.com>
22107
22108         mktime: avoid infinite loop
22109         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22110         type; behavior is still undefined but portable to all known targets.
22111         Reported by Rich Felker.
22112
22113 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22114
22115         rename, unlink, same-inode: Relicense.
22116         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22117         * modules/unlink (License): Likewise.
22118         * modules/same-inode (License): Likewise.
22119
22120 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         mktime: avoid problems on NetBSD 5 / i386
22123         * lib/mktime.c (long_int): New type.  This works around a problem
22124         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22125         but time_t is 64 bits, and where I expect the existing code is
22126         wrong in some cases.
22127         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22128         (ydhms_diff): Bring back the compile-time check for wide-enough
22129         year and yday.
22130
22131         mktime: fix misspelling in comment
22132         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22133         This merges all recent glibc changes of importance.
22134
22135 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22136
22137         move-if-change: cope with concurrent mv of identical file.
22138         * build-aux/move-if-change (CMPPROG): Accept environment
22139         variable as an override for `cmp'.
22140         (usage): Document CMPPROG.
22141         Adjust comparison to drop stdout.  Cope with failure of mv if
22142         the target file exists and is identical to the source, for
22143         parallel builds.
22144         Report from H.J. Lu against binutils in PR binutils/12283.
22145
22146 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22147
22148         * users.txt: Mention sharutils.
22149
22150 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22151
22152         * users.txt: Mention OATH Toolkit.
22153
22154 2011-01-27  Bruno Haible  <bruno@clisp.org>
22155
22156         Prepare for supporting FreeBSD 10.
22157         * build-aux/config.libpath: Remove handling of freebsd1*.
22158
22159 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22160
22161         Prepare for supporting FreeBSD 10.
22162         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22163         match FreeBSD 10.0.
22164
22165 2011-01-27  Bruno Haible  <bruno@clisp.org>
22166
22167         vma-iter, get-rusage-as: Add OpenBSD support.
22168         * modules/vma-iter (configure.ac): Test for mquery.
22169         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22170         * lib/vma-iter.c: Include <sys/mman.h>.
22171         (vma_iterate): Add an implementation based on mquery().
22172         * lib/resource-ext.h (get_rusage_as): Update comments.
22173         * lib/get-rusage-as.c: Likewise.
22174         * lib/get-rusage-data.c: Likewise.
22175
22176 2011-01-26  Karl Berry  <karl@gnu.org>
22177
22178         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22179         variables to make it easier to override the makeinfo program used.
22180
22181 2011-01-26  Eric Blake  <eblake@redhat.com>
22182
22183         fcntl: work around Haiku F_DUPFD bugs
22184         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22185         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22186         cloexec bit on duplication.
22187         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22188
22189 2011-01-26  Bruno Haible  <bruno@clisp.org>
22190
22191         Enable memory leak tests on AIX.
22192         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22193         * tests/test-fprintf-posix3.c (main): Likewise.
22194
22195 2011-01-26  Bruno Haible  <bruno@clisp.org>
22196
22197         Tests for module 'get-rusage-data'.
22198         * modules/get-rusage-data-tests: New file.
22199         * tests/test-get-rusage-data.c: New file.
22200
22201         New module 'get-rusage-data'.
22202         * lib/resource-ext.h (get_rusage_data): New declaration.
22203         * lib/get-rusage-data.c: New file.
22204         * modules/get-rusage-data: New file.
22205
22206 2011-01-25  Bruno Haible  <bruno@clisp.org>
22207
22208         get-rusage-as: Allow for easier testing.
22209         * lib/resource-ext.h (get_rusage_as): Add comment.
22210         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22211         (main): New function for interactive testing.
22212
22213 2011-01-25  Bruno Haible  <bruno@clisp.org>
22214
22215         vma-iter: Treat Haiku like BeOS.
22216         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22217         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22218
22219 2011-01-25  Eric Blake  <eblake@redhat.com>
22220
22221         c-stack: fix regression on cygwin when libsigsegv is present
22222         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22223
22224 2011-01-24  Bruno Haible  <bruno@clisp.org>
22225
22226         vma-iter: Avoid empty intervals.
22227         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22228         on an empty interval.
22229
22230 2011-01-24  Jim Meyering  <meyering@redhat.com>
22231
22232         u64: remove unnecessary #include
22233         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22234
22235 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22238         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22239
22240 2011-01-23  Bruno Haible  <bruno@clisp.org>
22241
22242         New module 'vma-iter'.
22243         * lib/vma-iter.h: New file.
22244         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22245         * modules/vma-iter: New file.
22246         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22247         for get_rusage_as_via_iterator.
22248         (vma_iterate_callback): New function.
22249         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22250         * modules/get-rusage-as (Depends-on): Add vma-iter.
22251
22252 2011-01-23  Bruno Haible  <bruno@clisp.org>
22253
22254         uninorm: Tweak includes.
22255         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22256         Reported by Jim Meyering.
22257
22258 2011-01-23  Bruno Haible  <bruno@clisp.org>
22259
22260         get-rusage-as: Improve on NetBSD.
22261         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22262         /proc, like on FreeBSD.
22263
22264 2011-01-23  Jim Meyering  <meyering@redhat.com>
22265
22266         xreadlink.h: remove unnecessary #include
22267         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22268
22269         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22270         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22271
22272 2011-01-23  Bruno Haible  <bruno@clisp.org>
22273
22274         get-rusage-as: Fix bug.
22275         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22276         original limit when aborting the first loop.
22277
22278 2011-01-23  Bruno Haible  <bruno@clisp.org>
22279
22280         wctype: Ensure valid C syntax.
22281         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22282         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22283
22284 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22285
22286         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22288         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22289         as they are needed only for configure's test case.
22290         This removes two unnecessary symbols from config.h.
22291
22292         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22293         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22295         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22296         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22298         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22299         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22300         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22301         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22302         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22306         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22307         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22308         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22309         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22310
22311 2011-01-21  Eric Blake  <eblake@redhat.com>
22312
22313         maintainer-makefile: work with older git for submodule check
22314         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22315         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22316         Reported by Matthias Bolte.
22317
22318         bootstrap: minor portability fixes
22319         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22320         (usage): Omit leading capital and trailing . on help phrases, per
22321         GNU Coding Standards.
22322         (check_versions, top level): Prefix messages with script name.
22323
22324 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22325
22326         bootstrap: support --no-git option
22327         * build-aux/bootstrap: Add --no-git option, to be used when
22328         --gnulib-srcdir points to the exact desired checkout.
22329
22330 2011-01-21  Eric Blake  <eblake@redhat.com>
22331
22332         strerror_r-posix: work with glibc 2.13
22333         * lib/strerror_r.c (strerror_r): Fix return type.
22334
22335 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22336             Bruno Haible  <bruno@clisp.org>
22337
22338         uN_strstr: New unit tests.
22339         * modules/unistr/u8-strstr-tests: New file.
22340         * modules/unistr/u16-strstr-tests: New file.
22341         * modules/unistr/u32-strstr-tests: New file.
22342         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22343         * tests/unistr/test-u8-strstr.c: New file.
22344         * tests/unistr/test-u16-strstr.c: New file.
22345         * tests/unistr/test-u32-strstr.c: New file.
22346
22347 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22348             Bruno Haible  <bruno@clisp.org>
22349
22350         Make uN_strstr functions O(n) worst-case.
22351         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22352         16-bit and 32-bit unit cases, use the unibyte algorithm from
22353         lib/mbsstr.c.
22354         * lib/unistr/u8-strstr.c: Include <string.h>.
22355         (UNIT_IS_UINT8_T): New macro.
22356         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22357         (U_STRLEN, U_STRNLEN): New macros.
22358         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22359         (U_STRLEN, U_STRNLEN): New macros.
22360         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22361         (configure.ac): Update required libunistring version.
22362         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22363         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22364         malloca.
22365         (configure.ac): Update required libunistring version.
22366         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22367         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22368         malloca.
22369         (configure.ac): Update required libunistring version.
22370
22371 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22372             Bruno Haible  <bruno@clisp.org>
22373
22374         Prepare for faster uN_strstr functions.
22375         * lib/str-kmp.h: Support definable UNITs.
22376         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22377         needle_len argument.
22378         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22379         * lib/mbscasestr.c (mbscasestr): Likewise.
22380
22381 2011-01-21  Pádraig Brady <P@draigBrady.com>
22382
22383         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22384         * tests/test-malloca.c (main): Unset the environment variable
22385         to greatly speed up the test.
22386         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22387         * modules/malloca-tests: Depend on unsetenv.
22388
22389 2011-01-21  Pádraig Brady <P@draigBrady.com>
22390
22391         ignore-value: remove stdint dependency
22392         * lib/ignore-value.h: Remove <stdint.h>
22393         * modules/ignore-value: Remove stdint dependency.
22394
22395 2011-01-21  Jim Meyering  <meyering@redhat.com>
22396
22397         maint.mk: adjust variable name to be consistent with other gl_ vars
22398         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22399         to be lower case.
22400
22401 2011-01-20  Jim Meyering  <meyering@redhat.com>
22402
22403         maint.mk: make "check" depend on public-submodule-commit by default
22404         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22405
22406 2011-01-20  Bruno Haible  <bruno@clisp.org>
22407
22408         mbfile, mbiter: Complete change from 2008-12-21.
22409         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22410         * m4/mbiter.m4 (gl_MBITER): Likewise.
22411
22412 2011-01-20  Jim Meyering  <meyering@redhat.com>
22413
22414         init.sh: insert space between each function name and "()"
22415         * tests/init.sh: Make it a little easier to see that a function's
22416         name is "warn_", and not "warn" when looking at the first part of
22417         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22418
22419 2011-01-20  Jim Meyering  <meyering@redhat.com>
22420
22421         mountlist: clean up code formatting
22422         * lib/mountlist.c (read_file_system_list): Split a long line,
22423         correct bracing style, use NULL in place of "(struct statfs *)0",
22424         don't parenthesize return value, add spaces around "=" and after
22425         ";-in-for-stmt".
22426
22427 2011-01-14  Markus Duft <mduft@gentoo.org>
22428
22429         mountlist: add support for Interix
22430         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22431         Apply statvfs to all entries of /dev/fs.
22432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22433         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22434
22435 2011-01-20  Jim Meyering  <meyering@redhat.com>
22436
22437         maint.mk: improve the public-submodule-commit rule
22438         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22439         to suppress printing of its commands... unless V=1.
22440         Add git submodule's --quiet option to suppress printing of e.g.,
22441         "Entering gnulib" output.
22442         "cd" into $(srcdir) before running git submodule.
22443
22444 2011-01-20  Bruno Haible  <bruno@clisp.org>
22445
22446         include_next: Fix bug introduced on 2011-01-18.
22447         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22448         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22449         ac_cv_header_... variable if the second argument is not 'check'.
22450         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22451         gl_NEXT_HEADERS_INTERNAL.
22452
22453 2011-01-20  Bruno Haible  <bruno@clisp.org>
22454
22455         Allow the user to avoid the GNULIB_TEST_* macros.
22456         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22457         Suggested by Paul Eggert.
22458
22459 2011-01-14  Jim Meyering  <meyering@redhat.com>
22460
22461         bootstrap: avoid failure when there is no .gitmodules file
22462         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22463         has been assigned to, even when its value is the empty string.
22464         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22465         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22466         Reported by John W. Eaton <jwe@gnu.org>.
22467
22468 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22469
22470         assume <ctype.h>, ..., <time.h> exist
22471         For years gnulib has been assuming the existence of the headers
22472         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22473         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22474         them, since they don't appear to be needed.
22475         * README (Portability guidelines): Document this.
22476         * lib/flock.c: Assume <fcntl.h> exists.
22477         * lib/regex_internal.h: Assume <locale.h> exists.
22478         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22480         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22481         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22482         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22483         * m4/regex.m4 (gl_REGEX): Likewise.
22484         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22485         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22486         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22487         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22488         * tests/test-argp.c: Likewise.
22489         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22490
22491         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22492         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22493         AA_APPLE_UNIVERSAL_BUILD.  See
22494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22495         * NEWS: Document this.
22496
22497 2011-01-19  Eric Blake  <eblake@redhat.com>
22498
22499         c-stack: assume stack overflow if SA_SIGINFO unsupported
22500         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22501         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22502         sigaction will work.
22503         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22504         behavior match Linux.
22505         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22506
22507         stdbool-tests: accommodate Haiku
22508         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22509
22510         binary-io: fix O_TEXT on Haiku
22511         * modules/binary-io (Depends-on): Add fcntl-h.
22512         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22513         than blindly undefining O_TEXT.
22514         Reported by Scott McCreary.
22515
22516 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22517
22518         include_next: do not check for standard headers like stddef.h
22519
22520         I found this problem when modifying Emacs to use gnulib.
22521         I noticed that it added HAVE_STDDEF_H to config.h, even though
22522         gnulib always assumes <stddef.h> exists as per README and this
22523         symbol is unnecessary.
22524         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22525         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22526         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22527         faster for headers like stddef.h that are known to exist.
22528         (gl_CHECK_NEXT_HEADERS): Use it.
22529         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22530         rather than gl_CHECK_NEXT_HEADERS.
22531         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22532         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22533
22534 2011-01-18  Eric Blake  <eblake@redhat.com>
22535
22536         ansi-c++-opt: skip C++ dependency style if C++ is unused
22537         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22538         tests when we know C++ compilation is not desired.
22539         Reported by Scott McCreary.
22540
22541 2011-01-18  Bruno Haible  <bruno@clisp.org>
22542
22543         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22544         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22545         (main): Perform test also when getrlimit and setrlimit don't exist or
22546         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22547         limiting the address space size using setrlimit, compare the address
22548         space size before and after the the test.
22549         * tests/test-dprintf-posix2.c: Likewise.
22550         * tests/test-fprintf-posix3.sh: Update skip messages.
22551         * tests/test-dprintf-posix2.sh: Likewise.
22552         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22553         * modules/dprintf-posix-tests (Depends-on): Likewise.
22554         Reported by Bruce Korb <bkorb@gnu.org> and
22555         Gary V. Vaughan <gary@gnu.org>.
22556
22557 2011-01-18  Bruno Haible  <bruno@clisp.org>
22558
22559         get-rusage-as: Improvement for Cygwin.
22560         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22561         areas that are merely reserved.
22562
22563 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22564
22565         strftime: remove dependencies on multibyte modules
22566
22567         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22568         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22569         only if __osf__ is defined, and I suspect OSF doesn't need these
22570         other modules.  If my guess is wrong, we'll need to come up with a
22571         variant of strftime that doesn't need the multibyte modules.
22572
22573         I discovered this problem when attempting modify Emacs to use the
22574         strftime module.  With the previous gnulib, this caused Emacs to
22575         need 31 new files, ranging from lib/config.charset to
22576         m4/wint_t.m4.  This was overkill and I expect would be offputting
22577         to the Emacs maintainers.  After this change, only 6 new files are
22578         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22579         stdbool.m4, and tm_gmtoff.m4.
22580
22581         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22582         Suggested by Bruno Haible in
22583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22585         and do not check for wchar.h.
22586         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22587         (Depends-on): Remove mbrlen, mbsinit, wchar.
22588
22589 2011-01-18  Bruno Haible  <bruno@clisp.org>
22590
22591         Tests for module 'get-rusage-as'.
22592         * modules/get-rusage-as-tests: New file.
22593         * tests/test-get-rusage-as.c: New file.
22594
22595         New module 'get-rusage-as'.
22596         * modules/get-rusage-as: New file.
22597         * lib/resource-ext.h: New file.
22598         * lib/get-rusage-as.c: New file.
22599
22600 2011-01-17  Eric Blake  <eblake@redhat.com>
22601
22602         sigaction: relax license from LGPLv3+ to LGPLv2+
22603         * modules/sigaction (License): Relax to LGPLv2+.
22604
22605 2011-01-14  Bruno Haible  <bruno@clisp.org>
22606
22607         filemode: Make function declarations usable in C++ mode.
22608         * lib/filemode.h: Enclose function declarations in extern "C" block.
22609         Reported by John W. Eaton <jwe@gnu.org>.
22610
22611 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22612
22613         save-cwd: no longer include "xgetcwd.h"
22614         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22615         This avoids a compilation failure in projects that use save-cwd
22616         without also using the xgetcwd module.
22617
22618 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22619
22620         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22621         This is so that a program like Emacs, which needs only dtoastr,
22622         does not have to bother with distributing and compiling ftoastr
22623         and ldtoastr.
22624         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22625         * modules/dtoastr, modules/ldtoastr: New files.
22626         * modules/ftoastr: Now works just for 'float'.
22627         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22628         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22629         dtoastr.c, ldtoastr.c.
22630
22631 2011-01-11  Jim Meyering  <meyering@redhat.com>
22632
22633         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22634         There is no need to work around the lack of the fchdir function,
22635         since gnulib can now provide a replacement when required.
22636         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22637         * modules/save-cwd (Depends-on): Add fchdir.
22638
22639 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         openat, save-cwd: avoid xmalloc
22642
22643         This removes a direct (but undocumented) dependency of openat on
22644         xalloc, along with an indirect dependency via save-cwd.  It also
22645         removes a dependency of save-cwd on xgetcwd, and thereby
22646         indirectly on xalloc.  This change causes the openat substitute
22647         to fall back on save_cwd when memory is tight, and for save_cwd to
22648         fail instead of dying when memory is tight, but that's good enough.
22649         Problem and initial idea for fix reported by Bastien Roucaries in
22650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22651
22652         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22653         xalloc.h (for xmalloc).
22654         (openat_proc_name): Use malloc, not xmalloc.
22655         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22656         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22657
22658         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22659         This avoids heap allocation for file names whose lengths are in
22660         the range 512..1023, with the upper bound increasing to at most
22661         4031 depending on the platform's PATH_MAX.  (We do not want
22662         pathmax.h here as it might supply a non-constant PATH_MAX.)
22663         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22664         Perhaps they should be moved to malloca.h?
22665         (OPENAT_BUFFER_SIZE): Use them.
22666
22667 2011-01-10  Bruno Haible  <bruno@clisp.org>
22668
22669         doc: Update users.txt.
22670         * users.txt: Add recutils.
22671
22672 2011-01-09  Karl Berry  <karl@gnu.org>
22673
22674         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22675
22676         * doc/configmake.texi: New file.
22677         * doc/gnulib.texi: Include it.
22678         * modules/configmake: Move documentation from here.
22679
22680 2011-01-09  Bruno Haible  <bruno@clisp.org>
22681
22682         Update to Unicode 6.0.0.
22683         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22684         (get_lbp): Update for Unicode 6.0.0.
22685         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22686         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22687         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22688         U+11001, U+11038..U+11046. Remove U+06DE.
22689         (uc_width): Fix bounds of planes.
22690         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22691         lib/uniwidth/width.c.
22692         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22693         trailing whitespace removed.
22694         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22695         without comments, but with the original copyright notice.
22696         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22697         * lib/unicase/ignorable.h: Likewise.
22698         * lib/unicase/tocasefold.h: Likewise.
22699         * lib/unicase/tolower.h: Likewise.
22700         * lib/unicase/totitle.h: Likewise.
22701         * lib/unicase/toupper.h: Likewise.
22702         * lib/unictype/bidi_of.h: Likewise.
22703         * lib/unictype/blocks.h: Likewise.
22704         * lib/unictype/categ_C.h: Likewise.
22705         * lib/unictype/categ_Cn.h: Likewise.
22706         * lib/unictype/categ_L.h: Likewise.
22707         * lib/unictype/categ_Ll.h: Likewise.
22708         * lib/unictype/categ_Lm.h: Likewise.
22709         * lib/unictype/categ_Lo.h: Likewise.
22710         * lib/unictype/categ_Lu.h: Likewise.
22711         * lib/unictype/categ_M.h: Likewise.
22712         * lib/unictype/categ_Mc.h: Likewise.
22713         * lib/unictype/categ_Me.h: Likewise.
22714         * lib/unictype/categ_Mn.h: Likewise.
22715         * lib/unictype/categ_N.h: Likewise.
22716         * lib/unictype/categ_Nd.h: Likewise.
22717         * lib/unictype/categ_No.h: Likewise.
22718         * lib/unictype/categ_P.h: Likewise.
22719         * lib/unictype/categ_Po.h: Likewise.
22720         * lib/unictype/categ_S.h: Likewise.
22721         * lib/unictype/categ_Sc.h: Likewise.
22722         * lib/unictype/categ_Sk.h: Likewise.
22723         * lib/unictype/categ_Sm.h: Likewise.
22724         * lib/unictype/categ_So.h: Likewise.
22725         * lib/unictype/categ_of.h: Likewise.
22726         * lib/unictype/combining.h: Likewise.
22727         * lib/unictype/ctype_alnum.h: Likewise.
22728         * lib/unictype/ctype_alpha.h: Likewise.
22729         * lib/unictype/ctype_graph.h: Likewise.
22730         * lib/unictype/ctype_lower.h: Likewise.
22731         * lib/unictype/ctype_print.h: Likewise.
22732         * lib/unictype/ctype_punct.h: Likewise.
22733         * lib/unictype/ctype_upper.h: Likewise.
22734         * lib/unictype/decdigit.h: Likewise.
22735         * lib/unictype/digit.h: Likewise.
22736         * lib/unictype/numeric.h: Likewise.
22737         * lib/unictype/pr_alphabetic.h: Likewise.
22738         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22739         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22740         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22741         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22742         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22743         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22744         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22745         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22746         * lib/unictype/pr_case_ignorable.h: Likewise.
22747         * lib/unictype/pr_cased.h: Likewise.
22748         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22749         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22750         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22751         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22752         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22753         * lib/unictype/pr_combining.h: Likewise.
22754         * lib/unictype/pr_composite.h: Likewise.
22755         * lib/unictype/pr_currency_symbol.h: Likewise.
22756         * lib/unictype/pr_decimal_digit.h: Likewise.
22757         * lib/unictype/pr_deprecated.h: Likewise.
22758         * lib/unictype/pr_format_control.h: Likewise.
22759         * lib/unictype/pr_grapheme_base.h: Likewise.
22760         * lib/unictype/pr_grapheme_extend.h: Likewise.
22761         * lib/unictype/pr_grapheme_link.h: Likewise.
22762         * lib/unictype/pr_id_continue.h: Likewise.
22763         * lib/unictype/pr_id_start.h: Likewise.
22764         * lib/unictype/pr_ideographic.h: Likewise.
22765         * lib/unictype/pr_lowercase.h: Likewise.
22766         * lib/unictype/pr_math.h: Likewise.
22767         * lib/unictype/pr_numeric.h: Likewise.
22768         * lib/unictype/pr_other_alphabetic.h: Likewise.
22769         * lib/unictype/pr_other_id_continue.h: Likewise.
22770         * lib/unictype/pr_other_math.h: Likewise.
22771         * lib/unictype/pr_punctuation.h: Likewise.
22772         * lib/unictype/pr_sentence_terminal.h: Likewise.
22773         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22774         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22775         * lib/unictype/pr_unified_ideograph.h: Likewise.
22776         * lib/unictype/pr_uppercase.h: Likewise.
22777         * lib/unictype/pr_xid_continue.h: Likewise.
22778         * lib/unictype/pr_xid_start.h: Likewise.
22779         * lib/unictype/scripts.h: Likewise.
22780         * lib/unictype/scripts_byname.gperf: Likewise.
22781         * lib/unictype/sy_java_ident.h: Likewise.
22782         * lib/unigbrk/gbrkprop.h: Likewise.
22783         * lib/unilbrk/lbrkprop1.h: Likewise.
22784         * lib/unilbrk/lbrkprop2.h: Likewise.
22785         * lib/uninorm/decomposition-table2.h: Likewise.
22786         * lib/uniwbrk/wbrkprop.h: Likewise.
22787         * tests/unicase/test-cased.c: Likewise.
22788         * tests/unicase/test-ignorable.c: Likewise.
22789         * tests/unicase/test-uc_tolower.c: Likewise.
22790         * tests/unicase/test-uc_totitle.c: Likewise.
22791         * tests/unicase/test-uc_toupper.c: Likewise.
22792         * tests/unictype/test-categ_C.c: Likewise.
22793         * tests/unictype/test-categ_Cn.c: Likewise.
22794         * tests/unictype/test-categ_L.c: Likewise.
22795         * tests/unictype/test-categ_Ll.c: Likewise.
22796         * tests/unictype/test-categ_Lm.c: Likewise.
22797         * tests/unictype/test-categ_Lo.c: Likewise.
22798         * tests/unictype/test-categ_Lu.c: Likewise.
22799         * tests/unictype/test-categ_M.c: Likewise.
22800         * tests/unictype/test-categ_Mc.c: Likewise.
22801         * tests/unictype/test-categ_Me.c: Likewise.
22802         * tests/unictype/test-categ_Mn.c: Likewise.
22803         * tests/unictype/test-categ_N.c: Likewise.
22804         * tests/unictype/test-categ_Nd.c: Likewise.
22805         * tests/unictype/test-categ_No.c: Likewise.
22806         * tests/unictype/test-categ_P.c: Likewise.
22807         * tests/unictype/test-categ_Po.c: Likewise.
22808         * tests/unictype/test-categ_S.c: Likewise.
22809         * tests/unictype/test-categ_Sc.c: Likewise.
22810         * tests/unictype/test-categ_Sk.c: Likewise.
22811         * tests/unictype/test-categ_Sm.c: Likewise.
22812         * tests/unictype/test-categ_So.c: Likewise.
22813         * tests/unictype/test-ctype_alnum.c: Likewise.
22814         * tests/unictype/test-ctype_alpha.c: Likewise.
22815         * tests/unictype/test-ctype_graph.c: Likewise.
22816         * tests/unictype/test-ctype_lower.c: Likewise.
22817         * tests/unictype/test-ctype_print.c: Likewise.
22818         * tests/unictype/test-ctype_punct.c: Likewise.
22819         * tests/unictype/test-ctype_upper.c: Likewise.
22820         * tests/unictype/test-decdigit.h: Likewise.
22821         * tests/unictype/test-digit.h: Likewise.
22822         * tests/unictype/test-numeric.h: Likewise.
22823         * tests/unictype/test-pr_alphabetic.c: Likewise.
22824         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22825         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22826         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22827         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22828         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22829         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22830         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22831         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22832         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22833         * tests/unictype/test-pr_cased.c: Likewise.
22834         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22835         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22836         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22837         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22838         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22839         * tests/unictype/test-pr_combining.c: Likewise.
22840         * tests/unictype/test-pr_composite.c: Likewise.
22841         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22842         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22843         * tests/unictype/test-pr_deprecated.c: Likewise.
22844         * tests/unictype/test-pr_format_control.c: Likewise.
22845         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22846         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22847         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22848         * tests/unictype/test-pr_id_continue.c: Likewise.
22849         * tests/unictype/test-pr_id_start.c: Likewise.
22850         * tests/unictype/test-pr_ideographic.c: Likewise.
22851         * tests/unictype/test-pr_lowercase.c: Likewise.
22852         * tests/unictype/test-pr_math.c: Likewise.
22853         * tests/unictype/test-pr_numeric.c: Likewise.
22854         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22855         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22856         * tests/unictype/test-pr_other_math.c: Likewise.
22857         * tests/unictype/test-pr_punctuation.c: Likewise.
22858         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22859         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22860         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22861         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22862         * tests/unictype/test-pr_uppercase.c: Likewise.
22863         * tests/unictype/test-pr_xid_continue.c: Likewise.
22864         * tests/unictype/test-pr_xid_start.c: Likewise.
22865         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22866         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22867         changes.
22868         * lib/unictype/categ_Cc.h: Likewise.
22869         * lib/unictype/categ_Cf.h: Likewise.
22870         * lib/unictype/categ_Co.h: Likewise.
22871         * lib/unictype/categ_Cs.h: Likewise.
22872         * lib/unictype/categ_Lt.h: Likewise.
22873         * lib/unictype/categ_Nl.h: Likewise.
22874         * lib/unictype/categ_Pc.h: Likewise.
22875         * lib/unictype/categ_Pd.h: Likewise.
22876         * lib/unictype/categ_Pe.h: Likewise.
22877         * lib/unictype/categ_Pf.h: Likewise.
22878         * lib/unictype/categ_Pi.h: Likewise.
22879         * lib/unictype/categ_Ps.h: Likewise.
22880         * lib/unictype/categ_Z.h: Likewise.
22881         * lib/unictype/categ_Zl.h: Likewise.
22882         * lib/unictype/categ_Zp.h: Likewise.
22883         * lib/unictype/categ_Zs.h: Likewise.
22884         * lib/unictype/ctype_blank.h: Likewise.
22885         * lib/unictype/ctype_cntrl.h: Likewise.
22886         * lib/unictype/ctype_digit.h: Likewise.
22887         * lib/unictype/ctype_space.h: Likewise.
22888         * lib/unictype/ctype_xdigit.h: Likewise.
22889         * lib/unictype/mirror.h: Likewise.
22890         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22891         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22892         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22893         * lib/unictype/pr_bidi_control.h: Likewise.
22894         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22895         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22896         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22897         * lib/unictype/pr_bidi_pdf.h: Likewise.
22898         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22899         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22900         * lib/unictype/pr_dash.h: Likewise.
22901         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22902         * lib/unictype/pr_diacritic.h: Likewise.
22903         * lib/unictype/pr_extender.h: Likewise.
22904         * lib/unictype/pr_hex_digit.h: Likewise.
22905         * lib/unictype/pr_hyphen.h: Likewise.
22906         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22907         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22908         * lib/unictype/pr_ignorable_control.h: Likewise.
22909         * lib/unictype/pr_iso_control.h: Likewise.
22910         * lib/unictype/pr_join_control.h: Likewise.
22911         * lib/unictype/pr_left_of_pair.h: Likewise.
22912         * lib/unictype/pr_line_separator.h: Likewise.
22913         * lib/unictype/pr_logical_order_exception.h: Likewise.
22914         * lib/unictype/pr_non_break.h: Likewise.
22915         * lib/unictype/pr_not_a_character.h: Likewise.
22916         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22917         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22918         * lib/unictype/pr_other_id_start.h: Likewise.
22919         * lib/unictype/pr_other_lowercase.h: Likewise.
22920         * lib/unictype/pr_other_uppercase.h: Likewise.
22921         * lib/unictype/pr_paired_punctuation.h: Likewise.
22922         * lib/unictype/pr_paragraph_separator.h: Likewise.
22923         * lib/unictype/pr_pattern_syntax.h: Likewise.
22924         * lib/unictype/pr_pattern_white_space.h: Likewise.
22925         * lib/unictype/pr_private_use.h: Likewise.
22926         * lib/unictype/pr_quotation_mark.h: Likewise.
22927         * lib/unictype/pr_radical.h: Likewise.
22928         * lib/unictype/pr_soft_dotted.h: Likewise.
22929         * lib/unictype/pr_space.h: Likewise.
22930         * lib/unictype/pr_titlecase.h: Likewise.
22931         * lib/unictype/pr_variation_selector.h: Likewise.
22932         * lib/unictype/pr_white_space.h: Likewise.
22933         * lib/unictype/pr_zero_width.h: Likewise.
22934         * lib/unictype/sy_c_ident.h: Likewise.
22935         * lib/unictype/sy_c_whitespace.h: Likewise.
22936         * lib/unictype/sy_java_whitespace.h: Likewise.
22937         * lib/uninorm/composition-table.gperf: Likewise.
22938         * lib/uninorm/decomposition-table1.h: Likewise.
22939         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22940         LB8.
22941         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22942         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22943         * modules/unictype/*: Bump version number of expected libunistring
22944         version.
22945
22946 2011-01-09  Bruno Haible  <bruno@clisp.org>
22947
22948         Update to Unicode 5.2.0.
22949         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22950         trailing whitespace removed.
22951
22952 2011-01-09  Bruno Haible  <bruno@clisp.org>
22953
22954         New Unicode character properties, from Unicode 5.2.0.
22955         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22956         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22957         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22958         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22959         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22960         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22961         uc_is_property_cased, uc_is_property_case_ignorable,
22962         uc_is_property_changes_when_lowercased,
22963         uc_is_property_changes_when_uppercased,
22964         uc_is_property_changes_when_titlecased,
22965         uc_is_property_changes_when_casefolded,
22966         uc_is_property_changes_when_casemapped): New declarations.
22967         * lib/unictype/pr_byname.gperf: Add the new properties.
22968         * modules/unictype/property-byname (Depends-on): Depend on the new
22969         properties modules.
22970         * modules/unictype/property-all (Depends-on): Likewise.
22971         * MODULES.html.sh (Unicode string functions): Add
22972         unictype/property-case-ignorable, unictype/property-cased,
22973         unictype/property-changes-when-casefolded,
22974         unictype/property-changes-when-casemapped,
22975         unictype/property-changes-when-lowercased,
22976         unictype/property-changes-when-titlecased,
22977         unictype/property-changes-when-uppercased.
22978
22979         New module 'unictype/property-changes-when-casemapped'.
22980         * modules/unictype/property-changes-when-casemapped: New file.
22981         * lib/unictype/pr_changes_when_casemapped.c: New file.
22982         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22983         generated by gen-uni-tables.
22984         * modules/unictype/property-changes-when-casemapped-tests: New file.
22985         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22986         automatically generated by gen-uni-tables.
22987
22988         New module 'unictype/property-changes-when-casefolded'.
22989         * modules/unictype/property-changes-when-casefolded: New file.
22990         * lib/unictype/pr_changes_when_casefolded.c: New file.
22991         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22992         generated by gen-uni-tables.
22993         * modules/unictype/property-changes-when-casefolded-tests: New file.
22994         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22995         automatically generated by gen-uni-tables.
22996
22997         New module 'unictype/property-changes-when-titlecased'.
22998         * modules/unictype/property-changes-when-titlecased: New file.
22999         * lib/unictype/pr_changes_when_titlecased.c: New file.
23000         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23001         generated by gen-uni-tables.
23002         * modules/unictype/property-changes-when-titlecased-tests: New file.
23003         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23004         automatically generated by gen-uni-tables.
23005
23006         New module 'unictype/property-changes-when-uppercased'.
23007         * modules/unictype/property-changes-when-uppercased: New file.
23008         * lib/unictype/pr_changes_when_uppercased.c: New file.
23009         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23010         generated by gen-uni-tables.
23011         * modules/unictype/property-changes-when-uppercased-tests: New file.
23012         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23013         automatically generated by gen-uni-tables.
23014
23015         New module 'unictype/property-changes-when-lowercased'.
23016         * modules/unictype/property-changes-when-lowercased: New file.
23017         * lib/unictype/pr_changes_when_lowercased.c: New file.
23018         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23019         generated by gen-uni-tables.
23020         * modules/unictype/property-changes-when-lowercased-tests: New file.
23021         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23022         automatically generated by gen-uni-tables.
23023
23024         New module 'unictype/property-case-ignorable'.
23025         * modules/unictype/property-case-ignorable: New file.
23026         * lib/unictype/pr_case_ignorable.c: New file.
23027         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23028         by gen-uni-tables.
23029         * modules/unictype/property-case-ignorable-tests: New file.
23030         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23031         generated by gen-uni-tables.
23032
23033         New module 'unictype/property-cased'.
23034         * modules/unictype/property-cased: New file.
23035         * lib/unictype/pr_cased.c: New file.
23036         * lib/unictype/pr_cased.h: New file, automatically generated by
23037         gen-uni-tables.
23038         * modules/unictype/property-cased-tests: New file.
23039         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23040         gen-uni-tables.
23041
23042 2011-01-09  Bruno Haible  <bruno@clisp.org>
23043
23044         Update to Unicode 5.2.0.
23045         * lib/gen-uni-tables.c (output_predicate, output_category,
23046         output_combclass, output_bidi_category, output_decimal_digit_test,
23047         output_decimal_digit, output_digit_test, output_digit,
23048         output_numeric_test, output_numeric, output_mirror, output_scripts,
23049         output_scripts_byname, output_blocks, output_ident_category): Fix
23050         comment header.
23051         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23052         get_wbp.
23053         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23054         items.
23055         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23056         Changes_When_Lowercased, Changes_When_Uppercased,
23057         Changes_When_Titlecased, Changes_When_Casefolded,
23058         Changes_When_Casemapped.
23059         (is_property_alphabetic, is_property_default_ignorable_code_point):
23060         Update for Unicode 5.2.0.
23061         (is_property_cased, is_property_case_ignorable,
23062         is_property_changes_when_lowercased,
23063         is_property_changes_when_uppercased,
23064         is_property_changes_when_titlecased,
23065         is_property_changes_when_casefolded,
23066         is_property_changes_when_casemapped): New functions.
23067         (output_properties): Output also the properties cased, case_ignorable,
23068         changes_when_lowercased, changes_when_uppercased,
23069         changes_when_titlecased, changes_when_casefolded,
23070         changes_when_casemapped.
23071         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23072         Unicode TR#11 revision 17 -> 19.
23073         (LBP_CP): New enumeration value.
23074         (LBP_*): Adjust values accordingly.
23075         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23076         TR#14 revision 22 -> 24.
23077         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23078         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23079         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23080         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23081         is_WBP_MIDLETTER.
23082         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23083         the code1 and code2 of each composition rule.
23084         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23085         * lib/unicase/ignorable.h: Likewise.
23086         * lib/unicase/tocasefold.h: Likewise.
23087         * lib/unicase/tolower.h: Likewise.
23088         * lib/unicase/totitle.h: Likewise.
23089         * lib/unicase/toupper.h: Likewise.
23090         * lib/unictype/bidi_of.h: Likewise.
23091         * lib/unictype/blocks.h: Likewise.
23092         * lib/unictype/categ_C.h: Likewise.
23093         * lib/unictype/categ_Cf.h: Likewise.
23094         * lib/unictype/categ_Cn.h: Likewise.
23095         * lib/unictype/categ_L.h: Likewise.
23096         * lib/unictype/categ_Ll.h: Likewise.
23097         * lib/unictype/categ_Lm.h: Likewise.
23098         * lib/unictype/categ_Lo.h: Likewise.
23099         * lib/unictype/categ_Lu.h: Likewise.
23100         * lib/unictype/categ_M.h: Likewise.
23101         * lib/unictype/categ_Mc.h: Likewise.
23102         * lib/unictype/categ_Mn.h: Likewise.
23103         * lib/unictype/categ_N.h: Likewise.
23104         * lib/unictype/categ_Nd.h: Likewise.
23105         * lib/unictype/categ_Nl.h: Likewise.
23106         * lib/unictype/categ_No.h: Likewise.
23107         * lib/unictype/categ_P.h: Likewise.
23108         * lib/unictype/categ_Pd.h: Likewise.
23109         * lib/unictype/categ_Po.h: Likewise.
23110         * lib/unictype/categ_S.h: Likewise.
23111         * lib/unictype/categ_Sc.h: Likewise.
23112         * lib/unictype/categ_So.h: Likewise.
23113         * lib/unictype/categ_of.h: Likewise.
23114         * lib/unictype/combining.h: Likewise.
23115         * lib/unictype/ctype_alnum.h: Likewise.
23116         * lib/unictype/ctype_alpha.h: Likewise.
23117         * lib/unictype/ctype_graph.h: Likewise.
23118         * lib/unictype/ctype_lower.h: Likewise.
23119         * lib/unictype/ctype_print.h: Likewise.
23120         * lib/unictype/ctype_punct.h: Likewise.
23121         * lib/unictype/ctype_upper.h: Likewise.
23122         * lib/unictype/decdigit.h: Likewise.
23123         * lib/unictype/digit.h: Likewise.
23124         * lib/unictype/numeric.h: Likewise.
23125         * lib/unictype/pr_alphabetic.h: Likewise.
23126         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23127         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23128         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23129         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23130         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23131         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23132         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23133         * lib/unictype/pr_combining.h: Likewise.
23134         * lib/unictype/pr_composite.h: Likewise.
23135         * lib/unictype/pr_currency_symbol.h: Likewise.
23136         * lib/unictype/pr_dash.h: Likewise.
23137         * lib/unictype/pr_decimal_digit.h: Likewise.
23138         * lib/unictype/pr_deprecated.h: Likewise.
23139         * lib/unictype/pr_diacritic.h: Likewise.
23140         * lib/unictype/pr_extender.h: Likewise.
23141         * lib/unictype/pr_grapheme_base.h: Likewise.
23142         * lib/unictype/pr_grapheme_extend.h: Likewise.
23143         * lib/unictype/pr_grapheme_link.h: Likewise.
23144         * lib/unictype/pr_id_continue.h: Likewise.
23145         * lib/unictype/pr_id_start.h: Likewise.
23146         * lib/unictype/pr_ideographic.h: Likewise.
23147         * lib/unictype/pr_ignorable_control.h: Likewise.
23148         * lib/unictype/pr_logical_order_exception.h: Likewise.
23149         * lib/unictype/pr_lowercase.h: Likewise.
23150         * lib/unictype/pr_numeric.h: Likewise.
23151         * lib/unictype/pr_other_alphabetic.h: Likewise.
23152         * lib/unictype/pr_punctuation.h: Likewise.
23153         * lib/unictype/pr_sentence_terminal.h: Likewise.
23154         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23155         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23156         * lib/unictype/pr_unified_ideograph.h: Likewise.
23157         * lib/unictype/pr_uppercase.h: Likewise.
23158         * lib/unictype/pr_xid_continue.h: Likewise.
23159         * lib/unictype/pr_xid_start.h: Likewise.
23160         * lib/unictype/pr_zero_width.h: Likewise.
23161         * lib/unictype/scripts.h: Likewise.
23162         * lib/unictype/scripts_byname.gperf: Likewise.
23163         * lib/unictype/sy_java_ident.h: Likewise.
23164         * lib/unigbrk/gbrkprop.h: Likewise.
23165         * lib/unilbrk/lbrkprop1.h: Likewise.
23166         * lib/unilbrk/lbrkprop2.h: Likewise.
23167         * lib/unilbrk/lbrktables.h: Likewise.
23168         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23169         LBP_CP. Implement rule LB30.
23170         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23171         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23172         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23173         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23174         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23175         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23176         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23177         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23178         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23179         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23180         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23181         bits instead of 16 bits in the code1 and code2 of each composition
23182         rule.
23183         (uc_composition): Update for Unicode 5.2.0.
23184         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23185         * lib/uninorm/decomposition-table2.h: Likewise.
23186         * lib/uniwbrk/wbrkprop.h: Likewise.
23187         * tests/unicase/test-cased.c: Likewise.
23188         * tests/unicase/test-ignorable.c: Likewise.
23189         * tests/unicase/test-uc_tolower.c: Likewise.
23190         * tests/unicase/test-uc_totitle.c: Likewise.
23191         * tests/unicase/test-uc_toupper.c: Likewise.
23192         * tests/unictype/test-categ_C.c: Likewise.
23193         * tests/unictype/test-categ_Cf.c: Likewise.
23194         * tests/unictype/test-categ_Cn.c: Likewise.
23195         * tests/unictype/test-categ_L.c: Likewise.
23196         * tests/unictype/test-categ_Ll.c: Likewise.
23197         * tests/unictype/test-categ_Lm.c: Likewise.
23198         * tests/unictype/test-categ_Lo.c: Likewise.
23199         * tests/unictype/test-categ_Lu.c: Likewise.
23200         * tests/unictype/test-categ_M.c: Likewise.
23201         * tests/unictype/test-categ_Mc.c: Likewise.
23202         * tests/unictype/test-categ_Mn.c: Likewise.
23203         * tests/unictype/test-categ_N.c: Likewise.
23204         * tests/unictype/test-categ_Nd.c: Likewise.
23205         * tests/unictype/test-categ_Nl.c: Likewise.
23206         * tests/unictype/test-categ_No.c: Likewise.
23207         * tests/unictype/test-categ_P.c: Likewise.
23208         * tests/unictype/test-categ_Pd.c: Likewise.
23209         * tests/unictype/test-categ_Po.c: Likewise.
23210         * tests/unictype/test-categ_S.c: Likewise.
23211         * tests/unictype/test-categ_Sc.c: Likewise.
23212         * tests/unictype/test-categ_So.c: Likewise.
23213         * tests/unictype/test-ctype_alnum.c: Likewise.
23214         * tests/unictype/test-ctype_alpha.c: Likewise.
23215         * tests/unictype/test-ctype_graph.c: Likewise.
23216         * tests/unictype/test-ctype_lower.c: Likewise.
23217         * tests/unictype/test-ctype_print.c: Likewise.
23218         * tests/unictype/test-ctype_punct.c: Likewise.
23219         * tests/unictype/test-ctype_upper.c: Likewise.
23220         * tests/unictype/test-decdigit.h: Likewise.
23221         * tests/unictype/test-digit.h: Likewise.
23222         * tests/unictype/test-numeric.h: Likewise.
23223         * tests/unictype/test-pr_alphabetic.c: Likewise.
23224         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23225         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23226         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23227         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23228         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23229         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23230         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23231         * tests/unictype/test-pr_combining.c: Likewise.
23232         * tests/unictype/test-pr_composite.c: Likewise.
23233         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23234         * tests/unictype/test-pr_dash.c: Likewise.
23235         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23236         * tests/unictype/test-pr_deprecated.c: Likewise.
23237         * tests/unictype/test-pr_diacritic.c: Likewise.
23238         * tests/unictype/test-pr_extender.c: Likewise.
23239         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23240         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23241         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23242         * tests/unictype/test-pr_id_continue.c: Likewise.
23243         * tests/unictype/test-pr_id_start.c: Likewise.
23244         * tests/unictype/test-pr_ideographic.c: Likewise.
23245         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23246         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23247         * tests/unictype/test-pr_lowercase.c: Likewise.
23248         * tests/unictype/test-pr_numeric.c: Likewise.
23249         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23250         * tests/unictype/test-pr_punctuation.c: Likewise.
23251         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23252         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23253         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23254         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23255         * tests/unictype/test-pr_uppercase.c: Likewise.
23256         * tests/unictype/test-pr_xid_continue.c: Likewise.
23257         * tests/unictype/test-pr_xid_start.c: Likewise.
23258         * tests/unictype/test-pr_zero_width.c: Likewise.
23259         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23260         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23261         changed behaviour: line breaking is now disallowed between a letter
23262         or '=' and '('.
23263         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23264         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23265         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23266         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23267         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23268         lib/uniwidth/width.c.
23269         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23270         without comments, but with the original copyright notice.
23271         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23272         changes.
23273         * lib/unictype/categ_Cc.h: Likewise.
23274         * lib/unictype/categ_Co.h: Likewise.
23275         * lib/unictype/categ_Cs.h: Likewise.
23276         * lib/unictype/categ_Lt.h: Likewise.
23277         * lib/unictype/categ_Me.h: Likewise.
23278         * lib/unictype/categ_Pc.h: Likewise.
23279         * lib/unictype/categ_Pe.h: Likewise.
23280         * lib/unictype/categ_Pf.h: Likewise.
23281         * lib/unictype/categ_Pi.h: Likewise.
23282         * lib/unictype/categ_Ps.h: Likewise.
23283         * lib/unictype/categ_Sk.h: Likewise.
23284         * lib/unictype/categ_Sm.h: Likewise.
23285         * lib/unictype/categ_Z.h: Likewise.
23286         * lib/unictype/categ_Zl.h: Likewise.
23287         * lib/unictype/categ_Zp.h: Likewise.
23288         * lib/unictype/categ_Zs.h: Likewise.
23289         * lib/unictype/ctype_blank.h: Likewise.
23290         * lib/unictype/ctype_cntrl.h: Likewise.
23291         * lib/unictype/ctype_digit.h: Likewise.
23292         * lib/unictype/ctype_space.h: Likewise.
23293         * lib/unictype/ctype_xdigit.h: Likewise.
23294         * lib/unictype/mirror.h: Likewise.
23295         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23296         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23297         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23298         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23299         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23300         * lib/unictype/pr_bidi_control.h: Likewise.
23301         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23302         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23303         * lib/unictype/pr_bidi_pdf.h: Likewise.
23304         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23305         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23306         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23307         * lib/unictype/pr_format_control.h: Likewise.
23308         * lib/unictype/pr_hex_digit.h: Likewise.
23309         * lib/unictype/pr_hyphen.h: Likewise.
23310         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23311         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23312         * lib/unictype/pr_iso_control.h: Likewise.
23313         * lib/unictype/pr_join_control.h: Likewise.
23314         * lib/unictype/pr_left_of_pair.h: Likewise.
23315         * lib/unictype/pr_line_separator.h: Likewise.
23316         * lib/unictype/pr_math.h: Likewise.
23317         * lib/unictype/pr_non_break.h: Likewise.
23318         * lib/unictype/pr_not_a_character.h: Likewise.
23319         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23320         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23321         * lib/unictype/pr_other_id_continue.h: Likewise.
23322         * lib/unictype/pr_other_id_start.h: Likewise.
23323         * lib/unictype/pr_other_lowercase.h: Likewise.
23324         * lib/unictype/pr_other_math.h: Likewise.
23325         * lib/unictype/pr_other_uppercase.h: Likewise.
23326         * lib/unictype/pr_paired_punctuation.h: Likewise.
23327         * lib/unictype/pr_paragraph_separator.h: Likewise.
23328         * lib/unictype/pr_pattern_syntax.h: Likewise.
23329         * lib/unictype/pr_pattern_white_space.h: Likewise.
23330         * lib/unictype/pr_private_use.h: Likewise.
23331         * lib/unictype/pr_quotation_mark.h: Likewise.
23332         * lib/unictype/pr_radical.h: Likewise.
23333         * lib/unictype/pr_soft_dotted.h: Likewise.
23334         * lib/unictype/pr_space.h: Likewise.
23335         * lib/unictype/pr_titlecase.h: Likewise.
23336         * lib/unictype/pr_variation_selector.h: Likewise.
23337         * lib/unictype/pr_white_space.h: Likewise.
23338         * lib/unictype/sy_c_ident.h: Likewise.
23339         * lib/unictype/sy_c_whitespace.h: Likewise.
23340         * lib/unictype/sy_java_whitespace.h: Likewise.
23341         * modules/uni*/*: Bump version number of expected libunistring version.
23342         Reported by Simon Josefsson.
23343
23344 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23345
23346         useless-if-before-free: fix typo in --help and make the internal,
23347         automatic version date update process work once again.
23348         --help output contained a NUL character instead of the
23349         backslash-zero that was intended.  Also, the "must lie within
23350         the first 8 lines" line is on line 9, and hence not getting
23351         automatically updated.
23352         * build-aux/useless-if-before-free: Fix the former by adding a
23353         backslash, and the latter by condensing the three lines of what-it-does
23354         to a single line, leaving one line of slack for the future.
23355
23356 2011-01-09  Bruno Haible  <bruno@clisp.org>
23357
23358         uniwidth/width: Fix width of U+1D173..U+1D17A.
23359         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23360         symbolic_width, output_width_property_test): New functions.
23361         (main): Invoke output_nonspacing_property, output_width_property_test.
23362         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23363         U+1D173..U+1D17A.
23364         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23365         1.
23366         * modules/uniwidth/*: Bump version number of expected libunistring
23367         version.
23368         * modules/unilbrk/*: Likewise.
23369
23370 2011-01-08  Bruno Haible  <bruno@clisp.org>
23371
23372         uninorm tests: Preserve copyright of Unicode data file.
23373         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23374         Mention modifications.
23375
23376 2011-01-08  Bruno Haible  <bruno@clisp.org>
23377
23378         gen-uni-tables: Prepare for Unicode 5.2.0.
23379         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23380         (debug_output_lbp, output_lbp): Update.
23381
23382 2011-01-08  Bruno Haible  <bruno@clisp.org>
23383
23384         unilbrk: Clarify gen-uni-tables.c code.
23385         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23386         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23387         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23388
23389 2011-01-07  Bruno Haible  <bruno@clisp.org>
23390
23391         strtod: Restore errno when successfully parsing Infinity or NaN.
23392         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23393         restore the original errno.
23394
23395 2011-01-07  Bruno Haible  <bruno@clisp.org>
23396
23397         remove test: Avoid failure on HP-UX 11.
23398         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23399
23400 2011-01-07  Bruno Haible  <bruno@clisp.org>
23401
23402         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23403         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23404         error code.
23405
23406 2011-01-07  Pádraig Brady <P@draigBrady.com>
23407
23408         ignore-value: fixup comments, and add Eric Blake
23409         as an author since he rewrote the macros.
23410         * lib/ignore-value.h (ignore_value):  State that
23411         we now support aggregates.  Also specify exactly
23412         when the GCC warn_unused_result feature was added.
23413
23414 2011-01-06  Eric Blake  <eblake@redhat.com>
23415
23416         ignore-value: support aggregate types
23417         * lib/ignore-value.h (ignore_value): Provide separate gcc
23418         definition.
23419         * modules/ignore-value-tests: New test module.
23420         * tests/test-ignore-value.c: New test.
23421
23422         maint.mk: improve sc_prohibit_strcmp regex
23423         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23424         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23425         definition of STRNEQ.
23426
23427         signal: work around Haiku issue with SIGBUS
23428         * lib/siglist.h: Add comment.
23429         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23430         strsignal's favoring of SIGSEGV.
23431         * tests/test-signal.c (main): Avoid test failure.
23432         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23433         Reported by Scott McCreary.
23434
23435         maint.mk: add pre-release check to ensure submodule commits are public
23436         * top/maint.mk (public-submodule-commit): New rule.
23437         (submodule-checks): New variable.
23438         (alpha beta stable): Depend on the variable.
23439
23440 2011-01-05  Pádraig Brady <P@draigBrady.com>
23441         and Jim Meyering  <meyering@redhat.com>
23442
23443         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23444         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23445         (ATTRIBUTE_DEPRECATED): Define.
23446         (_ignore_case): New function.
23447         (ignore_value): New macro, to replace the old function.
23448         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23449         * modules/ignore-value (Depends-on): Add stdint.
23450
23451 2011-01-04  Eric Blake  <eblake@redhat.com>
23452
23453         doc: regenerate INSTALL
23454         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23455         @firstparagraphindent support, now that autoconf dropped it.
23456         (INSTALL_PRELUDE): Reinstate old macro.
23457         * doc/install.texi: Resync from autoconf.
23458         * doc/INSTALL: Reflect recent autoconf update.
23459         * doc/INSTALL.ISO: Likewise.
23460         * doc/INSTALL.UTF-8: Likewise.
23461         Reported by Karl Berry.
23462
23463 2011-01-04  Bruce Korb  <address@hidden>
23464
23465         git-version-gen: avoid a sub-shell
23466         * build-aux/git-version-gen: Redirect stderr in `...` via
23467         "exec 2>...", rather than via an added sub-shell.
23468
23469 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23470
23471         git-version-gen: use (...) rather than sh -c '...'
23472         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23473         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23474
23475 2011-01-03  Jim Meyering  <meyering@redhat.com>
23476
23477         git-version-gen: convert leading TABs to spaces
23478         * build-aux/git-version-gen: Expand leading TABs.
23479
23480         git-version-gen: handle failed "git rev-list"
23481         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23482         from git and proceeding as if it had succeeded but printed no SHA1
23483         checksums, suppress the diagnostic and handle the failure.
23484         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23485
23486         git-version-gen: include command name in one more diagnostic
23487         * build-aux/git-version-gen: When the required .tarball-version file
23488         was missing or unreadable, you might see the diagnostic from "cat",
23489         but no trace of the name of the invoking script.  Now, you still see
23490         the diagnostic from cat, but also get one from "git-version-gen: ".
23491         Inspired by a patch from Bruce Korb.
23492
23493         update-copyright: adjust test to match changed code
23494         * tests/test-update-copyright.sh: Change test's expected output
23495         to match new actual output.
23496
23497 2011-01-02  Bruno Haible  <bruno@clisp.org>
23498
23499         getlogin_r: Avoid test failure on HP-UX 11.
23500         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23501         ERANGE when the second argument is zero.
23502         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23503         portability problem.
23504
23505 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23506
23507         * build-aux/update-copyright: doc Simon's changes
23508
23509 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23510
23511         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23512         environment variable.
23513
23514 2011-01-02  Bruno Haible  <bruno@clisp.org>
23515
23516         unigbrk: Avoid gcc warnings.
23517         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23518         unused variable.
23519         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23520         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23521         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23522         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23523         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23524         Change type of first argument to 'const char *'.
23525         (main): Remove unused variable.
23526         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23527         type of first argument to 'const char *'.
23528         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23529         Likewise.
23530         (main): Change type of variable 's'.
23531         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23532         to 'int'.
23533
23534 2011-01-02  Bruno Haible  <bruno@clisp.org>
23535
23536         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23538         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23539         bug.
23540         * lib/pwrite.c: Undo 2010-12-31 patch.
23541         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23542
23543 2011-01-02  Bruno Haible  <bruno@clisp.org>
23544
23545         pread: Fix test whether it works.
23546         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23547
23548 2011-01-02  Bruno Haible  <bruno@clisp.org>
23549
23550         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23551         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23552         ends in "6". Don't require a specific month name. Try also the locale
23553         names found on HP-UX 11 and Solaris 7.
23554
23555 2011-01-02  Bruno Haible  <bruno@clisp.org>
23556
23557         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23558         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23559         C linkage.
23560         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23561
23562 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23563
23564         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23565         for consistency, since the "cluster" term is not used elsewhere.
23566         * lib/unigbrk.in.h: Update name.
23567         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23568         * lib/unigbrk/u16-grapheme-next.c: Update name.
23569         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23570         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23571         * lib/unigbrk/u32-grapheme-next.c: Update name.
23572         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23573         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23574         * lib/unigbrk/u8-grapheme-next.c: Update name.
23575         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23576         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23577         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23578         Suggested by Bruno Haible.
23579
23580 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23581
23582         Remove module 'u8-grapheme-len' as too redundant with
23583         'u8-grapheme-next'.
23584         * modules/unigbrk/u8-grapheme-len: Delete file.
23585         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23586         * lib/unigbrk.in.h: Remove prototype for deleted function.
23587         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23588         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23589
23590         Remove module 'u16-grapheme-len' as too redundant with
23591         'u16-grapheme-next'.
23592         * modules/unigbrk/u16-grapheme-len: Delete file.
23593         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23594         * lib/unigbrk.in.h: Remove prototype for deleted function.
23595         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23596         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23597
23598         Remove module 'u32-grapheme-len' as too redundant with
23599         'u32-grapheme-next'.
23600         * modules/unigbrk/u32-grapheme-len: Delete file.
23601         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23602         * lib/unigbrk.in.h: Remove prototype for deleted function.
23603         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23604         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23605
23606         Suggested by Bruno Haible.
23607
23608 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23609
23610         * unigbrk.in.h: Fix typo: "ben" => "been".
23611         Reported by Bruno Haible.
23612
23613 2011-01-01  Jim Meyering  <meyering@redhat.com>
23614
23615         maint: update almost all copyright ranges to include 2011
23616         Run the new "make update-copyright" rule.
23617
23618 2011-01-01  Jim Meyering  <meyering@redhat.com>
23619
23620         maint: update-copyright: exempt doc/INSTALL*
23621         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23622         since they are generated.  Suggested by Bruno Haible.
23623
23624 2011-01-01  Jim Meyering  <meyering@redhat.com>
23625
23626         maint: refine the update-copyright rule
23627         * Makefile (update-copyright): Also exclude any file that includes
23628         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23629         code that merely generates the comment.
23630
23631 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23632
23633         New module 'u8-grapheme-len'.
23634         * modules/unigbrk/u8-grapheme-len: New file.
23635         * modules/unigbrk/u8-grapheme-len-tests: New file.
23636         * lib/unigbrk.in.h: Add prototype for new function.
23637         * lib/unigbrk/u8-grapheme-len.c: New file.
23638         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23639
23640         New module 'u16-grapheme-len'.
23641         * modules/unigbrk/u16-grapheme-len: New file.
23642         * modules/unigbrk/u16-grapheme-len-tests: New file.
23643         * lib/unigbrk.in.h: Add prototype for new function.
23644         * lib/unigbrk/u16-grapheme-len.c: New file.
23645         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23646
23647         New module 'u32-grapheme-len'.
23648         * modules/unigbrk/u32-grapheme-len: New file.
23649         * modules/unigbrk/u32-grapheme-len-tests: New file.
23650         * lib/unigbrk.in.h: Add prototype for new function.
23651         * lib/unigbrk/u32-grapheme-len.c: New file.
23652         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23653
23654         New module 'u8-grapheme-next'.
23655         * modules/unigbrk/u8-grapheme-next: New file.
23656         * modules/unigbrk/u8-grapheme-next-tests: New file.
23657         * lib/unigbrk.in.h: Add prototype for new function.
23658         * lib/unigbrk/u8-grapheme-next.c: New file.
23659         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23660
23661         New module 'u16-grapheme-next'.
23662         * modules/unigbrk/u16-grapheme-next: New file.
23663         * modules/unigbrk/u16-grapheme-next-tests: New file.
23664         * lib/unigbrk.in.h: Add prototype for new function.
23665         * lib/unigbrk/u16-grapheme-next.c: New file.
23666         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23667
23668         New module 'u32-grapheme-next'.
23669         * modules/unigbrk/u32-grapheme-next: New file.
23670         * modules/unigbrk/u32-grapheme-next-tests: New file.
23671         * lib/unigbrk.in.h: Add prototype for new function.
23672         * lib/unigbrk/u32-grapheme-next.c: New file.
23673         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23674
23675         New module 'u8-grapheme-prev'.
23676         * modules/unigbrk/u8-grapheme-prev: New file.
23677         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23678         * lib/unigbrk.in.h: Add prototype for new function.
23679         * lib/unigbrk/u8-grapheme-prev.c: New file.
23680         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23681
23682         New module 'u16-grapheme-prev'.
23683         * modules/unigbrk/u16-grapheme-prev: New file.
23684         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23685         * lib/unigbrk.in.h: Add prototype for new function.
23686         * lib/unigbrk/u16-grapheme-prev.c: New file.
23687         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23688
23689         New module 'u32-grapheme-prev'.
23690         * modules/unigbrk/u32-grapheme-prev: New file.
23691         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23692         * lib/unigbrk.in.h: Add prototype for new function.
23693         * lib/unigbrk/u32-grapheme-prev.c: New file.
23694         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23695
23696         New module 'u8-grapheme-breaks'.
23697         * modules/unigbrk/u8-grapheme-breaks: New file.
23698         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23699         * lib/unigbrk.in.h: Add prototype for new function.
23700         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23701         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23702
23703         New module 'u16-grapheme-breaks'.
23704         * modules/unigbrk/u16-grapheme-breaks: New file.
23705         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23706         * lib/unigbrk.in.h: Add prototype for new function.
23707         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23708         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23709
23710         New module 'u32-grapheme-breaks'.
23711         * modules/unigbrk/u32-grapheme-breaks: New file.
23712         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23713         * lib/unigbrk.in.h: Add prototype for new function.
23714         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23715         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23716
23717         New module 'ulc-grapheme-breaks'.
23718         * modules/unigbrk/ulc-grapheme-breaks: New file.
23719         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23720         * m4/locale-ar.m4: New file.
23721         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23722         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23723         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23724
23725 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23726
23727         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23728         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23729         modified how this file was generated before I initially submitted
23730         the module, but failed to regenerate it.  This meant that several
23731         of the level2 entries were wrong.
23732         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23733         Remove the division-by-2 that is folded into the table now that
23734         gbrkprop.h has been regenerated properly.  Now -1 entries are
23735         handled correctly.
23736
23737         New module 'unigbrk/uc-gbrk-prop-tests'.
23738         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23739         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23740         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23741         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23742
23743 2011-01-01  Bruno Haible  <bruno@clisp.org>
23744
23745         Avoid use of hexadecimal escapes.
23746         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23747         instead of hexadecimal escapes.
23748
23749 2011-01-01  Jim Meyering  <meyering@redhat.com>
23750
23751         maint: new rule to update copyright year ranges
23752         * Makefile (update-copyright): New rule.
23753
23754         maint: indent with TABs in Makefile
23755         * Makefile: Expand leading sequences of spaces to TABs
23756
23757         version-etc: update the copyright year it reports
23758         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23759
23760 2010-12-31  Bruno Haible  <bruno@clisp.org>
23761
23762         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23763         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23764         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23765         zero.
23766
23767 2010-12-31  Bruno Haible  <bruno@clisp.org>
23768
23769         pwrite: Work around HP-UX 11.11 bug.
23770         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23771         works and set REPLACE_PWRITE if not.
23772         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23773         function.
23774         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23775
23776 2010-12-31  Bruno Haible  <bruno@clisp.org>
23777
23778         pread: Work around HP-UX 11 bugs.
23779         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23780         and set REPLACE_PREAD if not.
23781         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23782
23783 2010-12-31  Eric Blake  <eblake@redhat.com>
23784
23785         nl_langinfo: fix YESEXPR on Irix 6.5
23786         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23787         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23788         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23789         it.
23790
23791 2010-12-31  Bruno Haible  <bruno@clisp.org>
23792
23793         iconv: Document HP-UX 11 bug.
23794         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23795
23796 2010-12-31  Bruno Haible  <bruno@clisp.org>
23797
23798         ldexpl: Fix link error on HP-UX 11.
23799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23800         LDEXPL_LIBM, using $ISNANL_LIBM.
23801
23802 2010-12-31  Eric Blake  <eblake@redhat.com>
23803
23804         ftello: avoid compilation failure with SunStudio c89
23805         * lib/ftello.c (ftello): Use lseek, not llseek.
23806
23807         tests: avoid failing coreutils tests on cygwin
23808         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23809         (create_exe_shims_): Return 0 when skipping.
23810
23811 2010-12-31  Bruno Haible  <bruno@clisp.org>
23812
23813         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23814         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23815
23816 2010-12-31  Bruno Haible  <bruno@clisp.org>
23817
23818         waitpid: Fix link error in C++ mode.
23819         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23820
23821 2010-12-31  Bruno Haible  <bruno@clisp.org>
23822
23823         isnan: Use GCC built-ins when possible.
23824         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23825         __builtin_isnan.
23826         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23827         (isnan): Define using GCC built-ins for GCC >= 4.0.
23828
23829 2010-12-31  Bruno Haible  <bruno@clisp.org>
23830
23831         isnand: Fix mistake.
23832         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23833         __builtin_isnand.
23834
23835 2010-12-31  Bruno Haible  <bruno@clisp.org>
23836
23837         open: Avoid C++ error on HP-UX 11.
23838         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23839
23840 2010-12-31  Bruno Haible  <bruno@clisp.org>
23841
23842         time_r: Add missing declarations on HP-UX 11.
23843         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23844         instead of HAVE_LOCALTIME_R.
23845         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23846         HAVE_LOCALTIME_R always.
23847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23848         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23849         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23850         HAVE_LOCALTIME_R.
23851         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23852         * doc/posix-functions/localtime_r.texi: Likewise.
23853
23854 2010-12-29  Eric Blake  <eblake@redhat.com>
23855
23856         mountlist: tweak previous commit
23857         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23858         Reported by Paul Eggert.
23859
23860         mountlist: fix local drive detection on cygwin
23861         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23862         that works for cygwin.
23863
23864 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23865
23866         ftoastr, snprintf: ftoastr + snprintf module
23867         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23868         since the snprintf module now should be good enough here.
23869         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23870         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23871         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23872         GNULIB_SNPRINTF only for the test directory, and the latter
23873         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23874         seems to suffice by itself.
23875
23876 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23877
23878         alloca: one step towards thread-safety
23879         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23880         need for a static variable.  All callers changed.  This does not
23881         make the alloca replacement thread-safe, but it's one step.
23882
23883         tests: minor indenting change
23884         * tests/init.sh: Sync from coreutils housekeeping patch
23885         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23886         to keep lines within 80 columns.
23887
23888 2010-12-28  Jim Meyering  <meyering@redhat.com>
23889
23890         regex: don't infloop on persistent failing calloc
23891         * lib/regexec.c (build_trtable): Return failure indication upon
23892         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23893         In glibc, this was fixed for version 2.13:
23894         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23895
23896 2010-12-28  Bruno Haible  <bruno@clisp.org>
23897             Paul Eggert <eggert@cs.ucla.edu>
23898
23899         linkat: Make implementation robust against system behaviour variations.
23900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23901         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23902         way, and to -2 if it needs a generic runtime test.
23903         * lib/linkat.c (solaris_optimized_link_immediate,
23904         solaris_optimized_link_follow): New functions.
23905         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23906         (check_same_link): Use it.
23907
23908 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23909
23910         New module 'unigbrk/base'.
23911         * modules/unigbrk/base: New file.
23912         * lib/unigbrk.in.h: New file.
23913
23914         New module 'unigbrk/uc-gbrk-prop'.
23915         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23916         * modules/unigbrk/uc-gbrk-prop: New file.
23917         * lib/unigbrk/gbrkprop.h: New file.
23918         * lib/unigbrk/uc-gbrk-prop.c: New file.
23919
23920         New module 'unigbrk/uc-is-grapheme-break'.
23921         * modules/unigbrk/uc-is-grapheme-break: New file.
23922         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23923         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23924         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23925         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23926         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23927
23928         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23929
23930 2010-12-27  Bruno Haible  <bruno@clisp.org>
23931
23932         linkat test: Avoid failure on Solaris 11 2010-11.
23933         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23934
23935 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23936
23937         utimens: work around glibc rounding bug on more platforms
23938         * lib/utimens.c (fdutimens): Work around rounding bug even if
23939         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23941
23942 2010-12-27  Bruno Haible  <bruno@clisp.org>
23943
23944         select tests: Improve comments.
23945         * tests/test-select.c (do_select): Add comments.
23946
23947 2010-12-27  Bruno Haible  <bruno@clisp.org>
23948
23949         select tests: Safer way of handling timeout.
23950         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23951         at every invocation.
23952
23953 2010-12-27  Bruno Haible  <bruno@clisp.org>
23954
23955         select tests: Use 'bool' where appropriate.
23956         * tests/test-select.c (connect_to_socket): Change argument type to
23957         'bool'.
23958
23959 2010-12-27  Bruno Haible  <bruno@clisp.org>
23960
23961         select tests: Use existing modules.
23962         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23963         (configure.ac): Don't test for unistd.h.
23964         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23965         declared in <unistd.h>.
23966
23967 2010-12-27  Bruno Haible  <bruno@clisp.org>
23968
23969         mbrtowc: Work around a Solaris 7 bug.
23970         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23971         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23972         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23973         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23974         MBRTOWC_NULL_ARG1_BUG.
23975         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23976         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23977         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23978         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23979
23980 2010-12-27  Jim Meyering  <meyering@redhat.com>
23981
23982         read-file.c: tweak syntax
23983         * lib/read-file.c (fread_file): Remove space after "*" in function
23984         definitions.
23985
23986 2010-12-27  Bruno Haible  <bruno@clisp.org>
23987
23988         times test: Avoid gcc warnings on OSF/1.
23989         * tests/test-times.c (main): Cast printf arguments from clock_t to
23990         'long int'.
23991
23992 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23993
23994         utimens: work around glibc rounding bug on older Linux kernels
23995         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23996         on Linux with a glibc whose utimes might not work, then work
23997         around a longstanding glibc bug involving rounding rather than
23998         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24000
24001 2010-12-26  Bruno Haible  <bruno@clisp.org>
24002
24003         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24004         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24005         _GL_CXXALIAS_SYS.
24006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24007
24008 2010-12-26  Bruno Haible  <bruno@clisp.org>
24009
24010         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24011         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24013         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24014         looking for the declaration.
24015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24016         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24017         problem.
24018         * doc/posix-functions/inet_pton.texi: Likewise.
24019
24020 2010-12-26  Bruno Haible  <bruno@clisp.org>
24021
24022         arpa_inet: Use the common idioms with C++ support.
24023         * lib/arpa_inet.in.h: Include c++defs.h.
24024         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24025         support.
24026         * modules/arpa_inet (Depends-on): Add c++defs.
24027         (Makefile.am): Substitute the contents of c++defs.h.
24028         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24029         * modules/arpa_inet-c++-tests: New file.
24030         * tests/test-arpa_inet-c++.cc: New file.
24031
24032 2010-12-25  Bruno Haible  <bruno@clisp.org>
24033
24034         Fix more C++ link errors on Solaris 8.
24035         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24036         $(LIB_EACCESS).
24037         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24038         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24039         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24040         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24041         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24042
24043 2010-12-25  Bruno Haible  <bruno@clisp.org>
24044
24045         printf-posix: Fix link error when a non-GCC compiler is used.
24046         * lib/stdio.in.h (printf): When not using GCC, override printf
24047         correctly.
24048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24049
24050 2010-12-25  Bruno Haible  <bruno@clisp.org>
24051
24052         strerror_r-posix: Update doc.
24053         * doc/posix-functions/strerror_r.texi: Update doc about the return
24054         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24055
24056 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24057
24058         utimens: simplify the logic of the previous change
24059         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24060         This should not affect whether the test succeeds or fails.
24061
24062         utimens: configure better on hosts with NFS clock skew
24063         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24064         uses the clock of the local host.  It might use the clock of the
24065         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24067
24068 2010-12-25  Bruno Haible  <bruno@clisp.org>
24069
24070         ptsname test: Avoid failure on Solaris.
24071         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24072         open a pseudo-terminal; don't use BSD-style ptys.
24073         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24074
24075 2010-12-25  Bruno Haible  <bruno@clisp.org>
24076
24077         ptsname: Avoid ERANGE failure on some systems.
24078         * lib/ptsname.c (buffer): Increase size.
24079
24080 2010-12-25  Bruno Haible  <bruno@clisp.org>
24081
24082         rename, renameat: Avoid test failures at NFS mounted locations.
24083         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24084         so that subsequent mkdir calls succeed.
24085
24086 2010-12-25  Bruno Haible  <bruno@clisp.org>
24087
24088         iswblank: Fix C++ link error on Solaris 8.
24089         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24090         _GL_FUNCDECL_SYS.
24091
24092 2010-12-25  Bruno Haible  <bruno@clisp.org>
24093
24094         unistd: Fix C++ link error on Solaris 8.
24095         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24096
24097 2010-12-25  Bruno Haible  <bruno@clisp.org>
24098
24099         readlink doc: Mention an old glibc bug.
24100         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24101
24102 2010-12-25  Bruno Haible  <bruno@clisp.org>
24103
24104         fcntl-h: Fix for use of C++ on glibc systems.
24105         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24106         also on glibc systems in C++ mode.
24107         Reported by Gary V. Vaughan <gary@gnu.org>.
24108
24109 2010-12-25  Bruno Haible  <bruno@clisp.org>
24110
24111         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24112         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24113
24114 2010-12-25  Bruno Haible  <bruno@clisp.org>
24115
24116         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24117         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24118         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24119         test whether truncl works according to ISO C 99 with IEC 60559.
24120         * m4/truncl-ieee.m4: New file.
24121         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24122         m4/signbit.m4.
24123         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24124
24125 2010-12-25  Bruno Haible  <bruno@clisp.org>
24126
24127         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24128         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24129         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24130         test whether ceill works according to ISO C 99 with IEC 60559.
24131         * m4/ceill-ieee.m4: New file.
24132         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24133         m4/signbit.m4.
24134         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24135
24136 2010-12-25  Bruno Haible  <bruno@clisp.org>
24137
24138         Ensure all prerequisites of <wchar.h> are included.
24139         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24140         before <wchar.h>.
24141         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24142         gl_MBRLEN_NUL_RETVAL): Likewise.
24143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24145         AC_FUNC_MBRTOWC): Likewise.
24146         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24147         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24148         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24149         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24150         Likewise.
24151         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24152         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24153         (gl_WCHAR_H): Improve comments.
24154         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24155
24156 2010-12-25  Bruno Haible  <bruno@clisp.org>
24157
24158         strtok_r: Fix C syntax error in autoconf macro.
24159         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24160         characters in test program.
24161
24162 2010-12-24  Bruno Haible  <bruno@clisp.org>
24163
24164         ceil, trunc, round: Fix gcc warnings.
24165         * lib/ceil.c (MIN): Undefine before redefining.
24166         * lib/trunc.c (MIN): Likewise.
24167         * lib/round.c (MIN): Likewise.
24168         Include <math.h> first.
24169
24170 2010-12-24  Bruno Haible  <bruno@clisp.org>
24171
24172         select tests: Avoid failures on OSF/1 5.1.
24173         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24174         failure of closing the last socket; it may fail with ECONNRESET.
24175
24176 2010-12-24  Eric Blake  <eblake@redhat.com>
24177
24178         stdint: avoid HP-UX 10.20 preprocessor bug
24179         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24180         than #if.
24181         * tests/test-floor2.c (main): Likewise.
24182         Reported by Peter O'Gorman.
24183
24184         pipe: make obsoletion transition easier
24185         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24186         * modules/pipe (Files): Include revived file.
24187         (Include): Drop reference, to mirror getdate's behavior.
24188
24189 2010-12-24  Bruno Haible  <bruno@clisp.org>
24190
24191         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24192         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24193         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24194         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24195
24196 2010-12-24  Bruno Haible  <bruno@clisp.org>
24197
24198         gethostname: Ensure declaration on NonStop Kernel.
24199         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24201
24202 2010-12-24  Bruno Haible  <bruno@clisp.org>
24203
24204         sys_select: Ensure all necessary types on NonStop Kernel.
24205         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24206         include <sys/time.h>.
24207         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24208         NonStop Kernel.
24209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24210
24211 2010-12-24  Bruno Haible  <bruno@clisp.org>
24212
24213         sys_select: Remove unneeded include.
24214         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24215         have <sys/select.h>.
24216
24217 2010-12-24  Bruno Haible  <bruno@clisp.org>
24218
24219         gethostname: Provide a fallback for HOST_NAME_MAX.
24220         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24221         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24222         instead.
24223         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24224
24225 2010-12-24  Bruno Haible  <bruno@clisp.org>
24226
24227         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24228         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24229         (SA_RESTART): Likewise.
24230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24231
24232 2010-12-24  Bruno Haible  <bruno@clisp.org>
24233
24234         signal: Define NSIG.
24235         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24236         * tests/test-signal.c (nsig): New variable.
24237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24238
24239 2010-12-24  Bruno Haible  <bruno@clisp.org>
24240
24241         rename, renameat: Avoid test failures on OSF/1 5.1.
24242         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24243         alternative error codes.
24244         * tests/test-renameat.c (main): Likewise.
24245
24246 2010-12-24  Bruno Haible  <bruno@clisp.org>
24247
24248         *printf: Detect large precisions bug on Solaris 10/SPARC.
24249         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24250         by Paul Eggert.
24251         * tests/test-snprintf-posix.h (test_function): Add this test code here
24252         too.
24253         * tests/test-sprintf-posix.h (test_function): Likewise.
24254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24255         * tests/test-vasprintf-posix.c (test_function): Likewise.
24256         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24257         around by gnulib.
24258         * doc/posix-functions/printf.texi: Likewise.
24259         * doc/posix-functions/snprintf.texi: Likewise.
24260         * doc/posix-functions/sprintf.texi: Likewise.
24261         * doc/posix-functions/vfprintf.texi: Likewise.
24262         * doc/posix-functions/vprintf.texi: Likewise.
24263         * doc/posix-functions/vsnprintf.texi: Likewise.
24264         * doc/posix-functions/vsprintf.texi: Likewise.
24265         * doc/posix-functions/dprintf.texi: Undo last commit.
24266         * doc/posix-functions/vdprintf.texi: Likewise.
24267
24268 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         tests: port test-fdutimensat.c to Solaris 8
24271         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24272         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24273         On Solaris 8, it fails with errno == ENOSYS, because there is no
24274         futimens (so it can't use the fd), and there is no lutimens (so it
24275         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24276
24277         vsnprintf: make more consistent with snprintf; doc fixes
24278
24279         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24280         the byte count return problem was promoted from the snprintf-posix
24281         to the snprintf module.
24282         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24283         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24284         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24285         * tests/test-snprintf.c (main): Check the byte count returned.
24286         * tests/test-vsnprintf.c (main): Likewise.
24287
24288 2010-12-23  Eric Blake  <eblake@redhat.com>
24289
24290         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24291         * modules/sigpipe (License): Relax license.
24292
24293 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         doc: document Solaris printf bug with large float precisions
24296         * doc/posix-functions/dprintf.texi (dprintf):
24297         * doc/posix-functions/fprintf.texi (fprintf):
24298         * doc/posix-functions/printf.texi (printf):
24299         * doc/posix-functions/snprintf.texi (snprintf):
24300         * doc/posix-functions/sprintf.texi (sprintf):
24301         * doc/posix-functions/vdprintf.texi (vdprintf):
24302         * doc/posix-functions/vfprintf.texi (vfprintf):
24303         * doc/posix-functions/vprintf.texi (vprintf):
24304         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24305         * doc/posix-functions/vsprintf.texi (vsprintf):
24306         Mention that these functions mishandle large floating point
24307         precisions on Solaris 10.  The same bug is also present in Solaris
24308         8, and I assume earlier.  This causes "cd gnulib-tests; make
24309         check" to fail on Solaris 8 (and I assume, later) when building
24310         the latest coreutils, in test-vasprintf-posix's call to
24311         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24312         the wide flavors (e.g., wprintf) so this patch just updates the
24313         documentation for the narrow ones.
24314
24315         test-posixtm.c: add two tests
24316         * tests/test-posixtm.c: Add two tests, to highlight the
24317         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24318         around this bug; this is merely to document it.
24319
24320 2010-12-22  Bruno Haible  <bruno@clisp.org>
24321
24322         getlogin_r: Work around portability problem on OSF/1.
24323         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24324         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24325         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24326         test for a truncated result.
24327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24328         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24329         * modules/getlogin_r (Depends-on): Add memchr.
24330         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24331
24332 2010-12-22  Bruno Haible  <bruno@clisp.org>
24333
24334         ptsname: Avoid test failure on OSF/1 5.1.
24335         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24336         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24337         (same_slave): New function.
24338         (main): Use it to compare ptsname's result with the expected file name.
24339
24340 2010-12-22  Bruno Haible  <bruno@clisp.org>
24341
24342         Port extended stdio modules to HP NonStop Kernel.
24343         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24344         macros.
24345         * lib/fbufmode.c: Update comments.
24346         * lib/fflush.c: Likewise.
24347         * lib/fpurge.c: Likewise.
24348         * lib/freadable.c: Likewise.
24349         * lib/freadahead.c: Likewise.
24350         * lib/freading.c: Likewise.
24351         * lib/freadptr.c: Likewise.
24352         * lib/freadseek.c: Likewise.
24353         * lib/fseeko.c: Likewise.
24354         * lib/fseterr.c: Likewise.
24355         * lib/fwritable.c: Likewise.
24356         * lib/fwriting.c: Likewise.
24357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24358
24359 2010-12-22  Bruno Haible  <bruno@clisp.org>
24360
24361         ttyname_r: Work around bug on OSF/1 5.1.
24362         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24364         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24365         present.
24366         * lib/ttyname_r.c (ttyname_r): Update comments.
24367
24368 2010-12-22  Bruno Haible  <bruno@clisp.org>
24369
24370         round: Implement result sign according to IEEE 754.
24371         * lib/round.c (MIN, MINUS_ZERO): New macros.
24372         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24373         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24374         * tests/test-round-ieee.c (main): Likewise.
24375         * tests/test-roundl-ieee.c (main): Likewise.
24376
24377         trunc: Implement result sign according to IEEE 754.
24378         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24379         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24380         * tests/test-trunc2.c: Include minus-zero.h.
24381         (MINUS_ZERO): New macro.
24382         (trunc_reference): Keep in sync with lib/trunc.c.
24383         * tests/test-truncf2.c: Include minus-zero.h.
24384         (MINUS_ZERO): New macro.
24385         (truncf_reference): Keep in sync with lib/trunc.c.
24386         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24387         * tests/test-trunc-ieee.c (main): Likewise.
24388         * tests/test-truncl-ieee.c (main): Likewise.
24389
24390         ceil: Implement result sign according to IEEE 754.
24391         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24392         (FUNC): Return -0.0 for -1 < x < 0.
24393         * tests/test-ceil2.c: Include minus-zero.h.
24394         (MINUS_ZERO): New macro.
24395         (ceil_reference): Keep in sync with lib/ceil.c.
24396         * tests/test-ceilf2.c: Include minus-zero.h.
24397         (MINUS_ZERO): New macro.
24398         (ceilf_reference): Keep in sync with lib/ceil.c.
24399         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24400         * tests/test-ceil-ieee.c (main): Likewise.
24401         * tests/test-ceill-ieee.c (main): Likewise.
24402
24403         floor: Implement result sign according to IEEE 754.
24404         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24405         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24406         * tests/test-floorf2.c (floorf_reference): Likewise.
24407         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24408         * tests/test-floor-ieee.c (main): Likewise.
24409         * tests/test-floorl-ieee.c (main): Likewise.
24410
24411 2010-12-22  Bruno Haible  <bruno@clisp.org>
24412
24413         getaddrinfo: Update doc.
24414         * doc/posix-functions/gai_strerror.texi: Return type is also different
24415         on AIX and HP-UX.
24416
24417 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24418
24419         getaddrinfo, inet_ntop: Update doc for Solaris.
24420         * doc/posix-functions/gai_strerror.texi: Return type is also an
24421         issue on Solaris 9 and earlier.
24422         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24423         on Solaris 10 and earlier.
24424
24425 2010-12-21  Bruno Haible  <bruno@clisp.org>
24426
24427         New module 'roundl-ieee'.
24428         * modules/roundl-ieee: New file.
24429         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24430         test whether roundl works according to ISO C 99 with IEC 60559.
24431         * m4/roundl-ieee.m4: New file.
24432         * modules/roundl-ieee-tests: New file.
24433         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24434         * tests/test-roundl.c (main): Remove signbit tests.
24435         * modules/roundl-tests (Depends-on): Remove signbit.
24436         * doc/posix-functions/roundl.texi: Mention the new module.
24437
24438 2010-12-21  Bruno Haible  <bruno@clisp.org>
24439
24440         New module 'truncl-ieee'.
24441         * modules/truncl-ieee: New file.
24442         * modules/truncl-ieee-tests: New file.
24443         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24444         * tests/test-truncl.c (main): Remove signbit tests.
24445         * modules/truncl-tests (Depends-on): Remove signbit.
24446         * doc/posix-functions/truncl.texi: Mention the new module.
24447
24448 2010-12-21  Bruno Haible  <bruno@clisp.org>
24449
24450         New module 'ceill-ieee'.
24451         * modules/ceill-ieee: New file.
24452         * modules/ceill-ieee-tests: New file.
24453         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24454         * tests/test-ceill.c (main): Remove signbit tests.
24455         * modules/ceill-tests (Depends-on): Remove signbit.
24456         * doc/posix-functions/ceill.texi: Mention the new module.
24457
24458 2010-12-21  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'floorl-ieee'.
24461         * modules/floorl-ieee: New file.
24462         * modules/floorl-ieee-tests: New file.
24463         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24464         * tests/test-floorl.c (main): Remove signbit tests.
24465         * modules/floorl-tests (Depends-on): Remove signbit.
24466         * doc/posix-functions/floorl.texi: Mention the new module.
24467
24468 2010-12-21  Bruno Haible  <bruno@clisp.org>
24469
24470         New module 'round-ieee'.
24471         * modules/round-ieee: New file.
24472         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24473         whether round works according to ISO C 99 with IEC 60559.
24474         * m4/round-ieee.m4: New file.
24475         * modules/round-ieee-tests: New file.
24476         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24477         * tests/test-round1.c (main): Remove signbit tests.
24478         * modules/round-tests (Depends-on): Remove 'signbit'.
24479         * doc/posix-functions/round.texi: Mention the new module.
24480
24481 2010-12-21  Bruno Haible  <bruno@clisp.org>
24482
24483         New module 'trunc-ieee'.
24484         * modules/trunc-ieee: New file.
24485         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24486         whether trunc works according to ISO C 99 with IEC 60559.
24487         * m4/trunc-ieee.m4: New file.
24488         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24490         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24491         * modules/trunc-ieee-tests: New file.
24492         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24493         * tests/test-trunc1.c (main): Remove signbit tests.
24494         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24495         * doc/posix-functions/trunc.texi: Mention the new module.
24496
24497 2010-12-21  Bruno Haible  <bruno@clisp.org>
24498
24499         New module 'ceil-ieee'.
24500         * modules/ceil-ieee: New file.
24501         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24502         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24503         ISO C 99 with IEC 60559.
24504         * m4/ceil-ieee.m4: New file.
24505         * modules/ceil (Files): Add lib/ceil.c.
24506         (Depends-on): Add 'float'.
24507         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24508         * lib/math.in.h (ceil): New declaration.
24509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24510         REPLACE_CEIL.
24511         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24512         * modules/ceil-ieee-tests: New file.
24513         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24514         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24515         * doc/posix-functions/ceil.texi: Mention the new module.
24516
24517 2010-12-21  Bruno Haible  <bruno@clisp.org>
24518
24519         New module 'floor-ieee'.
24520         * modules/floor-ieee: New file.
24521         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24522         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24523         ISO C 99 with IEC 60559.
24524         * m4/floor-ieee.m4: New file.
24525         * modules/floor (Files): Add lib/floor.c.
24526         (Depends-on): Add 'float'.
24527         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24528         * lib/math.in.h (floor): New declaration.
24529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24530         REPLACE_FLOOR.
24531         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24532         * modules/floor-ieee-tests: New file.
24533         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24534         * tests/test-math-c++.cc: Check the signature of 'floor'.
24535         * doc/posix-functions/floor.texi: Mention the new module.
24536
24537 2010-12-21  Bruno Haible  <bruno@clisp.org>
24538
24539         New module 'roundf-ieee'.
24540         * modules/roundf-ieee: New file.
24541         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24542         test whether roundf works according to ISO C 99 with IEC 60559.
24543         * m4/roundf-ieee.m4: New file.
24544         * modules/roundf-ieee-tests: New file.
24545         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24546         * tests/test-roundf1.c (main): Remove signbit tests.
24547         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24548         * doc/posix-functions/roundf.texi: Mention the new module.
24549
24550 2010-12-21  Bruno Haible  <bruno@clisp.org>
24551
24552         New module 'truncf-ieee'.
24553         * modules/truncf-ieee: New file.
24554         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24555         test whether truncf works according to ISO C 99 with IEC 60559.
24556         * m4/truncf-ieee.m4: New file.
24557         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24559         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24560         * modules/truncf-ieee-tests: New file.
24561         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24562         * tests/test-truncf1.c (main): Remove signbit tests.
24563         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24564         * doc/posix-functions/truncf.texi: Mention the new module.
24565
24566 2010-12-21  Bruno Haible  <bruno@clisp.org>
24567
24568         New module 'ceilf-ieee'.
24569         * modules/ceilf-ieee: New file.
24570         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24571         test whether ceilf works according to ISO C 99 with IEC 60559.
24572         * m4/ceilf-ieee.m4: New file.
24573         * modules/ceilf-ieee-tests: New file.
24574         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24575         * tests/test-ceilf1.c (main): Remove signbit tests.
24576         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24577         * doc/posix-functions/ceilf.texi: Mention the new module.
24578
24579 2010-12-21  Bruno Haible  <bruno@clisp.org>
24580
24581         New module 'floorf-ieee'.
24582         * modules/floorf-ieee: New file.
24583         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24584         test whether floorf works according to ISO C 99 with IEC 60559.
24585         * m4/floorf-ieee.m4: New file.
24586         * modules/floorf-ieee-tests: New file.
24587         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24588         * tests/test-floorf1.c (main): Remove signbit tests.
24589         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24590         * doc/posix-functions/floorf.texi: Mention the new module.
24591
24592 2010-12-21  Bruno Haible  <bruno@clisp.org>
24593
24594         Support for minus zero in autoconf macros.
24595         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24596         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24597         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24598         * tests/minus-zero.h: Update comments.
24599
24600 2010-12-21  Bruno Haible  <bruno@clisp.org>
24601
24602         Tests for module 'ceil'.
24603         * modules/ceil-tests: New file.
24604         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24605         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24606
24607 2010-12-21  Bruno Haible  <bruno@clisp.org>
24608
24609         Tests for module 'floor'.
24610         * modules/floor-tests: New file.
24611         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24612         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24613
24614 2010-12-21  Bruno Haible  <bruno@clisp.org>
24615
24616         math: Fix indentation.
24617         * lib/math.in.h (floorf): Fix indentation.
24618
24619 2010-12-21  Bruno Haible  <bruno@clisp.org>
24620
24621         Fix cross-compilation guesses on Solaris.
24622         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24623         not match "solaris2.10".
24624         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24625         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24626         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24627
24628 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24629
24630         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24631         This fixes a problem observed with the latest coreutils snapshot
24632         that caused a test to fail on Solaris 8.  src/csplit.c's call
24633         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24634         earlier, instead of returning the number of bytes that would have
24635         been generated; this causes csplit to incorrectly report memory
24636         exhaustion.
24637         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24638         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24639         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24640         comments to match.
24641         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24642         Fix typo in matching older versions of Solaris: "solaris2.10"
24643         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24644         only for guessing while cross-compiling.
24645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24646
24647 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24648
24649         ftoastr: fix comment again
24650         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24652         Also, simplify example a bit by using flags = 0.
24653
24654 2010-12-20  Bruno Haible  <bruno@clisp.org>
24655
24656         round*, trunc*: Update documentation regarding glibc.
24657         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24658         * doc/posix-functions/round.texi: Likewise.
24659         * doc/posix-functions/roundl.texi: Likewise.
24660         * doc/posix-functions/truncf.texi: Likewise.
24661         * doc/posix-functions/trunc.texi: Likewise.
24662         * doc/posix-functions/truncl.texi: Likewise.
24663
24664 2010-12-20  Bruno Haible  <bruno@clisp.org>
24665
24666         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24667         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24668         * doc/posix-functions/round.texi: Likewise.
24669         * doc/posix-functions/roundl.texi: Likewise.
24670
24671 2010-12-20  Bruno Haible  <bruno@clisp.org>
24672
24673         ttyname_r: Add missing declaration on HP-UX 11.
24674         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24675         HAVE_TTYNAME_R.
24676         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24677         declared. Set HAVE_TTYNAME_R always.
24678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24679         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24680         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24681         HAVE_TTYNAME_R.
24682         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24683
24684 2010-12-20  Bruno Haible  <bruno@clisp.org>
24685
24686         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24687         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24688         * doc/posix-functions/getlogin_r.texi: Likewise.
24689         * tests/test-getlogin.c: Include <errno.h>.
24690         (main): Avoid test failure on HP-UX 11.11.
24691         * tests/test-getlogin_r.c (main): Likewise.
24692
24693 2010-12-20  Bruno Haible  <bruno@clisp.org>
24694
24695         getlogin_r: Add missing declaration on HP-UX 11.
24696         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24697         declared also when it exists as a function.
24698         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24699
24700 2010-12-20  Bruno Haible  <bruno@clisp.org>
24701
24702         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24703         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24704         through wcrtomb.
24705
24706 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24707
24708         ftoastr: fix comment
24709         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24710         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24711
24712 2010-12-19  Bruno Haible  <bruno@clisp.org>
24713
24714         isnan: Ensure it is a macro.
24715         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24716         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24717         Solaris.
24718
24719 2010-12-19  Bruno Haible  <bruno@clisp.org>
24720
24721         ldexpl test: Fix link error on OSF/1 5.1.
24722         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24723
24724 2010-12-19  Bruno Haible  <bruno@clisp.org>
24725
24726         wctype: Make it work in C++ mode on OSF/1 5.1.
24727         * lib/wctype.in.h (iswblank): Declare but not define here.
24728         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24729         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24730         * modules/wctype (Files): Add lib/iswblank.c.
24731
24732 2010-12-19  Bruno Haible  <bruno@clisp.org>
24733
24734         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24735         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24736         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24737
24738 2010-12-19  Bruno Haible  <bruno@clisp.org>
24739
24740         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24742         _POSIX_PII_SOCKET.
24743         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24744         * doc/posix-functions/recvfrom.texi: Likewise.
24745         * doc/posix-functions/send.texi: Likewise.
24746         * doc/posix-functions/sendto.texi: Likewise.
24747
24748 2010-12-19  Bruno Haible  <bruno@clisp.org>
24749
24750         tcgetsid: Add missing declaration on OSF/1 5.1.
24751         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24752         HAVE_TCGETSID.
24753         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24754         Don't set HAVE_TCGETSID.
24755         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24756         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24757         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24758         HAVE_TCGETSID.
24759         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24760
24761 2010-12-19  Bruno Haible  <bruno@clisp.org>
24762
24763         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24764         * lib/stdio.in.h: During the include_next statement, let recursive
24765         includes of this file include only the system header file.
24766
24767 2010-12-19  Bruno Haible  <bruno@clisp.org>
24768
24769         iconv_open: Fix regression from 2010-12-04.
24770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24771         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24772
24773 2010-12-19  Bruno Haible  <bruno@clisp.org>
24774
24775         stdbool test: Avoid a gcc warning.
24776         * tests/test-stdbool.c (main): Fail if e1 is false.
24777         Reported by Jim Meyering.
24778
24779 2010-12-19  Jim Meyering  <meyering@redhat.com>
24780
24781         setenv: restore to working order
24782         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24783         mistakenly removed.
24784         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24785         HAVE_SETENV.
24786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24787         HAVE_SETENV.
24788
24789 2010-12-19  Bruno Haible  <bruno@clisp.org>
24790
24791         Document some different function declarations on OSF/1 5.1.
24792         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24793         * doc/posix-functions/inet_ntop.texi: Likewise.
24794         * doc/posix-functions/gethostname.texi: Likewise.
24795         * lib/unistd.in.h (gethostname): Update comment.
24796
24797 2010-12-19  Bruno Haible  <bruno@clisp.org>
24798
24799         doc: Mention vasprintf-posix module.
24800         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24801         the 'vasprintf-posix' module.
24802         * doc/glibc-functions/vasprintf.texi: Likewise.
24803
24804 2010-12-19  Bruno Haible  <bruno@clisp.org>
24805
24806         unsetenv: Add missing declaration on OSF/1 5.1.
24807         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24808         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24809         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24811         not HAVE_UNSETENV.
24812         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24813         HAVE_UNSETENV.
24814         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24815
24816 2010-12-19  Bruno Haible  <bruno@clisp.org>
24817
24818         setenv: Add missing declaration on OSF/1 5.1.
24819         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24820         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24821         declared. Don't set HAVE_SETENV.
24822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24823         not HAVE_SETENV.
24824         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24825         HAVE_SETENV.
24826         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24827
24828 2010-12-19  Bruno Haible  <bruno@clisp.org>
24829
24830         nl_langinfo tests: Avoid gcc warning.
24831         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24832
24833 2010-12-19  Bruno Haible  <bruno@clisp.org>
24834
24835         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24836         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24837         _GL_CXXALIAS_SYS.
24838
24839 2010-12-19  Bruno Haible  <bruno@clisp.org>
24840
24841         stdbool: Relax test.
24842         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24843         address to 'bool' work in static initializer, for compilers other than
24844         GCC.
24845
24846 2010-12-19  Bruno Haible  <bruno@clisp.org>
24847
24848         ftello: Add missing declaration on OSF/1 5.1.
24849         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24850         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24852         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24853         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24854
24855 2010-12-19  Bruno Haible  <bruno@clisp.org>
24856
24857         fseeko: Add missing declaration on OSF/1 5.1.
24858         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24861         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24862         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24863
24864 2010-12-19  Bruno Haible  <bruno@clisp.org>
24865
24866         fchdir: Add missing declaration on OSF/1 5.1.
24867         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24870         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24871         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24872
24873 2010-12-19  Bruno Haible  <bruno@clisp.org>
24874
24875         relocatable-prog-wrapper: Separate from relocatable-prog.
24876         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24877         uninstall-relocwrapper rule here.
24878         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24879         Reported by Ian Beckwith <ianb@erislabs.net>.
24880
24881 2010-12-19  Bruno Haible  <bruno@clisp.org>
24882
24883         unistr/u8-mbsnlen: Add missing dependency.
24884         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24885         Reported by Ian Beckwith <ianb@erislabs.net>.
24886
24887 2010-12-19  Bruno Haible  <bruno@clisp.org>
24888
24889         iconv: Make it possible again to use this module without 'iconv-h'.
24890         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24891         if it is not defined.
24892         Reported by Ian Beckwith <ianb@erislabs.net>.
24893
24894 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         acl: port to Solaris 8 when copying from tmpfs to ufs
24897         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24898         error number.  Problem observed on Solaris 8 with latest
24899         coreutils, with "mv A B", where A is on a tmpfs file system and B
24900         is on a ufs file system.  This caused coreutils' mv/part-symlink
24901         test to fail.
24902
24903         tests: set fail=0 at start
24904         * tests/init.sh (setup_): Move fail=0 initialization here ...
24905         (mktempd_): ... from here, so that tests can rely on fail being
24906         set to 0 initially.  This fixes a problem in coreutils; see:
24907         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24908
24909 2010-12-18  Bruno Haible  <bruno@clisp.org>
24910
24911         memmem-simple: Stylistic changes.
24912         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24913         Fix preprocessor directive indentation.
24914
24915 2010-12-15  Pádraig Brady <P@draigBrady.com>
24916
24917         memmem, memmem-simple: reorganize and expand empty needle check
24918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24919         functional checks to memmem-simple so that one has a fully functional
24920         memmem by using just this module.
24921         Restrict the performance only check to the memmem module.
24922         Also expand the empty needle check to ensure the correct
24923         pointer is returned, not just a non NULL pointer.
24924         * doc/glibc-functions/memmem.texi: Rearrange the portability
24925         documentation to correlate with the rearranged checks.
24926         Clarify exactly how the memmem and memmem-simple modules
24927         relate to each other.
24928
24929 2010-12-15  Pádraig Brady <P@draigBrady.com>
24930             Bruno Haible  <bruno@clisp.org>
24931
24932         Improve cross-compilation guesses for uClibc.
24933         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24934         that uClibc does not have the glibc bug.
24935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24936         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24937
24938 2010-12-14  Eric Blake  <eblake@redhat.com>
24939
24940         configmake: provide fallbacks for oldest supported autotools
24941         * m4/configmake.m4: New file.
24942         * modules/configmake (Files): Ship it.
24943         (configure.ac): Use it to guarantee fallbacks.
24944
24945 2010-12-13  Pádraig Brady <P@draigBrady.com>
24946
24947         read-file: Improve handling of large files
24948         * lib/read-file.c (fread_file): Minimize realloc()s
24949         for regular files, and better manage sizes around SIZE_MAX.
24950
24951 2010-12-13  Eric Blake  <eblake@redhat.com>
24952
24953         cloexec, fcntl: relax license
24954         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24955         consent from all contributors.
24956         * modules/fcntl (License): Likewise.
24957
24958 2010-12-10  Bruno Haible  <bruno@clisp.org>
24959
24960         Tests for module 'pipe-posix'.
24961         * modules/pipe-posix-tests: New file.
24962         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24963
24964 2010-12-10  Bruno Haible  <bruno@clisp.org>
24965
24966         pipe-posix: Make it work in C++ mode.
24967         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24968         (pipe): Use common idiom, not a macro definition.
24969         * lib/pipe.c: New file.
24970         * m4/pipe.m4: New file.
24971         * modules/pipe-posix (Description): Enhance.
24972         (Files): Add lib/pipe.c, m4/pipe.m4.
24973         (configure.ac): Invoke gl_FUNC_PIPE.
24974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24975         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24976         * tests/test-unistd-c++.cc: Check the signature of pipe.
24977
24978 2010-12-10  Bruno Haible  <bruno@clisp.org>
24979
24980         Rename module 'pipe' to 'spawn-pipe'.
24981         * modules/spawn-pipe: New file, renamed from modules/pipe.
24982         (Files, configure.ac, Makefile.am): Update.
24983         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24984         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24985         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24986         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24987         "spawn-pipe.h" instead of "pipe.h".
24988         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24989         to gl_SPAWN_PIPE.
24990         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24991         (Files, Makefile.am): Update.
24992         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24993         Update.
24994         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24995         Include "spawn-pipe.h" instead of "pipe.h".
24996         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24997         * lib/javacomp.c: Likewise.
24998         * lib/javaversion.c: Likewise.
24999         * lib/pipe-filter-gi.c: Likewise.
25000         * lib/pipe-filter-ii.c: Likewise.
25001         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25002         * modules/javacomp (Depends-on): Likewise.
25003         * modules/javaversion (Depends-on): Likewise.
25004         * modules/pipe-filter-gi (Depends-on): Likewise.
25005         * modules/pipe-filter-ii (Depends-on): Likewise.
25006         * MODULES.html.sh (Executing programs): Update.
25007         * NEWS: Mention the change.
25008
25009 2010-12-10  Eric Blake  <eblake@redhat.com>
25010
25011         pipe-posix: new module
25012         * modules/pipe-posix: New file.
25013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25014         (gl_UNISTD_H): Check for declaration.
25015         * modules/unistd (Makefile.am): Substitute it.
25016         * lib/unistd.in.h (pipe): Provide it for mingw.
25017         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25018         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25019
25020 2010-12-07  Bruno Haible  <bruno@clisp.org>
25021
25022         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25023         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25024         u8_strcmp_gnu.
25025         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25026
25027 2010-12-06  Bruno Haible  <bruno@clisp.org>
25028
25029         Update internal documentation.
25030         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25031
25032 2010-12-04  Bruno Haible  <bruno@clisp.org>
25033
25034         Put more information about failed tests into the test return codes.
25035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25036         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25037         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25039         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25042         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25043         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25046         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25047         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25048         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25049         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25050         returns a bit mask.
25051         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25052         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25053         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25054         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25055         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25059         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25062         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25063         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25065         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25066         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25067         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25068         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25070         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25072         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25074         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25075         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25076         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25077         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25078         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25079         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25080         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25081         gl_PRINTF_PRECISION): Likewise.
25082         * m4/regex.m4 (gl_REGEX): Likewise.
25083         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25085         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25086         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25089         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25090         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25091         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25092         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25096         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25097         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25098         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25099         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25100         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25102         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25103         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25104         enumerated value.
25105         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25106
25107 2010-12-04  Bruno Haible  <bruno@clisp.org>
25108
25109         Update for Solaris 11 2010-11.
25110         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25111         Express, released in November 2010.
25112
25113 2010-12-04  Bruno Haible  <bruno@clisp.org>
25114
25115         nproc: Relax license.
25116         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25117         and Paul Eggert.
25118         Requested by Ludovic Courtès <ludo@gnu.org>.
25119
25120 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         utimecmp: fine-grained src to nearby coarse-grained dest
25123
25124         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25125         and the source is on a file system with higher-resolution time
25126         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25127         not work, and the time stamps are close together, the algorithm to
25128         determine the exact resolution from the read-back mtime was buggy:
25129         it had a "!=" where it should have had an "==".  This bug has been
25130         in the code ever since it was introduced to gnulib.
25131         Problem reported by Dan Jacobson in
25132         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25133
25134 2010-11-30  Bruno Haible  <bruno@clisp.org>
25135
25136         strerror_r-posix: Fix autoconf test.
25137         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25138
25139 2010-11-28  Bruno Haible  <bruno@clisp.org>
25140             Paul Eggert  <eggert@cs.ucla.edu>
25141
25142         Tests for module 'getdomainname'.
25143         * modules/getdomainname-tests: New file.
25144         * tests/test-getdomainname.c: New file, based on
25145         tests/test-gethostname.c.
25146
25147 2010-11-28  Bruno Haible  <bruno@clisp.org>
25148             Paul Eggert  <eggert@cs.ucla.edu>
25149
25150         getdomainname: Use the system function when possible.
25151         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25152         (getdomainname): Replace if needed. Provide the declaration if it is
25153         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25154         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25155         (getdomainname): When the system has getdomainname, call the system
25156         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25157         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25158         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25159         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25160         the function if its second argument is of type 'int' or if it is found
25161         in libnsl.
25162         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25163         <sys/systeminfo.h> and sysinfo().
25164         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25166         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25167         HAVE_GETDOMAINNAME.
25168         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25169         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25170         * doc/glibc-functions/getdomainname.texi: Document the problems with
25171         the getdomainname declaration.
25172
25173 2010-11-28  Bruno Haible  <bruno@clisp.org>
25174
25175         sys_socket: Ensure ss_family field on AIX.
25176         * lib/sys_socket.in.h (ss_family): New macro definition.
25177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25178         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25179         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25180         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25181         * modules/sys_socket (Makefile.am): Substitute
25182         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25183         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25184
25185 2010-11-27  Bruno Haible  <bruno@clisp.org>
25186
25187         readline: Improve configure output.
25188         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25189         "checking for readline..." result understandable.
25190
25191 2010-11-27  Bruno Haible  <bruno@clisp.org>
25192
25193         *printf-posix: Detect a bug on Solaris 10/x86.
25194         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25195         for floating-point output.
25196         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25197         directive.
25198         * tests/test-snprintf-posix.h (test_function): Likewise.
25199         * tests/test-sprintf-posix.h (test_function): Likewise.
25200         * tests/test-vasprintf-posix.c (test_function): Likewise.
25201         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25202         * doc/posix-functions/printf.texi: Likewise.
25203         * doc/posix-functions/snprintf.texi: Likewise.
25204         * doc/posix-functions/sprintf.texi: Likewise.
25205         * doc/posix-functions/vfprintf.texi: Likewise.
25206         * doc/posix-functions/vprintf.texi: Likewise.
25207         * doc/posix-functions/vsnprintf.texi: Likewise.
25208         * doc/posix-functions/vsprintf.texi: Likewise.
25209         * doc/glibc-functions/obstack_printf.texi: Likewise.
25210         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25211
25212 2010-11-27  Bruno Haible  <bruno@clisp.org>
25213
25214         Fix link error when module libunistring-optional is in use.
25215         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25216         * modules/striconveha-tests (Makefile.am): Likewise.
25217
25218 2010-11-27  Bruno Haible  <bruno@clisp.org>
25219
25220         regex: Mention link dependencies.
25221         * modules/regex (Link): New section.
25222         * modules/rpmatch (Link): Likewise.
25223         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25224
25225 2010-11-27  Bruno Haible  <bruno@clisp.org>
25226
25227         ftoastr: Fix compilation error on Solaris.
25228         * lib/ftoastr.c: Include <config.h>.
25229
25230 2010-11-27  Bruno Haible  <bruno@clisp.org>
25231
25232         getloadavg: Update documentation.
25233         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25234
25235 2010-11-27  Bruno Haible  <bruno@clisp.org>
25236
25237         sys_socket: Fix test whether the functions are declared.
25238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25239         not <sys/select.h>.
25240
25241 2010-11-27  Bruno Haible  <bruno@clisp.org>
25242
25243         getpass: Make sure to get system declaration on some platforms.
25244         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25245         gl_USE_SYSTEM_EXTENSIONS.
25246         * modules/getpass (Depends-on): Add extensions.
25247
25248 2010-11-26  Bruno Haible  <bruno@clisp.org>
25249
25250         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25251         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25252         'iconv' module is present.
25253         (ICONV_CONST): New macro.
25254         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25255         ICONV_CONST.
25256         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25257         set ICONV_CONST.
25258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25259         here.
25260         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25261         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25262         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25263         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25264         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25265         present.
25266
25267 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25268
25269         ftoastr: comment fix
25270         * lib/ftoastr.c: "little" -> "little or no" in comment
25271
25272 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         stdint: port to GCC 4.3 + OSX + Octave
25275         On this platform, stdint.h is buggy and defines int64_t to long
25276         long int.  The replacement defined it to long int, causing
25277         problems with C++ style name mangling.  Instead, trust the system
25278         definition if INT64_MAX is defined, and likewise for the unsigned
25279         variant.   Problem reported by Jarno Rajahalme in
25280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25281         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25282         and don't mess with int64_t and INT64_MAX in this case.
25283         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25284
25285 2010-11-24  Bruno Haible  <bruno@clisp.org>
25286
25287         doc: Corrections regarding MacOS X 10.4 and 10.5.
25288         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25289         MacOS X.
25290         Reported by Simon Josefsson.
25291
25292 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25293
25294         Uninstall ".bin" files installed by relocwrapper.
25295         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25296         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25297         unless it is already there.
25298
25299 2010-11-21  Bruno Haible  <bruno@clisp.org>
25300
25301         Update for NetBSD 5.0.
25302         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25303         NetBSD; the test fails on NetBSD 5.0.
25304         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25305         about NetBSD.
25306
25307 2010-11-21  Bruno Haible  <bruno@clisp.org>
25308
25309         Update for HP-UX 11.23 and HP-UX 11.31.
25310         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25311         HP-UX.
25312
25313 2010-11-21  Bruno Haible  <bruno@clisp.org>
25314
25315         Update for MacOS X 10.5.
25316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25317         MacOS X; the test fails on MacOS X 10.5.8.
25318         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25319         about MacOS X.
25320
25321 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25322
25323         bootstrap: add bootstrap_sync option.
25324         See discussion at
25325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25327         * build-aux/bootstrap: Accept --bootstrap-sync to update
25328         bootstrap if it is not identical to the local gnulib's
25329         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25330         enable this by default.  Accept --no-bootstrap-sync to disable
25331         it.
25332
25333 2010-11-20  Bruno Haible  <bruno@clisp.org>
25334
25335         Ensure that <features.h> is included before __GLIBC__ is tested.
25336         * lib/printf-parse.h: Include <features.h>.
25337         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25338         Reported by Mike Frysinger <vapier@gentoo.org>.
25339
25340         Ensure that <features.h> is included before __GLIBC__ is tested.
25341         * lib/wchar.in.h: Include <features.h>.
25342         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25343         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25344         Reported by Mike Frysinger <vapier@gentoo.org>.
25345
25346         Ensure that <features.h> is included before __GLIBC__ is tested.
25347         * lib/arpa_inet.in.h: Include <features.h>.
25348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25349         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25350         Reported by Mike Frysinger <vapier@gentoo.org>.
25351
25352         Ensure that <features.h> is included before __GLIBC__ is tested.
25353         * build-aux/link-warning.h: Include <features.h>.
25354         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25355         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25356         Reported by Mike Frysinger <vapier@gentoo.org>.
25357
25358         Ensure that <features.h> is included before __GLIBC__ is tested.
25359         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25360         Reported by Mike Frysinger <vapier@gentoo.org>.
25361
25362 2010-11-20  Bruno Haible  <bruno@clisp.org>
25363
25364         memmem: Fix autoconf test.
25365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25366
25367 2010-11-20  Bruno Haible  <bruno@clisp.org>
25368
25369         Port to uClibc.
25370         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25371         * lib/fcntl.in.h: Likewise.
25372         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25373         * lib/mbrtowc.c (mbrtowc): Likewise.
25374         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25375         * lib/strerror_r.c: Likewise.
25376         * lib/unistr/u8-strnlen.c: Likewise.
25377         * lib/vasnprintf.c (decimal_point_char): Likewise.
25378         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25379         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25381         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25382         * tests/test-sigaction.c (handler, main): Likewise.
25383         * lib/freading.h: Treat uClibc like a non-glibc platform.
25384         * lib/freading.c: Likewise.
25385         * lib/gettext.h: Likewise.
25386         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25387         Likewise.
25388         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25389         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25390         * lib/propername.c (proper_name_utf8): Likewise.
25391         * lib/spawn.in.h: Likewise.
25392         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25393         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25394         mem_cd_iconveh_internal): Likewise.
25395         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25396         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25397         strstr, strcasestr): Likewise.
25398         * lib/unicodeio.c (unicode_to_mb): Likewise.
25399         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25400         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25401         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25402         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25403         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25404         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25405         * lib/unistr/u8-stpncpy.c: Likewise.
25406         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25407         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25410         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25415         Likewise.
25416         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25418         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25421         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25422         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25423         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25424         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25425         * tests/test-striconveha.c (main): Likewise.
25426         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25427         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25428         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25429         * doc/posix-functions/getline.texi: Likewise.
25430         Reported by Mike Frysinger <vapier@gentoo.org>.
25431
25432 2010-11-20  Bruno Haible  <bruno@clisp.org>
25433
25434         nproc: Fix condition.
25435         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25436         HAVE_PTHREAD_AFFINITY_NP.
25437
25438 2010-11-20  Bruno Haible  <bruno@clisp.org>
25439
25440         Fix a comment.
25441         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25442
25443 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25444
25445         ftoastr: don't assume snprintf
25446         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25447         Implement a subset of snprintf here, by using sprintf safely.
25448         * modules/ftoastr (Depends-on): Remove snprintf.
25449
25450 2010-11-19  Jim Meyering  <meyering@redhat.com>
25451
25452         test-rename.h: fix compilation failure
25453         * tests/test-rename.h (test_rename): Add omitted "}".
25454
25455 2010-11-17  Jim Meyering  <meyering@redhat.com>
25456
25457         maint.mk: add a URL discussing the no-@acronym policy
25458         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25459
25460 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25461
25462         ftoastr: depend on snprintf, improve comments
25463         * lib/ftoastr.c: Also mention Loitsch's draft.
25464         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25465         needed in the current implementation, but it might simplify
25466         speeding up the code later.
25467         * modules/ftoastr: Depend on snprintf; this improves portability.
25468         Suggested by Bruno Haible in the same email.
25469
25470         ftoastr: port to hosts lacking strtof and strtold
25471         Problem reported by Bruno Haible in
25472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25473         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25474         environment and strtold (and presumably strtof) are not available.
25475         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25476         (configure.ac): Require gl_C99_STRTOLD.
25477
25478 2010-11-18  Bruno Haible  <bruno@clisp.org>
25479
25480         c-strtold: Avoid link error on AIX 7.
25481         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25482         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25483         (gl_C_STRTOLD): Test whether strtold_l exists.
25484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25485
25486 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25487
25488         intprops: new macro INT_BITS_STRLEN_BOUND
25489         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25490         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25491         not exposed.  Also, it uses a slightly tighter bound than before;
25492         though this makes no practical difference, we might as well be as
25493         tight as we easily can.
25494
25495         ftoastr: new module, for lossless conversion of floats to short strings
25496         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25497         * modules/ftoastr: New files.
25498
25499 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25500
25501         bootstrap: port to Solaris sed
25502         * build-aux/bootstrap (get_version): Port to Solaris sed.
25503         See Ralf Wildenhues's note in
25504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25505
25506 2010-11-14  Jim Meyering  <meyering@redhat.com>
25507
25508         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25509         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25510         and move definition closer to sole use.
25511
25512 2010-11-13  Jim Meyering  <meyering@redhat.com>
25513
25514         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25515         Now we require at least autoconf-2.59, which means the work-around
25516         is no longer needed.
25517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25518         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25520         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25521         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25522
25523 2010-11-13  Bruno Haible  <bruno@clisp.org>
25524
25525         rename, renameat: Avoid test failures at NFS mounted locations.
25526         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25527         functions.
25528         (test_rename): Use assert_nonexistent.
25529         * tests/test-rename.c: Include <dirent.h>.
25530         * tests/test-renameat.c: Likewise.
25531         Reported by Gary V. Vaughan <gary@gnu.org>.
25532
25533         rename, renameat: Document Linux bug with NFS
25534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25535         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25536         * doc/posix-functions/renameat.texi: Likewise.
25537         Suggested by Eric Blake.
25538
25539 2010-11-13  Bruno Haible  <bruno@clisp.org>
25540
25541         rename test: Add comments.
25542         * tests/test-rename.h (test_rename): Add structure and comments.
25543
25544 2010-11-13  Eric Blake  <eblake@redhat.com>
25545
25546         maintainer-makefile: cover a few more files
25547         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25548         scripts generated within C files, for libvirt.
25549
25550 2010-11-13  Bruno Haible  <bruno@clisp.org>
25551
25552         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25553         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25554         character, return the number of bytes that belong together, not always
25555         1.
25556         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25557         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25558         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25559         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25560         number of bytes of an invalid character.
25561         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25562         (main): Invoke it.
25563         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25564         results.
25565         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25566         malformed byte sequences.
25567         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25568         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25569         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25570         Reported by Ben Pfaff and Paolo Bonzini.
25571
25572 2010-11-13  Bruno Haible  <bruno@clisp.org>
25573
25574         openat: Work around glibc bug with fchownat() and empty file names.
25575         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25576         (gl_FUNC_FCHOWNAT): Invoke it.
25577         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25578         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25579         Reported by Gary V. Vaughan <gary@gnu.org>.
25580
25581 2010-11-13  Bruno Haible  <bruno@clisp.org>
25582
25583         openat: Ensure autoconf macro ordering.
25584         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25585         gl_USE_SYSTEM_EXTENSIONS.
25586         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25587
25588 2010-11-13  Bruno Haible  <bruno@clisp.org>
25589
25590         Update comments.
25591         * lib/unistr/u8-check.c: Update file name in comments.
25592         * lib/unistr/u8-mblen.c: Likewise.
25593         * lib/unistr/u8-prev.c: Likewise.
25594         * lib/unistr/u8-strmblen.c: Likewise.
25595         * lib/unistr/u8-strmbtouc.c: Likewise.
25596
25597 2010-11-13  Jim Meyering  <meyering@redhat.com>
25598
25599         tests: avoid test failure on Solaris 10 due to lack of PATH export
25600         * tests/test-update-copyright.sh: Don't forget to export PATH.
25601
25602         init.sh: ensure that IFS is defined, just in case...
25603         * tests/init.sh (setup_): Ensure that IFS is defined,
25604         so that saving and restoring it works as expected.  This
25605         appears to be useful at least for an old version of dash
25606         from a long time ago (RH 6).  See here for details:
25607         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25608
25609         maint.mk: tighten "test a == b" check
25610         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25611         test to files that contain something like #!/bin/sh.
25612         Without this, coreutils would get two false positives in
25613         the comments of C source files.
25614
25615 2010-11-12  Eric Blake  <eblake@redhat.com>
25616
25617         bootstrap: fix typo in previous attempt
25618         * build-aux/bootstrap (buildreq): Correct the grouping.
25619         Reported by Paul Eggert.
25620
25621         maintainer-makefile: prohibit test x == x
25622         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25623         Based on a report by Matthias Bolte.
25624
25625         bootstrap: allow FreeBSD gzip
25626         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25627         which has no '.' and goes to stderr.
25628         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25629         Reported by Matthias Bolte.
25630
25631         maintainer-makefile: check for i18n setup
25632         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25633         will likely work.
25634
25635 2010-11-12  Bruno Haible  <bruno@clisp.org>
25636
25637         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25638         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25639         * lib/nanosleep.c (nanosleep): Likewise.
25640
25641 2010-11-11  Bruno Haible  <bruno@clisp.org>
25642
25643         fcntl-h: Fix for use of C++ on glibc systems.
25644         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25645         also on glibc systems in C++ mode.
25646         Reported by Gary V. Vaughan <gary@gnu.org>.
25647
25648 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25649
25650         mknod: avoid false failure with dash
25651         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25652
25653 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         unlink: Fix "is it should" typo in diagnostic.
25656         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25658
25659 2010-11-11  Bruno Haible  <bruno@clisp.org>
25660
25661         Tests for module 'strerror_r-posix'.
25662         * modules/strerror_r-posix-tests: New file.
25663         * tests/test-strerror_r.c: New file.
25664         * tests/test-string-c++.cc: Check the signature of strerror_r.
25665
25666         New module 'strerror_r-posix'.
25667         * lib/string.in.h (strerror_r): New declaration.
25668         * lib/strerror_r.c: New file.
25669         * m4/strerror_r.m4: New file.
25670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25671         of strerror_r.
25672         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25673         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25674         * modules/strerror_r-posix: New file.
25675         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25676         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25677         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25678         portability problems.
25679
25680 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25681
25682         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25683         line is also considered for output. Quoted function name in shell
25684         command, so temporary files for functions like MyClass::operator()
25685         are removed correctly without errors.
25686
25687 2010-11-09  Bruno Haible  <bruno@clisp.org>
25688
25689         * doc/posix-functions/strerror.texi: List more failing platforms.
25690
25691         * doc/posix-functions/strerror.texi: Add a comment.
25692
25693 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25694
25695         fdopendir: fix bug on MacOS X when low on file descriptors
25696
25697         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25698         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25699         All callers changed.
25700         (fdopendir): Invoke save_cwd at the top level, not after using
25701         multiple dup() calls to use up file descriptors.  Then retry
25702         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25703         less than the maximum number of open file descriptors, because
25704         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25705         on Mac OS X 10.6.4 for tar 1.24
25706         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25707         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25708         and for tar 1.25
25709         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25710
25711 2010-11-07  Bruno Haible  <bruno@clisp.org>
25712
25713         vasnprintf: Support I flag on glibc systems.
25714         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25715         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25716         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25717         snprintf function.
25718         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25719         glibc systems.
25720         * tests/test-vasnprintf-posix3.c: New file.
25721         * modules/vasnprintf-posix-tests (Files): Add it.
25722         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25723
25724 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25725
25726         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25727         * MODULES.html.sh: For compiler warnings, use name
25728         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25729
25730 2010-11-05  Eric Blake  <eblake@redhat.com>
25731
25732         ceil, floor: avoid spurious failure with icc
25733         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25734         [denormals-as-zero] when optimizing without -mieee-fp option.
25735         * tests/test-floorf2.c (floorf_reference): Likewise.
25736         * tests/test-ceilf1.c (dummy): New function.
25737         (main): Use it to outsmart icc's optimization.
25738         * tests/test-floorf1.c (dummy, main): Likewise.
25739
25740         tests: require working signbit
25741         * modules/ceilf-tests (Depends-on): Add signbit.
25742         * modules/ceill-tests (Depends-on): Likewise.
25743         * modules/floorf-tests (Depends-on): Likewise.
25744         * modules/floorl-tests (Depends-on): Likewise.
25745         * modules/round-tests (Depends-on): Likewise.
25746         * modules/roundf-tests (Depends-on): Likewise.
25747         * modules/roundl-tests (Depends-on): Likewise.
25748         * modules/trunc-tests (Depends-on): Likewise.
25749         * modules/truncf-tests (Depends-on): Likewise.
25750         * modules/truncl-tests (Depends-on): Likewise.
25751
25752         strtod: work around icc bug
25753         * lib/strtod.c (minus_zero): Define to working value.
25754         (strtod): Use it to avoid icc bug.
25755
25756         copysign: enhance tests
25757         * modules/copysign-tests (Files): Add minus-zero.h.
25758         * tests/test-copysign.c (main): Also test zeros.
25759
25760 2010-11-04  Eric Blake  <eblake@redhat.com>
25761
25762         ceil, floor, round, trunc: enhance tests of -0
25763         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25764         * tests/test-ceill.c (main): Likewise.
25765         * tests/test-floorf1.c (main): Likewise.
25766         * tests/test-floorl.c (main): Likewise.
25767         * tests/test-round1.c (main): Likewise.
25768         * tests/test-roundf1.c (main): Likewise.
25769         * tests/test-roundl.c (main): Likewise.
25770         * tests/test-trunc1.c (main): Likewise.
25771         * tests/test-truncf1.c (main): Likewise.
25772         * tests/test-truncl.c (main): Likewise.
25773
25774 2010-11-04  Eric Blake  <eblake@redhat.com>
25775
25776         frexp, tests: work around ICC bug with -zero
25777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25778         works with more compilers.
25779         * tests/minus-zero.h: New file.
25780         * modules/ceilf-tests (Files): Include it.
25781         * modules/ceill-tests (Files): Likewise.
25782         * modules/floorf-tests (Files): Likewise.
25783         * modules/floorl-tests (Files): Likewise.
25784         * modules/frexp-nolibm-tests (Files): Likewise.
25785         * modules/frexp-tests (Files): Likewise.
25786         * modules/frexpl-nolibm-tests (Files): Likewise.
25787         * modules/frexpl-tests (Files): Likewise.
25788         * modules/isnan-tests (Files): Likewise.
25789         * modules/isnand-nolibm-tests (Files): Likewise.
25790         * modules/isnand-tests (Files): Likewise.
25791         * modules/isnanf-nolibm-tests (Files): Likewise.
25792         * modules/isnanf-tests (Files): Likewise.
25793         * modules/isnanl-nolibm-tests (Files): Likewise.
25794         * modules/isnanl-tests (Files): Likewise.
25795         * modules/round-tests (Files): Likewise.
25796         * modules/roundf-tests (Files): Likewise.
25797         * modules/roundl-tests (Files): Likewise.
25798         * modules/ldexpl-tests (Files): Likewise.
25799         * modules/signbit-tests (Files): Likewise.
25800         * modules/snprintf-posix-tests (Files): Likewise.
25801         * modules/sprintf-posix-tests (Files): Likewise.
25802         * modules/strtod-tests (Files): Likewise.
25803         * modules/trunc-tests (Files): Likewise.
25804         * modules/truncf-tests (Files): Likewise.
25805         * modules/truncl-tests (Files): Likewise.
25806         * modules/vsnprintf-posix-tests (Files): Likewise.
25807         * modules/vsprintf-posix-tests (Files): Likewise.
25808         * modules/vasnprintf-posix-tests (Files): Likewise.
25809         * modules/vasprintf-posix-tests (Files): Likewise.
25810         * tests/test-ceilf1.c (main): Use it.
25811         * tests/test-ceill.c (main): Likewise.
25812         * tests/test-floorf1.c (main): Likewise.
25813         * tests/test-floorl.c (main): Likewise.
25814         * tests/test-frexp.c (main): Likewise.
25815         * tests/test-frexpl.c (main): Likewise.
25816         * tests/test-isnan.c (main): Likewise.
25817         * tests/test-isnand.h (main): Likewise.
25818         * tests/test-isnanf.h (main): Likewise.
25819         * tests/test-isnanl.h (main): Likewise.
25820         * tests/test-ldexpl.c (main): Likewise.
25821         * tests/test-round.c (main): Likewise.
25822         * tests/test-roundf.c (main): Likewise.
25823         * tests/test-roundl.c (main): Likewise.
25824         * tests/test-signbit.c (test_signbitf, test_signbitd)
25825         (test_signbitl): Likewise.
25826         * tests/test-snprintf-posix.h (test_function): Likewise.
25827         * tests/test-sprintf-posix.h (test_function): Likewise.
25828         * tests/test-strtod.c (main): Likewise.
25829         * tests/test-trunc1.c (main): Likewise.
25830         * tests/test-truncf1.c (main): Likewise.
25831         * tests/test-truncl.c (main): Likewise.
25832
25833         isnanl: work around icc bug
25834         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25835
25836 2010-11-03  Eric Blake  <eblake@redhat.com>
25837
25838         tests: fix compiler warnings
25839         * tests/test-getopt.h (test_getopt): Fix condition.
25840         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25841         * tests/test-pipe2.c (main): Likewise.
25842         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25843
25844         utimens: fix broken m4 test
25845         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25846
25847 2010-10-28  Bruno Haible  <bruno@clisp.org>
25848
25849         posix_spawn*, getdtablesize: Relax license.
25850         * modules/posix_spawn (License): Change to LGPLv2+.
25851         * modules/posix_spawnp (License): Likewise.
25852         * modules/posix_spawn-internal (License): Likewise.
25853         * modules/posix_spawnattr_init (License): Likewise.
25854         * modules/posix_spawnattr_getflags (License): Likewise.
25855         * modules/posix_spawnattr_setflags (License): Likewise.
25856         * modules/posix_spawnattr_getpgroup (License): Likewise.
25857         * modules/posix_spawnattr_setpgroup (License): Likewise.
25858         * modules/posix_spawnattr_getschedparam (License): Likewise.
25859         * modules/posix_spawnattr_setschedparam (License): Likewise.
25860         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25861         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25862         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25863         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25864         * modules/posix_spawnattr_getsigmask (License): Likewise.
25865         * modules/posix_spawnattr_setsigmask (License): Likewise.
25866         * modules/posix_spawnattr_destroy (License): Likewise.
25867         * modules/posix_spawn_file_actions_init (License): Likewise.
25868         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25869         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25870         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25871         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25872         * modules/getdtablesize (License): Likewise.
25873         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25874
25875 2010-10-26  Bruno Haible  <bruno@clisp.org>
25876
25877         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25878         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25879         Cygwin and mingw.
25880         Suggested by Eric Blake.
25881
25882 2010-10-26  Bruno Haible  <bruno@clisp.org>
25883
25884         stdio: Work around compilation error due to renameat() on Solaris 10.
25885         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25886         * lib/renameat.c: Don't include <unistd.h> here.
25887         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25888         Reported by Paul Eggert and Eric Blake.
25889
25890 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         renameat: port to Solaris 10, which declares renameat in unistd.h
25893
25894         * lib/renameat.c: Include unistd.h before stdio.h, because
25895         Solaris 10 declares renameat in unistd.h.  Problem encountered
25896         when building GNU tar 1.24 on Solaris 10.
25897
25898 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25899
25900         fdopendir: fix C89 compilation
25901         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25902         compilers.
25903
25904 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25905
25906         inttostr: simplify by removing unnecessary redundancy
25907         * lib/anytostr.c: Don't include verify.h.
25908         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25909         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25910         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25911         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25912         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25913         Likewise.
25914         * modules/inttostr (Depends-on): Remove 'verify'.
25915
25916 2010-10-23  Bruno Haible  <bruno@clisp.org>
25917
25918         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25919         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25920         Reported by Eric Blake.
25921
25922 2010-10-23  Bruno Haible  <bruno@clisp.org>
25923
25924         Tests: Fix LOCALE_JA on MirBSD 10.
25925         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25926         to an UTF-8 locale.
25927         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25929         Reported by Eric Blake.
25930
25931 2010-10-21  Bruno Haible  <bruno@clisp.org>
25932
25933         nl_langinfo test: Avoid test failure on NetBSD 5.
25934         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25935         Reported by Eric Blake.
25936
25937 2010-10-21  Eric Blake  <eblake@redhat.com>
25938
25939         c-stack: work around libsigsegv 2.8 bug
25940         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25941         overflow on at least PowerPC64.
25942
25943 2010-10-17  Bruno Haible  <bruno@clisp.org>
25944
25945         userspec: Drop redundant file.
25946         * modules/userspec (Files): Remove lib/inttostr.h.
25947
25948 2010-10-17  Bruno Haible  <bruno@clisp.org>
25949
25950         nl_langinfo tests: Silence some warnings.
25951         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25952         Reported by Jim Meyering.
25953
25954 2010-10-17  Bruno Haible  <bruno@clisp.org>
25955
25956         Make use of GCC's attribute __alloc_size__.
25957         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25958         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25959         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25960         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25961         __alloc_size__.
25962         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25963         Suggested by Jim Meyering.
25964
25965 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25966
25967         bootstrap: anchor .gitignore entries.
25968         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25969         with...
25970         (insert_vc_ignore): ... this new function, which prepends `/' to
25971         all .gitignore entries before passing them to
25972         insert_sorted_if_absent.
25973
25974 2010-10-16  Bruno Haible  <bruno@clisp.org>
25975
25976         nextafter: Fix configure check.
25977         * modules/nextafter (configure.ac): Correct expected prototype.
25978
25979 2010-10-16  Bruno Haible  <bruno@clisp.org>
25980
25981         termios: Update documentation.
25982         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25983
25984 2010-10-16  Bruno Haible  <bruno@clisp.org>
25985
25986         tests: Make them compile with TinyCC.
25987         * tests/test-strstr.c (main): Remove parentheses around array
25988         initializer.
25989
25990 2010-10-15  Eric Blake  <eblake@redhat.com>
25991
25992         ignore-value: make header idempotent
25993         * lib/ignore-value.h: Add double-inclusion guards.
25994         Reported by Stefan Berger.
25995
25996 2010-10-15  Jim Meyering  <meyering@redhat.com>
25997
25998         GNUmakefile: handle "stable" target, not "major"
25999         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26000         lists in maint.mk and announce-gen.  Without this, "make stable"
26001         would fail to ensure that $(VERSION) is up to date.
26002
26003 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26004
26005         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26006         & co.
26007
26008 2010-10-14  Bruno Haible  <bruno@clisp.org>
26009
26010         vasnprintf: Don't set errno to 0.
26011         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26012         block that sets it to 0.
26013         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26014
26015 2010-10-14  Bruno Haible  <bruno@clisp.org>
26016
26017         socketlib: Fix.
26018         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26019         gl_PREREQ_SYS_H_WINSOCK2.
26020         Reported by Ian Beckwith <ianb@erislabs.net>.
26021
26022 2010-10-13  Jim Meyering  <meyering@redhat.com>
26023
26024         test-select-stdin.c: avoid warn_unused_result warnings
26025         * tests/test-select-stdin.c: Include "macros.h".
26026         ASSERT that read and fflush succeed.
26027
26028 2010-10-13  Jim Meyering  <meyering@redhat.com>
26029
26030         git-version-gen: do require git-VC'd files in cwd
26031         * build-aux/git-version-gen: Reject a git version string
26032         if there are no commits associated with the current directory.
26033         This avoids an unlikely false-positive (unrelated dir whose parent
26034         repository also contains a tag matching v*), as pointed out
26035         by Giuseppe Scrivano in
26036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26037
26038 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26039
26040         argv-iter: omit nonconforming declaration
26041         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26042         enum arg_iter_err declaration, which doesn't conform to C99.
26043         Solaris 10 cc warns about this.
26044
26045 2010-10-13  Eric Blake  <eblake@redhat.com>
26046
26047         termios: fix compilation on mingw
26048         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26049         (gl_TERMIOS_H): Adjust it on mingw.
26050         * modules/termios (Makefile.am): Substitute new key.
26051         * lib/termios.in.h (includes): Make include_next conditional.
26052         * doc/posix-headers/termios.texi (termios.h): Update
26053         documentation.
26054         Reported by Daniel P. Berrange.
26055
26056 2010-10-13  Jim Meyering  <meyering@redhat.com>
26057
26058         git-version-gen: don't require that .git/ be in the current dir
26059         * build-aux/git-version-gen: Adjust this script so that it works
26060         when run from any working directory beneath the top-level .git/-
26061         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26063
26064         test-select: avoid warn_unused_result warnings
26065         * tests/test-select.c: Include "macros.h".
26066         ASSERT that each call to read, write, and pipe succeeds.
26067         While not technically required, also check each "close".
26068         * modules/select-tests (Files): Add tests/macros.h.
26069
26070         test-symlinkat: remove declaration of unused local
26071         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26072
26073         test-inttostr: avoid shadowing warnings
26074         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26075         and use malloc rather than the stack for the same reason as
26076         mentioned in the comment justifying the other allocation.
26077
26078 2010-10-11  Bruno Haible  <bruno@clisp.org>
26079
26080         stdlib: Allow multiple gnulib generated replacements to coexist.
26081         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26082         Reported by Sam Steingold <sds@gnu.org>.
26083
26084 2010-10-11  Jim Meyering  <meyering@redhat.com>
26085
26086         fix a documentation typo
26087         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26088
26089 2010-10-11  Eric Blake  <eblake@redhat.com>
26090
26091         futimens: work around Solaris 11 bug
26092         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26093         * tests/test-futimens.h (test_futimens): Enhance, rather than
26094         weaken test.
26095         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26096
26097 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26098
26099         Indentation.
26100         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26101         higher-level operators more to the left.
26102
26103 2010-10-11  Jim Meyering  <meyering@redhat.com>
26104
26105         test-futimens: avoid unwarranted test failure on Solaris 5.11
26106         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26107         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26108         because it tries to dereference the NULL name argument.
26109
26110 2010-10-11  Bruno Haible  <bruno@clisp.org>
26111
26112         Indentation.
26113         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26114         indentation.
26115
26116 2010-10-11  Jim Meyering  <meyering@redhat.com>
26117
26118         spawn.in.h: make indentation consistent with parentheses
26119         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26120         Make indentation consistent with parentheses.
26121
26122 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26123
26124         Fix mismatched parens in previous commit
26125         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26126         parens.
26127
26128 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26129
26130         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26131
26132         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26133         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26134         * lib/malloca.c: Include "verify.h".
26135         (verify1): Remove, replacing with a verify call.
26136         * lib/relocwrapper.c (verify1): Likewise.
26137         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26138         Likewise.
26139         * modules/malloca (Depends-on): Add 'verify'.
26140         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26141         * modules/vasnprintf (Depends-on): Add 'verify'.
26142         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26149
26150         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26151
26152         Formerly the style was sometimes 2*X - 1, because the C standard
26153         was wrongly thought to disallow ?: in integral constant expressions.
26154         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26155         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26156         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26157         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26158         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26159         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26160         verify that time_t cannot be floating.
26161
26162 2010-10-08  Eric Blake  <eblake@redhat.com>
26163
26164         time: enforce recent POSIX ruling that time_t is integral
26165         * lib/time.in.h (__time_t_must_be_integral): Detect any
26166         problematic systems, allowing the rest of gnulib to assume POSIX.
26167
26168 2010-10-08  Jim Meyering  <meyering@redhat.com>
26169
26170         fdopendir: fix a bug on systems lacking openat and /proc support
26171         OpenBSD 4.7 is one such system.  The most noticeable effect was
26172         failure of any application making nontrivial use of fts: rm, du,
26173         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26174           ./rm: traversal failed: `a': Bad file descriptor
26175         Debugging that, you see that even though FD 6 was closed just
26176         prior to the opendir call in fd_clone_opendir, its resulting
26177         dir->dd_fd was 8, rather than the expected value of 6:
26178
26179         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26180         93                close (fd);
26181         (gdb) n
26182         94                dir = fd_clone_opendir (dupfd);
26183         (gdb) n
26184         95                saved_errno = errno;
26185         (gdb) p dir->dd_fd
26186         $11 = 8
26187
26188         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26189         The problem is that on OpenBSD, fd_clone_opendir has to resort
26190         to using the old-style save/restore CWD mechanism, due to its
26191         lack of openat/proc support, and *that* would steal the FD (6)
26192         that opendir was supposed to use.
26193
26194         The fix is to squirrel away the desired FD so that save_cwd uses a
26195         different one, and then free the dest FD right before calling opendir.
26196         That guarantees opendir will use the required file descriptor.
26197
26198         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26199
26200 2010-10-08  Bruno Haible  <bruno@clisp.org>
26201
26202         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26203         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26204
26205 2010-10-08  Bruno Haible  <bruno@clisp.org>
26206
26207         nanosleep: Make replacement POSIX compliant.
26208         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26209         is out of range.
26210         Reported by Jim Meyering.
26211
26212 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26213
26214         bootstrap: add hook for altering gnulib.mk, for Bison
26215         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26216         the Bison bootstrapping process can rewrite file names and variables
26217         in this file before later parts of 'bootstrap' use the file.
26218         Bison wants to include lib/gnulib.mk from the top-level makefile,
26219         so it needs the file names in this file to be relative to the top
26220         level, not relative to lib; plus it needs variable names to be
26221         rewritten.
26222         (slurp): Use the new function.
26223
26224         bootstrap: reformat for readability
26225         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26226
26227 2010-10-08  Eric Blake  <eblake@redhat.com>
26228
26229         docs: update cygwin progress
26230         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26231         1.7.7.
26232         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26233         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26234         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26235         * doc/posix-functions/carg.texi (carg): Likewise.
26236         * doc/posix-functions/cargf.texi (cargf): Likewise.
26237         * doc/posix-functions/casin.texi (casin): Likewise.
26238         * doc/posix-functions/casinf.texi (casinf): Likewise.
26239         * doc/posix-functions/casinh.texi (casinh): Likewise.
26240         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26241         * doc/posix-functions/catan.texi (catan): Likewise.
26242         * doc/posix-functions/catanf.texi (catanf): Likewise.
26243         * doc/posix-functions/catanh.texi (catanh): Likewise.
26244         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26245         * doc/posix-functions/ccos.texi (ccos): Likewise.
26246         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26247         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26248         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26249         * doc/posix-functions/cexp.texi (cexp): Likewise.
26250         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26251         * doc/posix-functions/cimag.texi (cimag): Likewise.
26252         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26253         * doc/posix-functions/clog.texi (clog): Likewise.
26254         * doc/posix-functions/clogf.texi (clogf): Likewise.
26255         * doc/posix-functions/conj.texi (conj): Likewise.
26256         * doc/posix-functions/conjf.texi (conjf): Likewise.
26257         * doc/posix-functions/cpow.texi (cpow): Likewise.
26258         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26259         * doc/posix-functions/cproj.texi (cproj): Likewise.
26260         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26261         * doc/posix-functions/creal.texi (creal): Likewise.
26262         * doc/posix-functions/crealf.texi (crealf): Likewise.
26263         * doc/posix-functions/csin.texi (csin): Likewise.
26264         * doc/posix-functions/csinf.texi (csinf): Likewise.
26265         * doc/posix-functions/csinh.texi (csinh): Likewise.
26266         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26267         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26268         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26269         * doc/posix-functions/ctan.texi (ctan): Likewise.
26270         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26271         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26272         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26273         * doc/posix-headers/complex.texi (complex.h): Likewise.
26274
26275 2010-10-07  Jim Meyering  <meyering@redhat.com>
26276
26277         parse-datetime: avoid compilation failure on OpenBSD 4.7
26278         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26279         This works around a compilation failure on OpenBSD 4.7:
26280         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26281
26282 2010-10-07  Eric Blake  <eblake@redhat.com>
26283
26284         docs: update cygwin progress
26285         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26286         1.7.6.
26287         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26288         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26289         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26290         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26291         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26292         Likewise.
26293         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26294         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26295         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26296         Likewise.
26297         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26298         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26299         Likewise.
26300         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26301         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26302         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26303         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26304         Likewise.
26305         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26306         Likewise.
26307         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26308
26309         docs: update parse-datetime history
26310         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26311         documentation of this function's history and alternatives.
26312
26313         cygwin: use more robust version check
26314         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26315         exclude an eventual cygwin 1.9.1.
26316         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26318         (gl_FUNC_STRCASESTR): Likewise.
26319         Reported by Bruno Haible.
26320
26321 2010-10-06  Bruno Haible  <bruno@clisp.org>
26322
26323         string, sys_select: Avoid #including large headers unless necessary.
26324         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26325         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26326         OSF/1, BeOS, Haiku.
26327         Reported by Jim Meyering.
26328
26329 2010-10-05  Eric Blake  <eblake@redhat.com>
26330
26331         memmem, strstr, strcasestr: fix bug with long periodic needle
26332         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26333         periodic needle having false positive.
26334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26335         and cygwin 1.7.7.
26336         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26338         (gl_FUNC_STRCASESTR): Likewise.
26339         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26340         * tests/test-memmem.c (main): Expose the bug.
26341         * tests/test-strcasestr.c (main): Likewise.
26342         * tests/test-strstr.c (main): Likewise.
26343         * tests/test-c-strcasestr.c (main): Likewise.
26344         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26345         * doc/posix-functions/strstr.texi (strstr): Likewise.
26346         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26347         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26348
26349 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         parse-datetime: do some more renaming
26352         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26353         parse_datetime, not get_date.  Mention the renaming.
26354         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26355         in comments.
26356         * m4/bison.m4: Likewise.
26357
26358 2010-10-05  Eric Blake  <eblake@redhat.com>
26359
26360         parse-datetime: better name than get_date
26361         * NEWS: Reword the deprecation notice.
26362         * modules/get_date: Rename to modules/parse-datetime.
26363         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26364         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26365         * lib/get_date.y: Rename to lib/parse-datetime.y.
26366         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26367         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26368         * doc/getdate.texi: Provide fallback wrapper.
26369         * lib/getdate.h: Move guts, and wrap...
26370         * lib/parse-datetime.h: ...new file.
26371         * lib/parse-datetime.y (get_date): Rename...
26372         (parse_datetime): ...to this.
26373         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26374         (gl_PARSE_DATETIME): ...to this.
26375         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26376         documentation.
26377         * modules/getdate (Files): Provide fallback docs and header.
26378         (Notice, Depends-on): Update references.
26379         * tests/test-parse-datetime.c: Likewise.
26380         * DEPENDENCIES: Likewise.
26381         * MODULES.html.sh (Date and time <time.h>): Likewise.
26382         * doc/parse-datetime.texi (Date input formats)
26383         (Authors of parse_datetime): Likewise.
26384         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26385         (Include): Likewise.
26386         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26387         * gnulib-tool: Likewise.
26388         * m4/bison.m4 (gl_BISON): Likewise.
26389         Suggested by Bruno Haible.
26390
26391 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26392
26393         more ports to Solaris tr, which needs [] around ranges
26394         * gnulib-tool: Solaris tr needs [] around ranges.
26395         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26396         * tests/test-pipe-filter-gi1.c (main): Likewise.
26397         * tests/test-pipe-filter-ii1.c (main): Likewise.
26398
26399 2010-10-05  Eric Blake  <eblake@redhat.com>
26400
26401         bootstrap: fix Solaris regression
26402         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26403         around ranges.
26404         Reported by Pádraig Brady.
26405
26406         bootstrap: work with pkg-config
26407         * build-aux/bootstrap (check_versions): Also transliterate - in
26408         prerequisite name.
26409         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26410         prerequisites that were already found, to avoid confusion.
26411         Reported by Justin Clift.
26412
26413         faccessat: remove unused wrappers
26414         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26415         presence of these wrappers dragged in -lgen on Solaris.
26416         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26417
26418 2010-10-05  Jim Meyering  <meyering@redhat.com>
26419
26420         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26421         * Makefile (sc_pragma_columns): New syntax-check rule.
26422
26423 2010-10-04  Bruno Haible  <bruno@clisp.org>
26424
26425         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26426         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26427         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26428         Reported by Bruce Korb and Eric Blake.
26429
26430 2010-10-04  Bruno Haible  <bruno@clisp.org>
26431
26432         threadlib: Make option --with-libpth-prefix work.
26433         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26434         use $LIBPTH, not just -lpth.
26435
26436 2010-10-04  Bruno Haible  <bruno@clisp.org>
26437
26438         Avoid line length limitation from HP NonStop system header files.
26439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26440         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26441         * lib/ctype.in.h: Likewise.
26442         * lib/dirent.in.h: Likewise.
26443         * lib/errno.in.h: Likewise.
26444         * lib/fcntl.in.h: Likewise.
26445         * lib/float.in.h: Likewise.
26446         * lib/getopt.in.h: Likewise.
26447         * lib/iconv.in.h: Likewise.
26448         * lib/inttypes.in.h: Likewise.
26449         * lib/langinfo.in.h: Likewise.
26450         * lib/locale.in.h: Likewise.
26451         * lib/math.in.h: Likewise.
26452         * lib/netdb.in.h: Likewise.
26453         * lib/netinet_in.in.h: Likewise.
26454         * lib/poll.in.h: Likewise.
26455         * lib/pthread.in.h: Likewise.
26456         * lib/pty.in.h: Likewise.
26457         * lib/sched.in.h: Likewise.
26458         * lib/se-selinux.in.h: Likewise.
26459         * lib/search.in.h: Likewise.
26460         * lib/signal.in.h: Likewise.
26461         * lib/spawn.in.h: Likewise.
26462         * lib/stdarg.in.h: Likewise.
26463         * lib/stddef.in.h: Likewise.
26464         * lib/stdint.in.h: Likewise.
26465         * lib/stdio.in.h: Likewise.
26466         * lib/stdlib.in.h: Likewise.
26467         * lib/string.in.h: Likewise.
26468         * lib/strings.in.h: Likewise.
26469         * lib/sys_file.in.h: Likewise.
26470         * lib/sys_ioctl.in.h: Likewise.
26471         * lib/sys_select.in.h: Likewise.
26472         * lib/sys_socket.in.h: Likewise.
26473         * lib/sys_stat.in.h: Likewise.
26474         * lib/sys_time.in.h: Likewise.
26475         * lib/sys_times.in.h: Likewise.
26476         * lib/sys_utsname.in.h: Likewise.
26477         * lib/sys_wait.in.h: Likewise.
26478         * lib/sysexits.in.h: Likewise.
26479         * lib/termios.in.h: Likewise.
26480         * lib/time.in.h: Likewise.
26481         * lib/unistd.in.h: Likewise.
26482         * lib/wchar.in.h: Likewise.
26483         * lib/wctype.in.h: Likewise.
26484         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26485         * modules/ctype (Makefile.am): Likewise.
26486         * modules/dirent (Makefile.am): Likewise.
26487         * modules/errno (Makefile.am): Likewise.
26488         * modules/fcntl-h (Makefile.am): Likewise.
26489         * modules/float (Makefile.am): Likewise.
26490         * modules/getopt-posix (Makefile.am): Likewise.
26491         * modules/iconv-h (Makefile.am): Likewise.
26492         * modules/inttypes (Makefile.am): Likewise.
26493         * modules/langinfo (Makefile.am): Likewise.
26494         * modules/locale (Makefile.am): Likewise.
26495         * modules/math (Makefile.am): Likewise.
26496         * modules/netdb (Makefile.am): Likewise.
26497         * modules/netinet_in (Makefile.am): Likewise.
26498         * modules/poll-h (Makefile.am): Likewise.
26499         * modules/pthread (Makefile.am): Likewise.
26500         * modules/pty (Makefile.am): Likewise.
26501         * modules/sched (Makefile.am): Likewise.
26502         * modules/search (Makefile.am): Likewise.
26503         * modules/selinux-h (Makefile.am): Likewise.
26504         * modules/signal (Makefile.am): Likewise.
26505         * modules/spawn (Makefile.am): Likewise.
26506         * modules/stdarg (Makefile.am): Likewise.
26507         * modules/stddef (Makefile.am): Likewise.
26508         * modules/stdint (Makefile.am): Likewise.
26509         * modules/stdio (Makefile.am): Likewise.
26510         * modules/stdlib (Makefile.am): Likewise.
26511         * modules/string (Makefile.am): Likewise.
26512         * modules/strings (Makefile.am): Likewise.
26513         * modules/sys_file (Makefile.am): Likewise.
26514         * modules/sys_ioctl (Makefile.am): Likewise.
26515         * modules/sys_select (Makefile.am): Likewise.
26516         * modules/sys_socket (Makefile.am): Likewise.
26517         * modules/sys_stat (Makefile.am): Likewise.
26518         * modules/sys_time (Makefile.am): Likewise.
26519         * modules/sys_times (Makefile.am): Likewise.
26520         * modules/sys_utsname (Makefile.am): Likewise.
26521         * modules/sys_wait (Makefile.am): Likewise.
26522         * modules/sysexits (Makefile.am): Likewise.
26523         * modules/termios (Makefile.am): Likewise.
26524         * modules/time (Makefile.am): Likewise.
26525         * modules/unistd (Makefile.am): Likewise.
26526         * modules/wchar (Makefile.am): Likewise.
26527         * modules/wctype (Makefile.am): Likewise.
26528
26529 2010-10-04  Bruno Haible  <bruno@clisp.org>
26530
26531         read-file tests: Avoid a test failure on NonStop Kernel.
26532         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26533         a regular file.
26534         Reported by Joachim Schmitz <schmitz@hp.com>.
26535
26536 2010-10-03  Bruno Haible  <bruno@clisp.org>
26537
26538         gnulib-tool: Fixes for --create-testdir with --libtool.
26539         * gnulib-tool (func_get_automake_snippet): Don't augment
26540         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26541         an executable.
26542         (func_create_testdir): Handle module 'alloca' like func_import.
26543         Reported by Bruce Korb <bruce.korb@gmail.com>.
26544
26545 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26546
26547         Avoid some lines longer than 80 characters.
26548         * lib/stdint.in.h: Break long comment lines.
26549         * lib/math.in.h: Likewise.
26550         (_GL_NUM_UINT_WORDS): New macro, for readability.
26551         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26552         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26553         * lib/stdlib.in.h: Likewise.
26554         * lib/spawn.in.h: Likewise.
26555         * lib/sys_socket.in.h: Update an URL.
26556         * lib/sys_stat.in.h: Break long line.
26557
26558 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26559
26560         Improve pmccabe2html.
26561         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26562         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26563         when the sources change. Remove the line in the HTML about "Used
26564         ranges" (which implied that there might be other unused ranges),
26565         rename "Resume" to "Summary" (easier to understand for more users).
26566         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26567         styles, and some unnecessary blank lines.
26568
26569 2010-10-03  Bruno Haible  <bruno@clisp.org>
26570             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26571
26572         acl: Add support for ACLs on NonStop Kernel.
26573         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26574         Check whether the function aclsort() exists.
26575         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26576         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26577         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26578         (acl_nontrivial [HAVE_ACLSORT]: New function.
26579         (file_has_acl): Implement for NonStop Kernel.
26580         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26581         (qset_acl): Implement for NonStop Kernel.
26582         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26583         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26584         (main): Implement for NonStop Kernel.
26585         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26586         Kernel. Handle this flavor.
26587         * tests/test-set-mode-acl.sh: Likewise.
26588         * tests/test-copy-acl.sh: Likewise.
26589         * tests/test-copy-file.sh: Likewise.
26590
26591 2010-10-03  Bruno Haible  <bruno@clisp.org>
26592
26593         Info about ACLs on NonStop Kernel.
26594         * doc/acl-resources.txt: Add info about NonStop Kernel.
26595         References by Joachim Schmitz <schmitz@hp.com>.
26596
26597 2010-10-02  Bruno Haible  <bruno@clisp.org>
26598
26599         Define missing EDQUOT on NonStop Kernel.
26600         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26601         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26603         missing.
26604         * doc/posix-headers/errno.texi: Mention the NSK bug.
26605         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26606         Reported by Joachim Schmitz <schmitz@hp.com>.
26607
26608 2010-10-02  Bruno Haible  <bruno@clisp.org>
26609
26610         Update doc for POSIX:2008.
26611         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26612         Update URL of POSIX specification.
26613
26614 2010-10-02  Bruno Haible  <bruno@clisp.org>
26615
26616         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26617         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26618         from gnulib, not from Automake.
26619
26620 2010-10-02  Bruno Haible  <bruno@clisp.org>
26621
26622         New module 'system-posix'.
26623         * modules/system-posix: New file.
26624         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26625         module is present.
26626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26627         GNULIB_SYSTEM_POSIX.
26628         * modules/stdlib (Depends-on): Remove sys_wait.
26629         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26630         * doc/posix-functions/system.texi: Mention the new module.
26631         * doc/posix-headers/stdlib.texi: Likewise.
26632         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26633         define test_sys_wait_macros to a no-op.
26634         Reported by Sam Steingold <sds@gnu.org>.
26635
26636 2010-09-30  Bruno Haible  <bruno@clisp.org>
26637
26638         More renaming from 'getdate' to 'get_date'.
26639         * doc/get_date.texi: Renamed from doc/getdate.texi.
26640         * modules/get_date (Files): Update.
26641         * MODULES.html.sh (Date and time <time.h>): Update.
26642         * DEPENDENCIES: Update.
26643         * gnulib-tool: Update comment.
26644         * m4/bison.m4 (gl_BISON): Likewise.
26645         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26646
26647 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26648
26649         bootstrap: support ACLOCAL_FLAGS during aclocal
26650         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26651         can add additional -I dir for third-party .m4 files.
26652
26653 2010-09-30  Eric Blake  <eblake@redhat.com>
26654
26655         bootstrap: use glibtoolize on MacOS
26656         * build-aux/bootstrap (check_versions): Convert libtool into
26657         libtoolize.
26658         (tool search): Move libtool check earlier, and look for
26659         glibtoolize for MacOS.
26660         (gnulib_tool_options): Auto-add --libtool when appropriate.
26661         Reported by Justin Clift.
26662
26663         poll: fix typo that broke test on MacOS
26664         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26665         Reported by Justin Clift.
26666
26667         getdate: rename to get_date
26668         Note: getdate.h is not renamed, to minimize client impact.
26669         * modules/getdate: Mark obsolete.  Move old contents...
26670         * modules/get_date: ...to new module name.
26671         * modules/getdate-tests: Move...
26672         * modules/get_date-tests: ...here.
26673         * m4/getdate.m4: Move...
26674         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26675         * lib/getdate.y: Move...
26676         * lib/get_date.y: ...here.
26677         * tests/test-getdate.c: Move...
26678         * tests/test-get_date.c: ...here.
26679         * doc/posix-functions/getdate.texi (getdate): Update name.
26680         * NEWS: Mention the change.
26681
26682 2010-09-29  Bruno Haible  <bruno@clisp.org>
26683
26684         Separate the module 'waitpid' from the module 'sys_wait'.
26685         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26686         present.
26687         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26688         gl_MODULE_INDICATOR_FOR_TESTS.
26689         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26690         * modules/sys_wait (Depends-on): Remove waitpid.
26691         (Makefile.am): Substitute GNULIB_WAITPID.
26692         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26693         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26694         signature only if the 'waitpid' module is present.
26695         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26696         * NEWS: Mention the change.
26697         * modules/grantpt (Depends-on): Add waitpid.
26698         * modules/wait-process (Depends-on): Likewise.
26699
26700 2010-09-29  Bruno Haible  <bruno@clisp.org>
26701
26702         More tests for module 'sys_wait'.
26703         * modules/sys_wait-c++-tests: New file.
26704         * tests/test-sys_wait-c++.cc: New file.
26705         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26706         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26707
26708 2010-09-29  Bruno Haible  <bruno@clisp.org>
26709
26710         New module 'waitpid'.
26711         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26712         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26713         Don't include <process.h>.
26714         (waitpid): Declare only, using modern idiom.
26715         * m4/waitpid.m4: New file.
26716         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26717         * modules/waitpid: New file.
26718         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26719         (Makefile.am): Update.
26720         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26721
26722 2010-09-28  Bruno Haible  <bruno@clisp.org>
26723
26724         poll: Assume ANSI C.
26725         * lib/poll.c (poll): Use an ANSI C declaration.
26726
26727 2010-09-28  Bruno Haible  <bruno@clisp.org>
26728
26729         poll-h: Create poll.h on all platforms.
26730         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26731         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26732         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26733         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26734         (gl_REPLACE_POLL_H): Don't set POLL_H.
26735         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26736         * modules/poll-h (Depends-on): Add include_next.
26737         (Makefile.am): Create poll.h unconditionally. Substitute also
26738         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26739
26740 2010-09-28  Bruno Haible  <bruno@clisp.org>
26741
26742         Tests for module 'poll-h'.
26743         * modules/poll-h-c++-tests: New file.
26744         * tests/test-poll-h-c++.cc: New file.
26745
26746         Tests for module 'poll-h'.
26747         * modules/poll-h-tests: New file.
26748         * tests/test-poll-h.c: New file.
26749
26750 2010-09-28  Bruno Haible  <bruno@clisp.org>
26751
26752         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26753         * modules/poll-h (Depends-on): Add 'extensions'.
26754
26755 2010-09-28  Bruno Haible  <bruno@clisp.org>
26756
26757         New module 'poll-h'.
26758         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26759         (poll): Use modern idiom.
26760         * modules/poll-h: New file.
26761         * modules/poll (Files): Remove lib/poll.in.h.
26762         (Depends-on): Add poll-h.
26763         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26764         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26765         * m4/poll_h.m4: New file.
26766         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26767         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26768         and invoke gl_REPLACE_POLL_H.
26769         * lib/poll.c: Use common idiom.
26770         * tests/test-poll.c: Likewise.
26771         * doc/posix-headers/poll.texi: Mention the poll-h module.
26772         Suggested by Eric Blake.
26773
26774 2010-09-26  Bruno Haible  <bruno@clisp.org>
26775
26776         sys_wait: Implement WSTOPSIG.
26777         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26778         Reported by Simon Josefsson.
26779
26780 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26781
26782         stdlib, sys_wait: Avoid compilation error on mingw.
26783         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26784
26785 2010-09-26  Bruno Haible  <bruno@clisp.org>
26786
26787         stdlib tests: Avoid code duplication.
26788         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26789         * modules/sys_wait-tests (Files): Likewise.
26790         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26791         * tests/test-stdlib.c: Include test-sys_wait.h.
26792         (main): Invoke test_sys_wait_macros.
26793         * tests/test-sys_wait.c: Include test-sys_wait.h.
26794         (main): Invoke test_sys_wait_macros.
26795
26796 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26797
26798         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26799         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26800         sure Windows sockets are working before calling getaddrinfo.
26801         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26802         * doc/gnulib.texi (Windows sockets): Fix typo.
26803
26804 2010-09-25  Bruno Haible  <bruno@clisp.org>
26805
26806         Tests for module 'regex-quote'.
26807         * modules/regex-quote-tests: New file.
26808         * tests/test-regex-quote.c: New file.
26809
26810         New module 'regex-quote'.
26811         * lib/regex-quote.h: New file.
26812         * lib/regex-quote.c: New file.
26813         * modules/regex-quote: New file.
26814         Suggested by Reuben Thomas <rrt@sc3d.org>.
26815
26816 2010-09-24  Bruno Haible  <bruno@clisp.org>
26817
26818         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26819         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26820
26821 2010-09-23  Bruno Haible  <bruno@clisp.org>
26822
26823         setenv: Relax license.
26824         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26825         Blake.
26826         Requested by Eric Blake.
26827
26828 2010-09-22  Bruno Haible  <bruno@clisp.org>
26829
26830         termios: Relax license.
26831         * modules/termios (License): Change to LGPLv2+.
26832         Requested by Eric Blake.
26833
26834 2010-09-22  Bruno Haible  <bruno@clisp.org>
26835
26836         threadlib: Allow the package to change the default to 'no'.
26837         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26838         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26839         Reported by Paul Eggert.
26840
26841 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26842             Bruno Haible  <bruno@clisp.org>
26843
26844         Fix endless loop in mbmemcasecoll.
26845         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26846         byte.
26847         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26848
26849 2010-09-22  Bruno Haible  <bruno@clisp.org>
26850
26851         Tests for module 'memcoll'.
26852         * modules/memcoll-tests: New file.
26853         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26854
26855         memcoll, xmemcoll: Clarify size vs. length.
26856         * modules/memcoll.c (memcoll0): Clarify specification.
26857         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26858         passed to collate_error.
26859
26860 2010-09-22  Bruno Haible  <bruno@clisp.org>
26861
26862         Tests for module 'memcasecmp'.
26863         * modules/memcasecmp-tests: New file.
26864         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26865
26866 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26867
26868         * lib/pthread.in.h: Add split double-inclusion guard, and include
26869         system <pthread.h> if there is one.  Use @@-style as in other
26870         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26871         pthread.h doesn't.
26872         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26873         (pthread_mutexattr_settype, pthread_mutex_trylock):
26874         New static inline functions, if there's no system <pthread.h>.
26875         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26876         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26877         Approximate with mutexes if the system lacks spinlocks, as in
26878         MacOS.
26879         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26880         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26881         @@-style.  Check for spinlocks separately.
26882         (gl_PTHREAD_DEFAULTS): New macro.
26883         * modules/pthread: Redo to use a more typical style for in.h files.
26884
26885 2010-09-21  Eric Blake  <eblake@redhat.com>
26886
26887         net_if: enhance tests
26888         * tests/test-net_if.c (main): Move signature checks earlier.
26889         Print failures to stderr.
26890         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26891         Document the bug that we do not yet fix.
26892
26893 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26894
26895         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26896         about gnulib, not GSS.
26897
26898 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26899
26900         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26901         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26902         for Emacs.
26903         * build-aux/pmccabe2html: Make Makefile.am example code more
26904         cut-and-paste friendly.
26905
26906 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26907
26908         * tests/test-net_if.c: New file.
26909         * modules/net_if-tests: New file.
26910
26911 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26912
26913         pthread: add pthread_spin_destroy
26914         * lib/pthread.in.h (pthread_spin_destroy): New function.
26915
26916 2010-09-19  Bruno Haible  <bruno@clisp.org>
26917
26918         gnulib-tool: Fix --help output.
26919         * gnulib-tool (func_usage): Fix help message.
26920         Reported by Reuben Thomas <rrt@sc3d.org>.
26921
26922 2010-09-18  Jim Meyering  <meyering@redhat.com>
26923
26924         maint.mk: avoid unexpanded \n in two diagnostics
26925         * top/maint.mk (sc_prohibit_always_true_header_tests):
26926         Don't use a literal \n in a halt=... assignment.  It would not be
26927         expanded, and the two \n bytes would appear in the diagnostic output
26928         rather than the desired newline.  Use halt=$$(printf ... instead.
26929         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26930
26931 2010-09-18  Bruno Haible  <bruno@clisp.org>
26932
26933         netinet_in: Doc tweak.
26934         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26935         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26936
26937 2010-09-18  Jim Meyering  <meyering@redhat.com>
26938
26939         init.sh: correct an outdated comment
26940         * tests/init.sh (create_exe_shims_):  s/function/alias/
26941
26942         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26943         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26944         a file named "*.exe" is removed between the glob expansion and the
26945         processing of that oddly named file.
26946
26947 2010-09-17  Eric Blake  <eblake@redhat.com>
26948
26949         mirbsd: add some more support
26950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26951         in BSD family.
26952         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26953         devices as OpenBSD.
26954         * m4/host-os.m4 (mirbsd): Add MirBSD.
26955
26956         tests: fix unportable assumption on sys/wait.h
26957         * tests/test-sys_wait.c (main): Relax test.
26958         * tests/test-stdlib.c (main): Likewise.
26959
26960         init.sh: accommodate directory with no .exes
26961         * tests/init.sh: Accomodate directory containing only scripts.
26962
26963         tests: avoid compiler warning
26964         * tests/test-stdlib.c (main): Use the variable.
26965
26966         fdutimens, fdutimensat: update signature, again
26967         * lib/utimens.h (gl_futimens): Delete, and move signature...
26968         (fdutimens): ...here.
26969         (fdutimensat): Rearrange signature.
26970         (lutimensat): Rename variable for clarity.
26971         * lib/fdutimensat.c (fdutimensat): Update signature.
26972         * lib/utimens.c (fdutimens): Likewise.
26973         (gl_futimens): Delete.
26974         (utimens, lutimens): Update callers.
26975         * lib/futimens.c (futimens): Likewise.
26976         * tests/test-fdutimensat.c: Likewise.
26977         * tests/test-utimens.c: Likewise.
26978         * tests/test-futimens.h: Update comment.
26979         * NEWS: Mention this.
26980         Suggested by Paul Eggert.
26981
26982 2010-09-17  Bruno Haible  <bruno@clisp.org>
26983
26984         Take over the maintenance of some older macros from Autoconf.
26985         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26986         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26987         GNU Autoconf.
26988         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26989         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26990
26991 2010-09-17  Eric Blake  <eblake@redhat.com>
26992
26993         fdutimensat: drop atflag validation
26994         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26995         with valid fd, to close a race scenario where futimens is
26996         unsupported and FILE was replaced by a symlink.
26997         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26998         accordingly.
26999         Suggested by Paul Eggert.
27000
27001 2010-09-16  Bruno Haible  <bruno@clisp.org>
27002
27003         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27004         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27005
27006 2010-09-16  Bruno Haible  <bruno@clisp.org>
27007
27008         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27009         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27010         login_tty exists.
27011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27012
27013 2010-09-16  Bruno Haible  <bruno@clisp.org>
27014
27015         login_tty: Make the replacement code work on BSD systems.
27016         * lib/login_tty.c: Include <sys/ioctl.h>.
27017         (login_tty): Use ioctl TIOCSCTTY when available.
27018         * modules/login_tty (Depends-on): Add sys_ioctl.
27019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27020
27021 2010-09-16  Bruno Haible  <bruno@clisp.org>
27022
27023         login_tty: Stricter unit test.
27024         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27025         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27026         and tcgetsid() after login_tty.
27027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27028
27029 2010-09-16  Bruno Haible  <bruno@clisp.org>
27030
27031         New module 'tcgetsid'.
27032         * lib/tcgetsid.c: New file.
27033         * m4/tcgetsid.m4: New file.
27034         * modules/tcgetsid: New file.
27035         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27036         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27037         GNULIB_TCGETSID, HAVE_TCGETSID.
27038         * lib/termios.in.h: Include <sys/types.h>.
27039         (tcgetsid): New declaration.
27040         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27041         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27042         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27043         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27044
27045 2010-09-16  Bruno Haible  <bruno@clisp.org>
27046
27047         Tests for module 'termios'.
27048         * modules/termios-c++-tests: New file.
27049         * modules/termios-tests: New file.
27050         * tests/test-termios-c++.cc: New file.
27051         * tests/test-termios.c: New file.
27052
27053         New module 'termios'.
27054         * modules/termios: New file.
27055         * lib/termios.in.h: New file.
27056         * m4/termios_h.m4: New file.
27057         * doc/posix-headers/termios.texi: Mention the new module.
27058
27059 2010-09-16  Eric Blake  <eblake@redhat.com>
27060
27061         fdutimensat: add an atflag parameter
27062         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27063         * lib/utimens.h (fdutimensat): Update prototype.
27064         * tests/test-fdutimensat.c: Adjust test to match.
27065         * NEWS: Document the change.
27066         Suggested by Paul Eggert.
27067
27068 2010-09-16  Bruno Haible  <bruno@clisp.org>
27069
27070         Fix typos in comments.
27071         * lib/striconveh.h: Fix typo in comment.
27072         * lib/login_tty.c (login_tty): Likewise.
27073
27074 2010-09-15  Bruno Haible  <bruno@clisp.org>
27075
27076         stdlib: clarify MirBSD WEXITSTATUS bug
27077         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27078         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27079
27080 2010-09-15  Eric Blake  <eblake@redhat.com>
27081
27082         stdlib: work around MirBSD WEXITSTATUS bug
27083         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27084         * modules/stdlib (Depends-on): Add sys_wait.
27085         * tests/test-sys_wait.c (main): Enhance test.
27086         * tests/test-stdlib.c (main): Likewise.
27087         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27088
27089         docs: mention MacOS issue with WEXITSTATUS(constant)
27090         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27091         issue.
27092         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27093
27094         strnlen: add tests
27095         * modules/strnlen-tests: New file.
27096         * tests/test-strnlen.c: Likewise.
27097
27098 2010-09-14  Bruno Haible  <bruno@clisp.org>
27099
27100         unistr/base: Avoid link errors when module 'libunistring' is also used.
27101         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27102         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27103         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27104         Declare also when HAVE_LIBUNISTRING is set.
27105         Reported by Pádraig Brady <P@draigbrady.com>.
27106
27107 2010-09-14  Eric Blake  <eblake@redhat.com>
27108
27109         test-rawmemchr: make more robust
27110         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27111         (Depends-on, configure.ac): Add needed prerequisites to use it.
27112         * modules/memchr-tests (Files, Depends-on, configure.ac):
27113         Likewise, to avoid implicit reliance on memchr module prereqs.
27114         * tests/test-memchr.c (main): Ensure proper masking.
27115         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27116         reads.
27117
27118         memchr: detect glibc Alpha bug
27119         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27120         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27121         Alpha.
27122         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27123         * tests/test-memchr.c (main): Enhance test.
27124         Reported by Nelson H. F. Beebe.
27125
27126 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27127
27128         fts, getcwd, glob: audit for dirfd returning -1
27129         * lib/fts.c (opendir): Remove #define; no longer used.
27130         (opendirat): New arg PDIR_FD.  All callers changed.
27131         (fts_build, _opendir2): Use new opendirat to avoid the need for
27132         dirfd, or for checking whether dirfd returns a negative value.
27133         Don't use opendir; always use openat followed by fdopendir.
27134         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27135         it.
27136         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27137         returns -1 here.
27138         * modules/fts (Depends-on): Remove dirfd.
27139         * modules/getcwd (Depends-on): Likewise.
27140
27141 2010-09-13  Eric Blake  <eblake@redhat.com>
27142
27143         float: fix broken MirBSD header
27144         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27145         * doc/posix-headers/float.texi (float.h): Document it.
27146
27147 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27150         * lib/fts.c (opendirat): New arg extra_flags.
27151         (__opendir2): Use it to avoid following symlinks when opening
27152         a directory, if symlinks are not supposed to be followed.  See
27153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27154
27155         fdopendir: preserve argument fd before returning
27156         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27157         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27158         (fdopendir): Use them, arranging for FD to be open to the same
27159         directory that it was when it started.  (It might be temporarily
27160         closed while fdopendir is running, so this not thread- or
27161         signal-safe.)  Be careful to do the right thing even when file
27162         descriptors are scarce and dup fails with errno == EMFILE.  See
27163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27164
27165 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27166
27167         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27168         * NEWS: Document change.
27169         * m4/regex.m4: Disable test for regoff_t size.
27170
27171 2010-09-13  Jim Meyering  <meyering@redhat.com>
27172
27173         fts: don't operate on an invalid file descriptor after failed dup
27174         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27175         negative file descriptor.
27176
27177 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27178
27179         savedir: add streamsavedir, deprecate fdsavedir
27180         * NEWS: Mention deprecation of fdsavedir.
27181         * lib/savedir.c (streamsavedir): New extern function, whose name
27182         ends in "savedir" to be consistent with the others.  This differs
27183         from savedirstream in that it doesn't close its argument.  The
27184         next version of GNU tar will use this instead of fdsavedir, to
27185         avoid some race conditions and conserve file descriptors.
27186         (savedirstream): Reimplement as a wrapper around streamsavedir.
27187         (fdsavedir): Add a comment deprecating this function.  As far as
27188         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27189         * lib/savedir.h (streamsavedir): New decl.
27190         (fdsavedir): Add a comment deprecating this.
27191
27192 2010-09-10  Bruno Haible  <bruno@clisp.org>
27193
27194         langinfo: Fix last commit.
27195         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27196         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27198
27199 2010-09-10  Bruno Haible  <bruno@clisp.org>
27200
27201         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27202         * lib/progreloc.c (O_EXEC): Define fallback.
27203
27204 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27205
27206         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27207         * NEWS: Document recent changes to fcntl-h.
27208         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27209         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27210         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27211         Similarly for O_SEARCH; this last was already true, but not documented.
27212         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27213         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27214         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27215         Likewise.
27216         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27217         is zero, not whether it is defined.
27218         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27219         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27220         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27221
27222 2010-09-10  Bruno Haible  <bruno@clisp.org>
27223
27224         langinfo, nl_langinfo: Fix for IRIX 5.3.
27225         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27226         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27227         HAVE_LANGINFO_YESEXPR.
27228         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27229         HAVE_LANGINFO_YESEXPR.
27230         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27231         HAVE_LANGINFO_T_FMT_AMPM is 0.
27232         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27233         HAVE_LANGINFO_YESEXPR is 0.
27234         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27235         NOEXPR.
27236         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27237         * doc/posix-functions/nl_langinfo.texi: Likewise.
27238         Reported by Eric Blake.
27239
27240 2010-09-10  Bruno Haible  <bruno@clisp.org>
27241
27242         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27243         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27244         on FreeBSD 8.0 and OpenBSD 4.6.
27245         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27246         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27247         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27248         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27249         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27250         ac_includes_default.
27251         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27252
27253 2010-09-09  Eric Blake  <eblake@redhat.com>
27254
27255         strsignal: work around NetBSD bug
27256         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27257         * lib/string.in.h (includes): Likewise.
27258         * doc/posix-functions/strsignal.texi (strsignal): Document the
27259         bug.
27260         Reported by Nelson H. F. Beebe.
27261
27262         gnulib-tool: work with NetBSD /bin/sh
27263         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27264         (func_get_description, func_get_comment, func_get_status)
27265         (func_get_notice, func_get_applicability, func_get_filelist)
27266         (func_get_dependencies, func_get_autoconf_early_snippet)
27267         (func_get_autoconf_snippet, func_get_automake_snippet)
27268         (func_get_include_directive, func_get_link_directive)
27269         (func_get_license, func_get_maintainer, func_import): Avoid
27270         shell syntax errors from parsing syntax extensions.
27271
27272 2010-09-09  Bruno Haible  <bruno@clisp.org>
27273
27274         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27275         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27276         a reliable way to determine whether the 'alias' command works.
27277
27278 2010-09-08  Jim Meyering  <meyering@redhat.com>
27279
27280         init.sh: penalize a set-x-impaired shell; don't disqualify it
27281         * tests/init.sh: Too many shells corrupt application stderr when
27282         you set -x, so we can't afford to disqualify them, since at least
27283         on Irix-6.5, that would disqualify all bourne shells.
27284         Instead, use a two-pass approach.
27285         On the first pass, try to find a shell that meets the stricter
27286         condition that set -x does not corrupt stderr.
27287         If no shell meets the stricter condition, retest each candidate
27288         shell, but without that extra condition.  Finally, when
27289         VERBOSE=yes is requested and set -x might cause trouble, simply
27290         issue a warning and refrain from enabling debug output.
27291
27292 2010-09-08  Eric Blake  <eblake@redhat.com>
27293
27294         unsetenv: fix OpenBSD bug
27295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27296         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27297         documentation.
27298         Reported by Jim Meyering.
27299
27300         strtod: work around IRIX 6.5 bug
27301         * lib/strtod.c (strtod): Reparse number on shorter string if
27302         exponent parse was invalid.
27303         * tests/test-strtod.c (main): Add check for "0x1p 2".
27304         Reported by Tom G. Christensen.
27305
27306         getopt: optimize previous patch
27307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27308         empty variable.  Speed up awk script.
27309         Reported by Paolo Bonzini.
27310
27311 2010-09-08  Jim Meyering  <meyering@redhat.com>
27312
27313         test.sh: disqualify shells for which set -x corrupts stderr
27314         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27315         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27316         appear in stderr output.  For example, this command:
27317             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27318         prints "P=1" on those two systems:
27319
27320 2010-09-08  Bruno Haible  <bruno@clisp.org>
27321
27322         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27323         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27324         commands, because some shells ignore redirections when there is an
27325         error in the command lookup.
27326         Reported by Eric Blake.
27327
27328 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27329
27330         * lib/regex.h: Fix a mention of `regex_compile' (should be
27331         `re_compile_pattern').
27332         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27333         (re_set_registers): Correct name of parameter in comment.
27334
27335         * doc/regex.texi: Add documentation for missing syntax flags.
27336         Remove commented-out documentation of defunct syntax option
27337         RE_NO_EMPTY_ALTS.
27338         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27339         Add documentation of re_set_registers.
27340         Document trick to re-use a pattern buffer by setting fastmap manually.
27341         Update documentation of struct re_pattern_buffer per public members.
27342         Uncomment documentation of equivalence class operators and
27343         collating symbol operators, since they are now implemented,
27344         Explain leftmost-longest matching in relation to alternatives.
27345         Tidy documentation of substring matching.
27346         Remove POSIX documentation, which is done better in
27347         glibc, and refer the reader there. Keep BSD API documentation, as
27348         that is not readily available elsewhere.
27349
27350 2010-09-07  Eric Blake  <eblake@redhat.com>
27351
27352         getopt: handle POSIXLY_CORRECT set but not exported
27353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27354         export state of POSIXLY_CORRECT, due to bash set -o posix.
27355         Reported by Dustin J. Mitchell.
27356
27357 2010-09-05  Bruno Haible  <bruno@clisp.org>
27358
27359         gnulib-tool: Highlight the changed options.
27360         * gnulib-tool (func_usage): Display the --import, --add-import,
27361         --remove-import explanations in bold font.
27362
27363 2010-09-06  Karl Berry  <karl@gnu.org>
27364
27365         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27366
27367 2010-09-05  Bruno Haible  <bruno@clisp.org>
27368
27369         uniwidth/width: Update comment.
27370         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27371         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27372
27373 2010-09-05  Bruno Haible  <bruno@clisp.org>
27374
27375         isinf, isnan: Relax license.
27376         * modules/isinf (License): Change from GPL to LGPL, with consent from
27377         Ben Pfaff.
27378         * modules/isnan (License): Likewise.
27379         Requested by Ludovic Courtès.
27380
27381 2010-09-04  Bruno Haible  <bruno@clisp.org>
27382
27383         gnulib-tool: Help migration from --import to --add-import or --update.
27384         * gnulib-tool: Emit a verbose error message when --import is used
27385         without any module name.
27386
27387 2010-09-04  Bruno Haible  <bruno@clisp.org>
27388
27389         Update doc about gnulib-tool.
27390         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27391         'gnulib-tool --update' in more detail.
27392         Reported by Eric Blake.
27393
27394 2010-09-04  Bruno Haible  <bruno@clisp.org>
27395
27396         gnulib-tool: Change --import. New options --add/remove-import.
27397         * gnulib-tool: New options --add-import, --remove-import.
27398         (func_usage): Document them.
27399         (have_associative): Define always.
27400         (func_import): In import mode, don't merge the specified settings with
27401         the cached settings. Implement remove-import mode.
27402         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27403         Explain when to use them versus --import.
27404         (Simple update): Use --add-import instead of --import.
27405         * NEWS: Mention the change.
27406
27407 2010-09-04  Bruno Haible  <bruno@clisp.org>
27408
27409         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27410         separate gnulib.mk.
27411
27412 2010-09-04  Bruno Haible  <bruno@clisp.org>
27413
27414         gnulib-tool: Don't talk about CVS any more.
27415         * gnulib-tool (func_usage, func_import): Write "version control"
27416         instead of CVS.
27417
27418 2010-09-04  Jim Meyering  <meyering@redhat.com>
27419
27420         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27421         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27422         false positives (whose names may be ill-chosen) when searching
27423         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27424         would cause a false-positive.
27425
27426         avoid coreutils "make distcheck" failure
27427         Coreutils tests with an absolute build directory name that contains
27428         a space.  Not quoting this directory name caused a failure.
27429         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27430         * tests/test-vc-list-files-cvs.sh: Likewise.
27431
27432 2010-09-04  Bruno Haible  <bruno@clisp.org>
27433
27434         gnulib-tool: Avoid error when run in a package without Makefile.am.
27435         * gnulib-tool: When collecting the m4dirs in a package that does not
27436         have a Makefile.am, eliminate those directories that contain no
27437         gnulib-cache.m4. Fix expression that counts these directories.
27438
27439 2010-09-04  Bruno Haible  <bruno@clisp.org>
27440
27441         update-copyright test: Improve output when perl is missing or too old.
27442         * tests/test-update-copyright.sh: Move test of Perl version down after
27443         the test whether Perl exists. Provide an explanation relating Perl's
27444         error message to Automake's SKIP: message.
27445
27446 2010-09-04  Bruno Haible  <bruno@clisp.org>
27447
27448         Don't augment PATH in TESTS_ENVIRONMENT.
27449         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27450         set abs_aux_dir instead of augmenting PATH.
27451         * modules/vc-list-files-tests (Makefile.am): Likewise.
27452         * tests/test-update-copyright.sh: Augment PATH here.
27453         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27454         path_prepend_.
27455         * tests/test-vc-list-files-git.sh: Likewise.
27456
27457 2010-09-04  Jim Meyering  <meyering@redhat.com>
27458
27459         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27460         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27461
27462 2010-09-04  Bruno Haible  <bruno@clisp.org>
27463
27464         strdup: Fix compilation error in C++ mode.
27465         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27466         the macro.
27467
27468 2010-09-04  Bruno Haible  <bruno@clisp.org>
27469
27470         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27471         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27472         macro into a function.
27473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27474
27475 2010-09-04  Bruno Haible  <bruno@clisp.org>
27476
27477         Set PATH_SEPARATOR the same way autoconf does.
27478         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27479         the value of PATH_SEPARATOR the same way autoconf-generated configure
27480         scripts do.
27481         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27482         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27483
27484 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27485
27486         Set PATH_SEPARATOR the same way autoconf does.
27487         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27488         the same way autoconf-generated configure scripts do.
27489         * posix-modules: Likewise.
27490
27491 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27492
27493         hash: fix safe_hasher const typo
27494         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27495         const; otherwise, there is a type error later.
27496
27497 2010-09-02  Jim Meyering  <meyering@redhat.com>
27498
27499         test-update-copyright.sh: require perl 5.8.0
27500         * tests/test-update-copyright.sh: Require 5.8.0,
27501         which Tom G. Christensen has confirmed is adequate,
27502         while 5.6.1 is not.
27503
27504 2010-09-02  Eric Blake  <eblake@redhat.com>
27505
27506         tests: init.sh improvements for re-exec'ing with zsh
27507         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27508         -vx through shell re-exec.
27509         Reported by Tom G. Christensen.
27510
27511         wctype: fix typo in previous commit
27512         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27513         Reported by Ludovic Courtès.
27514
27515 2010-09-02  Jim Meyering  <meyering@redhat.com>
27516
27517         test-update-copyright.sh: skip test if Perl is too old
27518         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27519         Reported by Tom G. Christensen.
27520
27521 2010-09-02  Bruno Haible  <bruno@clisp.org>
27522
27523         wctype: Avoid compilation error on IRIX 6.5.30.
27524         * lib/wctype.in.h (iswblank): Declare with a replacement if
27525         REPLACE_ISWBLANK is set.
27526         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27527         declared. Set REPLACE_ISWBLANK.
27528         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27529         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27530         * doc/posix-headers/wctype.texi: Likewise.
27531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27532
27533 2010-09-01  Bruno Haible  <bruno@clisp.org>
27534
27535         New module 'socketlib'.
27536         * modules/socketlib: New file.
27537         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27538         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27539         * modules/sockets (Depends-on): Add socketlib.
27540         Suggested by Sam Steingold <sds@gnu.org>.
27541
27542 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27543
27544         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27545
27546         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27547         when one needs search access to a directory but not read access.
27548         On systems where it is available, it works in some cases where
27549         O_RDONLY does not, namely on directories that are searchable but
27550         not readable, and which need only to be searchable.  If O_SEARCH
27551         is not available, fall back to the traditional method of using
27552         O_RDONLY.
27553
27554         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27555         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27556         when opening a directory that needs only to be searchable.
27557         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27558         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27559         * lib/openat-proc.c (openat_proc_name): Likewise.
27560         * lib/openat.c (openat_needs_fchdir): Likewise.
27561         * lib/save-cwd.c (save_cwd): Likewise.
27562         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27563
27564 2010-08-28  Bruno Haible  <bruno@clisp.org>
27565
27566         New module 'host-cpu-c-abi'.
27567         * modules/host-cpu-c-abi: New file.
27568         * m4/host-cpu-c-abi.m4: New file, based on part of
27569         clisp/src/m4/general.m4.
27570         Requested by Sam Steingold <sds@gnu.org>.
27571
27572 2010-08-31  Eric Blake  <eblake@redhat.com>
27573         and Jim Meyering  <meyering@redhat.com>
27574
27575         hash: factor, and guard against misbehaving hasher function
27576         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27577         of table->hasher's return value.  Also protect against a hash value
27578         so large that adding it to table->bucket results in a NULL pointer.
27579         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27580         Use it in place of open-coded check-and-abort.
27581
27582 2010-08-30  Bruno Haible  <bruno@clisp.org>
27583
27584         hash: silence spurious clang warning
27585         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27586         Reported by Eric Blake.
27587
27588 2010-08-30  Eric Blake  <eblake@redhat.com>
27589
27590         strstr, memmem, strcasestr: avoid leaked shell message
27591         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27592         FreeBSD.
27593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27595
27596         tests: silence clang warning
27597         * tests/test-malloca.c (do_allocation): Avoid dead store.
27598
27599 2010-08-29  Bruno Haible  <bruno@clisp.org>
27600
27601         gettext: Fix recent mistake.
27602         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27603
27604 2010-08-29  Bruno Haible  <bruno@clisp.org>
27605
27606         selinux-h: Offer a --without-selinux option.
27607         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27608         --without-selinux was specified, skip all tests and define
27609         HAVE_SELINUX_SELINUX_H to 0.
27610         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27611         set LIB_SELINUX to empty.
27612         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27613         gl_LIBSELINUX. If --without-selinux was specified, replace
27614         selinux/context.h.
27615         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27616
27617 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27618             Bruno Haible  <bruno@clisp.org>
27619
27620         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27621         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27622         of HAVE_REALLOC.
27623         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27624         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27625         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27626         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27627
27628 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27629             Bruno Haible  <bruno@clisp.org>
27630
27631         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27632         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27633         HAVE_CALLOC.
27634         * lib/xmalloc.c: Update accordingly.
27635         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27636         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27637         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27638
27639 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27640             Bruno Haible  <bruno@clisp.org>
27641
27642         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27643         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27644         HAVE_MALLOC.
27645         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27646         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27647         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27648
27649 2010-08-29  Bruno Haible  <bruno@clisp.org>
27650
27651         Update modules list.
27652         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27653         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27654         (String handling <string.h>): Add astrxfrm.
27655         (File system functions): Add readlinkat.
27656
27657 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27658
27659         Tests for module 'realloc-gnu'.
27660         * modules/realloc-gnu-tests: New file.
27661         * tests/test-realloc-gnu.c: New file.
27662
27663         Tests for module 'calloc-gnu'.
27664         * modules/calloc-gnu-tests: New file.
27665         * tests/test-calloc-gnu.c: New file.
27666
27667         Tests for module 'malloc-gnu'.
27668         * modules/malloc-gnu-tests: New file.
27669         * tests/test-malloc-gnu.c: New file.
27670
27671 2010-08-28  Bruno Haible  <bruno@clisp.org>
27672
27673         Rename module 'realloc' -> 'realloc-gnu'.
27674         * modules/realloc-gnu: New file, copied from modules/realloc.
27675         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27676         obsolete.
27677         * modules/mgetgroups (Depends-on): Update.
27678         * doc/posix-functions/realloc.texi: Update.
27679         * NEWS: Mention the change.
27680
27681         Rename module 'calloc' -> 'calloc-gnu'.
27682         * modules/calloc-gnu: New file, copied from modules/calloc.
27683         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27684         obsolete.
27685         * doc/posix-functions/calloc.texi: Update.
27686         * NEWS: Mention the change.
27687
27688         Rename module 'malloc' -> 'malloc-gnu'.
27689         * modules/malloc-gnu: New file, copied from modules/malloc.
27690         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27691         obsolete.
27692         * modules/argp (Depends-on): Update.
27693         * modules/regex (Depends-on): Update.
27694         * doc/posix-functions/malloc.texi: Update.
27695         * NEWS: Mention the change.
27696
27697 2010-08-28  Eric Blake  <eblake@redhat.com>
27698
27699         pread, pwrite: add missing dependency
27700         * modules/pread (Depends-on): Add extensions.
27701         * modules/pwrite (Depends-on): Likewise.
27702
27703 2010-08-28  Bruno Haible  <bruno@clisp.org>
27704
27705         unistr/u*-strchr: Fix tests dependencies.
27706         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27707         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27708         Reported by Ian Beckwith <ianb@erislabs.net>.
27709
27710 2010-08-28  Bruno Haible  <bruno@clisp.org>
27711
27712         read-file: Don't occupy too much unused memory.
27713         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27714
27715 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27716             Eric Blake  <eblake@redhat.com>
27717             Bruno Haible  <bruno@clisp.org>
27718
27719         read-file: Avoid memory reallocations with regular files.
27720         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27721         (fread_file): With regular files, use the remaining length as the
27722         initial buffer size.  Check against overflow.
27723         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27724         sys_stat.
27725
27726 2010-08-28  Bruno Haible  <bruno@clisp.org>
27727
27728         ftello: Relax license.
27729         * modules/ftello (License): Relax to LGPLv2+.
27730         Reported by Eric Blake.
27731
27732 2010-08-28  Bruno Haible  <bruno@clisp.org>
27733
27734         Avoid relocwrapper link errors due to gnulib replacement functions.
27735         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27736         function.
27737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27738
27739 2010-08-28  Bruno Haible  <bruno@clisp.org>
27740
27741         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27742         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27743         defined.
27744         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27745         Suggested by Eric Blake.
27746
27747 2010-08-28  Bruno Haible  <bruno@clisp.org>
27748
27749         sys_socket, netdb: Ensure socklen_t gets defined.
27750         * modules/sys_socket (Depends-on): Add socklen.
27751         * modules/netdb (Depends-on): Likewise.
27752         * modules/getaddrinfo (Depends-on): Remove socklen.
27753         * modules/getsockopt (Depends-on): Likewise.
27754         * modules/setsockopt (Depends-on): Likewise.
27755         * tests/test-sys_socket.c: Check that socklen_t is defined.
27756         * tests/test-netdb.c: Likewise.
27757         * m4/socklen.m4: Update comments.
27758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27759
27760 2010-08-27  Eric Blake  <eblake@redhat.com>
27761
27762         login_tty: add missing dependency
27763         * modules/login_tty (Depends-on): Add pty.
27764
27765 2010-08-26  Eric Blake  <eblake@redhat.com>
27766
27767         lib-symbol-versions: fix m4 quoting
27768         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27769         format for AC_LINK_IFELSE.
27770
27771         glob: fix compile test
27772         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27773
27774         btowc: fix missing file
27775         * modules/btowc (Files): Also ship locale-fr.m4.
27776
27777         lseek: fix link test
27778         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27779         AC_LINK_IFELSE.
27780
27781         include_next: silence autoconf 2.68 warning
27782         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27783         AC_COMPILE_IFELSE as special.
27784         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27785         autoconf < 2.68.
27786
27787         acl: fix compilation test
27788         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27789         AC_COMPILE_IFELSE.
27790
27791 2010-08-26  Bruno Haible  <bruno@clisp.org>
27792
27793         Modernize AC_TRY_RUN invocations.
27794         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27795         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27796         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27797         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27798         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27799         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27802         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27803         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27804         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27805         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27806         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27807         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27809         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27810         gl_MBRLEN_NUL_RETVAL): Likewise.
27811         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27812         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27813         Likewise.
27814         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27815         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27816         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27817         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27818         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27819         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27820         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27821         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27822         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27823         Likewise.
27824         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27825         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27826         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27829         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27831         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27832         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27834
27835 2010-08-26  Bruno Haible  <bruno@clisp.org>
27836
27837         Modernize AC_TRY_LINK invocations.
27838         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27839         AC_TRY_LINK.
27840         * m4/argp.m4 (gl_ARGP): Likewise.
27841         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27842         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27843         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27844         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27845         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27846         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27847         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27848         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27849         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27850         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27851         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27852         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27853         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27854         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27855         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27856         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27857         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27858         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27859         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27860         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27861         Likewise.
27862         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27863         Likewise.
27864         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27865         Likewise.
27866         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27868         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27869         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27870         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27871         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27872         * m4/servent.m4 (gl_SERVENT): Likewise.
27873         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27874         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27875         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27876         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27877         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27878         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27879         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27880         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27881         * modules/tsearch-tests (configure.ac): Likewise.
27882
27883 2010-08-26  Bruno Haible  <bruno@clisp.org>
27884
27885         Modernize AC_TRY_COMPILE invocations.
27886         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27887         AC_TRY_COMPILE.
27888         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27889         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27890         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27891         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27892         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27893         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27894         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27895         * m4/lock.m4 (gl_LOCK): Likewise.
27896         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27898         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27899         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27900         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27901         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27902         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27904         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27905         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27906         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27908         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27909         extraneous semicolon.
27910
27911 2010-08-26  Jim Meyering  <meyering@redhat.com>
27912
27913         stat-time: relax license LGPL
27914         * modules/stat-time (License): Change from GPL to LGPL,
27915         with consent from all contributors, for use in libguile.
27916         Requested by Ludovic Courtès.
27917
27918 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27919
27920         poll: return immediately on POLLHUP.
27921         * lib/poll.c (poll): Always set timeout before wait_timeout is
27922         computed.
27923
27924 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27925
27926         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27927         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27928         rmdir ("dir/.//"), unlinkat.
27929
27930 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27931
27932         stdbool: avoid spurious failure with modern xlc
27933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27934
27935 2010-08-24  Bruno Haible  <bruno@clisp.org>
27936
27937         getloadavg: simplify code
27938         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27939         gl_have_func. Update comments.
27940
27941 2010-08-24  Eric Blake  <eblake@redhat.com>
27942
27943         getloadavg: don't define SVR4 on cygwin
27944         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27945         only define SVR4 when -lkvm is required.
27946         Reported by Yaakov Selkowitz.
27947
27948 2010-08-24  Bruno Haible  <bruno@clisp.org>
27949
27950         priv-set: fix comment
27951         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27952
27953 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         priv-set: fix comments
27956         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27957         to match code, as suggested by David Bartley in:
27958         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27959
27960 2010-08-23  Eric Blake  <eblake@redhat.com>
27961
27962         stdbool: avoid rejecting clang
27963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27964         * tests/test-stdbool.c: Enable more tests if using the system
27965         <stdbool.h> instead of the gnulib replacement.
27966         (main): Move xlc bug test to a runtime test for all compilers.
27967         Reported by Anders Kaseorg.
27968
27969         argz: fix shell quoting issue
27970         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27971         Reported by Charles Wilson.
27972
27973 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27974             Erik Faye-Lund <kusmabite@gmail.com>
27975
27976         poll, select: handle ERROR_BROKEN_PIPE.
27977         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27978         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27979         * lib/select.c (win32_compute_revents): Do not mark a pipe
27980         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27981
27982 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27983
27984         fts: allow compilation with C++
27985         * lib/fts_.h: Specify extern "C" linkage with C++.
27986
27987 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27988
27989         Fix gnulib-tool sed script de-commentation for AIX sed.
27990         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27991         sed.
27992
27993 2010-08-17  Eric Blake  <eblake@redhat.com>
27994
27995         test-stddef: test for (some) offsetof bugs
27996         * tests/test-stddef.c: Enhance test to ensure correct type of
27997         offsetof.
27998         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27999         that we are not fixing at this time.
28000
28001 2010-08-15  Bruno Haible  <bruno@clisp.org>
28002
28003         stpncpy: Allow stpncpy to be defined as a macro.
28004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28005         if it's already correctly declared.
28006         * lib/string.in.h (stpncpy): Undefine before redefining.
28007         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28008
28009 2010-08-14  Bruno Haible  <bruno@clisp.org>
28010
28011         Rename module 'memxfrm' to 'amemxfrm'.
28012         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28013         (amemxfrm): Renamed from memxfrm.
28014         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28015         (amemxfrm): Renamed from memxfrm.
28016         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28017         * NEWS: Mention the change.
28018         * MODULES.html.sh (String handling <string.h>): Update.
28019         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28020         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28021         * lib/unicase/u16-casexfrm.c: Likewise.
28022         * lib/unicase/u32-casexfrm.c: Likewise.
28023         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28024         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28025         * lib/uninorm/u16-normxfrm.c: Likewise.
28026         * lib/uninorm/u32-normxfrm.c: Likewise.
28027         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28028         memxfrm.
28029         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28030         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28031         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28032         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28033         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28034         Suggested by Paul Eggert.
28035
28036 2010-08-14  Bruno Haible  <bruno@clisp.org>
28037
28038         Tests for module 'astrxfrm'.
28039         * modules/astrxfrm-tests: New file.
28040         * tests/test-astrxfrm.c: New file.
28041
28042         New module 'astrxfrm'.
28043         * lib/astrxfrm.h: New file.
28044         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28045         * modules/astrxfrm: New file.
28046
28047 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28048
28049         regex: Tweak doc.
28050         * doc/regex.texi (Overview): Don't mention regex.c.
28051         (GNU Regular Expression Compiling): Likewise.
28052         (Match-end-of-line Operator): Mention 'not_eol'.
28053
28054 2010-08-14  Brian Gough  <bjg@gnu.org>
28055             Bruno Haible  <bruno@clisp.org>
28056
28057         git-merge-changelog: add doc relating to use with bzr and hg.
28058         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28059
28060 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28061
28062         pthread: fix pthread.h creation for srcdir != builddir
28063         * modules/pthread (Makefile.am): Fix the rule to work also in a
28064         non-srcdir build.
28065
28066 2010-08-13  Karl Berry  <karl@gnu.org>
28067
28068         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28069         * doc/posix-*/*: force line break before @url of POSIX
28070         specifications.
28071         Suggested by Werner Lemberg.
28072
28073 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28074
28075         strtod: fix const diagnostic
28076         * lib/strtod.c (strtod): Don't assign const char * to char *,
28077         as this elicits a warning from GCC when warnings are enabled.
28078
28079 2010-08-10  Pádraig Brady <P@draigbrady.com>
28080         and Eric Blake  <eblake@redhat.com>
28081
28082         copy-acl: ignore ENOTSUP on HP-UX
28083         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28084         so that it is available for HP-UX.
28085         * lib/copy-acl.c (qcopy_acl): Use it.
28086         Reported by Patrick M. Callahan.
28087
28088 2010-08-10  Eric Blake  <eblake@redhat.com>
28089
28090         open, chown: relax license
28091         * modules/open (License): Change to LGPLv2+, with consent by all
28092         authors, for use in augeas.
28093         * modules/chown (License): Likewise.
28094         * modules/lchown (Likewise): Likewise.
28095         Requested by Adam Stokes.
28096
28097 2010-08-09  Karl Berry  <karl@gnu.org>
28098
28099         * build-aux/ar-lib: new file, import from Automake.
28100         * config/srclist.txt: autocheck for updates.
28101
28102 2010-08-09  Eric Blake  <eblake@redhat.com>
28103
28104         readlinkat: adjust client modules
28105         * modules/areadlinkat (Depends-on): Use readlinkat, not
28106         symlinkat.
28107         * modules/areadlinkat-with-size (Depends-on): Likewise.
28108
28109         mknod: be more vocal about danger of running tests as root
28110         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28111         root, since that is just asking for problems.
28112         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28113
28114         readlinkat: split into its own module
28115         * modules/symlinkat: Split readlinkat...
28116         * modules/readlinkat: ...into separate module.
28117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28118         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28119         * lib/symlinkat.c (readlinkat): Move...
28120         * lib/readlinkat.c: ...into new file.
28121         * modules/symlinkat-tests: Split readlinkat test...
28122         * modules/readlinkat-tests: ...into separate module.
28123         * tests/test-symlinkat.c: Split...
28124         * tests/test-readlinkat.c: ...into new file.
28125         * NEWS: Document the split.
28126         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28127         * lib/unistd.in.h (readlinkat): Likewise.
28128         Suggested by Bruno Haible.
28129
28130 2010-08-08  Bruno Haible  <bruno@clisp.org>
28131
28132         memxfrm: Speed up.
28133         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28134         that usually only one call to strxfrm is necessary for each string
28135         part.
28136         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28137
28138 2010-08-07  Karl Berry  <karl@gnu.org>
28139
28140         * doc/posix-headers/limits.texi,
28141         * doc/posix-functions/malloc.texi,
28142         * doc/posix-functions/strsignal.texi: missing @item.
28143         * doc/ld-version-script.texi: spurious leading i.
28144         * doc/regex.texi (Interval Operators): no commas inside @var.
28145
28146 2010-08-01  Bruno Haible  <bruno@clisp.org>
28147
28148         Integrate the regex documentation.
28149         * doc/gnulib.texi: Define 'cn' index.
28150         (Regular expressions): New a chapter that includes regex.texi and
28151         regexprops-generic.texi.
28152         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28153         syntax.
28154
28155         Whitespace cleanup.
28156         * doc/regex.texi: Remove trailing spaces.
28157
28158         Add regex documentation.
28159         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28160         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28161         Written by Kathy A. Hargreaves and Karl Berry.
28162
28163 2010-08-01  Bruno Haible  <bruno@clisp.org>
28164
28165         link: Update documentation.
28166         * doc/posix-functions/link.texi: Update regarding Solaris.
28167
28168 2010-07-31  Bruno Haible  <bruno@clisp.org>
28169
28170         Update modules list.
28171         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28172         (String handling <string.h>): Add memcmp2, memxfrm.
28173         (Container data structures): Add xlist, xsublist, xoset.
28174         (Core language properties): Add alignof, unused-parameter.
28175         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28176         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28177         (Unibyte characters <ctype.h>): New section.
28178         (String handling <string.h>): New section.
28179         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28180         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28181         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28182         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28183         tan, tanh, tanl, y0, y1, yn.
28184         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28185         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28186         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28187         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28188         unlockpt, vdprintf, vdprintf-posix.
28189         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28190         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28191         xconcat-filename.
28192         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28193         getdtablesize, pipe2, pipe2-safer.
28194         (Security): New section.
28195         (Networking functions): Add accept4.
28196         (Signal handling): Add sigpipe.
28197         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28198         mbmemcasecoll.
28199         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28200         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28201         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28202         pipe-filter-ii.
28203         (Misc): Add argp-version-etc, login_tty, parse-duration.
28204
28205 2010-07-31  Bruno Haible  <bruno@clisp.org>
28206
28207         Improve doc in MODULES.html.
28208         * modules/linkat (Description): Add the word "function".
28209         * modules/mkfifo (Description): Likewise.
28210         * modules/mknod (Description): Likewise.
28211         * modules/remove (Description): Likewise.
28212         * modules/renameat (Description): Likewise.
28213         * modules/stat (Description): Likewise.
28214         * modules/symlink (Description): Likewise.
28215         * modules/unlink (Description): Likewise.
28216
28217 2010-07-31  Bruno Haible  <bruno@clisp.org>
28218
28219         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28220         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28221         option --enable/disable-c++ instead of --enable/disable-cxx.
28222         * NEWS: Mention the change.
28223
28224 2010-07-31  Bruno Haible  <bruno@clisp.org>
28225
28226         readlink, areadlink: Relax test a bit.
28227         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28228         alternative to ENOTDIR.
28229         * tests/test-areadlink.h (test_areadlink): Likewise.
28230         Reported by Rainer Tammer.
28231
28232 2010-07-31  Bruno Haible  <bruno@clisp.org>
28233
28234         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28235         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28236         character, perform the search using U_STRCHR.
28237         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28238         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28239         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28240         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28241         Suggested by Paolo Bonzini.
28242
28243 2010-07-31  Bruno Haible  <bruno@clisp.org>
28244
28245         unistr/u*-strstr: Fix dependencies.
28246         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28247         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28248         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28249
28250 2010-07-31  Bruno Haible  <bruno@clisp.org>
28251
28252         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28253         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28254         the beginning of the loop.
28255         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28256         cases in 'switch' statement.
28257
28258         unistr/u8-strchr: Fix several bugs.
28259         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28260         the string. When not found, return NULL, not a pointer near the end.
28261
28262         More tests for unistr/u8-strchr.
28263         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28264         that the function does not read past the first occurrence of the byte
28265         being searched.
28266         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28267         * tests/unistr/test-u16-strchr.c (main): New function.
28268         * tests/unistr/test-u32-strchr.c (main): New function.
28269
28270 2010-07-31  Bruno Haible  <bruno@clisp.org>
28271
28272         posix-modules: Ignore backup files of documentation files.
28273         * posix-modules: grep only through files named *.texi.
28274
28275 2010-07-31  Bruno Haible  <bruno@clisp.org>
28276
28277         symlinkat: Fix documentation.
28278         * doc/posix-functions/readlinkat.texi: Fix module name.
28279
28280 2010-07-31  Bruno Haible  <bruno@clisp.org>
28281
28282         fchownat: Replace also when chown has the trailing slash bug.
28283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28284         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28285         introduced on 2010-04-10.
28286         Reported by Rainer Tammer.
28287
28288 2010-07-31  Bruno Haible  <bruno@clisp.org>
28289
28290         linkat: Work around AIX 7.1 bug.
28291         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28292         whether linkat handles trailing slash correctly. If not, replace linkat
28293         and define LINKAT_TRAILING_SLASH_BUG.
28294         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28295         check whether (fd1,file1) points to a directory if file1 or file2 ends
28296         in a slash. Code taken from lib/link.c.
28297         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28298         Reported by Rainer Tammer.
28299
28300 2010-07-31  Bruno Haible  <bruno@clisp.org>
28301
28302         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28303         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28304         This disables an xlc optimization that was causing wrong test results.
28305         Reported by Rainer Tammer.
28306
28307 2010-07-31  Bruno Haible  <bruno@clisp.org>
28308
28309         iconv: Work around AIX 6.1..7.1 bug.
28310         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28311         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28312         cross-compiling, guess no on all versions of AIX.
28313         Reported by Rainer Tammer.
28314
28315 2010-07-31  Bruno Haible  <bruno@clisp.org>
28316
28317         readlink: Relax test a bit.
28318         * tests/test-readlink.h (test_readlink): Allow different errno value
28319         when readlink is called with a file name that ends in / and refers to
28320         a file.
28321         Suggested by Eric Blake.
28322         Reported by Rainer Tammer.
28323
28324 2010-07-31  Bruno Haible  <bruno@clisp.org>
28325
28326         copysign: Does not require -lm on glibc systems.
28327         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28328         gl_COMMON_DOUBLE_MATHFUNC.
28329         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28330
28331 2010-07-31  Bruno Haible  <bruno@clisp.org>
28332
28333         duplocale: Work around AIX 7.1 bug.
28334         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28335         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28336         * lib/duplocale.c (rpl_duplocale): Update comment.
28337         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28338         Reported by Rainer Tammer.
28339
28340 2010-07-30  Bruno Haible  <bruno@clisp.org>
28341
28342         dirfd: Avoid link error on AIX 7.1.
28343         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28344         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28345         exist, set REPLACE_DIRFD.
28346         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28347         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28348         * doc/posix-functions/dirfd.texi: Update.
28349         Reported by Rainer Tammer.
28350
28351 2010-07-30  Eric Blake  <eblake@redhat.com>
28352
28353         strtod: next round of AIX fixes
28354         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28355         exponent.
28356         * tests/test-strtod.c (main): Enhance tests.
28357         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28358         Reported by Rainer Tammer.
28359
28360         futimens: fix configure check
28361         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28362         Reported by Bruno Haible.
28363
28364 2010-07-30  Bruno Haible  <bruno@clisp.org>
28365
28366         getline: Update regarding AIX.
28367         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28368         Reported by Rainer Tammer.
28369
28370 2010-07-30  Bruno Haible  <bruno@clisp.org>
28371
28372         wcwidth: Drop replacement on AIX 7.
28373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28374         AIX 7.
28375         Reported by Rainer Tammer.
28376
28377 2010-07-30  Bruno Haible  <bruno@clisp.org>
28378
28379         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28381         a 'char *'.
28382         Reported by Rainer Tammer.
28383
28384 2010-07-30  Bruno Haible  <bruno@clisp.org>
28385
28386         unlink: Update regarding AIX.
28387         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28388         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28389         Reported by Rainer Tammer.
28390
28391 2010-07-30  Bruno Haible  <bruno@clisp.org>
28392
28393         symlink: Update regarding AIX.
28394         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28395         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28396         Reported by Rainer Tammer.
28397
28398 2010-07-30  Bruno Haible  <bruno@clisp.org>
28399
28400         strndup: Update regarding AIX.
28401         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28402         AIX 7.
28403         Reported by Rainer Tammer.
28404
28405 2010-07-30  Bruno Haible  <bruno@clisp.org>
28406
28407         stat: Update regarding AIX.
28408         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28409         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28410         Reported by Rainer Tammer.
28411
28412 2010-07-30  Bruno Haible  <bruno@clisp.org>
28413
28414         truncl: Fix autoconf test.
28415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28416         whether truncl works.
28417         Reported by Rainer Tammer.
28418
28419 2010-07-30  Bruno Haible  <bruno@clisp.org>
28420
28421         round: Update regarding AIX.
28422         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28423         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28424         Reported by Rainer Tammer.
28425
28426 2010-07-30  Bruno Haible  <bruno@clisp.org>
28427
28428         rename: Update regarding AIX.
28429         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28430         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28431         Reported by Rainer Tammer.
28432
28433 2010-07-30  Bruno Haible  <bruno@clisp.org>
28434
28435         printf.m4: Update regarding AIX.
28436         * m4/printf.m4: Update comments regarding AIX.
28437         Reported by Rainer Tammer.
28438
28439 2010-07-30  Bruno Haible  <bruno@clisp.org>
28440
28441         iconv: Update regarding AIX.
28442         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28443         AIX 7.
28444         Reported by Rainer Tammer.
28445
28446 2010-07-30  Bruno Haible  <bruno@clisp.org>
28447
28448         getopt: Update regarding AIX.
28449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28450         no on AIX.
28451         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28452         Reported by Rainer Tammer.
28453
28454 2010-07-30  Bruno Haible  <bruno@clisp.org>
28455
28456         ldexpl; Update regarding AIX.
28457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28458         on AIX 7.
28459         Reported by Rainer Tammer.
28460
28461 2010-07-30  Bruno Haible  <bruno@clisp.org>
28462
28463         frexpl: Update regarding AIX.
28464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28465         on AIX 7.
28466         Reported by Rainer Tammer.
28467
28468 2010-07-30  Bruno Haible  <bruno@clisp.org>
28469
28470         open, fopen: Update regarding AIX.
28471         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28472         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28473         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28474         * doc/posix-functions/fopen.texi: Likewise.
28475         Reported by Rainer Tammer.
28476
28477 2010-07-30  Bruno Haible  <bruno@clisp.org>
28478
28479         chown: Update doc regarding AIX.
28480         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28481         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28482         Reported by Rainer Tammer.
28483
28484 2010-07-30  Eric Blake  <eblake@redhat.com>
28485
28486         strtod: fix bug in replacement function on AIX
28487         * lib/strtod.c (strtod): Special case broken "0x" parse in
28488         underlying strtod.
28489         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28490         * doc/posix-functions/strtod.texi (strtod): Likewise.
28491         Reported by Rainer Tammer.
28492
28493 2010-07-30  Bruno Haible  <bruno@clisp.org>
28494
28495         mbrlen: Fix cross-compilation guess for AIX.
28496         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28497         guess. Leftover from 2008-12-22.
28498
28499 2010-07-30  Bruno Haible  <bruno@clisp.org>
28500
28501         mbrtowc: Fix cross-compilation guess for AIX.
28502         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28503         guess. Leftover from 2008-12-21.
28504
28505 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28506
28507         init.sh: work around trap limitation of some shells
28508         * tests/init.sh (setup_): Move exit trap outside of shell function.
28509
28510 2010-07-29  Eric Blake  <eblake@redhat.com>
28511
28512         strtod: aid debugging
28513         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28514         understanding why strtod is rejected.
28515
28516 2010-07-28  Bruno Haible  <bruno@clisp.org>
28517
28518         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28519         * lib/unistr/u8-chr.c: Include <string.h>.
28520         * tests/unistr/test-u8-chr.c: Likewise.
28521         * tests/unistr/test-u16-chr.c: Likewise.
28522         * tests/unistr/test-u32-chr.c: Likewise.
28523         * tests/unistr/test-u8-strchr.c: Likewise.
28524         * tests/unistr/test-u16-strchr.c: Likewise.
28525         * tests/unistr/test-u32-strchr.c: Likewise.
28526         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28527         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28528         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28529         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28530
28531 2010-07-28  Bruno Haible  <bruno@clisp.org>
28532
28533         Use spaces for indentation, not tabs.
28534         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28535
28536 2010-07-27  Bruno Haible  <bruno@clisp.org>
28537
28538         mbspcasecmp: Fix function specification.
28539         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28540         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28541         Reported by Eric Blake <eblake@redhat.com>.
28542
28543 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28544
28545         timespec: use cast and not conditional, as truncation isn't possible
28546         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28547         instead of a conditional.  Comment about the situation in more detail.
28548         This undoes most of the 2009-10-29 patch.
28549
28550 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28551
28552         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28553         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28554         * lib/unistr/u8-strchr.c: Likewise.
28555         * modules/unistr/u8-chr: Depend on memchr.
28556
28557         unistr/u*-strchr: add tests
28558         * modules/unistr/u8-strchr-tests: New file.
28559         * modules/unistr/u16-strchr-tests: New file.
28560         * modules/unistr/u32-strchr-tests: New file.
28561         * tests/unistr/test-strchr.h: New file.
28562         * tests/unistr/test-u8-strchr.c: New file.
28563         * tests/unistr/test-u16-strchr.c: New file.
28564         * tests/unistr/test-u32-strchr.c: New file.
28565
28566         unistr/u*-chr: test multibyte sequences more
28567         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28568         test vector.
28569         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28570         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28571         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28572
28573         unistr/u*-chr: test multibyte sequences
28574         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28575
28576         unistr/u*-chr: prepare for multibyte tests
28577         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28578         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28579         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28580         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28581         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28582         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28583
28584 2010-07-18  Bruno Haible  <bruno@clisp.org>
28585
28586         unistr/u8-strchr: Optimize non-ASCII argument case.
28587         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28588         because the first byte often matches anyway.
28589         Reported by Pádraig Brady <P@draigbrady.com>.
28590
28591 2010-07-15  Karl Berry  <karl@gnu.org>
28592
28593         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28594
28595 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28596
28597         getcwd: on Solaris, work better if ancestors are inaccessible
28598         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28599         buffer and size, try again with a large buffer.  This works better
28600         on Solaris, since its getcwd succeeds even if the path to the root
28601         is inaccessible, and this is helpful in common cases such as .zfs
28602         hidden directories.  Problem reported by J Chapman Flack in
28603         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28604         Use system getcwd if it's declared, not merely if it's partly
28605         working; use the partly-working test only to avoid needless effort
28606         if the system getcwd fails.
28607         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28608         comment that was already obsolete and is now even more obsolete.
28609         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28610         now might call strdup.
28611
28612 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28613
28614         pthread: Add enough so that coreutils/src/sort.c compiles.
28615         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28616         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28617         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28618         Include <sys/types.h>, in case it defines pthread_t.
28619         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28620         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28621         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28622         (pthread_rwlockattr_t, pthread_spinlock_t):
28623         New typedefs, if HAVE_PTHREAD_T is not defined.
28624         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28625         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28626         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28627         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28628         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28629         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28630         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28631         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28632         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28633         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28634         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28635         New macros.
28636         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28637         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28638         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28639         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28640         (pthread_spin_unlock): New dummy functions.
28641         (pthread_create): Return EAGAIN; don't set errno.
28642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28643         require AC_C_INLINE.
28644         * modules/pthread (Depends-on): Add sched, time.
28645         (pthread.h): Use AM_V_GEN.
28646
28647 2010-07-13  Bruno Haible  <bruno@clisp.org>
28648
28649         striconveh: Don't malloc memory if the result buffer is sufficient.
28650         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28651         buffer if its size is sufficient.
28652         Reported by Ludovic Courtès <ludo@gnu.org>.
28653
28654 2010-07-13  Bruno Haible  <bruno@clisp.org>
28655
28656         strtod: Add safety check.
28657         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28658
28659 2010-07-12  Bruno Haible  <bruno@clisp.org>
28660
28661         Unify tests that set gl_cv_func_ldexpl_no_libm.
28662         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28663         gl_FUNC_LDEXPL.
28664         (gl_FUNC_LDEXPL): Invoke it.
28665         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28666
28667 2010-07-12  Bruno Haible  <bruno@clisp.org>
28668
28669         Unify tests that set gl_cv_func_ldexp_no_libm.
28670         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28671         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28672         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28673         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28674         * modules/strtod (Files): Add m4/ldexp.m4.
28675
28676 2010-07-12  Bruno Haible  <bruno@clisp.org>
28677
28678         Unify tests that set gl_cv_func_frexpl_no_libm.
28679         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28680         gl_FUNC_FREXPL_NO_LIBM.
28681         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28683
28684 2010-07-12  Bruno Haible  <bruno@clisp.org>
28685
28686         Unify tests that set gl_cv_func_frexp_no_libm.
28687         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28688         gl_FUNC_FREXP_NO_LIBM.
28689         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28690         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28691
28692 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28693
28694         memcoll: clarify sizes versus lengths, document better, and tweak perf
28695         * lib/memcoll.c (strcoll_loop, memcoll0):
28696         Improve quality of descriptive comments.  Name variables
28697         consistently as to whether they are lengths (which do not include
28698         terminating null) versus sizes (which do).
28699         * lib/xmemcoll.c (xmemcoll0): Likewise.
28700         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28701         returned when s1size == 0; this is easier to compile and saves
28702         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28703
28704 2010-07-12  Bruno Haible  <bruno@clisp.org>
28705
28706         Tests for module '_Exit'.
28707         * modules/_Exit-tests: New file.
28708         * tests/test-_Exit.sh: New file.
28709         * tests/test-_Exit.c: New file.
28710
28711         New module '_Exit'.
28712         * lib/stdlib.in.h (__attribute__): New macro.
28713         (_Exit): New declaration.
28714         * lib/_Exit.c: New file.
28715         * m4/_Exit.m4: New file.
28716         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28717         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28718         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28719         * modules/_Exit: New file.
28720         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28721         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28722
28723 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28724
28725         strtod: make it more-accurate typically, and don't require libm
28726         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28727         Include limits.h.  Don't include string.h.
28728         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28729         (locale_isspace): New function, so that no casts are needed to
28730         check whether *s is a space.
28731         (ldexp): Provide an unused dummy if not available.
28732         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28733         (strtod): Use them.  This implementation prefers to use the
28734         underlying strtod if available, falling back on our own code
28735         only to fix known bugs.  This is more likely to produce an
28736         accurate result.  Also, it avoids the use of libm functions.
28737         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28738         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28739         was absent, but it caused a test failure with coreutils.
28740         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28741         with libm.
28742         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28743         * modules/strtod-tests (Makefile.am): Likewise.
28744
28745 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28746             Bruno Haible  <bruno@clisp.org>
28747
28748         unistr/u8-strchr: Optimize ASCII argument case.
28749         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28750
28751 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28752
28753         (x)memcoll: minor tweaks
28754         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28755         is after the type that it qualifies.
28756         (memcoll0): Likewise.
28757         * lib/memcoll.h (memcoll0): Likewise.
28758         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28759         * lib/xmemcoll.h (xmemcoll0): Likewise.
28760         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28761         differs from memcoll in that the NUL byte is part of the argument.
28762         Omit the abort-checks, as performance is a real issue here.  Plus,
28763         the checks were wrong anyway (an off-by-one error).  Omit local
28764         variable 'diff', as it's a bit clearer that way.
28765         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28766         no longer needed.
28767
28768 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28769
28770         (x)memcoll: speedup when input is known to be NUL delimited
28771         * lib/memcoll.c: Include stdlib.
28772         (memcoll0): New function.
28773         (strcoll_loop): New function, refactored for use in both memcoll
28774         and memcoll0.
28775         * lib/memcoll.h (memcoll0): Add prototype.
28776         * lib/xmemcoll.c (xmemcoll0): New function.
28777         (collate_error): New function, refactored for use in both xmemcoll
28778         and xmemcoll0.
28779         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28780         * m4/memcoll.m4: add inline invocation.
28781
28782 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28783
28784         * build-aux/bootstrap: Remove any local translations
28785         from the translation project synchronization directory,
28786         so that local only translations are not distributed.
28787
28788 2010-07-04  Bruno Haible  <bruno@clisp.org>
28789
28790         fsusage: Clarify which code applies to which platforms.
28791         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28792         platform.
28793         * lib/fsusage.c (get_fs_usage): Likewise.
28794
28795 2010-07-04  Bruno Haible  <bruno@clisp.org>
28796
28797         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28798         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28799         Reported by Martin Lambers <marlam@marlam.de>.
28800
28801 2010-07-04  Jim Meyering  <meyering@redhat.com>
28802
28803         hash: once again explicitly disallow insertion of NULL
28804         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28805         inserting a NULL pointer cannot work with these functions.
28806         Add a comment with details.
28807         This reverts part of the 2010-07-01 commit, 5bef1a35
28808         "hash: extend module to deal with non-pointer keys".
28809
28810 2010-07-01  Bruno Haible  <bruno@clisp.org>
28811
28812         stdbool: Update doc.
28813         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28814         Info from Christian Weisgerber <naddy@mips.inka.de>.
28815
28816 2010-07-01  Jim Meyering  <meyering@redhat.com>
28817
28818         hash: extend module to deal with non-pointer keys
28819         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28820         but that allows insertion of non-pointer entries.
28821         Do not disallow an ENTRY value of NULL.
28822         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28823         * lib/hash.h (hash_insert0): Declare.
28824
28825 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28826
28827         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28828         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28829         not present (i.e. with autoconf 2.59 and when using gettextize, not
28830         gnulib), require AC_GNU_SOURCE instead.
28831
28832 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28833
28834         idpriv-drop: Fix tests.
28835         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28836         not to the test-idpriv-droptemp program.
28837
28838 2010-06-29  Bruno Haible  <bruno@clisp.org>
28839
28840         string: Fix syntax error with g++ 2.96.
28841         * lib/string.in.h (__pure__): Remove definition.
28842         (_GL_ATTRIBUTE_PURE): New macro.
28843         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28844         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28845         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28846
28847 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28848
28849         unitypes: Fix bug introduced on 2010-05-18.
28850         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28851
28852 2010-06-22  Eric Blake  <eblake@redhat.com>
28853
28854         memmem: slight optimization
28855         * lib/str-two-way.h (critical_factorization): Update comments.
28856         Reduce work during factorization phase.
28857         Reported by Carlos Bueno <carlos@bueno.org>.
28858
28859 2010-06-21  Bruno Haible  <bruno@clisp.org>
28860
28861         Fix HAVE_CALLOC_POSIX misnomer.
28862         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28863         !HAVE_CALLOC_POSIX.
28864         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28865         HAVE_CALLOC_POSIX.
28866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28867         instead of HAVE_CALLOC_POSIX.
28868         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28869         HAVE_CALLOC_POSIX.
28870
28871         Use modern idiom for calloc() replacement.
28872         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28873         AC_FUNC_CALLOC.
28874         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28875         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28876         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28877         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28878         (gl_REPLACE_CALLOC): New macro.
28879
28880 2010-06-21  Bruno Haible  <bruno@clisp.org>
28881
28882         Fix HAVE_REALLOC_POSIX misnomer.
28883         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28884         !HAVE_REALLOC_POSIX.
28885         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28886         HAVE_REALLOC_POSIX.
28887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28888         instead of HAVE_REALLOC_POSIX.
28889         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28890         HAVE_REALLOC_POSIX.
28891
28892         Use modern idiom for realloc() replacement.
28893         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28894         AC_FUNC_REALLOC.
28895         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28896         Autoconf's AC_FUNC_REALLOC.
28897         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28898         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28899         (gl_REPLACE_REALLOC): New macro.
28900         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28901
28902 2010-06-21  Bruno Haible  <bruno@clisp.org>
28903
28904         Fix HAVE_MALLOC_POSIX misnomer.
28905         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28906         !HAVE_MALLOC_POSIX.
28907         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28908         HAVE_MALLOC_POSIX.
28909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28910         instead of HAVE_MALLOC_POSIX.
28911         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28912         HAVE_MALLOC_POSIX.
28913
28914         Use modern idiom for malloc() replacement.
28915         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28916         AC_FUNC_MALLOC.
28917         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28918         Autoconf's AC_FUNC_MALLOC.
28919         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28920         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28921         (gl_REPLACE_MALLOC): New macro.
28922         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28923
28924 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28925
28926         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28927         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28928         This macro takes 3 arguments, not 4.
28929
28930 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28931
28932         ipv6: fix detection under mingw
28933         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28934         in6_addr.
28935
28936 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28937
28938         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28939         that strtod() works when cross-compiling to a glibc version known
28940         to work.
28941
28942 2010-06-15  Bruno Haible  <bruno@clisp.org>
28943
28944         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28945
28946 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28947
28948         select: Correct timeout.
28949         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28950
28951 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28952
28953         git-version-gen: init shell var to avoid env var influence
28954         * build-aux/git-version-gen (v): Init shell var to empty.
28955
28956 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28957
28958         priv-set: Don't assume that priv.h exists merely because getppriv does.
28959         See Jan Andersen's bug report about AIX 5L in
28960         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28961         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28962         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28963         * lib/priv-set.h: Likewise.
28964         * tests/test-priv-set.c: Likewise.
28965
28966 2010-06-13  Bruno Haible  <bruno@clisp.org>
28967
28968         relocatable: Make it easier to test whether to install wrappers.
28969         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28970         RELOCATABLE_VIA_WRAPPER.
28971
28972 2010-06-13  Bruno Haible  <bruno@clisp.org>
28973
28974         gnulib-tool: Display specified modules and dependencies differently.
28975         * gnulib-tool (func_show_module_list): New function.
28976         (func_import, func_create_testdir): Invoke it.
28977         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28978
28979 2010-06-13  Bruno Haible  <bruno@clisp.org>
28980
28981         gnulib-tool: Align code of func_import and func_create_testdir.
28982         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28983         specified_modules.
28984
28985 2010-06-12  Jim Meyering  <meyering@redhat.com>
28986
28987         test-inttostr: avoid spurious failure on Solaris 9
28988         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28989         to accept "%ju".  Reported by Bruno Haible.
28990
28991 2010-06-11  Jim Meyering  <meyering@redhat.com>
28992
28993         test-sys_socket: mark variables as used more readably
28994         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28995         as "used" explicitly via (void) statement casts.  This is more
28996         readable than using them in an artificial return expression.
28997         Suggestion from Bruno Haible.
28998
28999 2010-06-11  Bruno Haible  <bruno@clisp.org>
29000
29001         Avoid some more warnings from "gcc -Wwrite-strings".
29002         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29003         to 'const char *'.
29004         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29005         * tests/test-c-strcasestr.c (main): Likewise.
29006         * tests/test-mbscasestr1.c (main): Likewise.
29007         * tests/test-mbscasestr2.c (main): Likewise.
29008         * tests/test-memmem.c (main): Likewise.
29009         * tests/test-strstr.c (main): Likewise.
29010         * tests/test-strcasestr.c (main): Likewise.
29011
29012 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29013
29014         init.sh: change framework_failure_ to fail with status 99, not 1
29015         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29016         automake's parallel-tests rule that this is an unexpected failure,
29017         even if the test is listed in XFAIL_TESTS.
29018
29019 2010-06-11  Jim Meyering  <meyering@redhat.com>
29020
29021         test-inttostr: avoid warnings about 4-6KB literal strings
29022         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29023         Include "macros.h", for its definition of ASSERT.
29024         (CK): s/assert/ASSERT/
29025         * modules/inttostr-tests (Files): Add macros.h.
29026
29027         init.sh: don't use $ME_ or skip_ before they are defined
29028         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29029         their first uses.  Also hoist their companions: warn_, fail_,
29030         framework_failure_, $stderr_fileno.  Prompted by a patch from
29031         Stefano Lattarini.
29032
29033         test-sys_socket: avoid set-but-not-used warnings from gcc
29034         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29035         avoid warning about set-but-not-used variables.
29036
29037         test-xvasprintf: avoid 'const' discard warnings
29038         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29039         "const" when assigning from literal strings.
29040         (test_xasprintf): Add "void" in function argument list to placate
29041         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29042
29043         tests: avoid compilation warnings in argmatch and exclude tests...
29044         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29045         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29046         Since it always exits, declare with the "noreturn" attribute.
29047         * tests/test-argmatch.c: Likewise.
29048
29049         tests: avoid 'const' discard warnings in mbsstr tests
29050         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29051         * tests/test-mbsstr2.c (main): Likewise.
29052
29053         test-verify: avoid warning from gcc's -Wmissing-declarations
29054         * tests/test-verify.c (function): Declare to be static.
29055
29056         test-inttostr.c: include <string.h> for use of strcmp
29057         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29058
29059         test-linkat: avoid failed assertion on "other" architectures
29060         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29061         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29062         sparc: https://bugs.launchpad.net/bugs/591968
29063
29064 2010-06-11  Jim Meyering  <meyering@redhat.com>
29065
29066         printf.m4: avoid autoconf's "Expanded Before Required" warning
29067         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29068         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29069         autoconf warning.
29070
29071 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29072
29073         Replacement header templates are now named with ".in", not "_".
29074         * doc/gnulib-intro.texi: Correct.
29075
29076 2010-06-10  Jim Meyering  <meyering@redhat.com>
29077
29078         inttostr-tests: depend on snprintf, not snprintf-posix
29079         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29080         snprintf-posix, to avoid this aclocal failure:
29081           missing file gnulib-tests/vasnprintf.c
29082           configure.ac:45: error: expected source file, required through \
29083           AC_LIBSOURCES, not found
29084
29085 2010-06-10  Jim Meyering  <meyering@redhat.com>
29086
29087         inttostr: add a new function, inttostr, and tests
29088         The namesake function was not available.  The existence of the
29089         template file, inttostr.c makes its addition nontrivial.
29090         * lib/anytostr.c: Rename from inttostr.c.
29091         (anytostr): Rename from inttostr.
29092         * lib/inttostr.c: New file.
29093         * modules/inttostr (Files): Add anytostr.c.
29094         (Makefile.am): Set lib_SOURCES instead of ...
29095         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29096         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29097         * lib/offtostr.c: Likewise.
29098         * lib/uinttostr.c: Likewise.
29099         * lib/umaxtostr.c: Likewise.
29100         * modules/inttostr-tests: New file.
29101         * tests/test-inttostr.c: New file.  Test these functions.
29102
29103 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29104             Bruno Haible  <bruno@clisp.org>
29105
29106         Add "Extending Gnulib" chapter to manual.
29107         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29108         chapter.
29109         (Extending Gnulib): New chapter.
29110         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29111         chapter.
29112
29113 2010-06-09  Bruno Haible  <bruno@clisp.org>
29114
29115         Avoid relocwrapper link errors due to gnulib replacement functions.
29116         * lib/areadlink.c: Use the system's malloc, realloc functions.
29117         (areadlink): Set errno to ENOMEM explicitly.
29118         * modules/areadlink (Depends-on): Remove malloc-posix.
29119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29120
29121 2010-06-09  Bruno Haible  <bruno@clisp.org>
29122
29123         Avoid relocwrapper link errors due to gnulib replacement functions.
29124         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29125         * lib/malloca.c: Likewise.
29126         * lib/relocatable.c: Likewise.
29127         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29128         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29129         * lib/setenv.c: Use the system's malloc, realloc functions.
29130         * lib/strerror.c: Use the system's sprintf function.
29131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29132
29133 2010-06-04  Bruno Haible  <bruno@clisp.org>
29134
29135         Prefer documented low-level autoconf macro names.
29136         * m4/lib-link.m4: Use m4_translit instead of translit.
29137         * m4/environ.m4: Likewise.
29138         * m4/mathfunc.m4: Likewise.
29139         * m4/onceonly.m4: Likewise.
29140         * m4/stdint.m4: Likewise.
29141         Suggested by Eric Blake.
29142
29143 2010-06-04  Martin Lambers  <marlam@marlam.de>
29144             Bruno Haible  <bruno@clisp.org>
29145
29146         havelib: Allow library names with '+' characters.
29147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29148         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29149
29150 2010-06-09  Bruno Haible  <bruno@clisp.org>
29151
29152         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29153         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29154         realloc failed.
29155
29156 2010-06-08  Peter Simons  <simons@cryp.to>
29157
29158         maint.mk: make the news-check rule more configurable
29159         * top/maint.mk (news-check-lines-spec): New variable.
29160         (news-check): Use "sed -n 1,10p" in place of "head".
29161
29162 2010-06-07  Jim Meyering  <meyering@redhat.com>
29163
29164         do-release-commit-and-tag: fix typo in --help
29165         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29166
29167         regex: avoid new dead-code warning with gcc-4.6.0
29168         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29169         if-block containing a while-loop.  It's been unused for at least
29170         5 years.
29171
29172 2010-06-05  Bruno Haible  <bruno@clisp.org>
29173
29174         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29175         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29176
29177 2010-06-04  Bruno Haible  <bruno@clisp.org>
29178
29179         Update to GNU gettext 0.18.1.
29180         * modules/gettext (configure.ac): Require gettext infrastructure from
29181         version 0.18.1.
29182
29183 2010-06-03  Bruno Haible  <bruno@clisp.org>
29184
29185         Don't use AC_LIBOBJ with file names in subdirectories.
29186         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29187         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29188         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29189         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29190         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29191         gl_LIBUNISTRING_LIBSOURCE.
29192         (Makefile.am): Augment lib_SOURCES here, conditionally.
29193         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29194
29195 2010-06-03  Bruno Haible  <bruno@clisp.org>
29196
29197         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29198         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29199         expansion does not end with a newline.
29200         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29201         unnecessary newline.
29202
29203 2010-06-03  Bruno Haible  <bruno@clisp.org>
29204
29205         Reduce dependencies.
29206         * tests/test-quotearg.h: New file, extracted from
29207         tests/test-quotearg.c.
29208         * tests/test-quotearg-simple.c: New file, extracted from
29209         tests/test-quotearg.c.
29210         * tests/test-quotearg.c: Don't include <ctype.h>.
29211         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29212         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29213         use_quote_double_quotes, use_quotearg_colon): Moved to
29214         tests/test-quotearg.h.
29215         (results_g, flag_results, custom_quotes, custom_results): Moved
29216         to tests/test-quotearg-simple.c.
29217         (main): Moved the part that does not depend on gettext to
29218         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29219         performed.
29220         * modules/quotearg-simple: New file.
29221         * modules/quotearg-simple-tests: New file.
29222         * modules/quotearg (Depends-on): Add quotearg-simple.
29223         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29224         (Files): Add tests/test-quotearg.h.
29225         Reported by Paolo Bonzini.
29226
29227 2010-06-03  Bruno Haible  <bruno@clisp.org>
29228
29229         Reduce dependencies.
29230         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29231
29232 2010-06-03  Bruno Haible  <bruno@clisp.org>
29233
29234         time: Undefine more broken macros.
29235         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29236         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29237         Reported by Eric Blake.
29238
29239 2010-06-03  Bruno Haible  <bruno@clisp.org>
29240
29241         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29242         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29243         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29244         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29245         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29246         Reported by Ludovic Courtès <ludo@gnu.org>.
29247
29248 2010-06-02  Eric Blake  <eblake@redhat.com>
29249
29250         time: work with mingw + pthreads-win32 library
29251         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29252         if timespec is defined only in pthread.h.
29253         * modules/time (Makefile.am): Substitute it.
29254         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29255         <pthread.h>, when needed.
29256         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29257         from the library.
29258
29259 2010-05-31  Bruno Haible  <bruno@clisp.org>
29260
29261         Avoid expanding two macros in the wrong order.
29262         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29263         gl_LIBUNISTRING if it is defined.
29264         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29265         autoconf >= 2.64.
29266         Reported by Ludovic Courtès <ludo@gnu.org>.
29267
29268 2010-05-27  Jim Meyering  <meyering@redhat.com>
29269
29270         maint.mk: also prohibit "#undef" of always-defined symbols
29271         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29272         Allow more than one space before the symbol name.
29273         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29274         the regexp uses alternation.
29275
29276 2010-05-26  Eric Blake  <eblake@redhat.com>
29277
29278         maint.mk: avoid echo -e
29279         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29280         Convert all uses of echo -* to printf.
29281         Reported by Matthias Bolte.
29282
29283 2010-05-25  Bruno Haible  <bruno@clisp.org>
29284
29285         Update to GNU gettext 0.18, part 2.
29286         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29287         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29288
29289 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29290
29291         Add missing include in test-pwrite.c.
29292         * tests/test-pwrite.c: Include string.h, for strcmp.
29293
29294 2010-05-24  Bruno Haible  <bruno@clisp.org>
29295
29296         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29297
29298 2010-05-24  Bruno Haible  <bruno@clisp.org>
29299
29300         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29301         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29302         iconveh_error argument.
29303         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29304         U_STRCONV_TO_LOCALE.
29305         * lib/unistr/u16-strcoll.c: Likewise.
29306         * lib/unistr/u32-strcoll.c: Likewise.
29307         * modules/unistr/u8-strcoll (Depends-on): Add
29308         uniconv/u8-strconv-to-enc, localcharset. Remove
29309         uniconv/u8-strconv-to-locale.
29310         (configure.ac): Bump version number.
29311         * modules/unistr/u16-strcoll (Depends-on): Add
29312         uniconv/u16-strconv-to-enc, localcharset. Remove
29313         uniconv/u16-strconv-to-locale.
29314         (configure.ac): Bump version number.
29315         * modules/unistr/u32-strcoll (Depends-on): Add
29316         uniconv/u32-strconv-to-enc, localcharset. Remove
29317         uniconv/u32-strconv-to-locale.
29318         (configure.ac): Bump version number.
29319
29320 2010-05-24  Bruno Haible  <bruno@clisp.org>
29321
29322         Avoid a test failure on NetBSD 5.0.
29323         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29324         an iconv() bug.
29325
29326 2010-05-24  Bruno Haible  <bruno@clisp.org>
29327
29328         Adjust #include directive style.
29329         * modules/regex (Includes): Recommend to write <regex.h>.
29330
29331 2010-05-24  Bruno Haible  <bruno@clisp.org>
29332
29333         regex: Don't require alloca.
29334         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29335         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29336         only inside if (0).
29337
29338 2010-05-23  Jim Meyering  <meyering@redhat.com>
29339
29340         test-renameat.c: include <sys/stat.h>
29341         * tests/test-renameat.c: Include <sys/stat.h>; required for
29342         definition of S_IS* macros.
29343
29344 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29345
29346         Update maintainer documentation for 'relocatable-prog' module.
29347         * doc/relocatable-maint.texi: Update.
29348         Comments by Bruno Haible.
29349
29350 2010-05-23  Bruno Haible  <bruno@clisp.org>
29351
29352         git-merge-changelog: Enable --split-merged-entry by default.
29353         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29354         (usage): Don't mention this option any more.
29355         Reported by Ralf Wildenhues.
29356
29357 2010-05-23  Jim Meyering  <meyering@redhat.com>
29358
29359         test-pwrite: do not leave behind a test file named "out"
29360         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29361         The trivial-looking use of init.sh is really necessary.
29362         It ensures that the temporary file, "out", is created in
29363         a temporary directory, and removed upon termination.
29364         * tests/test-pwrite.sh: Re-add file.
29365         * modules/pwrite-tests: Reference it.
29366
29367 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29368
29369         Fix output redirection buglet in init.sh.
29370         * tests/init.sh: Fix redirection of stderr.
29371
29372 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29373
29374         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29375
29376 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29377
29378         * modules/valgrind-tests: New file.
29379         * m4/valgrind-tests.m4: New file.
29380         * doc/valgrind-tests.texi: New file.
29381         * doc/gnulib.texi (Running self-tests under valgrind): New
29382         section.
29383
29384 2010-05-19  Bruno Haible  <bruno@clisp.org>
29385
29386         Clean up dead code in recent commit.
29387         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29388         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29389         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29390         Suggested by Paolo Bonzini.
29391
29392 2010-05-19  Bruno Haible  <bruno@clisp.org>
29393
29394         Avoid valgrind error reports from libunistring.
29395         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29396         * modules/libunistring (Files): Add it.
29397         * modules/libunistring-optional (Files): Likewise.
29398
29399 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29400             Bruno Haible  <bruno@clisp.org>
29401
29402         New module 'libunistring-optional'.
29403         * modules/libunistring-optional: New file.
29404         * m4/libunistring-base.m4: New file.
29405         * m4/libunistring-optional.m4: New file.
29406         * lib/unicase.in.h: Renamed from lib/unicase.h.
29407         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29408         * lib/unictype.in.h: Renamed from lib/unictype.h.
29409         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29410         * lib/uniname.in.h: Renamed from lib/uniname.h.
29411         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29412         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29413         * lib/unistr.in.h: Renamed from lib/unistr.h.
29414         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29415         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29416         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29417         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29418         gl_LIBUNISTRING. If the library was found, determine the installed
29419         version and set LIBUNISTRING_VERSION.
29420         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29421         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29422         handle a configuration option --with-included-libunistring.
29423         * modules/libunistring (Files): Add m4/absolute-header.m4.
29424         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29425         Add m4/libunistring-base.m4.
29426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29427         (Makefile.am): Build unicase.h from unicase.in.h.
29428         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29429         Add m4/libunistring-base.m4.
29430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29431         (Makefile.am): Build uniconv.h from uniconv.in.h.
29432         * modules/unictype/base (Files): Use unictype.in.h instead of
29433         unictype.h. Add m4/libunistring-base.m4.
29434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29435         (Makefile.am): Build unictype.h from unictype.in.h.
29436         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29437         Add m4/libunistring-base.m4.
29438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29439         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29440         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29441         Add m4/libunistring-base.m4.
29442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29443         (Makefile.am): Build uniname.h from uniname.in.h.
29444         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29445         Add m4/libunistring-base.m4.
29446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29447         (Makefile.am): Build uninorm.h from uninorm.in.h.
29448         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29449         unistdio.h. Add m4/libunistring-base.m4.
29450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29451         (Makefile.am): Build unistdio.h from unistdio.in.h.
29452         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29453         Add m4/libunistring-base.m4.
29454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29455         (Makefile.am): Build unistr.h from unistr.in.h.
29456         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29457         Add m4/libunistring-base.m4.
29458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29459         (Makefile.am): Build unitypes.h from unitypes.in.h.
29460         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29461         Add m4/libunistring-base.m4.
29462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29463         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29464         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29465         uniwidth.h. Add m4/libunistring-base.m4.
29466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29467         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29468         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29469         instead of augmenting lib_SOURCES.
29470         * modules/unicase/empty-suffix-context: Likewise.
29471         * modules/unicase/locale-language: Likewise.
29472         * modules/unicase/tolower: Likewise.
29473         * modules/unicase/totitle: Likewise.
29474         * modules/unicase/toupper: Likewise.
29475         * modules/unicase/u8-casecmp: Likewise.
29476         * modules/unicase/u8-casecoll: Likewise.
29477         * modules/unicase/u8-casefold: Likewise.
29478         * modules/unicase/u8-casexfrm: Likewise.
29479         * modules/unicase/u8-ct-casefold: Likewise.
29480         * modules/unicase/u8-ct-tolower: Likewise.
29481         * modules/unicase/u8-ct-totitle: Likewise.
29482         * modules/unicase/u8-ct-toupper: Likewise.
29483         * modules/unicase/u8-is-cased: Likewise.
29484         * modules/unicase/u8-is-casefolded: Likewise.
29485         * modules/unicase/u8-is-lowercase: Likewise.
29486         * modules/unicase/u8-is-titlecase: Likewise.
29487         * modules/unicase/u8-is-uppercase: Likewise.
29488         * modules/unicase/u8-prefix-context: Likewise.
29489         * modules/unicase/u8-suffix-context: Likewise.
29490         * modules/unicase/u8-tolower: Likewise.
29491         * modules/unicase/u8-totitle: Likewise.
29492         * modules/unicase/u8-toupper: Likewise.
29493         * modules/unicase/u16-casecmp: Likewise.
29494         * modules/unicase/u16-casecoll: Likewise.
29495         * modules/unicase/u16-casefold: Likewise.
29496         * modules/unicase/u16-casexfrm: Likewise.
29497         * modules/unicase/u16-ct-casefold: Likewise.
29498         * modules/unicase/u16-ct-tolower: Likewise.
29499         * modules/unicase/u16-ct-totitle: Likewise.
29500         * modules/unicase/u16-ct-toupper: Likewise.
29501         * modules/unicase/u16-is-cased: Likewise.
29502         * modules/unicase/u16-is-casefolded: Likewise.
29503         * modules/unicase/u16-is-lowercase: Likewise.
29504         * modules/unicase/u16-is-titlecase: Likewise.
29505         * modules/unicase/u16-is-uppercase: Likewise.
29506         * modules/unicase/u16-prefix-context: Likewise.
29507         * modules/unicase/u16-suffix-context: Likewise.
29508         * modules/unicase/u16-tolower: Likewise.
29509         * modules/unicase/u16-totitle: Likewise.
29510         * modules/unicase/u16-toupper: Likewise.
29511         * modules/unicase/u32-casecmp: Likewise.
29512         * modules/unicase/u32-casecoll: Likewise.
29513         * modules/unicase/u32-casefold: Likewise.
29514         * modules/unicase/u32-casexfrm: Likewise.
29515         * modules/unicase/u32-ct-casefold: Likewise.
29516         * modules/unicase/u32-ct-tolower: Likewise.
29517         * modules/unicase/u32-ct-totitle: Likewise.
29518         * modules/unicase/u32-ct-toupper: Likewise.
29519         * modules/unicase/u32-is-cased: Likewise.
29520         * modules/unicase/u32-is-casefolded: Likewise.
29521         * modules/unicase/u32-is-lowercase: Likewise.
29522         * modules/unicase/u32-is-titlecase: Likewise.
29523         * modules/unicase/u32-is-uppercase: Likewise.
29524         * modules/unicase/u32-prefix-context: Likewise.
29525         * modules/unicase/u32-suffix-context: Likewise.
29526         * modules/unicase/u32-tolower: Likewise.
29527         * modules/unicase/u32-totitle: Likewise.
29528         * modules/unicase/u32-toupper: Likewise.
29529         * modules/unicase/ulc-casecmp: Likewise.
29530         * modules/unicase/ulc-casecoll: Likewise.
29531         * modules/unicase/ulc-casexfrm: Likewise.
29532         * modules/uniconv/u8-conv-from-enc: Likewise.
29533         * modules/uniconv/u8-conv-to-enc: Likewise.
29534         * modules/uniconv/u8-strconv-from-enc: Likewise.
29535         * modules/uniconv/u8-strconv-from-locale: Likewise.
29536         * modules/uniconv/u8-strconv-to-enc: Likewise.
29537         * modules/uniconv/u8-strconv-to-locale: Likewise.
29538         * modules/uniconv/u16-conv-from-enc: Likewise.
29539         * modules/uniconv/u16-conv-to-enc: Likewise.
29540         * modules/uniconv/u16-strconv-from-enc: Likewise.
29541         * modules/uniconv/u16-strconv-from-locale: Likewise.
29542         * modules/uniconv/u16-strconv-to-enc: Likewise.
29543         * modules/uniconv/u16-strconv-to-locale: Likewise.
29544         * modules/uniconv/u32-conv-from-enc: Likewise.
29545         * modules/uniconv/u32-conv-to-enc: Likewise.
29546         * modules/uniconv/u32-strconv-from-enc: Likewise.
29547         * modules/uniconv/u32-strconv-from-locale: Likewise.
29548         * modules/uniconv/u32-strconv-to-enc: Likewise.
29549         * modules/uniconv/u32-strconv-to-locale: Likewise.
29550         * modules/unictype/bidicategory-byname: Likewise.
29551         * modules/unictype/bidicategory-name: Likewise.
29552         * modules/unictype/bidicategory-of: Likewise.
29553         * modules/unictype/bidicategory-test: Likewise.
29554         * modules/unictype/block-list: Likewise.
29555         * modules/unictype/block-test: Likewise.
29556         * modules/unictype/category-C: Likewise.
29557         * modules/unictype/category-Cc: Likewise.
29558         * modules/unictype/category-Cf: Likewise.
29559         * modules/unictype/category-Cn: Likewise.
29560         * modules/unictype/category-Co: Likewise.
29561         * modules/unictype/category-Cs: Likewise.
29562         * modules/unictype/category-L: Likewise.
29563         * modules/unictype/category-Ll: Likewise.
29564         * modules/unictype/category-Lm: Likewise.
29565         * modules/unictype/category-Lo: Likewise.
29566         * modules/unictype/category-Lt: Likewise.
29567         * modules/unictype/category-Lu: Likewise.
29568         * modules/unictype/category-M: Likewise.
29569         * modules/unictype/category-Mc: Likewise.
29570         * modules/unictype/category-Me: Likewise.
29571         * modules/unictype/category-Mn: Likewise.
29572         * modules/unictype/category-N: Likewise.
29573         * modules/unictype/category-Nd: Likewise.
29574         * modules/unictype/category-Nl: Likewise.
29575         * modules/unictype/category-No: Likewise.
29576         * modules/unictype/category-P: Likewise.
29577         * modules/unictype/category-Pc: Likewise.
29578         * modules/unictype/category-Pd: Likewise.
29579         * modules/unictype/category-Pe: Likewise.
29580         * modules/unictype/category-Pf: Likewise.
29581         * modules/unictype/category-Pi: Likewise.
29582         * modules/unictype/category-Po: Likewise.
29583         * modules/unictype/category-Ps: Likewise.
29584         * modules/unictype/category-S: Likewise.
29585         * modules/unictype/category-Sc: Likewise.
29586         * modules/unictype/category-Sk: Likewise.
29587         * modules/unictype/category-Sm: Likewise.
29588         * modules/unictype/category-So: Likewise.
29589         * modules/unictype/category-Z: Likewise.
29590         * modules/unictype/category-Zl: Likewise.
29591         * modules/unictype/category-Zp: Likewise.
29592         * modules/unictype/category-Zs: Likewise.
29593         * modules/unictype/category-and: Likewise.
29594         * modules/unictype/category-and-not: Likewise.
29595         * modules/unictype/category-byname: Likewise.
29596         * modules/unictype/category-name: Likewise.
29597         * modules/unictype/category-none: Likewise.
29598         * modules/unictype/category-of: Likewise.
29599         * modules/unictype/category-or: Likewise.
29600         * modules/unictype/category-test: Likewise.
29601         * modules/unictype/combining-class: Likewise.
29602         * modules/unictype/ctype-alnum: Likewise.
29603         * modules/unictype/ctype-alpha: Likewise.
29604         * modules/unictype/ctype-blank: Likewise.
29605         * modules/unictype/ctype-cntrl: Likewise.
29606         * modules/unictype/ctype-digit: Likewise.
29607         * modules/unictype/ctype-graph: Likewise.
29608         * modules/unictype/ctype-lower: Likewise.
29609         * modules/unictype/ctype-print: Likewise.
29610         * modules/unictype/ctype-punct: Likewise.
29611         * modules/unictype/ctype-space: Likewise.
29612         * modules/unictype/ctype-upper: Likewise.
29613         * modules/unictype/ctype-xdigit: Likewise.
29614         * modules/unictype/decimal-digit: Likewise.
29615         * modules/unictype/digit: Likewise.
29616         * modules/unictype/mirror: Likewise.
29617         * modules/unictype/numeric: Likewise.
29618         * modules/unictype/property-alphabetic: Likewise.
29619         * modules/unictype/property-ascii-hex-digit: Likewise.
29620         * modules/unictype/property-bidi-arabic-digit: Likewise.
29621         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29622         * modules/unictype/property-bidi-block-separator: Likewise.
29623         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29624         * modules/unictype/property-bidi-common-separator: Likewise.
29625         * modules/unictype/property-bidi-control: Likewise.
29626         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29627         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29628         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29629         * modules/unictype/property-bidi-european-digit: Likewise.
29630         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29631         * modules/unictype/property-bidi-left-to-right: Likewise.
29632         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29633         * modules/unictype/property-bidi-other-neutral: Likewise.
29634         * modules/unictype/property-bidi-pdf: Likewise.
29635         * modules/unictype/property-bidi-segment-separator: Likewise.
29636         * modules/unictype/property-bidi-whitespace: Likewise.
29637         * modules/unictype/property-byname: Likewise.
29638         * modules/unictype/property-combining: Likewise.
29639         * modules/unictype/property-composite: Likewise.
29640         * modules/unictype/property-currency-symbol: Likewise.
29641         * modules/unictype/property-dash: Likewise.
29642         * modules/unictype/property-decimal-digit: Likewise.
29643         * modules/unictype/property-default-ignorable-code-point: Likewise.
29644         * modules/unictype/property-deprecated: Likewise.
29645         * modules/unictype/property-diacritic: Likewise.
29646         * modules/unictype/property-extender: Likewise.
29647         * modules/unictype/property-format-control: Likewise.
29648         * modules/unictype/property-grapheme-base: Likewise.
29649         * modules/unictype/property-grapheme-extend: Likewise.
29650         * modules/unictype/property-grapheme-link: Likewise.
29651         * modules/unictype/property-hex-digit: Likewise.
29652         * modules/unictype/property-hyphen: Likewise.
29653         * modules/unictype/property-id-continue: Likewise.
29654         * modules/unictype/property-id-start: Likewise.
29655         * modules/unictype/property-ideographic: Likewise.
29656         * modules/unictype/property-ids-binary-operator: Likewise.
29657         * modules/unictype/property-ids-trinary-operator: Likewise.
29658         * modules/unictype/property-ignorable-control: Likewise.
29659         * modules/unictype/property-iso-control: Likewise.
29660         * modules/unictype/property-join-control: Likewise.
29661         * modules/unictype/property-left-of-pair: Likewise.
29662         * modules/unictype/property-line-separator: Likewise.
29663         * modules/unictype/property-logical-order-exception: Likewise.
29664         * modules/unictype/property-lowercase: Likewise.
29665         * modules/unictype/property-math: Likewise.
29666         * modules/unictype/property-non-break: Likewise.
29667         * modules/unictype/property-not-a-character: Likewise.
29668         * modules/unictype/property-numeric: Likewise.
29669         * modules/unictype/property-other-alphabetic: Likewise.
29670         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29671         * modules/unictype/property-other-grapheme-extend: Likewise.
29672         * modules/unictype/property-other-id-continue: Likewise.
29673         * modules/unictype/property-other-id-start: Likewise.
29674         * modules/unictype/property-other-lowercase: Likewise.
29675         * modules/unictype/property-other-math: Likewise.
29676         * modules/unictype/property-other-uppercase: Likewise.
29677         * modules/unictype/property-paired-punctuation: Likewise.
29678         * modules/unictype/property-paragraph-separator: Likewise.
29679         * modules/unictype/property-pattern-syntax: Likewise.
29680         * modules/unictype/property-pattern-white-space: Likewise.
29681         * modules/unictype/property-private-use: Likewise.
29682         * modules/unictype/property-punctuation: Likewise.
29683         * modules/unictype/property-quotation-mark: Likewise.
29684         * modules/unictype/property-radical: Likewise.
29685         * modules/unictype/property-sentence-terminal: Likewise.
29686         * modules/unictype/property-soft-dotted: Likewise.
29687         * modules/unictype/property-space: Likewise.
29688         * modules/unictype/property-terminal-punctuation: Likewise.
29689         * modules/unictype/property-test: Likewise.
29690         * modules/unictype/property-titlecase: Likewise.
29691         * modules/unictype/property-unassigned-code-value: Likewise.
29692         * modules/unictype/property-unified-ideograph: Likewise.
29693         * modules/unictype/property-uppercase: Likewise.
29694         * modules/unictype/property-variation-selector: Likewise.
29695         * modules/unictype/property-white-space: Likewise.
29696         * modules/unictype/property-xid-continue: Likewise.
29697         * modules/unictype/property-xid-start: Likewise.
29698         * modules/unictype/property-zero-width: Likewise.
29699         * modules/unictype/scripts: Likewise.
29700         * modules/unictype/syntax-c-ident: Likewise.
29701         * modules/unictype/syntax-c-whitespace: Likewise.
29702         * modules/unictype/syntax-java-ident: Likewise.
29703         * modules/unictype/syntax-java-whitespace: Likewise.
29704         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29705         * modules/unilbrk/u8-width-linebreaks: Likewise.
29706         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29707         * modules/unilbrk/u16-width-linebreaks: Likewise.
29708         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29709         * modules/unilbrk/u32-width-linebreaks: Likewise.
29710         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29711         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29712         * modules/uniname/uniname: Likewise.
29713         * modules/uninorm/canonical-decomposition: Likewise.
29714         * modules/uninorm/composition: Likewise.
29715         * modules/uninorm/decomposing-form: Likewise.
29716         * modules/uninorm/decomposition: Likewise.
29717         * modules/uninorm/filter: Likewise.
29718         * modules/uninorm/nfc: Likewise.
29719         * modules/uninorm/nfd: Likewise.
29720         * modules/uninorm/nfkc: Likewise.
29721         * modules/uninorm/nfkd: Likewise.
29722         * modules/uninorm/u8-normalize: Likewise.
29723         * modules/uninorm/u8-normcmp: Likewise.
29724         * modules/uninorm/u8-normcoll: Likewise.
29725         * modules/uninorm/u8-normxfrm: Likewise.
29726         * modules/uninorm/u16-normalize: Likewise.
29727         * modules/uninorm/u16-normcmp: Likewise.
29728         * modules/uninorm/u16-normcoll: Likewise.
29729         * modules/uninorm/u16-normxfrm: Likewise.
29730         * modules/uninorm/u32-normalize: Likewise.
29731         * modules/uninorm/u32-normcmp: Likewise.
29732         * modules/uninorm/u32-normcoll: Likewise.
29733         * modules/uninorm/u32-normxfrm: Likewise.
29734         * modules/unistdio/u8-asnprintf: Likewise.
29735         * modules/unistdio/u8-asprintf: Likewise.
29736         * modules/unistdio/u8-snprintf: Likewise.
29737         * modules/unistdio/u8-sprintf: Likewise.
29738         * modules/unistdio/u8-u8-asnprintf: Likewise.
29739         * modules/unistdio/u8-u8-asprintf: Likewise.
29740         * modules/unistdio/u8-u8-snprintf: Likewise.
29741         * modules/unistdio/u8-u8-sprintf: Likewise.
29742         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29743         * modules/unistdio/u8-u8-vasprintf: Likewise.
29744         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29745         * modules/unistdio/u8-u8-vsprintf: Likewise.
29746         * modules/unistdio/u8-vasnprintf: Likewise.
29747         * modules/unistdio/u8-vasprintf: Likewise.
29748         * modules/unistdio/u8-vsnprintf: Likewise.
29749         * modules/unistdio/u8-vsprintf: Likewise.
29750         * modules/unistdio/u16-asnprintf: Likewise.
29751         * modules/unistdio/u16-asprintf: Likewise.
29752         * modules/unistdio/u16-snprintf: Likewise.
29753         * modules/unistdio/u16-sprintf: Likewise.
29754         * modules/unistdio/u16-u16-asnprintf: Likewise.
29755         * modules/unistdio/u16-u16-asprintf: Likewise.
29756         * modules/unistdio/u16-u16-snprintf: Likewise.
29757         * modules/unistdio/u16-u16-sprintf: Likewise.
29758         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29759         * modules/unistdio/u16-u16-vasprintf: Likewise.
29760         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29761         * modules/unistdio/u16-u16-vsprintf: Likewise.
29762         * modules/unistdio/u16-vasnprintf: Likewise.
29763         * modules/unistdio/u16-vasprintf: Likewise.
29764         * modules/unistdio/u16-vsnprintf: Likewise.
29765         * modules/unistdio/u16-vsprintf: Likewise.
29766         * modules/unistdio/u32-asnprintf: Likewise.
29767         * modules/unistdio/u32-asprintf: Likewise.
29768         * modules/unistdio/u32-snprintf: Likewise.
29769         * modules/unistdio/u32-sprintf: Likewise.
29770         * modules/unistdio/u32-u32-asnprintf: Likewise.
29771         * modules/unistdio/u32-u32-asprintf: Likewise.
29772         * modules/unistdio/u32-u32-snprintf: Likewise.
29773         * modules/unistdio/u32-u32-sprintf: Likewise.
29774         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29775         * modules/unistdio/u32-u32-vasprintf: Likewise.
29776         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29777         * modules/unistdio/u32-u32-vsprintf: Likewise.
29778         * modules/unistdio/u32-vasnprintf: Likewise.
29779         * modules/unistdio/u32-vasprintf: Likewise.
29780         * modules/unistdio/u32-vsnprintf: Likewise.
29781         * modules/unistdio/u32-vsprintf: Likewise.
29782         * modules/unistdio/ulc-asnprintf: Likewise.
29783         * modules/unistdio/ulc-asprintf: Likewise.
29784         * modules/unistdio/ulc-fprintf: Likewise.
29785         * modules/unistdio/ulc-snprintf: Likewise.
29786         * modules/unistdio/ulc-sprintf: Likewise.
29787         * modules/unistdio/ulc-vasnprintf: Likewise.
29788         * modules/unistdio/ulc-vasprintf: Likewise.
29789         * modules/unistdio/ulc-vfprintf: Likewise.
29790         * modules/unistdio/ulc-vsnprintf: Likewise.
29791         * modules/unistdio/ulc-vsprintf: Likewise.
29792         * modules/unistr/u8-check: Likewise.
29793         * modules/unistr/u8-chr: Likewise.
29794         * modules/unistr/u8-cmp: Likewise.
29795         * modules/unistr/u8-cmp2: Likewise.
29796         * modules/unistr/u8-cpy: Likewise.
29797         * modules/unistr/u8-cpy-alloc: Likewise.
29798         * modules/unistr/u8-endswith: Likewise.
29799         * modules/unistr/u8-mblen: Likewise.
29800         * modules/unistr/u8-mbsnlen: Likewise.
29801         * modules/unistr/u8-mbtouc: Likewise.
29802         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29803         * modules/unistr/u8-mbtoucr: Likewise.
29804         * modules/unistr/u8-move: Likewise.
29805         * modules/unistr/u8-next: Likewise.
29806         * modules/unistr/u8-prev: Likewise.
29807         * modules/unistr/u8-set: Likewise.
29808         * modules/unistr/u8-startswith: Likewise.
29809         * modules/unistr/u8-stpcpy: Likewise.
29810         * modules/unistr/u8-stpncpy: Likewise.
29811         * modules/unistr/u8-strcat: Likewise.
29812         * modules/unistr/u8-strchr: Likewise.
29813         * modules/unistr/u8-strcmp: Likewise.
29814         * modules/unistr/u8-strcoll: Likewise.
29815         * modules/unistr/u8-strcpy: Likewise.
29816         * modules/unistr/u8-strcspn: Likewise.
29817         * modules/unistr/u8-strdup: Likewise.
29818         * modules/unistr/u8-strlen: Likewise.
29819         * modules/unistr/u8-strmblen: Likewise.
29820         * modules/unistr/u8-strmbtouc: Likewise.
29821         * modules/unistr/u8-strncat: Likewise.
29822         * modules/unistr/u8-strncmp: Likewise.
29823         * modules/unistr/u8-strncpy: Likewise.
29824         * modules/unistr/u8-strnlen: Likewise.
29825         * modules/unistr/u8-strpbrk: Likewise.
29826         * modules/unistr/u8-strrchr: Likewise.
29827         * modules/unistr/u8-strspn: Likewise.
29828         * modules/unistr/u8-strstr: Likewise.
29829         * modules/unistr/u8-strtok: Likewise.
29830         * modules/unistr/u8-to-u16: Likewise.
29831         * modules/unistr/u8-to-u32: Likewise.
29832         * modules/unistr/u8-uctomb: Likewise.
29833         * modules/unistr/u16-check: Likewise.
29834         * modules/unistr/u16-chr: Likewise.
29835         * modules/unistr/u16-cmp: Likewise.
29836         * modules/unistr/u16-cmp2: Likewise.
29837         * modules/unistr/u16-cpy: Likewise.
29838         * modules/unistr/u16-cpy-alloc: Likewise.
29839         * modules/unistr/u16-endswith: Likewise.
29840         * modules/unistr/u16-mblen: Likewise.
29841         * modules/unistr/u16-mbsnlen: Likewise.
29842         * modules/unistr/u16-mbtouc: Likewise.
29843         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29844         * modules/unistr/u16-mbtoucr: Likewise.
29845         * modules/unistr/u16-move: Likewise.
29846         * modules/unistr/u16-next: Likewise.
29847         * modules/unistr/u16-prev: Likewise.
29848         * modules/unistr/u16-set: Likewise.
29849         * modules/unistr/u16-startswith: Likewise.
29850         * modules/unistr/u16-stpcpy: Likewise.
29851         * modules/unistr/u16-stpncpy: Likewise.
29852         * modules/unistr/u16-strcat: Likewise.
29853         * modules/unistr/u16-strchr: Likewise.
29854         * modules/unistr/u16-strcmp: Likewise.
29855         * modules/unistr/u16-strcoll: Likewise.
29856         * modules/unistr/u16-strcpy: Likewise.
29857         * modules/unistr/u16-strcspn: Likewise.
29858         * modules/unistr/u16-strdup: Likewise.
29859         * modules/unistr/u16-strlen: Likewise.
29860         * modules/unistr/u16-strmblen: Likewise.
29861         * modules/unistr/u16-strmbtouc: Likewise.
29862         * modules/unistr/u16-strncat: Likewise.
29863         * modules/unistr/u16-strncmp: Likewise.
29864         * modules/unistr/u16-strncpy: Likewise.
29865         * modules/unistr/u16-strnlen: Likewise.
29866         * modules/unistr/u16-strpbrk: Likewise.
29867         * modules/unistr/u16-strrchr: Likewise.
29868         * modules/unistr/u16-strspn: Likewise.
29869         * modules/unistr/u16-strstr: Likewise.
29870         * modules/unistr/u16-strtok: Likewise.
29871         * modules/unistr/u16-to-u32: Likewise.
29872         * modules/unistr/u16-to-u8: Likewise.
29873         * modules/unistr/u16-uctomb: Likewise.
29874         * modules/unistr/u32-check: Likewise.
29875         * modules/unistr/u32-chr: Likewise.
29876         * modules/unistr/u32-cmp: Likewise.
29877         * modules/unistr/u32-cmp2: Likewise.
29878         * modules/unistr/u32-cpy: Likewise.
29879         * modules/unistr/u32-cpy-alloc: Likewise.
29880         * modules/unistr/u32-endswith: Likewise.
29881         * modules/unistr/u32-mblen: Likewise.
29882         * modules/unistr/u32-mbsnlen: Likewise.
29883         * modules/unistr/u32-mbtouc: Likewise.
29884         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29885         * modules/unistr/u32-mbtoucr: Likewise.
29886         * modules/unistr/u32-move: Likewise.
29887         * modules/unistr/u32-next: Likewise.
29888         * modules/unistr/u32-prev: Likewise.
29889         * modules/unistr/u32-set: Likewise.
29890         * modules/unistr/u32-startswith: Likewise.
29891         * modules/unistr/u32-stpcpy: Likewise.
29892         * modules/unistr/u32-stpncpy: Likewise.
29893         * modules/unistr/u32-strcat: Likewise.
29894         * modules/unistr/u32-strchr: Likewise.
29895         * modules/unistr/u32-strcmp: Likewise.
29896         * modules/unistr/u32-strcoll: Likewise.
29897         * modules/unistr/u32-strcpy: Likewise.
29898         * modules/unistr/u32-strcspn: Likewise.
29899         * modules/unistr/u32-strdup: Likewise.
29900         * modules/unistr/u32-strlen: Likewise.
29901         * modules/unistr/u32-strmblen: Likewise.
29902         * modules/unistr/u32-strmbtouc: Likewise.
29903         * modules/unistr/u32-strncat: Likewise.
29904         * modules/unistr/u32-strncmp: Likewise.
29905         * modules/unistr/u32-strncpy: Likewise.
29906         * modules/unistr/u32-strnlen: Likewise.
29907         * modules/unistr/u32-strpbrk: Likewise.
29908         * modules/unistr/u32-strrchr: Likewise.
29909         * modules/unistr/u32-strspn: Likewise.
29910         * modules/unistr/u32-strstr: Likewise.
29911         * modules/unistr/u32-strtok: Likewise.
29912         * modules/unistr/u32-to-u16: Likewise.
29913         * modules/unistr/u32-to-u8: Likewise.
29914         * modules/unistr/u32-uctomb: Likewise.
29915         * modules/uniwbrk/u8-wordbreaks: Likewise.
29916         * modules/uniwbrk/u16-wordbreaks: Likewise.
29917         * modules/uniwbrk/u32-wordbreaks: Likewise.
29918         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29919         * modules/uniwbrk/wordbreak-property: Likewise.
29920         * modules/uniwidth/u8-strwidth: Likewise.
29921         * modules/uniwidth/u8-width: Likewise.
29922         * modules/uniwidth/u16-strwidth: Likewise.
29923         * modules/uniwidth/u16-width: Likewise.
29924         * modules/uniwidth/u32-strwidth: Likewise.
29925         * modules/uniwidth/u32-width: Likewise.
29926         * modules/uniwidth/width: Likewise.
29927         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29928         with $(LIBUNISTRING).
29929         * modules/unicase/ignorable-tests: Likewise.
29930         * modules/unicase/locale-language-tests: Likewise.
29931         * modules/unicase/tolower-tests: Likewise.
29932         * modules/unicase/totitle-tests: Likewise.
29933         * modules/unicase/toupper-tests: Likewise.
29934         * modules/unicase/u8-casecmp-tests: Likewise.
29935         * modules/unicase/u8-casecoll-tests: Likewise.
29936         * modules/unicase/u8-casefold-tests: Likewise.
29937         * modules/unicase/u8-is-cased-tests: Likewise.
29938         * modules/unicase/u8-is-casefolded-tests: Likewise.
29939         * modules/unicase/u8-is-lowercase-tests: Likewise.
29940         * modules/unicase/u8-is-titlecase-tests: Likewise.
29941         * modules/unicase/u8-is-uppercase-tests: Likewise.
29942         * modules/unicase/u8-tolower-tests: Likewise.
29943         * modules/unicase/u8-totitle-tests: Likewise.
29944         * modules/unicase/u8-toupper-tests: Likewise.
29945         * modules/unicase/u16-casecmp-tests: Likewise.
29946         * modules/unicase/u16-casecoll-tests: Likewise.
29947         * modules/unicase/u16-casefold-tests: Likewise.
29948         * modules/unicase/u16-is-cased-tests: Likewise.
29949         * modules/unicase/u16-is-casefolded-tests: Likewise.
29950         * modules/unicase/u16-is-lowercase-tests: Likewise.
29951         * modules/unicase/u16-is-titlecase-tests: Likewise.
29952         * modules/unicase/u16-is-uppercase-tests: Likewise.
29953         * modules/unicase/u16-tolower-tests: Likewise.
29954         * modules/unicase/u16-totitle-tests: Likewise.
29955         * modules/unicase/u16-toupper-tests: Likewise.
29956         * modules/unicase/u32-casecmp-tests: Likewise.
29957         * modules/unicase/u32-casecoll-tests: Likewise.
29958         * modules/unicase/u32-casefold-tests: Likewise.
29959         * modules/unicase/u32-is-cased-tests: Likewise.
29960         * modules/unicase/u32-is-casefolded-tests: Likewise.
29961         * modules/unicase/u32-is-lowercase-tests: Likewise.
29962         * modules/unicase/u32-is-titlecase-tests: Likewise.
29963         * modules/unicase/u32-is-uppercase-tests: Likewise.
29964         * modules/unicase/u32-tolower-tests: Likewise.
29965         * modules/unicase/u32-totitle-tests: Likewise.
29966         * modules/unicase/u32-toupper-tests: Likewise.
29967         * modules/unicase/ulc-casecmp-tests: Likewise.
29968         * modules/unicase/ulc-casecoll-tests: Likewise.
29969         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29970         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29971         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29972         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29973         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29974         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29975         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29976         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29977         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29978         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29979         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29980         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29981         * modules/unictype/bidicategory-byname-tests: Likewise.
29982         * modules/unictype/bidicategory-name-tests: Likewise.
29983         * modules/unictype/bidicategory-of-tests: Likewise.
29984         * modules/unictype/bidicategory-test-tests: Likewise.
29985         * modules/unictype/block-list-tests: Likewise.
29986         * modules/unictype/block-of-tests: Likewise.
29987         * modules/unictype/block-test-tests: Likewise.
29988         * modules/unictype/category-C-tests: Likewise.
29989         * modules/unictype/category-Cc-tests: Likewise.
29990         * modules/unictype/category-Cf-tests: Likewise.
29991         * modules/unictype/category-Cn-tests: Likewise.
29992         * modules/unictype/category-Co-tests: Likewise.
29993         * modules/unictype/category-Cs-tests: Likewise.
29994         * modules/unictype/category-L-tests: Likewise.
29995         * modules/unictype/category-Ll-tests: Likewise.
29996         * modules/unictype/category-Lm-tests: Likewise.
29997         * modules/unictype/category-Lo-tests: Likewise.
29998         * modules/unictype/category-Lt-tests: Likewise.
29999         * modules/unictype/category-Lu-tests: Likewise.
30000         * modules/unictype/category-M-tests: Likewise.
30001         * modules/unictype/category-Mc-tests: Likewise.
30002         * modules/unictype/category-Me-tests: Likewise.
30003         * modules/unictype/category-Mn-tests: Likewise.
30004         * modules/unictype/category-N-tests: Likewise.
30005         * modules/unictype/category-Nd-tests: Likewise.
30006         * modules/unictype/category-Nl-tests: Likewise.
30007         * modules/unictype/category-No-tests: Likewise.
30008         * modules/unictype/category-P-tests: Likewise.
30009         * modules/unictype/category-Pc-tests: Likewise.
30010         * modules/unictype/category-Pd-tests: Likewise.
30011         * modules/unictype/category-Pe-tests: Likewise.
30012         * modules/unictype/category-Pf-tests: Likewise.
30013         * modules/unictype/category-Pi-tests: Likewise.
30014         * modules/unictype/category-Po-tests: Likewise.
30015         * modules/unictype/category-Ps-tests: Likewise.
30016         * modules/unictype/category-S-tests: Likewise.
30017         * modules/unictype/category-Sc-tests: Likewise.
30018         * modules/unictype/category-Sk-tests: Likewise.
30019         * modules/unictype/category-Sm-tests: Likewise.
30020         * modules/unictype/category-So-tests: Likewise.
30021         * modules/unictype/category-Z-tests: Likewise.
30022         * modules/unictype/category-Zl-tests: Likewise.
30023         * modules/unictype/category-Zp-tests: Likewise.
30024         * modules/unictype/category-Zs-tests: Likewise.
30025         * modules/unictype/category-and-not-tests: Likewise.
30026         * modules/unictype/category-and-tests: Likewise.
30027         * modules/unictype/category-byname-tests: Likewise.
30028         * modules/unictype/category-name-tests: Likewise.
30029         * modules/unictype/category-none-tests: Likewise.
30030         * modules/unictype/category-of-tests: Likewise.
30031         * modules/unictype/category-or-tests: Likewise.
30032         * modules/unictype/category-test-withtable-tests: Likewise.
30033         * modules/unictype/combining-class-tests: Likewise.
30034         * modules/unictype/ctype-alnum-tests: Likewise.
30035         * modules/unictype/ctype-alpha-tests: Likewise.
30036         * modules/unictype/ctype-blank-tests: Likewise.
30037         * modules/unictype/ctype-cntrl-tests: Likewise.
30038         * modules/unictype/ctype-digit-tests: Likewise.
30039         * modules/unictype/ctype-graph-tests: Likewise.
30040         * modules/unictype/ctype-lower-tests: Likewise.
30041         * modules/unictype/ctype-print-tests: Likewise.
30042         * modules/unictype/ctype-punct-tests: Likewise.
30043         * modules/unictype/ctype-space-tests: Likewise.
30044         * modules/unictype/ctype-upper-tests: Likewise.
30045         * modules/unictype/ctype-xdigit-tests: Likewise.
30046         * modules/unictype/decimal-digit-tests: Likewise.
30047         * modules/unictype/digit-tests: Likewise.
30048         * modules/unictype/mirror-tests: Likewise.
30049         * modules/unictype/numeric-tests: Likewise.
30050         * modules/unictype/property-alphabetic-tests: Likewise.
30051         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30052         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30053         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30054         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30055         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30056         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30057         * modules/unictype/property-bidi-control-tests: Likewise.
30058         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30059         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30060         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30061         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30062         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30063         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30064         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30065         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30066         * modules/unictype/property-bidi-pdf-tests: Likewise.
30067         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30068         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30069         * modules/unictype/property-byname-tests: Likewise.
30070         * modules/unictype/property-combining-tests: Likewise.
30071         * modules/unictype/property-composite-tests: Likewise.
30072         * modules/unictype/property-currency-symbol-tests: Likewise.
30073         * modules/unictype/property-dash-tests: Likewise.
30074         * modules/unictype/property-decimal-digit-tests: Likewise.
30075         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30076         * modules/unictype/property-deprecated-tests: Likewise.
30077         * modules/unictype/property-diacritic-tests: Likewise.
30078         * modules/unictype/property-extender-tests: Likewise.
30079         * modules/unictype/property-format-control-tests: Likewise.
30080         * modules/unictype/property-grapheme-base-tests: Likewise.
30081         * modules/unictype/property-grapheme-extend-tests: Likewise.
30082         * modules/unictype/property-grapheme-link-tests: Likewise.
30083         * modules/unictype/property-hex-digit-tests: Likewise.
30084         * modules/unictype/property-hyphen-tests: Likewise.
30085         * modules/unictype/property-id-continue-tests: Likewise.
30086         * modules/unictype/property-id-start-tests: Likewise.
30087         * modules/unictype/property-ideographic-tests: Likewise.
30088         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30089         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30090         * modules/unictype/property-ignorable-control-tests: Likewise.
30091         * modules/unictype/property-iso-control-tests: Likewise.
30092         * modules/unictype/property-join-control-tests: Likewise.
30093         * modules/unictype/property-left-of-pair-tests: Likewise.
30094         * modules/unictype/property-line-separator-tests: Likewise.
30095         * modules/unictype/property-logical-order-exception-tests: Likewise.
30096         * modules/unictype/property-lowercase-tests: Likewise.
30097         * modules/unictype/property-math-tests: Likewise.
30098         * modules/unictype/property-non-break-tests: Likewise.
30099         * modules/unictype/property-not-a-character-tests: Likewise.
30100         * modules/unictype/property-numeric-tests: Likewise.
30101         * modules/unictype/property-other-alphabetic-tests: Likewise.
30102         * modules/unictype/property-other-default-ignorable-code-point-tests:
30103         Likewise.
30104         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30105         * modules/unictype/property-other-id-continue-tests: Likewise.
30106         * modules/unictype/property-other-id-start-tests: Likewise.
30107         * modules/unictype/property-other-lowercase-tests: Likewise.
30108         * modules/unictype/property-other-math-tests: Likewise.
30109         * modules/unictype/property-other-uppercase-tests: Likewise.
30110         * modules/unictype/property-paired-punctuation-tests: Likewise.
30111         * modules/unictype/property-paragraph-separator-tests: Likewise.
30112         * modules/unictype/property-pattern-syntax-tests: Likewise.
30113         * modules/unictype/property-pattern-white-space-tests: Likewise.
30114         * modules/unictype/property-private-use-tests: Likewise.
30115         * modules/unictype/property-punctuation-tests: Likewise.
30116         * modules/unictype/property-quotation-mark-tests: Likewise.
30117         * modules/unictype/property-radical-tests: Likewise.
30118         * modules/unictype/property-sentence-terminal-tests: Likewise.
30119         * modules/unictype/property-soft-dotted-tests: Likewise.
30120         * modules/unictype/property-space-tests: Likewise.
30121         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30122         * modules/unictype/property-test-tests: Likewise.
30123         * modules/unictype/property-titlecase-tests: Likewise.
30124         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30125         * modules/unictype/property-unified-ideograph-tests: Likewise.
30126         * modules/unictype/property-uppercase-tests: Likewise.
30127         * modules/unictype/property-variation-selector-tests: Likewise.
30128         * modules/unictype/property-white-space-tests: Likewise.
30129         * modules/unictype/property-xid-continue-tests: Likewise.
30130         * modules/unictype/property-xid-start-tests: Likewise.
30131         * modules/unictype/property-zero-width-tests: Likewise.
30132         * modules/unictype/scripts-tests: Likewise.
30133         * modules/unictype/syntax-c-ident-tests: Likewise.
30134         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30135         * modules/unictype/syntax-java-ident-tests: Likewise.
30136         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30137         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30138         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30139         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30140         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30141         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30142         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30143         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30144         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30145         * modules/uniname/uniname-tests: Likewise.
30146         * modules/uninorm/canonical-decomposition-tests: Likewise.
30147         * modules/uninorm/compat-decomposition-tests: Likewise.
30148         * modules/uninorm/composition-tests: Likewise.
30149         * modules/uninorm/decomposing-form-tests: Likewise.
30150         * modules/uninorm/decomposition-tests: Likewise.
30151         * modules/uninorm/filter-tests: Likewise.
30152         * modules/uninorm/nfc-tests: Likewise.
30153         * modules/uninorm/nfd-tests: Likewise.
30154         * modules/uninorm/nfkc-tests: Likewise.
30155         * modules/uninorm/nfkd-tests: Likewise.
30156         * modules/uninorm/u8-normcmp-tests: Likewise.
30157         * modules/uninorm/u8-normcoll-tests: Likewise.
30158         * modules/uninorm/u16-normcmp-tests: Likewise.
30159         * modules/uninorm/u16-normcoll-tests: Likewise.
30160         * modules/uninorm/u32-normcmp-tests: Likewise.
30161         * modules/uninorm/u32-normcoll-tests: Likewise.
30162         * modules/unistdio/u8-asnprintf-tests: Likewise.
30163         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30164         * modules/unistdio/u8-vasprintf-tests: Likewise.
30165         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30166         * modules/unistdio/u8-vsprintf-tests: Likewise.
30167         * modules/unistdio/u16-asnprintf-tests: Likewise.
30168         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30169         * modules/unistdio/u16-vasprintf-tests: Likewise.
30170         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30171         * modules/unistdio/u16-vsprintf-tests: Likewise.
30172         * modules/unistdio/u32-asnprintf-tests: Likewise.
30173         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30174         * modules/unistdio/u32-vasprintf-tests: Likewise.
30175         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30176         * modules/unistdio/u32-vsprintf-tests: Likewise.
30177         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30178         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30179         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30180         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30181         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30182         * modules/unistr/u8-check-tests: Likewise.
30183         * modules/unistr/u8-chr-tests: Likewise.
30184         * modules/unistr/u8-cmp-tests: Likewise.
30185         * modules/unistr/u8-cmp2-tests: Likewise.
30186         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30187         * modules/unistr/u8-cpy-tests: Likewise.
30188         * modules/unistr/u8-mblen-tests: Likewise.
30189         * modules/unistr/u8-mbsnlen-tests: Likewise.
30190         * modules/unistr/u8-mbtouc-tests: Likewise.
30191         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30192         * modules/unistr/u8-mbtoucr-tests: Likewise.
30193         * modules/unistr/u8-move-tests: Likewise.
30194         * modules/unistr/u8-next-tests: Likewise.
30195         * modules/unistr/u8-prev-tests: Likewise.
30196         * modules/unistr/u8-set-tests: Likewise.
30197         * modules/unistr/u8-stpcpy-tests: Likewise.
30198         * modules/unistr/u8-stpncpy-tests: Likewise.
30199         * modules/unistr/u8-strcat-tests: Likewise.
30200         * modules/unistr/u8-strcmp-tests: Likewise.
30201         * modules/unistr/u8-strcoll-tests: Likewise.
30202         * modules/unistr/u8-strcpy-tests: Likewise.
30203         * modules/unistr/u8-strdup-tests: Likewise.
30204         * modules/unistr/u8-strlen-tests: Likewise.
30205         * modules/unistr/u8-strmblen-tests: Likewise.
30206         * modules/unistr/u8-strmbtouc-tests: Likewise.
30207         * modules/unistr/u8-strncat-tests: Likewise.
30208         * modules/unistr/u8-strncmp-tests: Likewise.
30209         * modules/unistr/u8-strncpy-tests: Likewise.
30210         * modules/unistr/u8-strnlen-tests: Likewise.
30211         * modules/unistr/u8-to-u16-tests: Likewise.
30212         * modules/unistr/u8-to-u32-tests: Likewise.
30213         * modules/unistr/u8-uctomb-tests: Likewise.
30214         * modules/unistr/u16-check-tests: Likewise.
30215         * modules/unistr/u16-chr-tests: Likewise.
30216         * modules/unistr/u16-cmp-tests: Likewise.
30217         * modules/unistr/u16-cmp2-tests: Likewise.
30218         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30219         * modules/unistr/u16-cpy-tests: Likewise.
30220         * modules/unistr/u16-mblen-tests: Likewise.
30221         * modules/unistr/u16-mbsnlen-tests: Likewise.
30222         * modules/unistr/u16-mbtouc-tests: Likewise.
30223         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30224         * modules/unistr/u16-mbtoucr-tests: Likewise.
30225         * modules/unistr/u16-move-tests: Likewise.
30226         * modules/unistr/u16-next-tests: Likewise.
30227         * modules/unistr/u16-prev-tests: Likewise.
30228         * modules/unistr/u16-set-tests: Likewise.
30229         * modules/unistr/u16-stpcpy-tests: Likewise.
30230         * modules/unistr/u16-stpncpy-tests: Likewise.
30231         * modules/unistr/u16-strcat-tests: Likewise.
30232         * modules/unistr/u16-strcmp-tests: Likewise.
30233         * modules/unistr/u16-strcoll-tests: Likewise.
30234         * modules/unistr/u16-strcpy-tests: Likewise.
30235         * modules/unistr/u16-strdup-tests: Likewise.
30236         * modules/unistr/u16-strlen-tests: Likewise.
30237         * modules/unistr/u16-strmblen-tests: Likewise.
30238         * modules/unistr/u16-strmbtouc-tests: Likewise.
30239         * modules/unistr/u16-strncat-tests: Likewise.
30240         * modules/unistr/u16-strncmp-tests: Likewise.
30241         * modules/unistr/u16-strncpy-tests: Likewise.
30242         * modules/unistr/u16-strnlen-tests: Likewise.
30243         * modules/unistr/u16-to-u32-tests: Likewise.
30244         * modules/unistr/u16-to-u8-tests: Likewise.
30245         * modules/unistr/u16-uctomb-tests: Likewise.
30246         * modules/unistr/u32-check-tests: Likewise.
30247         * modules/unistr/u32-chr-tests: Likewise.
30248         * modules/unistr/u32-cmp-tests: Likewise.
30249         * modules/unistr/u32-cmp2-tests: Likewise.
30250         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30251         * modules/unistr/u32-cpy-tests: Likewise.
30252         * modules/unistr/u32-mblen-tests: Likewise.
30253         * modules/unistr/u32-mbsnlen-tests: Likewise.
30254         * modules/unistr/u32-mbtouc-tests: Likewise.
30255         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30256         * modules/unistr/u32-mbtoucr-tests: Likewise.
30257         * modules/unistr/u32-move-tests: Likewise.
30258         * modules/unistr/u32-next-tests: Likewise.
30259         * modules/unistr/u32-prev-tests: Likewise.
30260         * modules/unistr/u32-set-tests: Likewise.
30261         * modules/unistr/u32-stpcpy-tests: Likewise.
30262         * modules/unistr/u32-stpncpy-tests: Likewise.
30263         * modules/unistr/u32-strcat-tests: Likewise.
30264         * modules/unistr/u32-strcmp-tests: Likewise.
30265         * modules/unistr/u32-strcoll-tests: Likewise.
30266         * modules/unistr/u32-strcpy-tests: Likewise.
30267         * modules/unistr/u32-strdup-tests: Likewise.
30268         * modules/unistr/u32-strlen-tests: Likewise.
30269         * modules/unistr/u32-strmblen-tests: Likewise.
30270         * modules/unistr/u32-strmbtouc-tests: Likewise.
30271         * modules/unistr/u32-strncat-tests: Likewise.
30272         * modules/unistr/u32-strncmp-tests: Likewise.
30273         * modules/unistr/u32-strncpy-tests: Likewise.
30274         * modules/unistr/u32-strnlen-tests: Likewise.
30275         * modules/unistr/u32-to-u16-tests: Likewise.
30276         * modules/unistr/u32-to-u8-tests: Likewise.
30277         * modules/unistr/u32-uctomb-tests: Likewise.
30278         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30279         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30280         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30281         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30282         * modules/uniwidth/u8-strwidth-tests: Likewise.
30283         * modules/uniwidth/u8-width-tests: Likewise.
30284         * modules/uniwidth/u16-strwidth-tests: Likewise.
30285         * modules/uniwidth/u16-width-tests: Likewise.
30286         * modules/uniwidth/u32-strwidth-tests: Likewise.
30287         * modules/uniwidth/u32-width-tests: Likewise.
30288         * modules/uniwidth/width-tests: Likewise.
30289
30290 2010-05-18  Richard Jones  <rjones@redhat.com>
30291
30292         doc: users.txt: list hivex
30293         * users.txt: Add hivex.
30294
30295 2010-05-18  Richard Jones  <rjones@redhat.com>
30296
30297         doc: users.txt: list febootstrap
30298         * users.txt: Add febootstrap.
30299
30300 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30301
30302         bootstrap: fix an error when gnulib is not used as a git submodule
30303         * build-aux/bootstrap (gnulib_path): If its length is zero then
30304         assign "gnulib" to it.
30305         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30306
30307 2010-05-16  Bruno Haible  <bruno@clisp.org>
30308
30309         Avoid autoconf warnings about AM_ICONV.
30310         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30311         2.64.
30312
30313 2010-05-16  Bruno Haible  <bruno@clisp.org>
30314
30315         absolute-header: Make the macro usable in more situations.
30316         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30317         from gl_ABSOLUTE_HEADER.
30318         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30319
30320 2010-05-16  James Youngman  <jay@gnu.org>
30321
30322         doc: update users.txt
30323         * users.txt: Add CSSC.
30324
30325 2010-05-16  Jim Meyering  <meyering@redhat.com>
30326
30327         init.sh: fix an error in the previous change; add more comments
30328         * tests/init.sh: Compare exit code in loop against 9, not 2.
30329         Patch by Bruno Haible.
30330         Make the two tests more similar by adding an empty "then" clause.
30331         Add comments.
30332
30333         init.sh: avoid unnecessary shell re-exec
30334         * tests/init.sh: Improve the re-exec-required check to first test the
30335         current shell.  If it passes the test, do not search for a shell that
30336         does pass, and do not re-exec.  This test is particularly contorted to
30337         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30338         of $(...) evokes a syntax error and causes immediate shell exit with
30339         status 2.  Bruno Haible reported that the re-exec made it impossible
30340         to single-step through any init.sh-using script.
30341
30342 2010-05-16  Bruno Haible  <bruno@clisp.org>
30343
30344         Fix collision between gnulib's and libintl's printf replacements.
30345         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30346         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30347         (printf): When using GNU C, map the __printf__ function to rpl_printf
30348         via __asm__. When not using GNU C, define rpl_printf instead of
30349         __printf__.
30350         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30351         commit.
30352         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30353         commit.
30354         * m4/asm-underscore.m4: New file.
30355         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30356         * modules/stdio (Files): Add m4/asm-underscore.m4.
30357         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30358         Reported by Ben Pfaff.
30359
30360 2010-05-16  Bruno Haible  <bruno@clisp.org>
30361
30362         verify: Avoid skipping the test on openSUSE 11.0.
30363         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30364
30365 2010-05-13  Bruno Haible  <bruno@clisp.org>
30366
30367         Avoid useless warnings from G++.
30368         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30369         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30371
30372 2010-05-11  Jim Meyering  <meyering@redhat.com>
30373
30374         maint.mk: tweak preceding change
30375         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30376         regexps tighter by anchoring at EOL, and make the new group "shy"
30377         for slightly decreased overhead.
30378
30379 2010-05-11  Eric Blake  <eblake@redhat.com>
30380
30381         maint.mk: gnulib doesn't guarantee NSIG
30382         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30383
30384 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30385
30386         test-pwrite.c: Remove unused variable declaration.
30387         * tests/test-pwrite.c (main): Remove read_buf declaration.
30388
30389         Remove useless test-pwrite.sh file.
30390         * tests/test-pwrite.sh: Delete file.
30391         * modules/pwrite-tests: Remove references.
30392         Reported by Bruno Haible.
30393
30394 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30395
30396         init.sh: fix a typo
30397         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30398
30399 2010-05-10  Jim Meyering  <meyering@redhat.com>
30400
30401         maint.mk: avoid using a temporary file in the always-defined-macros check
30402         * top/maint.mk (.re-defmac): Remove rule.
30403         (gl_trap_): Remove definition.
30404         (sc_prohibit_always-defined_macros): Rewrite not to create and
30405         depend on a temporary file.  Instead, depend on GNU grep's ability
30406         to read a list of regular expressions from stdin when given "-f -".
30407
30408 2010-05-09  Bruno Haible  <bruno@clisp.org>
30409
30410         Update to GNU gettext 0.18, part 1.
30411         * m4/gettext.m4: Update to GNU gettext 0.18.
30412         * m4/intl.m4: Likewise.
30413         * m4/po.m4: Likewise.
30414         * modules/gettext (Files): Add m4/fcntl-o.m4.
30415         (configure.ac): Require gettext infrastructure from version 0.18.
30416
30417 2010-05-09  Jim Meyering  <meyering@redhat.com>
30418
30419         init.sh: enable MALLOC_PERTURB_
30420         * tests/init.sh: Enable glibc's malloc-perturbing option.
30421
30422         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30423         With my recent change in init.sh from the two-line form:
30424             -#   : ${srcdir=.}
30425             -#   . "$srcdir/init.sh"; path_prepend_ .
30426             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30427         I noticed that using the one-line form would cause this test
30428         to fail with a false-positive, or to stop working altogether,
30429         depending on whether help-version changed or all the tests did.
30430         * top/maint.mk (_hv_regex): Remove this definition.
30431         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30432         (_hv_regex_strong): Use a stronger regex to check for conformance.
30433         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30434         Give a separate diagnostic for lack of conforming use.
30435
30436         maint.mk: prohibit definition of symbols defined by gnulib
30437         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30438         definition of symbols defined by gnulib.
30439
30440 2010-05-09  Bruno Haible  <bruno@clisp.org>
30441
30442         acl: Avoid test failure on Cygwin-hosted mingw.
30443         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30444
30445 2010-05-09  Bruno Haible  <bruno@clisp.org>
30446
30447         error: Use system's fcntl function.
30448         * lib/error.c (fcntl): Undefine.
30449
30450 2010-05-09  Jim Meyering  <meyering@redhat.com>
30451
30452         verify: adjust formatting to be more consistent
30453         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30454         argument-list '('s, and after one comma.
30455
30456 2010-05-09  Bruno Haible  <bruno@clisp.org>
30457
30458         error: More reliable output on mingw.
30459         * lib/error.c: Include <windows.h>.
30460         (is_open): New function.
30461         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30462         defined.
30463
30464 2010-05-09  Bruno Haible  <bruno@clisp.org>
30465
30466         vasnprintf: Fix syntax errors in libintl build on mingw.
30467         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30468         pad_ourselves and prec_ourselves after use.
30469
30470 2010-05-08  Bruno Haible  <bruno@clisp.org>
30471
30472         * lib/config.charset: Update comments for Cygwin 1.7.
30473         * lib/localcharset.c: Likewise.
30474
30475 2010-05-07  Jim Meyering  <meyering@redhat.com>
30476
30477         init.sh: improve comments
30478         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30479         . "${srcdir=.}/init.sh"; path_prepend_ .
30480         Add a note about path_prepend_ and the alternative of using
30481         TESTS_ENVIRONMENT.
30482
30483 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30484
30485         exclude: Unescape hashed patterns in wildcard mode.
30486         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30487         to the hash list.
30488         * tests/test-exclude8.sh: New test case.
30489         * modules/exclude-tests: Add new test.
30490
30491 2010-05-05  Eric Blake  <eblake@redhat.com>
30492
30493         verify: automate tests
30494         * modules/verify-tests: New module.
30495         * tests/test-verify.sh: New file.
30496         * tests/test-verify.c: Guard each negative test with a unique id.
30497         Also avoid warning about unused left hand of comma expressions.
30498
30499 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30500
30501         Further improvements to verify.h, suggested by Eric Blake.
30502         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30503         the GL_* versions, to avoid collision with OpenGL.
30504         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30505         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30506         than testing merely whether it's defined.
30507
30508         Modify verify.h to pacify gcc -Wredundant_decls.
30509         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30510         These use the prefix "GL_" since they're likely to be useful elsewhere.
30511         We may need to break them out into a different .h file.
30512         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30513         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30514         of verify_function__.
30515
30516 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30517
30518         Tests for module pwrite.
30519         * modules/pwrite-tests: New file.
30520         * tests/test-pwrite.sh: New file.
30521         * tests/test-pwrite.c: New file.
30522
30523         New module pwrite.
30524         * lib/unistd.in.h (pwrite): New declaration.
30525         * lib/pwrite.c: New file, from glibc with modifications.
30526         * m4/pwrite.m4: New file.
30527         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30528         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30529         REPLACE_PWRITE.
30530         * modules/pwrite: New file.
30531         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30532         REPLACE_PWRITE.
30533         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30534         * doc/posix-functions/pwrite.texi: Mention the new module.
30535
30536 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30537
30538         pread: Update documentation.
30539         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30540
30541 2010-05-04  Eric Blake  <eblake@redhat.com>
30542
30543         docs: update cygwin progress
30544         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30545         this bug.
30546         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30547         Added in cygwin 1.7.2.
30548         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30549         Likewise.
30550         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30551         Likewise.
30552         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30553         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30554         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30555         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30556         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30557         Mention nproc module.
30558         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30559         bug in cygwin 1.7.5 addition.
30560         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30561         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30562         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30563         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30564         1.7.5.
30565         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30566         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30567         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30568         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30569         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30570         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30571         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30572         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30573         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30574         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30575         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30576         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30577         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30578         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30579         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30580         Likewise.
30581         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30582         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30583         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30584         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30585         Likewise.
30586         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30587         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30588         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30589         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30590         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30591         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30592         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30593         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30594         Likewise.
30595         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30596         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30597         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30598         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30599         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30600         Likewise.
30601         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30602         Likewise.
30603         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30604         Likewise.
30605         * doc/glibc-functions/xdrrec_endofrecord.texi
30606         (xdrrec_endofrecord): Likewise.
30607         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30608         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30609         Likewise.
30610         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30611         Likewise.
30612
30613 2010-05-04  Jim Meyering  <meyering@redhat.com>
30614
30615         gendocs.sh: make its "-s FILE" option more useful
30616         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30617         $PACKAGE to reflect the probably-different basename of "FILE".
30618
30619 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30620
30621         bootstrap: don't ignore download_po_files failure
30622         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30623         failure.
30624
30625 2010-05-03  Jim Meyering  <meyering@redhat.com>
30626
30627         maint.mk: allow to pass options to gendocs.sh
30628         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30629         (gendocs_options_): New overridable variable.
30630
30631         gnu-web-doc-update: don't ignore configure or build failure
30632         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30633
30634         announce-gen: backslash-escape '@'s in --help output
30635         * build-aux/announce-gen: Fix syntax errors.
30636
30637         maint.mk, announce-gen: allow project-specific announcement mail headers
30638         * top/maint.mk (translation_project_): Define default.
30639         (announcement_Cc_, announcement_mail_headers_): Likewise.
30640         (announcement): Invoke announce-gen with new --mail-headers option.
30641         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30642
30643         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30644         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30645         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30646         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30647         line in the "err2" output file when running "make check" in verbose
30648         mode (i.e., with set -x enabled).
30649
30650 2010-05-03  Bruno Haible  <bruno@clisp.org>
30651
30652         wctob: Fix for weird platforms.
30653         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30654         argument value.
30655
30656 2010-05-03  Jim Meyering  <meyering@redhat.com>
30657
30658         maint.mk: prohibit unwarranted use of <strings.h>
30659         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30660         strings.h in a file that does not also use strcasecmp, strncasecmp,
30661         ffs or ffsll.
30662
30663         maint.mk: remove obsolete comments
30664         * top/maint.mk: Remove stale, commented-out rules.
30665
30666 2010-05-02  Bruno Haible  <bruno@clisp.org>
30667
30668         wcwidth: Declare also when it's aliased.
30669         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30670         macro.
30671
30672 2010-05-02  Bruno Haible  <bruno@clisp.org>
30673
30674         Fix regression from 2010-04-25.
30675         * gnulib-tool (func_modules_transitive_closure): Check the status of
30676         all modules, not only of the tests that are of the form foo-tests where
30677         foo is a module.
30678
30679 2010-05-02  Bruno Haible  <bruno@clisp.org>
30680
30681         wctob: Work around nasty Cygwin 1.7.2 bug.
30682         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30683         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30684
30685 2010-05-01  Bruno Haible  <bruno@clisp.org>
30686
30687         fpurge: Sharper test.
30688         * tests/test-fpurge.c (main): Add one more ftell check.
30689         * modules/fpurge-tests (Depends-on): Add ftell.
30690         Suggested by Eric Blake.
30691
30692 2010-05-01  Bruno Haible  <bruno@clisp.org>
30693
30694         ftello: Another test.
30695         * tests/test-ftello3.c: New file.
30696         * modules/ftello-tests (Files): Add it.
30697         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30698         MOSTLYCLEANFILES.
30699
30700         ftell: Another test.
30701         * tests/test-ftell3.c: New file.
30702         * modules/ftell-tests (Files): Add it.
30703         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30704         MOSTLYCLEANFILES.
30705
30706 2010-05-01  Bruno Haible  <bruno@clisp.org>
30707
30708         ftell, ftello: Work around Solaris bug.
30709         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30710         * lib/ftello.c: Include stdio-impl.h.
30711         (ftello): On Solaris, when _IOWRT is set, compute the result without
30712         looking at _IOREAD.
30713         * modules/ftello (Files): Add lib/stdio-impl.h.
30714         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30715         * doc/posix-functions/ftello.texi: Likewise.
30716         Reported by Eric Blake.
30717
30718 2010-05-01  Bruno Haible  <bruno@clisp.org>
30719
30720         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30721         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30722         the _IOWRT flag is also set.
30723
30724 2010-05-01  Bruno Haible  <bruno@clisp.org>
30725
30726         Fix doc about a HP-UX stdio bug.
30727         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30728         * doc/posix-functions/ftello.texi: Likewise.
30729
30730 2010-05-01  Bruno Haible  <bruno@clisp.org>
30731
30732         lseek test: Fix failure on Solaris.
30733         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30734         output.
30735
30736 2010-04-30  Jim Meyering  <meyering@redhat.com>
30737
30738         bootstrap: don't ignore failure to generate po*/Makevars
30739         * build-aux/bootstrap (with_gettext): Don't ignore failure
30740         to create po/Makevars or runtime-po/Makevars.
30741
30742 2010-04-29  Eric Blake  <eblake@redhat.com>
30743
30744         headers: relax license to LGPLv2+
30745         * modules/fcntl-h (License): Relax license.
30746         * modules/getopt-posix (License): Likewise.
30747         * modules/locale (License): Likewise.
30748         * modules/math (License): Likewise.
30749         * modules/pty (License): Likewise.
30750         * modules/sched (License): Likewise.
30751         * modules/search (License): Likewise.
30752         * modules/spawn (License): Likewise.
30753         * modules/stdarg (License): Likewise.
30754         * modules/sysexits (License): Likewise.
30755
30756 2010-04-29  Jim Meyering  <meyering@redhat.com>
30757
30758         inttypes: relax license to LGPLv2+
30759         * modules/inttypes (License): Relax license.
30760
30761 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30762
30763         * top/maint.mk (indent): Run twice to produce idempotent results.
30764
30765 2010-04-28  Bruno Haible  <bruno@clisp.org>
30766
30767         getdate: Generate getdate.c in the source directory.
30768         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30769         MOSTLYCLEANFILES.
30770         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30771
30772 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30773
30774         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30775         is not declared as a const *; avoid warnings in that case.
30776
30777 2010-04-28  Eric Blake  <eblake@redhat.com>
30778
30779         canonicalize-lgpl: avoid compiler warning
30780         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30781         declaration' / 'extraneous semicolon' warning with some compilers.
30782         Reported by Andreas Gruenbacher.
30783
30784 2010-04-28  Jim Meyering  <meyering@redhat.com>
30785
30786         init.sh: ensure a more reliable exit status when exiting via trap
30787         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30788         Inspired by patches from Dmitry V. Levin.
30789         Also trap on signal 3 (SIGQUIT).
30790
30791 2010-04-27  Bruno Haible  <bruno@clisp.org>
30792
30793         Update doc about utimes().
30794         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30795         'utimens' module.
30796         Reported by Andreas Gruenbacher <agruen@suse.de>.
30797
30798 2010-04-27  Eric Blake  <eblake@redhat.com>
30799
30800         full-read, full-write: relax license
30801         * modules/full-read (License): Drop to LGPLv2+.
30802         * modules/full-write (License): Likewise.
30803         * modules/safe-read (License): Likewise.
30804         * modules/safe-write (License): Likewise.
30805
30806         pthread: mention library for linking
30807         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30808
30809 2010-04-27  Jim Meyering  <meyering@redhat.com>
30810
30811         maint.mk: fix a bug introduced in last change
30812         * top/maint.mk (gl_assured_headers_): Now that all names are on
30813         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30814         is not anchored to end of word, it should be adequate.
30815
30816         maint.mk: avoid side-effect in latest syntax-check
30817         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30818         to run commands via $(shell...), and hence to incur cost only when
30819         the new rule is actually run.
30820
30821         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30822         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30823         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30824         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30825         (gl_assured_headers_, az_, AZ_): Define.
30826         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30827
30828 2010-04-26  Jim Meyering  <jim@meyering.net>
30829             Bruno Haible  <bruno@clisp.org>
30830
30831         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30832         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30833         Prompted by an exchange with Gilles Espinasse.
30834
30835 2010-04-26  Jim Meyering  <meyering@redhat.com>
30836
30837         git-version-gen: aesthetic tweak
30838         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30839         so that the command remains on a single line.
30840
30841 2010-04-26  Eric Blake  <eblake@redhat.com>
30842
30843         git-version-gen: allow use on EBCDIC hosts
30844         * build-aux/git-version-gen (dirty): Use literal rather than tying
30845         ourselves to ascii.
30846         Reported by Steve Goetze.
30847
30848 2010-04-25  Bruno Haible  <bruno@clisp.org>
30849
30850         netdb: Add support for GNULIB_POSIXCHECK.
30851         * lib/netdb.in.h: Include warn-on-use.h.
30852         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30853         functions are used when GNULIB_POSIXCHECK is defined and the
30854         getaddrinfo module is not in use.
30855         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30856         freeaddrinfo, gai_strerror, getnameinfo are declared.
30857         * modules/netdb (Depends-on): Add warn-on-use.
30858         (Makefile.am): Include warn-on-use.h in netdb.h.
30859
30860 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30861
30862         build: avoid "make check" failure without .git/ directory
30863         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30864         there is no .git/ directory.
30865
30866 2010-04-25  Bruno Haible  <bruno@clisp.org>
30867
30868         ptsname: Fix misuse of ttyname_r.
30869         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30870         of errno.
30871
30872 2010-04-25  Bruno Haible  <bruno@clisp.org>
30873
30874         ttyname_r: Make it work on Solaris 10.
30875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30876         if the system function has the POSIX declaration. Test whether the
30877         function fails if the buffer is less than 128 bytes large.
30878         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30879         system's ttyname_r function. Provide a reasonably large buffer.
30880         * modules/ttyname_r (Depends-on): Add extensions.
30881         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30882
30883 2010-04-25  Bruno Haible  <bruno@clisp.org>
30884
30885         Use the 'extensions' module for some more functions on Solaris.
30886         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30887         module.
30888         * doc/posix-functions/ctime_r.texi: Likewise.
30889         * doc/posix-functions/getgrgid_r.texi: Likewise.
30890         * doc/posix-functions/getgrnam_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         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30896         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30897
30898 2010-04-25  Bruno Haible  <bruno@clisp.org>
30899
30900         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30902         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30903         * lib/ttyname_r.c: Include <limits.h>.
30904         (ttyname_r): Define using the system's ttyname_r function, if it exists
30905         and not on Solaris.
30906         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30907         set.
30908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30909         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30910         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30911         Reported by Simon Josefsson.
30912
30913 2010-04-25  Bruno Haible  <bruno@clisp.org>
30914
30915         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30916         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30917         * doc/posix-functions/ctime_r.texi: Likewise.
30918         * doc/posix-functions/getgrgid_r.texi: Likewise.
30919         * doc/posix-functions/getgrnam_r.texi: Likewise.
30920         * doc/posix-functions/getlogin_r.texi: Likewise.
30921         * doc/posix-functions/getpwnam_r.texi: Likewise.
30922         * doc/posix-functions/getpwuid_r.texi: Likewise.
30923         * doc/posix-functions/readdir_r.texi: Likewise.
30924         * doc/posix-functions/sigwait.texi: Likewise.
30925         * doc/posix-functions/ttyname_r.texi: Likewise.
30926         Reported by Simon Josefsson.
30927
30928 2010-04-25  Bruno Haible  <bruno@clisp.org>
30929
30930         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30931         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30932         also to --create-testdir.
30933         (func_acceptable): Don't consider the status of *-tests modules here.
30934         (func_modules_transitive_closure): Consider it here, before including a
30935         test module.
30936         (func_import, func_create_testdir): Set inc_all_direct_tests,
30937         inc_all_indirect_tests.
30938         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30939         --create-testdir and --create-megatestdir.
30940
30941 2010-04-25  Bruno Haible  <bruno@clisp.org>
30942
30943         gnulib-tool: Add --without-*-tests options.
30944         * gnulib-tool (func_usage): Document the --without-*-tests options.
30945         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30946         excl_unportable_tests): New variables.
30947         Fail if they are specified with --import or --update.
30948         (func_acceptable): Respect the excl_*_tests variables.
30949         (func_import): Set the excl_*_tests variables to empty.
30950
30951 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30952             Bruno Haible  <bruno@clisp.org>
30953
30954         Work around a MacOS X 10.4 bug with openpty.
30955         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30956         * tests/test-openpty.c (main): Close the master side explicitly.
30957
30958 2010-04-25  Bruno Haible  <bruno@clisp.org>
30959
30960         strnlen: Fix a C++ test error on MacOS X and Solaris.
30961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30962         the function is not declared.
30963         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30964         Simon Josefsson.
30965
30966 2010-04-24  Bruno Haible  <bruno@clisp.org>
30967
30968         Avoid a gcc warning.
30969         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30970         of correct type for %08lx directive.
30971         Reported by Eric Blake.
30972
30973 2010-04-24  Bruno Haible  <bruno@clisp.org>
30974
30975         vasnprintf: Correct errno value in case of out-of-memory.
30976         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30977         or sprintf. Use the errno value from SNPRINTF or sprintf.
30978         Reported by Ian Beckwith <ianb@erislabs.net>.
30979
30980 2010-04-24  Bruno Haible  <bruno@clisp.org>
30981
30982         ansi-c++-opt: Find correct compiler when cross-compiling.
30983         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30984         AC_CHECK_PROGS.
30985         Reported by Simon Josefsson.
30986
30987 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30988
30989         vc-list-files: Add support for subversion
30990         * build-aux/vc-list-files: Use "svn list" to generate the list of
30991         files controlled by subversion.
30992
30993 2010-04-23  Jim Meyering  <meyering@redhat.com>
30994
30995         vc-list-files tests: convert to use init.sh
30996         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30997         path_prepend_.
30998         Use Exit, not exit.
30999         Use skip_ rather than open coding it.
31000         Remove trap set-up and compare definitions.
31001         * tests/test-vc-list-files-git.sh: Likewise.
31002         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31003
31004 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31005
31006         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31007         backup files.
31008
31009 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31010
31011         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31012
31013 2010-04-20  Eric Blake  <eblake@redhat.com>
31014
31015         tests: be robust to ignored SIGPIPE
31016         * tests/test-select-in.sh: Consume all output.
31017         * tests/test-lseek.sh: Check correct exit status, while avoiding
31018         EPIPE.
31019
31020 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31021             Bruno Haible  <bruno@clisp.org>
31022
31023         visibility: Don't use -fvisibility if it leads to a warning.
31024         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31025         yes, don't pretend that visibility works if it leads to a warning.
31026         Reported by Mike Gran <spk121@yahoo.com>.
31027
31028 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31029
31030         * build-aux/bootstrap: Use "git -h" for testing for supported options
31031         instead of "git --help".  The short-form option only shows a summary,
31032         and doesn't layout the full man page.  Grep for the full option name
31033         in the summary, too.
31034
31035 2010-04-19  Bruno Haible  <bruno@clisp.org>
31036
31037         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31038         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31039         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31040         mention of RELOCATABLE_STRIP.
31041         Reported by Sylvain Beucler <beuc@beuc.net>.
31042
31043 2010-04-19  Bruno Haible  <bruno@clisp.org>
31044
31045         * lib/diffseq.h: Fix typo in comment.
31046         Reported by Eric Blake.
31047
31048 2010-04-19  Bruno Haible  <bruno@clisp.org>
31049
31050         ioctl: Move autoconf macro to a .m4 file.
31051         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31052         * modules/ioctl (Files): Add it.
31053         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31054         Reported by Ian Beckwith <ianb@erislabs.net>.
31055
31056 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31057             Bruno Haible  <bruno@clisp.org>
31058
31059         diffseq: Accommodate use-case with abstract arrays.
31060         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31061         is not defined.
31062         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31063         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31064
31065 2010-04-18  Bruno Haible  <bruno@clisp.org>
31066
31067         * doc/posix-headers/stdbool.texi: More precise wording.
31068
31069 2010-04-17  Jim Meyering  <meyering@redhat.com>
31070
31071         maint.mk: use gnu-style indentation in an embedded perl script
31072         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31073         Rename variable: s/two/last_two_bytes/
31074
31075 2010-04-16  Eric Blake  <eblake@redhat.com>
31076
31077         test-stdbool: skip test that fails with Solaris CC
31078         * tests/test-stdbool.c (f): Skip test that causes compilation
31079         error under buggy C++ compiler.
31080         * lib/stdbool.in.h: Document the limitation.
31081         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31082
31083         setenv: allow compilation with C++
31084         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31085         register keyword.
31086
31087         stdint: allow test to pass with C++
31088         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31089
31090         getopt: allow compilation with C++
31091         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31092         struct.
31093         * lib/getopt.c (_getopt_internal_r): Use correct type.
31094         Reported by Dagobert Michelson, via Joel E. Denny.
31095
31096 2010-04-16  Bruno Haible  <bruno@clisp.org>
31097
31098         Override netdb.h always.
31099         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31100         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31101         Reported by Ludovic Courtès <ludo@gnu.org>.
31102
31103 2010-04-15  Bruno Haible  <bruno@clisp.org>
31104
31105         openpty: Fix mistake from 2010-03-21.
31106         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31107         Reported by Simon Josefsson.
31108
31109 2010-04-15  Eric Blake  <eblake@redhat.com>
31110
31111         test-forkpty: fix expected signature
31112         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31113         Reported by Simon Josefsson.
31114
31115 2010-04-15  Jim Meyering  <meyering@redhat.com>
31116
31117         maint.mk: texinfo_suffix_re_: correct the default regexp
31118         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31119
31120         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31121         make it configurable via texinfo_suffix_re_.
31122
31123 2010-04-14  Eric Blake  <eblake@redhat.com>
31124
31125         strtok_r: relax license to LGPLv2+
31126         * modules/strtok_r (License): Relax license.
31127         Reported by Matthias Bolte.
31128
31129 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31130
31131         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31132         version 1.4.4 by default instead of requiring the libgcrypt
31133         version used during build.  This makes it possible to use the
31134         application with older but still binary compatible libgcrypt
31135         versions.
31136
31137 2010-04-13  Eric Blake  <eblake@redhat.com>
31138
31139         getopt-gnu: match recent glibc fixes and posix ruling
31140         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31141         '+' handling, when requesting extensions.
31142         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31143         'W;' handling.
31144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31145         * doc/posix-functions/getopt.texi (getopt): Document this.
31146         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31148         Likewise.
31149
31150         getopt: merge bug fixes from glibc
31151         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31152         diagnostics.  Honor '+:' correctly.  Reject ';'.
31153
31154         getopt-posix: detect MacOS bug
31155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31156         optind when missing a required argument.
31157         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31158         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31159         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31160         Likewise.
31161
31162         getopt-posix: avoid spurious failure on Solaris
31163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31164         an indicator that setting optind=1 is sufficient for reset.
31165
31166         getopt-posix: avoid spurious failure on FreeBSD
31167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31168         in POSIX mode, since the m4 test uses it.
31169
31170         gnulib-tool: silence warning on BSD sh
31171         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31172
31173 2010-04-13  Jim Meyering  <meyering@redhat.com>
31174
31175         doc: users.txt: GNU patch now uses gnulib
31176         * users.txt: Add patch.
31177
31178 2010-04-12  Jim Meyering  <meyering@redhat.com>
31179
31180         maint.mk: generate more concise timing data for syntax-check rules
31181         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31182         " done" from each line that reports a syntax-check test duration.
31183
31184 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31185
31186         git-version-gen: use "git update-index..." rather than "git status"
31187         * build-aux/git-version-gen: Use git update-index --refresh, not
31188         "git status".  With some versions of git, "git status" would fail
31189         to update the index and result in an unwarranted "-dirty" suffix.
31190
31191 2010-04-11  Jim Meyering  <meyering@redhat.com>
31192
31193         openat: correct formatting (no semantic change)
31194         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31195         Suggested by Bruno Haible.
31196
31197 2010-04-11  Bruno Haible  <bruno@clisp.org>
31198
31199         Stricter declaration checking in testdirs.
31200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31201         If for_tests is true, augment AM_CPPFLAGS to define
31202         GNULIB_STRICT_CHECKING.
31203         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31204         GNULIB_STRICT_CHECKING is defined, verify that the function is
31205         declared.
31206
31207 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31208             Bruno Haible  <bruno@clisp.org>
31209
31210         libunistring: Improve configure output.
31211         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31212         Don't say "consider installing GNU libunistring" when checking again
31213         with libiconv.
31214
31215 2010-04-11  Bruno Haible  <bruno@clisp.org>
31216
31217         libunistring: Correct value of $LTLIBUNISTRING.
31218         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31219         correct the value of $LTLIBUNISTRING.
31220
31221 2010-04-11  Bruno Haible  <bruno@clisp.org>
31222
31223         havelib: Add static libraries to LIBS in the right order.
31224         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31225         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31226
31227 2010-04-11  Bruno Haible  <bruno@clisp.org>
31228
31229         libunistring: Detect libunistring also when it depends on libiconv.
31230         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31231         the second AC_LIB_HAVE_LINKFLAGS invocation.
31232
31233 2010-04-11  James Youngman  <jay@gnu.org>
31234
31235         close-stream: declare local scalars to be "const"
31236         * lib/close-stream.c (close_stream): Make boolean variables const
31237         to document the fact that we set but do not change them.
31238
31239 2010-04-11  Bruno Haible  <bruno@clisp.org>
31240
31241         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31242
31243 2010-04-11  Jim Meyering  <meyering@redhat.com>
31244
31245         maint.mk: don't include dist-check.mk
31246         * top/maint.mk: Remove bogus include directive.
31247
31248         maint.mk: improve empty-line-at-EOF check
31249         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31250         solution, rather than tail+Perl-based one.  The latter would read
31251         a few kilobytes from the end of each file, and did not handle empty
31252         files properly.
31253
31254         maint.mk: print the elapsed time for each syntax-check rule
31255         * top/maint.mk (sc_m_rules_): Save start time in a file.
31256         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31257         (local-check): Interpose the .z rules
31258
31259 2010-04-11  Jim Meyering  <meyering@redhat.com>
31260
31261         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31262         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31263         empty file with one that ends in an empty line.
31264
31265 2010-04-10  Bruno Haible  <bruno@clisp.org>
31266
31267         mkdir: Make it work on mingw64.
31268         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31269         * lib/mkdir.c: Update comment.
31270         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31271
31272 2010-04-10  Bruno Haible  <bruno@clisp.org>
31273
31274         Don't override improved macro from newer autoconf.
31275         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31276         autoconf >= 2.62.
31277         Reported by Joel E. Denny <jdenny@clemson.edu>.
31278
31279 2010-04-10  Jim Meyering  <meyering@redhat.com>
31280
31281         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31282         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31283
31284         maint.mk: correct a diagnostic
31285         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31286         in diagnostic; now use $prohibit.
31287
31288 2010-04-10  Bruno Haible  <address@hidden>
31289
31290         fchownat: Fix a C++ test error on Solaris 8.
31291         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31292         the function does not exist.
31293
31294 2010-04-10  Bruno Haible  <bruno@clisp.org>
31295
31296         vasnprintf: Add more tests.
31297         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31298         (test_function): Test converting an invalid wide string.
31299
31300         vasnprintf: Correct handling of unconvertible wide string arguments.
31301         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31302         VASNPRINTF.
31303         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31304         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31305         smaller than the expected maximum need for the directive. Set errno to
31306         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31307         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31309         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31310         * modules/vasnprintf (Files): Add m4/printf.m4.
31311         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31312
31313 2010-04-10  Bruno Haible  <bruno@clisp.org>
31314
31315         vasnprintf: Fix crash in %ls directive.
31316         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31317         string is passed as argument to %ls, with no precision and no width.
31318         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31319
31320 2010-04-10  Bruno Haible  <bruno@clisp.org>
31321
31322         vasnprintf: Fix multiple test failures on mingw.
31323         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31324         _snprintf, or snwprintf, not _snwprintf.
31325
31326 2010-04-10  Bruno Haible  <bruno@clisp.org>
31327
31328         write: Fix a C++ test error on mingw.
31329         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31330
31331 2010-04-10  Bruno Haible  <bruno@clisp.org>
31332
31333         vasnprintf test: Reduce code duplication.
31334         * tests/test-vasnprintf.c (test_function): New function, extracted from
31335         test_vasnprintf.
31336         (test_vasnprintf, test_asnprintf): Invoke it.
31337
31338 2010-04-10  Bruno Haible  <bruno@clisp.org>
31339
31340         strnlen: Fix warning in C++ mode on MacOS X.
31341         * lib/string.in.h (strnlen): Use the modern idiom.
31342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31343         defining strnlen as a macro already in <config.h>.
31344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31345         REPLACE_STRNLEN.
31346         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31348
31349 2010-04-08  James Youngman  <jay@gnu.org>
31350
31351         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31352         the example.
31353
31354 2010-04-09  Jim Meyering  <meyering@redhat.com>
31355
31356         maint.mk: print better diagnostic when there is no $(_hv_file)
31357         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31358         announce that when $(_hv_file) (aka help-version) does not exist.
31359
31360         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31361         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31362         not try to interpret its random input bytes.  Jarno Rajahalme reported
31363         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31364         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31365         (mktempd_): Likewise, just in case.
31366
31367         ftruncate: add two years to projected module removal date: 2012
31368         * m4/ftruncate.m4: Adjust comments.
31369
31370         ftruncate: mark module as obsolete; even MinGW provides it, now
31371         * modules/ftruncate (Status): Obsolete.
31372         (Notice): Say that.
31373         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31374         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31375
31376 2010-04-08  Bruno Haible  <bruno@clisp.org>
31377
31378         Fix side effects from tests-related modules.
31379         * modules/dprintf-posix (Comment): New section.
31380         * modules/fprintf-posix (Comment): Likewise.
31381         * modules/obstack-printf-posix (Comment): Likewise.
31382         * modules/printf-posix (Comment): Likewise.
31383         * modules/snprintf-posix (Comment): Likewise.
31384         * modules/sprintf-posix (Comment): Likewise.
31385         * modules/vasnprintf-posix (Comment): Likewise.
31386         * modules/vasprintf-posix (Comment): Likewise.
31387         * modules/vdprintf-posix (Comment): Likewise.
31388         * modules/vfprintf-posix (Comment): Likewise.
31389         * modules/vprintf-posix (Comment): Likewise.
31390         * modules/vsnprintf-posix (Comment): Likewise.
31391         * modules/vsprintf-posix (Comment): Likewise.
31392         * modules/xprintf-posix (Comment): Likewise.
31393         * modules/xvasprintf-posix (Comment): Likewise.
31394         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31395         * modules/floorf-tests (Depends-on): Likewise.
31396         * modules/round-tests (Depends-on): Likewise.
31397         * modules/roundf-tests (Depends-on): Likewise.
31398         * modules/trunc-tests (Depends-on): Likewise.
31399         * modules/truncf-tests (Depends-on): Likewise.
31400         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31401         'fprintf-posix' module is not present.
31402         * tests/test-floorf2.c (check): Likewise.
31403         * tests/test-trunc2.c (check): Likewise.
31404         * tests/test-truncf2.c (check): Likewise.
31405         * tests/test-round2.c (equal): Likewise.
31406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31407
31408 2010-04-07  Karl Berry  <karl@gnu.org>
31409
31410         * config/srclist.txt,
31411         * config/srclistvars.sh,
31412         * config/srclist-update: doc fixes.
31413
31414 2010-04-07  Jim Meyering  <meyering@redhat.com>
31415
31416         maint.mk: add a PATH crosschecking syntax-check rule
31417         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31418         Useful if you use a test like the one in help-version (coreutils,
31419         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31420         printed by prog --version.
31421
31422 2010-04-06  Bruno Haible  <bruno@clisp.org>
31423
31424         Fix link error on mingw.
31425         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31426         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31427
31428 2010-04-06  Bruno Haible  <bruno@clisp.org>
31429
31430         Assume rmdir exists.
31431         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31432
31433 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31434
31435         doc: update users.txt
31436         * users.txt: Add gcal.
31437
31438 2010-04-06  Jim Meyering  <meyering@redhat.com>
31439
31440         init.sh: simply unset TMPDIR rather than risking env -i
31441         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31442         although it probably works fine on all Unix-based systems, some
31443         systems (Cygwin?) cannot tolerate a totally cleared environment.
31444         Suggestion from Eric Blake.
31445
31446 2010-04-06  Jim Meyering  <meyering@redhat.com>
31447
31448         init.sh: portability fix: use env's POSIX-specified -i option not -u
31449         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31450         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31451
31452 2010-04-05  Bruno Haible  <bruno@clisp.org>
31453
31454         btowc: Work around Cygwin 1.7.2 bug.
31455         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31456         does not map NUL to 0.
31457         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31458
31459 2010-04-05  Bruno Haible  <bruno@clisp.org>
31460
31461         Make the multithread modules work on Cygwin 1.7.2.
31462         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31463         imported symbols can be declared weak, so that it returns "no" on
31464         Cygwin 1.7.2.
31465
31466 2010-04-05  Bruno Haible  <bruno@clisp.org>
31467
31468         Use the module 'strncat'.
31469         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31470
31471         Tests for module 'strncat'.
31472         * modules/strncat-tests: New file.
31473         * tests/test-strncat.c: New file.
31474
31475         New module 'strncat'.
31476         * lib/string.in.h (strncat): New declaration.
31477         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31478         * m4/strncat.m4: New file, based on m4/memchr.m4.
31479         * modules/strncat: New file.
31480         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31481         is declared.
31482         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31483         REPLACE_STRNCAT.
31484         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31485         REPLACE_STRNCAT.
31486         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31487         module.
31488         * tests/test-string-c++.cc: Check signature of strncat.
31489
31490 2010-04-05  Jim Meyering  <meyering@redhat.com>
31491
31492         xstrtoumax-tests: convert to use init.sh
31493         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31494         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31495         Use Exit, not exit.
31496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31497
31498         xstrtoimax-tests: convert to use init.sh
31499         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31500         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31501         Use Exit, not exit.
31502         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31503
31504 2010-04-05  Bruno Haible  <bruno@clisp.org>
31505
31506         sys_socket: Avoid #define replacements in C++ mode.
31507         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31508         warning to the function if possible, rather than #defining the symbol
31509         to a dysfunctional alias.
31510
31511 2010-04-05  Bruno Haible  <bruno@clisp.org>
31512
31513         fseeko: Fix C++ test error on mingw.
31514         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31515         gl_FUNC_FSEEKO.
31516         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31517         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31518         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31519         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31520
31521 2010-04-05  Bruno Haible  <bruno@clisp.org>
31522
31523         duplocale: Improve test output.
31524         * tests/test-duplocale.c (main): Print reason for skipped test.
31525
31526 2010-04-05  Bruno Haible  <bruno@clisp.org>
31527
31528         Assume rmdir exists.
31529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31530         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31531
31532 2010-04-05  Bruno Haible  <bruno@clisp.org>
31533
31534         Fix link error on Solaris 8 with cc.
31535         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31536
31537 2010-04-05  Bruno Haible  <bruno@clisp.org>
31538
31539         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31540         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31541
31542 2010-04-05  Bruno Haible  <bruno@clisp.org>
31543
31544         vasprintf: Update documentation.
31545         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31546
31547 2010-04-05  Bruno Haible  <bruno@clisp.org>
31548
31549         ptsname: Improve test.
31550         * tests/test-ptsname.c (main): Also try the various master names of BSD
31551         systems.
31552
31553 2010-04-05  Bruno Haible  <bruno@clisp.org>
31554
31555         memchr: Avoid a possible C++ test error.
31556         * lib/string.in.h (memchr): Provide declaration if function is missing.
31557         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31558         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31560         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31561
31562 2010-04-05  Bruno Haible  <bruno@clisp.org>
31563
31564         strtok_r: Improve idiom.
31565         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31566         AC_LIBOBJ is used.
31567
31568 2010-04-05  Bruno Haible  <bruno@clisp.org>
31569
31570         strdup: Improve idiom.
31571         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31572         AC_LIBOBJ is used.
31573         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31574         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31575         when AC_LIBOBJ is used.
31576
31577 2010-04-05  Bruno Haible  <bruno@clisp.org>
31578
31579         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31580         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31581         don't set REPLACE_MBSINIT to 1.
31582         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31583         don't set REPLACE_MBRTOWC to 1.
31584         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31585         exist, don't set REPLACE_MBSRTOWCS to 1.
31586         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31587         exist, don't set REPLACE_MBSNRTOWCS to 1.
31588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31589         don't set REPLACE_WCRTOMB to 1.
31590         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31591         exist, don't set REPLACE_WCSRTOMBS to 1.
31592         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31593         exist, don't set REPLACE_WCSNRTOMBS to 1.
31594
31595 2010-04-05  Bruno Haible  <bruno@clisp.org>
31596
31597         ldexpl: Improve idiom.
31598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31599         make sure to set HAVE_DECL_LDEXPL to 0.
31600
31601 2010-04-05  Jim Meyering  <meyering@redhat.com>
31602
31603         xstrtol-tests: convert to use init.sh
31604         * modules/xstrtol-tests (Files): Add tests/init.sh.
31605         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31606         Use Exit, not exit.
31607         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31608
31609         atexit-tests: convert to use init.sh
31610         * modules/atexit-tests (Files): Add tests/init.sh.
31611         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31612         Use Exit, not exit.
31613         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31614
31615         init.sh: fix typo
31616         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31617
31618         init.sh: make it easier for a test script to write to the tty, ...
31619         when using automake's parallel-tests mode.
31620         * tests/init.sh (stderr_fileno_): Define overridable variable.
31621         (warn_): New function, to use it.
31622         (fail_, skip_, framework_failure_): Use warn_.
31623
31624 2010-04-04  Bruno Haible  <bruno@clisp.org>
31625
31626         btowc: Avoid warning.
31627         * lib/btowc.c: Include <stdlib.h>.
31628         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31629
31630 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31631             Bruno Haible  <bruno@clisp.org>
31632
31633         wchar: Port to NetBSD 1.5.
31634         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31635         * lib/wctype.in.h (WEOF): Likewise.
31636
31637 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31638             Bruno Haible  <bruno@clisp.org>
31639
31640         Port extended stdio to NetBSD 1.5.
31641         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31642         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31643         older.
31644
31645 2010-04-04  Bruno Haible  <bruno@clisp.org>
31646
31647         string: Remove unused substitution.
31648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31649         HAVE_DECL_STRERROR.
31650         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31651
31652 2010-04-04  Bruno Haible  <bruno@clisp.org>
31653
31654         strtod: Avoid a possible C++ test error.
31655         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31656         set REPLACE_STRTOD.
31657
31658 2010-04-04  Bruno Haible  <bruno@clisp.org>
31659
31660         strerror: Update documentation.
31661         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31662
31663 2010-04-04  Bruno Haible  <bruno@clisp.org>
31664
31665         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31666         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31667         _GL_CXXALIAS_SYS_CAST.
31668
31669 2010-04-04  Bruno Haible  <bruno@clisp.org>
31670
31671         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31672         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31673         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31674         REPLACE_FREXPL to 1.
31675         * doc/posix-functions/frexpl.texi: Update documentation.
31676
31677 2010-04-04  Bruno Haible  <bruno@clisp.org>
31678
31679         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31680         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31681
31682 2010-04-04  Bruno Haible  <bruno@clisp.org>
31683
31684         Implement nanosleep for native Windows.
31685         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31686
31687 2010-04-04  Bruno Haible  <bruno@clisp.org>
31688
31689         math: Fix some C++ test errors on Solaris 8.
31690         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31691
31692 2010-04-04  Bruno Haible  <bruno@clisp.org>
31693
31694         math: Fix some C++ test errors on Cygwin.
31695         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31696         truncl): Provide declaration if the system does not have it.
31697         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31698         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31699         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31700         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31701         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31702         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31703         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31704         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31705         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31706         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31707         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31708         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31709         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31710         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31711         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31712         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31714         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31715         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31716         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31717         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31718         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31719
31720 2010-04-04  Bruno Haible  <bruno@clisp.org>
31721
31722         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31723         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31724         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31725         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31726         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31727         * m4/isinf.m4 (gl_ISINF): Likewise.
31728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31729
31730 2010-04-04  Bruno Haible  <bruno@clisp.org>
31731
31732         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31733         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31734
31735 2010-04-04  Bruno Haible  <bruno@clisp.org>
31736
31737         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31738         * modules/tmpfile (configure.ac): Update.
31739
31740         tmpfile: Fix C++ test error on mingw.
31741         * lib/stdio.in.h (tmpfile): New declaration.
31742         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31743         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31744         * modules/tmpfile (Depends-on): Add stdio.
31745         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31746         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31747         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31748         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31749         REPLACE_TMPFILE.
31750         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31751
31752 2010-04-04  Bruno Haible  <bruno@clisp.org>
31753
31754         ioctl: Fix C++ test error on mingw.
31755         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31756         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31757         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31758
31759 2010-04-03  Bruno Haible  <bruno@clisp.org>
31760
31761         wcwidth: Fix C++ test error on mingw.
31762         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31764         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31765
31766 2010-04-03  Bruno Haible  <bruno@clisp.org>
31767
31768         nanosleep: Fix C++ test error on mingw.
31769         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31770         * lib/time.in.h (nanosleep): Use modern idiom.
31771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31772         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31773         REPLACE_NANOSLEEP to 1.
31774         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31775         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31776
31777 2010-04-03  Bruno Haible  <bruno@clisp.org>
31778
31779         strptime: Fix C++ test error on mingw.
31780         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31781         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31782         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31783         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31785         not REPLACE_STRPTIME.
31786         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31787         REPLACE_STRPTIME.
31788
31789 2010-04-03  Bruno Haible  <bruno@clisp.org>
31790
31791         timegm: Fix C++ test error on mingw.
31792         * lib/time.in.h (timegm): Use modern idiom.
31793         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31794         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31796         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31797
31798 2010-04-03  Bruno Haible  <bruno@clisp.org>
31799
31800         timegm: Assume declaration if function exists.
31801         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31802         if it exists. Don't clobber ac_cv_func_timegm.
31803
31804 2010-04-03  Bruno Haible  <bruno@clisp.org>
31805
31806         time_r: Fix C++ test error on mingw.
31807         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31808         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31809         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31811         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31812
31813 2010-04-03  Bruno Haible  <bruno@clisp.org>
31814
31815         time_r: Minor updates.
31816         * modules/time_r (Description): Mention the provided functions.
31817         * lib/time_r.c: Don't include <string.h>.
31818         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31819         * doc/posix-functions/localtime_r.texi: Likewise.
31820
31821 2010-04-03  Bruno Haible  <bruno@clisp.org>
31822
31823         time: Fix regression introduced on 2010-03-08.
31824         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31825         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31826
31827 2010-04-03  Jim Meyering  <meyering@redhat.com>
31828
31829         maint.mk: don't silently disable project-specific syntax-check rules
31830         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31831         that they need to convert their project-specific syntax-check rules
31832         to use the new _sc_search_regexp.
31833
31834 2010-04-03  Bruno Haible  <bruno@clisp.org>
31835
31836         fchdir: Fix regression introduced on 2010-03-08.
31837         * lib/unistd.in.h (fchdir): Fix declaration.
31838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31840         REPLACE_FCHDIR.
31841         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31842         REPLACE_FCHDIR.
31843
31844 2010-04-03  Bruno Haible  <bruno@clisp.org>
31845
31846         getpagesize: Fix C++ test error on mingw.
31847         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31848         system does not declare the function.
31849         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31850         declared.
31851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31852         HAVE_DECL_GETPAGESIZE.
31853         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31854
31855 2010-04-03  Bruno Haible  <bruno@clisp.org>
31856
31857         stdio: Make C++ tests work on mingw.
31858         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31859         does not declare the function.
31860
31861 2010-04-03  Bruno Haible  <bruno@clisp.org>
31862
31863         ftello: Fix C++ test error on mingw.
31864         * lib/stdio.in.h (ftello): Use modern idiom.
31865         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31866         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31867         is missing and that it needs to be replaced.
31868         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31870         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31871
31872 2010-04-03  Bruno Haible  <bruno@clisp.org>
31873
31874         fseeko: Fix C++ test error on mingw.
31875         * lib/stdio.in.h (fseeko): Use modern idiom.
31876         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31878         is missing and that it needs to be replaced.
31879         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31881         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31882
31883 2010-04-03  Bruno Haible  <bruno@clisp.org>
31884
31885         mkstemp: Fix C++ test error on mingw.
31886         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31888         function is missing and that it needs to be replaced.
31889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31890         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31891
31892 2010-04-03  Bruno Haible  <bruno@clisp.org>
31893
31894         stpncpy: Fix C++ test error on mingw.
31895         * lib/string.in.h (stpncpy): Use modern idiom.
31896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31897         function is missing and that it needs to be replaced.
31898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31899         REPLACE_STPNCPY.
31900         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31901
31902 2010-04-03  Bruno Haible  <bruno@clisp.org>
31903
31904         sys_stat: Fix C++ test error on mingw.
31905         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31906         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31907
31908 2010-04-03  Bruno Haible  <bruno@clisp.org>
31909
31910         pty: Update doc.
31911         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31912
31913 2010-04-03  Bruno Haible  <bruno@clisp.org>
31914
31915         unistd: Fix C++ test error on mingw.
31916         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31917
31918 2010-04-03  Bruno Haible  <bruno@clisp.org>
31919
31920         Update doc regarding mingw.
31921         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31922         * doc/glibc-functions/login_tty.texi: Likewise.
31923         * doc/glibc-functions/forkpty.texi: Likewise.
31924
31925 2010-04-03  Bruno Haible  <bruno@clisp.org>
31926
31927         stdlib: Avoid compilation failure of c-strtold on mingw.
31928         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31929
31930 2010-04-03  Bruno Haible  <bruno@clisp.org>
31931
31932         locale: Make C++ tests work on Cygwin and mingw.
31933         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31934         cannot provide the function.
31935         Reported by Simon Josefsson.
31936
31937 2010-04-03  Bruno Haible  <bruno@clisp.org>
31938
31939         localename: Port to MacOS X 10.6.
31940         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31941         memory layout of the locales in MacOS X 10.6 as well.
31942         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31943
31944 2010-04-02  Bruno Haible  <bruno@clisp.org>
31945
31946         gnulib-tool: Ensure that long-running tests are executed last.
31947         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31948         running tests after the one for the other tests.
31949
31950 2010-04-02  Bruno Haible  <bruno@clisp.org>
31951
31952         gnulib-tool: Ensure the tests in the main directory are executed first.
31953         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31954         start with the current directory.
31955
31956 2010-04-02  Bruno Haible  <bruno@clisp.org>
31957
31958         Tests for module 'havelib', moved here from GNU gettext.
31959         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31960         modifications.
31961         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31962         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31963         with modifications.
31964         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31965         modifications.
31966         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31967         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31968         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31969         with modifications.
31970         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31971         with modifications.
31972         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31973         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31974         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31975         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31976         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31977         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31978         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31979         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31980         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31981         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31982         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31983         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31984         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31985         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31986         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31987         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31988         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31989         with modifications.
31990         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31991         with modifications.
31992         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31993         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31994         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31995         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31996         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31997         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31998         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31999         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32000         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32001         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32002         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32003         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32004         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32005         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32006         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32007         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32008         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32009         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32010         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32011         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32012         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32013         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32014         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32015         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32016         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32017         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32018         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32019         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32020         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32021         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32022         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32023         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32024         * tests/havelib/rpathx/rpathx.c: New file, from
32025         gettext/autoconf-lib-link.
32026         * tests/havelib/rpathx/Makefile.am: New file, from
32027         gettext/autoconf-lib-link.
32028         * tests/havelib/rpathx/configure.ac: New file, from
32029         gettext/autoconf-lib-link with modifications.
32030         * tests/havelib/rpathy/rpathy.c: New file, from
32031         gettext/autoconf-lib-link.
32032         * tests/havelib/rpathy/Makefile.am: New file, from
32033         gettext/autoconf-lib-link.
32034         * tests/havelib/rpathy/configure.ac: New file, from
32035         gettext/autoconf-lib-link with modifications.
32036         * tests/havelib/rpathz/rpathz.c: New file, from
32037         gettext/autoconf-lib-link.
32038         * tests/havelib/rpathz/Makefile.am: New file, from
32039         gettext/autoconf-lib-link.
32040         * tests/havelib/rpathz/configure.ac: New file, from
32041         gettext/autoconf-lib-link with modifications.
32042         * tests/havelib/rpathlx/usex.c: New file, from
32043         gettext/autoconf-lib-link.
32044         * tests/havelib/rpathlx/Makefile.am: New file, from
32045         gettext/autoconf-lib-link.
32046         * tests/havelib/rpathlx/configure.ac: New file, from
32047         gettext/autoconf-lib-link with modifications.
32048         * tests/havelib/rpathly/usey.c: New file, from
32049         gettext/autoconf-lib-link.
32050         * tests/havelib/rpathly/Makefile.am: New file, from
32051         gettext/autoconf-lib-link.
32052         * tests/havelib/rpathly/configure.ac: New file, from
32053         gettext/autoconf-lib-link with modifications.
32054         * tests/havelib/rpathlz/usez.c: New file, from
32055         gettext/autoconf-lib-link.
32056         * tests/havelib/rpathlz/Makefile.am: New file, from
32057         gettext/autoconf-lib-link.
32058         * tests/havelib/rpathlz/configure.ac: New file, from
32059         gettext/autoconf-lib-link with modifications.
32060         * tests/havelib/rpathlyx/usey.c: New file, from
32061         gettext/autoconf-lib-link.
32062         * tests/havelib/rpathlyx/Makefile.am: New file, from
32063         gettext/autoconf-lib-link.
32064         * tests/havelib/rpathlyx/configure.ac: New file, from
32065         gettext/autoconf-lib-link with modifications.
32066         * tests/havelib/rpathlzyx/usez.c: New file, from
32067         gettext/autoconf-lib-link.
32068         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32069         gettext/autoconf-lib-link.
32070         * tests/havelib/rpathlzyx/configure.ac: New file, from
32071         gettext/autoconf-lib-link with modifications.
32072         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32073         with modifications.
32074
32075 2010-04-02  Bruno Haible  <bruno@clisp.org>
32076
32077         gnulib-tool: Create distributed built sources also for the tests.
32078         * gnulib-tool (func_create_testdir): Also generate distributed built
32079         sources in the tests directory.
32080
32081 2010-04-02  Bruno Haible  <bruno@clisp.org>
32082
32083         gnulib-tool: Obey user's environment variables.
32084         * gnulib-tool (func_create_testdir): When creating built sources,
32085         respect the environment variables for autoconf, automake, etc. given by
32086         the user.
32087
32088 2010-04-02  Bruno Haible  <bruno@clisp.org>
32089
32090         gnulib-tool: Provide the value of --m4-base to modules.
32091         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32092         of gl_m4_base.
32093
32094 2010-04-02  Eric Blake  <eblake@redhat.com>
32095
32096         maint.mk: fix some fallout
32097         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32098         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32099
32100 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32101
32102         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32103         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32104         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32105         (sc_cast_of_x_alloc_return_value): Likewise.
32106         (sc_cast_of_alloca_return_value): Likewise.
32107         (sc_space_tab): Likewise.
32108         (sc_prohibit_atoi_atof): Likewise.
32109         (sc_prohibit_magic_number_exit): Likewise.
32110         (sc_error_exit_success): Likewise.
32111         (sc_file_system): Likewise.
32112         (sc_prohibit_have_config_h): Likewise.
32113         (sc_require_config_h): Likewise.
32114         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32115         (sc_obsolete_symbols): Likewise.
32116         (sc_changelog): Likewise.
32117         (sc_program_name): Likewise.
32118         (sc_the_the): Likewise.
32119         (sc_trailing_blank): Likewise.
32120         (sc_two_space_separator_in_usage): Likewise.
32121         (sc_useless_cpp_parens): Likewise.
32122         (sc_GPL_version): Likewise.
32123         (sc_GFDL_version): Likewise.
32124         (sc_texinfo_acronym): Likewise.
32125         (sc_prohibit_cvs_keyword): Likewise.
32126         (sc_prohibit_stat_st_blocks): Likewise.
32127         (sc_prohibit_S_IS_definition): Likewise.
32128         (sc_redundant_const): Likewise.
32129         (sc_makefile_TAB_only_indentation): Likewise.
32130         (sc_m4_quote_check): Likewise.
32131         (sc_makefile_path_separator_check): Likewise.
32132         (sc_copyright_check): Likewise.
32133         (sc_Wundef_boolean): Likewise.
32134         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32135
32136         maint.mk: match 0 or more whitespace-before-function-call '('
32137         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32138         that have zero or two-and-more spaces between the function name
32139         and the open parenthesis.
32140         (sc_error_message_warn_fatal): Likewise.
32141         (sc_error_message_uppercase): Likewise.
32142         (sc_error_message_period): Likewise.
32143
32144 2010-03-31  Eric Blake  <eblake@redhat.com>
32145
32146         maint.mk: check for [ as well as test
32147         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32148         Based on a libvirt report by Matthias Bolte.
32149
32150         gnumakefile: don't squelch _version output
32151         * top/GNUmakefile (_version): Create one-shot dependency rather
32152         than using $(shell) when version must be regenerated.
32153         (_autoreconf): Run verbosely, by default.
32154
32155         sys_time: avoid compiler warnings
32156         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32157         unconditional, fixing regression from 2010-03-29.
32158         Reported by Simon Josefsson.
32159
32160 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32161
32162         maint.mk: s/_header_without_use/_sc_header_without_use/
32163         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32164         (sc_prohibit_assert_without_use): Use the new name.
32165         (sc_prohibit_close_stream_without_use): Likewise.
32166         (sc_prohibit_getopt_without_use): Likewise.
32167         (sc_prohibit_quotearg_without_use): Likewise.
32168         (sc_prohibit_quote_without_use): Likewise.
32169         (sc_prohibit_long_options_without_use): Likewise.
32170         (sc_prohibit_inttostr_without_use): Likewise.
32171         (sc_prohibit_ignore_value_without_use): Likewise.
32172         (sc_prohibit_error_without_use): Likewise.
32173         (sc_prohibit_xalloc_without_use): Likewise.
32174         (sc_prohibit_hash_without_use): Likewise.
32175         (sc_prohibit_hash_pjw_without_use): Likewise.
32176         (sc_prohibit_safe_read_without_use): Likewise.
32177         (sc_prohibit_argmatch_without_use): Likewise.
32178         (sc_prohibit_canonicalize_without_use): Likewise.
32179         (sc_prohibit_root_dev_ino_without_use): Likewise.
32180         (sc_prohibit_openat_without_use): Likewise.
32181         (sc_prohibit_c_ctype_without_use): Likewise.
32182         (sc_prohibit_signal_without_use): Likewise.
32183         (sc_prohibit_intprops_without_use): Likewise.
32184
32185 2010-03-30  Eric Blake  <eblake@redhat.com>
32186
32187         maint: improve module indicators
32188         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32189         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32190         columns, and avoid extra macro expansion.
32191
32192         fdopendir: work around FreeBSD bug
32193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32195         * modules/dirent (Makefile.am): Substitute it.
32196         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32197         declaration.
32198         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32199         fix.
32200         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32201
32202 2010-03-29  Bruno Haible  <bruno@clisp.org>
32203
32204         Emit #pragma system_header after the inclusion guard, not before.
32205         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32206         guard that spans the entire file, not before. This enables an
32207         optimization in GCC's preprocessor.
32208         * lib/ctype.in.h: Likewise.
32209         * lib/dirent.in.h: Likewise.
32210         * lib/errno.in.h: Likewise.
32211         * lib/float.in.h: Likewise.
32212         * lib/getopt.in.h: Likewise.
32213         * lib/iconv.in.h: Likewise.
32214         * lib/langinfo.in.h: Likewise.
32215         * lib/locale.in.h: Likewise.
32216         * lib/math.in.h: Likewise.
32217         * lib/netdb.in.h: Likewise.
32218         * lib/netinet_in.in.h: Likewise.
32219         * lib/pty.in.h: Likewise.
32220         * lib/sched.in.h: Likewise.
32221         * lib/se-selinux.in.h: Likewise.
32222         * lib/search.in.h: Likewise.
32223         * lib/spawn.in.h: Likewise.
32224         * lib/stdarg.in.h: Likewise.
32225         * lib/stdint.in.h: Likewise.
32226         * lib/string.in.h: Likewise.
32227         * lib/strings.in.h: Likewise.
32228         * lib/sys_file.in.h: Likewise.
32229         * lib/sys_ioctl.in.h: Likewise.
32230         * lib/sys_time.in.h: Likewise.
32231         * lib/sys_times.in.h: Likewise.
32232         * lib/sys_utsname.in.h: Likewise.
32233         * lib/sys_wait.in.h: Likewise.
32234         * lib/sysexits.in.h: Likewise.
32235         * lib/wctype.in.h: Likewise.
32236
32237 2010-03-28  James Youngman  <jay@gnu.org>
32238
32239         save-cwd: don't leak a file descriptor when the caller execs.
32240         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32241         saved file descriptor.
32242         * modules/save-cwd (Depends-on): Depend on cloexec.
32243
32244 2010-03-29  Bruno Haible  <bruno@clisp.org>
32245
32246         Remove vestiges of fts-lgpl module.
32247         * lib/fts_.h: Assume GNULIB_FTS is 1.
32248         * lib/fts.c: Likewise.
32249         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32250
32251 2010-03-28  Bruno Haible  <bruno@clisp.org>
32252
32253         Fix definition of tests witness macro.
32254         * gnulib-tool (func_import): Fix definition of witness macro.
32255
32256 2010-03-28  Bruno Haible  <bruno@clisp.org>
32257
32258         Fix ioctl's protoype on glibc systems.
32259         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32260         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32261         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32262         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32263         signature. If not, arrange to replace the ioctl function.
32264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32265         REPLACE_IOCTL.
32266         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32267         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32268         Reported by Ludovic Courtès <ludo@gnu.org>.
32269
32270 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32271
32272         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32273         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32274         made it so grep -r --include=GLOB* ... did not work.
32275
32276 2010-03-26  Jim Meyering  <meyering@redhat.com>
32277             Eric Blake  <eblake@redhat.com>
32278
32279         maint.mk: prohibit use of test's -o and -a operators
32280         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32281
32282 2010-03-28  Bruno Haible  <bruno@clisp.org>
32283
32284         Remove unused GNULIB_XYZ macro definitions.
32285         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32286         invocation.
32287
32288 2010-03-28  Bruno Haible  <bruno@clisp.org>
32289
32290         Mark privileged tests modules.
32291         * modules/idpriv-drop-tests (Status): New section.
32292         * modules/idpriv-droptemp-tests (Status): New section.
32293
32294 2010-03-28  Bruno Haible  <bruno@clisp.org>
32295
32296         Split C++ tests into separate tests modules.
32297         * modules/dirent-c++-tests: New file, extracted from
32298         modules/dirent-tests.
32299         * modules/dirent-tests: Depend on it.
32300         * modules/fcntl-h-c++-tests: New file, extracted from
32301         modules/fcntl-h-tests.
32302         * modules/fcntl-h-tests: Depend on it.
32303         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32304         * modules/glob-tests: Depend on it.
32305         * modules/iconv-h-c++-tests: New file, extracted from
32306         modules/iconv-h-tests.
32307         * modules/iconv-h-tests: Depend on it.
32308         * modules/langinfo-c++-tests: New file, extracted from
32309         modules/langinfo-tests.
32310         * modules/langinfo-tests: Depend on it.
32311         * modules/locale-c++-tests: New file, extracted from
32312         modules/locale-tests.
32313         * modules/locale-tests: Depend on it.
32314         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32315         * modules/math-tests: Depend on it.
32316         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32317         * modules/pty-tests: Depend on it.
32318         * modules/search-c++-tests: New file, extracted from
32319         modules/search-tests.
32320         * modules/search-tests: Depend on it.
32321         * modules/signal-c++-tests: New file, extracted from
32322         modules/signal-tests.
32323         * modules/signal-tests: Depend on it.
32324         * modules/spawn-c++-tests: New file, extracted from
32325         modules/spawn-tests.
32326         * modules/spawn-tests: Depend on it.
32327         * modules/stdio-c++-tests: New file, extracted from
32328         modules/stdio-tests.
32329         * modules/stdio-tests: Depend on it.
32330         * modules/stdlib-c++-tests: New file, extracted from
32331         modules/stdlib-tests.
32332         * modules/stdlib-tests: Depend on it.
32333         * modules/string-c++-tests: New file, extracted from
32334         modules/string-tests.
32335         * modules/string-tests: Depend on it.
32336         * modules/sys_ioctl-c++-tests: New file, extracted from
32337         modules/sys_ioctl-tests.
32338         * modules/sys_ioctl-tests: Depend on it.
32339         * modules/sys_select-c++-tests: New file, extracted from
32340         modules/sys_select-tests.
32341         * modules/sys_select-tests: Depend on it.
32342         * modules/sys_socket-c++-tests: New file, extracted from
32343         modules/sys_socket-tests.
32344         * modules/sys_socket-tests: Depend on it.
32345         * modules/sys_stat-c++-tests: New file, extracted from
32346         modules/sys_stat-tests.
32347         * modules/sys_stat-tests: Depend on it.
32348         * modules/sys_time-c++-tests: New file, extracted from
32349         modules/sys_time-tests.
32350         * modules/sys_time-tests: Depend on it.
32351         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32352         * modules/time-tests: Depend on it.
32353         * modules/unistd-c++-tests: New file, extracted from
32354         modules/unistd-tests.
32355         * modules/unistd-tests: Depend on it.
32356         * modules/wchar-c++-tests: New file, extracted from
32357         modules/wchar-tests.
32358         * modules/wchar-tests: Depend on it.
32359         * modules/wctype-c++-tests: New file, extracted from
32360         modules/wctype-tests.
32361         * modules/wctype-tests: Depend on it.
32362         Reported by Simon Josefsson.
32363
32364 2010-03-28  Bruno Haible  <bruno@clisp.org>
32365
32366         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32367         * gnulib-tool (func_exists_module): New function, extracted from
32368         func_verify_module.
32369         (func_verify_module): Use it.
32370         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32371         'foo' only if 'foo' exists.
32372         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32373         module.
32374
32375 2010-03-28  Bruno Haible  <bruno@clisp.org>
32376
32377         gnulib-tool: Add support for special categories of tests.
32378         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32379         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32380         (func_usage): Document them.
32381         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32382         inc_unportable_tests, inc_all_tests): New variables.
32383         (func_acceptable): Consider these variables.
32384         (func_modules_transitive_closure): Make it work when the 'Status' field
32385         consists of multiple words.
32386         (func_import): Store and restore the values of inc_cxx_tests,
32387         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32388         inc_all_tests in gnulib-comp.m4.
32389         (func_create_testdir): Set inc_all_tests to true.
32390         * doc/gnulib.texi (Extra tests modules): New section.
32391         Suggested by Jim Meyering.
32392
32393 2010-03-28  Bruno Haible  <bruno@clisp.org>
32394
32395         ansi-c++-opt: Allow turning off the C++ build by default.
32396         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32397         gl_CXX_CHOICE_DEFAULT_NO is defined.
32398         Requested by Eric Blake.
32399
32400 2010-03-28  Bruno Haible  <bruno@clisp.org>
32401
32402         unistd: Avoid #define replacements in C++ mode.
32403         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32404         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32405         setsockopt, shutdown, select): In C++, attach a warning to the function
32406         if possible, rather than #defining the symbol to a dysfunctional alias.
32407         Reported by John W. Eaton <jwe@gnu.org>.
32408
32409 2010-03-28  Bruno Haible  <bruno@clisp.org>
32410
32411         Fix link errors on mingw.
32412         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32413         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32414         $(LIBSOCKET).
32415         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32416         $(LIBSOCKET).
32417
32418 2010-03-28  Bruno Haible  <bruno@clisp.org>
32419             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32420
32421         lib-ignore: Determine different options for different compilers.
32422         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32423         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32424         Add comments.
32425         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32426         * NEWS: Mention the change.
32427
32428 2010-03-27  Bruno Haible  <bruno@clisp.org>
32429
32430         Remove unused GNULIB_XYZ macro definitions.
32431         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32432         * modules/fseek (configure.ac): Likewise.
32433         * modules/ioctl (configure.ac): Likewise.
32434         * modules/open (configure.ac): Likewise.
32435         * modules/stdlib-safer (configure.ac): Likewise.
32436
32437 2010-03-27  Bruno Haible  <bruno@clisp.org>
32438
32439         Add a remark about certain modules.
32440         * modules/malloc (Comment): New section.
32441         * modules/realloc (Comment): Likewise.
32442         * modules/sigpipe (Comment): Likewise.
32443
32444 2010-03-27  Bruno Haible  <bruno@clisp.org>
32445
32446         Resolve conflict between the two kinds of module indicators.
32447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32448         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32449         * modules/canonicalize (configure.ac): Invoke
32450         gl_MODULE_INDICATOR_FOR_TESTS.
32451         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32452         GNULIB_XYZ.
32453         * tests/test-dirent-c++.cc: Likewise.
32454         * tests/test-dirent-safer.c: Likewise.
32455         * tests/test-dup2.c: Likewise.
32456         * tests/test-fchdir.c: Likewise.
32457         * tests/test-fcntl-h-c++.cc: Likewise.
32458         * tests/test-getopt.c: Likewise.
32459         * tests/test-getopt.h: Likewise.
32460         * tests/test-langinfo-c++.cc: Likewise.
32461         * tests/test-locale-c++.cc: Likewise.
32462         * tests/test-math-c++.cc: Likewise.
32463         * tests/test-pty-c++.cc: Likewise.
32464         * tests/test-search-c++.cc: Likewise.
32465         * tests/test-signal-c++.cc: Likewise.
32466         * tests/test-spawn-c++.cc: Likewise.
32467         * tests/test-stdio-c++.cc: Likewise.
32468         * tests/test-stdlib-c++.cc: Likewise.
32469         * tests/test-string-c++.cc: Likewise.
32470         * tests/test-sys_ioctl-c++.cc: Likewise.
32471         * tests/test-sys_select-c++.cc: Likewise.
32472         * tests/test-sys_socket-c++.cc: Likewise.
32473         * tests/test-sys_stat-c++.cc: Likewise.
32474         * tests/test-sys_time-c++.cc: Likewise.
32475         * tests/test-time-c++.cc: Likewise.
32476         * tests/test-unistd-c++.cc: Likewise.
32477         * tests/test-wchar-c++.cc: Likewise.
32478         * tests/uninorm/test-u8-nfc.c: Likewise.
32479         * tests/uninorm/test-u8-nfd.c: Likewise.
32480         * tests/uninorm/test-u8-nfkc.c: Likewise.
32481         * tests/uninorm/test-u8-nfkd.c: Likewise.
32482         * tests/uninorm/test-u16-nfc.c: Likewise.
32483         * tests/uninorm/test-u16-nfd.c: Likewise.
32484         * tests/uninorm/test-u16-nfkc.c: Likewise.
32485         * tests/uninorm/test-u16-nfkd.c: Likewise.
32486         * tests/uninorm/test-u32-nfc.c: Likewise.
32487         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32488         * tests/uninorm/test-u32-nfd.c: Likewise.
32489         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32490         * tests/uninorm/test-u32-nfkc.c: Likewise.
32491         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32492         * tests/uninorm/test-u32-nfkd.c: Likewise.
32493         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32494         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32495
32496 2010-03-27  Bruno Haible  <bruno@clisp.org>
32497
32498         Distinguish two kinds of module indicators.
32499         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32500         gl_MODULE_INDICATOR.
32501         (gl_MODULE_INDICATOR): New macro.
32502         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32503         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32504         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32505         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32506         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32507         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32508         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32509         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32510         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32511         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32512         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32513         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32516         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32519         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32520         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32521         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32522         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32523         * modules/cloexec (configure.ac): Likewise.
32524         * modules/getopt-gnu (configure.ac): Likewise.
32525         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32526         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32527         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32528         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32529
32530 2010-03-27  Bruno Haible  <bruno@clisp.org>
32531
32532         New module description field 'Comment'.
32533         * gnulib-tool: New option --extract-comment.
32534         (func_usage): Document it.
32535         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32536         (func_get_comment): New function.
32537         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32538
32539 2010-03-27  Bruno Haible  <bruno@clisp.org>
32540
32541         Addendum to 2010-02-07 commit.
32542         * gnulib-tool (func_usage): Document --extract-applicability option.
32543
32544 2010-03-27  Bruno Haible  <bruno@clisp.org>
32545
32546         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32547         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32548         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32549         rather than link errors.
32550
32551 2010-03-27  Bruno Haible  <bruno@clisp.org>
32552
32553         Avoid side effects from tests-related modules on the compilation of lib.
32554         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32555         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32556         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32557         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32558         macro.
32559         (func_import): Define a witness macro. Assign it a value that depends
32560         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32561         tests-related modules.
32562         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32563         Reported by Jim Meyering.
32564
32565 2010-03-27  Bruno Haible  <bruno@clisp.org>
32566
32567         Factorize common .m4 code.
32568         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32569         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32570         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32571         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32572         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32573         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32574         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32575         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32576         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32577         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32578         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32579         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32580         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32581         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32582         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32583         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32584         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32585         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32587         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32588         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32590         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32592         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32594         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32596         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32597         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32598         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32599         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32600
32601 2010-03-27  Bruno Haible  <bruno@clisp.org>
32602
32603         Fix a compilation error on Cygwin with g++ >= 4.3.
32604         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32605         if it is undefined or if we alias it to chmod.
32606         (lstat): Don't warn about the use of this function if it is undefined
32607         or if we alias it to stat.
32608         Reported by Simon Josefsson.
32609
32610 2010-03-27  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32613         * modules/getlogin (configure.ac): Update.
32614
32615         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32616         * modules/getlogin_r (configure.ac): Update.
32617
32618         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32619         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32620         * modules/inet_ntop (configure.ac): Update.
32621
32622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32623         * modules/inet_pton (configure.ac): Update.
32624
32625         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32626         * modules/mbslen (configure.ac): Update.
32627
32628         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32629         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32630         * modules/forkpty (configure.ac): Update.
32631         * modules/openpty (configure.ac): Update.
32632
32633 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32634
32635         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32636         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32637
32638 2010-03-25  Eric Blake  <eblake@redhat.com>
32639
32640         maint: use pragma consistently across replacement headers
32641         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32642         * lib/dirent.in.h (system_header): Likewise.
32643         * lib/errno.in.h (system_header): Likewise.
32644         * lib/float.in.h (system_header): Likewise.
32645         * lib/getopt.in.h (system_header): Likewise.
32646         * lib/iconv.in.h (system_header): Likewise.
32647         * lib/inttypes.in.h (system_header): Likewise.
32648         * lib/langinfo.in.h (system_header): Likewise.
32649         * lib/locale.in.h (system_header): Likewise.
32650         * lib/math.in.h (system_header): Likewise.
32651         * lib/netdb.in.h (system_header): Likewise.
32652         * lib/netinet_in.in.h (system_header): Likewise.
32653         * lib/pty.in.h (system_header): Likewise.
32654         * lib/sched.in.h (system_header): Likewise.
32655         * lib/se-selinux.in.h (system_header): Likewise.
32656         * lib/search.in.h (system_header): Likewise.
32657         * lib/spawn.in.h (system_header): Likewise.
32658         * lib/stdarg.in.h (system_header): Likewise.
32659         * lib/stdint.in.h (system_header): Likewise.
32660         * lib/string.in.h (system_header): Likewise.
32661         * lib/strings.in.h (system_header): Likewise.
32662         * lib/sys_file.in.h (system_header): Likewise.
32663         * lib/sys_ioctl.in.h (system_header): Likewise.
32664         * lib/sys_socket.in.h (system_header): Likewise.
32665         * lib/sys_times.in.h (system_header): Likewise.
32666         * lib/sys_utsname.in.h (system_header): Likewise.
32667         * lib/sys_wait.in.h (system_header): Likewise.
32668         * lib/sysexits.in.h (system_header): Likewise.
32669         * lib/unistd.in.h (system_header): Likewise.
32670         * lib/wctype.in.h (system_header): Likewise.
32671
32672         arpa/inet: fix mingw compilation warning
32673         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32674         Reported by Matthew Bolte.
32675
32676 2010-03-25  Bruno Haible  <bruno@clisp.org>
32677
32678         Avoid collision between gnulib wrapper and libintl wrapper.
32679         * lib/printf.c (printf): Don't define if a printf wrapper is already
32680         defined in intl/printf.c.
32681         Reported by Michel Boaventura <michel@michelboaventura.com>.
32682
32683 2010-03-25  Bruno Haible  <bruno@clisp.org>
32684
32685         Use ANSI C.
32686         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32687
32688 2010-03-25  Bruno Haible  <bruno@clisp.org>
32689
32690         Minor formatting changes.
32691         * lib/acosl.c: Insert space before function argument list.
32692         * lib/argz.c: Likewise.
32693         * lib/asinl.c: Likewise.
32694         * lib/expl.c: Likewise.
32695         * lib/gen-uni-tables.c: Likewise.
32696         * lib/gettext.h: Likewise.
32697         * lib/glthread/lock.h: Likewise.
32698         * lib/tanl.c: Likewise.
32699         * lib/uniname/uniname.c: Likewise.
32700         * tests/test-idpriv-drop.c: Likewise.
32701         * tests/test-idpriv-droptemp.c: Likewise.
32702         * tests/test-lock.c: Likewise.
32703         * tests/test-tls.c: Likewise.
32704         * lib/argp-help.c: Insert space before function-like macro argument
32705         list.
32706         * lib/memcmp.c: Likewise.
32707         * tests/test-base64.c: Likewise.
32708         * lib/localename.c: Insert space before sizeof's argument list.
32709         * lib/safe-alloc.h: Likewise.
32710         * lib/file-set.h: Insert space before macro argument list.
32711         * tests/test-argp.c: Likewise.
32712         * lib/argp-namefrob.h: Insert space before function parameter list.
32713         * lib/getaddrinfo.c: Likewise.
32714         * lib/netdb.in.h: Likewise.
32715         * lib/parse-duration.h: Likewise.
32716         * lib/parse-duration.c: Likewise.
32717         * lib/poll.c: Likewise.
32718         * lib/select.c: Likewise.
32719         * lib/trim.h: Likewise.
32720         * tests/test-usleep.c: Likewise.
32721         * lib/ldexpl.c: Insert space before function parameter list and before
32722         function argument list.
32723         * lib/logl.c: Likewise.
32724         * lib/sqrtl.c: Likewise.
32725         * lib/trim.c: Likewise.
32726         * lib/cosl.c: Use GNU style indentation. Insert space before function
32727         argument list.
32728         * lib/sinl.c: Likewise.
32729         * lib/tsearch.c: Insert space after 'for'.
32730         Reported by Jim Meyering.
32731
32732 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32733
32734         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32735         config header before grepping, as it's not present before
32736         autoreconf/configure are run.  Reported by Simon Josefsson.
32737
32738 2010-03-23  Bruno Haible  <bruno@clisp.org>
32739
32740         pt_chown: Make it work with automake < 1.11.
32741         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32742         Reported by Simon Josefsson.
32743
32744 2010-03-23  Bruno Haible  <bruno@clisp.org>
32745
32746         pt_chown: Don't depend on GPLed modules.
32747         * lib/pt_chown.c: Don't include idpriv.h.
32748         (main): Don't drop privileges.
32749         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32750         Reported by Simon Josefsson.
32751
32752 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32753
32754         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32755         suggestions from karl@freefriends.org (Karl Berry).
32756
32757 2010-03-22  Eric Blake  <eblake@redhat.com>
32758
32759         gethostname: further tweaks
32760         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32761         are overriding gethostname.
32762         Suggested by Bruno Haible.
32763
32764 2010-03-21  Bruno Haible  <bruno@clisp.org>
32765
32766         Fix comments.
32767         * lib/forkpty.c (rpl_forkpty): Fix comment.
32768         * lib/openpty.c (rpl_openpty): Likewise.
32769         Reported by Eric Blake.
32770
32771 2010-03-22  Eric Blake  <eblake@redhat.com>
32772
32773         gethostname: fix build on mingw
32774         * lib/unistd.in.h (includes): Work around fact that mingw
32775         <winsock2.h> re-includes <unistd.h>, by avoiding any
32776         redeclarations if we are being included by <winsock2.h>.
32777         Reported by Matthias Bolte.
32778
32779 2010-03-21  Bruno Haible  <bruno@clisp.org>
32780
32781         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32782         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32783         modifications.
32784         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32785         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32786         provide the replacement.
32787         * modules/forkpty (Depends-on): Add openpty, login_tty.
32788         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32789         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32790         * doc/glibc-functions/forkpty.texi: More supported platforms.
32791         * config/srclist.txt: Add forkpty.c (commented).
32792
32793 2010-03-21  Bruno Haible  <bruno@clisp.org>
32794
32795         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32796         (Makefile.am): Verify that PTY_LIB is defined.
32797
32798         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32799
32800 2010-03-21  Bruno Haible  <bruno@clisp.org>
32801
32802         Tests for module 'login_tty'.
32803         * modules/login_tty-tests: New file.
32804         * tests/test-login_tty.c: New file.
32805
32806         New module 'login_tty'.
32807         * lib/login_tty.c: New file.
32808         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32809         * modules/login_tty: New file.
32810         * doc/glibc-functions/login_tty.texi: Mention the new module.
32811
32812 2010-03-21  Bruno Haible  <bruno@clisp.org>
32813
32814         login_tty: Documentation.
32815         * doc/glibc-functions/login_tty.texi: New file.
32816         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32817
32818 2010-03-21  Bruno Haible  <bruno@clisp.org>
32819
32820         pty: Consistent macro naming.
32821         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32822         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32823         * modules/pty (configure.ac): Update.
32824
32825 2010-03-21  Bruno Haible  <bruno@clisp.org>
32826
32827         Tests for openpty: Make stricter.
32828         * tests/test-openpty.c (main): Add test of canonical processing and
32829         erase.
32830         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32831
32832         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32833         * lib/openpty.c (openpty): New replacement function.
32834         * lib/pty.in.h: Include <termios.h>.
32835         (openpty): Update declaration. Add comments.
32836         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32837         is not declared, arrange to provide the replacement. Check for _getpty
32838         and posix_openpt.
32839         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32840         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32841         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32842         * modules/pty-tests (test_pty_c___LDADD): New variable.
32843         * doc/glibc-functions/openpty.texi: More supported platforms.
32844
32845 2010-03-21  Bruno Haible  <bruno@clisp.org>
32846
32847         setenv: Tweaks.
32848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32849         the test program.
32850         * doc/posix-functions/setenv.texi: Update platforms list.
32851
32852 2010-03-21  Bruno Haible  <bruno@clisp.org>
32853
32854         New module 'unlockpt'.
32855         * lib/unlockpt.c: New file, from glibc with modifications.
32856         * m4/unlockpt.m4: New file.
32857         * modules/unlockpt: New file.
32858         * lib/stdlib.in.h (unlockpt): New declaration.
32859         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32860         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32861         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32862         HAVE_UNLOCKPT.
32863         * doc/posix-functions/unlockpt.texi: Mention the new module.
32864         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32865         * config/srclist.txt: Add unlockpt.c (commented).
32866
32867 2010-03-21  Jim Meyering  <meyering@redhat.com>
32868
32869         maint.mk: prohibit inclusion of "intprops.h" without use
32870         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32871
32872 2010-03-21  Bruno Haible  <bruno@clisp.org>
32873
32874         New module 'grantpt'.
32875         * lib/grantpt.c: New file, from glibc with modifications.
32876         * m4/grantpt.m4: New file.
32877         * modules/grantpt: New file.
32878         * lib/stdlib.in.h (grantpt): New declaration.
32879         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32880         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32881         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32882         HAVE_GRANTPT.
32883         * doc/posix-functions/grantpt.texi: Mention the new module.
32884         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32885         * config/srclist.txt: Add grantpt.c (commented).
32886
32887 2010-03-21  Bruno Haible  <bruno@clisp.org>
32888
32889         New module 'pt_chown'.
32890         * lib/pt_chown.c: New file, from glibc with modifications.
32891         * lib/pty-private.h: New file, from glibc with modifications.
32892         * modules/pt_chown: New file.
32893         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32894
32895 2010-03-21  Bruno Haible  <bruno@clisp.org>
32896
32897         Tests for module 'ptsname'.
32898         * modules/ptsname-tests: New file.
32899         * tests/test-ptsname.c: New file.
32900
32901         New module 'ptsname'.
32902         * lib/ptsname.c: New file, from glibc with modifications.
32903         * m4/ptsname.m4: New file.
32904         * modules/ptsname: New file.
32905         * lib/stdlib.in.h (ptsname): New declaration.
32906         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32907         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32908         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32909         HAVE_PTSNAME.
32910         * doc/posix-functions/ptsname.texi: Mention the new module.
32911         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32912         * config/srclist.txt: Add ptsname.c (commented).
32913
32914 2010-03-21  Bruno Haible  <bruno@clisp.org>
32915
32916         Tests for module 'ttyname_r'.
32917         * modules/ttyname_r-tests: New file.
32918         * tests/test-ttyname_r.c: New file.
32919
32920         New module 'ttyname_r'.
32921         * lib/ttyname_r.c: New file.
32922         * m4/ttyname_r.m4: New file.
32923         * modules/ttyname_r: New file.
32924         * lib/unistd.in.h (ttyname_r): New declaration.
32925         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32926         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32927         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32928         HAVE_TTYNAME_R.
32929         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32930         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32931
32932 2010-03-20  Bruno Haible  <bruno@clisp.org>
32933
32934         signal: Undefine macro definitions in C++ mode.
32935         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32936         sigfillset): Undefine macro definitions from the system header in C++
32937         mode.
32938         Reported by John W. Eaton <jwe@gnu.org>.
32939
32940 2010-03-20  Bruno Haible  <bruno@clisp.org>
32941
32942         Ensure no #include statements inside extern "C" { ... }.
32943         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32944         contain #include statements.
32945         * lib/time.in.h: Likewise.
32946
32947 2010-03-20  Bruno Haible  <bruno@clisp.org>
32948
32949         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32950         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32951         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32952         Reported by John W. Eaton <jwe@gnu.org>.
32953
32954 2010-03-20  Bruno Haible  <bruno@clisp.org>
32955
32956         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32957         Reported by Jim Meyering.
32958
32959 2010-03-20  Bruno Haible  <bruno@clisp.org>
32960
32961         pipe: Set errno upon failure.
32962         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32963         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32964         errno value in error message.
32965
32966 2010-03-20  Bruno Haible  <bruno@clisp.org>
32967             Jim Meyering  <meyering@redhat.com>
32968
32969         lchown: Avoid "unused variable" warning.
32970         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32971
32972 2010-03-20  Bruno Haible  <bruno@clisp.org>
32973
32974         Work around unlink() bug on MacOS X 10.5.6.
32975         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32976         attempting to unlink a parent directory.
32977         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32978         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32979         activate for the replacement function.
32980         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32981
32982 2010-03-20  Bruno Haible  <bruno@clisp.org>
32983
32984         Fix link errors on Solaris 8.
32985         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32986         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32987
32988 2010-03-19  Jim Meyering  <meyering@redhat.com>
32989
32990         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32991         The _LIBC implementation of build_range_exp correctly honors the
32992         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32993         However, the non-_LIBC implementation would ignore that syntax-bit
32994         flag and return REG_ERANGE unconditionally.
32995         This change makes it honor that flag.
32996         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32997         Make two pointer parameters "const".
32998         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32999         (parse_bracket_exp): Update caller.
33000
33001         regex.m4: correct the reversed range endpoint ([b-a]) test
33002         * m4/regex.m4: When requiring that [b-a] evoke failure,
33003         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33004         test pass once again for x86-based systems.
33005
33006 2010-03-19  Bruno Haible  <bruno@clisp.org>
33007
33008         scandir: Fix link error on Solaris 8.
33009         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33010         macros.
33011
33012 2010-03-19  Bruno Haible  <bruno@clisp.org>
33013
33014         getusershell: Fix documentation.
33015         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33016         module.
33017         * doc/glibc-functions/setusershell.texi: Likewise.
33018
33019         getusershell: Provide declaration, missing on Solaris 9.
33020         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33021         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33022         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33023         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33025         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33027         HAVE_GETUSERSHELL.
33028         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33029
33030 2010-03-19  Bruno Haible  <bruno@clisp.org>
33031
33032         wctype: Provide iswblank function.
33033         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33034         exists and is fine.
33035         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33036         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33037         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33038         * doc/posix-functions/iswblank.texi: Update.
33039
33040 2010-03-19  Bruno Haible  <bruno@clisp.org>
33041
33042         Tests of module 'pty' in C++ mode.
33043         * modules/pty-tests: New file.
33044         * tests/test-pty-c++.cc: New file.
33045         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33046
33047 2010-03-19  Eric Blake  <eblake@redhat.com>
33048
33049         logb: fix documentation
33050         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33051         1.5 declaration bug.
33052
33053         forkpty, openpty: prefer glibc's const-safe prototype
33054         * lib/forkpty.c (rpl_forkpty): New file.
33055         * lib/openpty.c (rpl_openpty): Likewise.
33056         * modules/forkpty (Files): Distribute it.
33057         * modules/openpty (Files): Likewise.
33058         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33059         check...
33060         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33061         replacement for for non-const BSD signature.
33062         * modules/pty (Makefile.am): Substitute witnesses.
33063         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33064         * tests/test-forkpty.c: Update signature check.
33065         * tests/test-openpty.c: Likewise.
33066         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33067         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33068
33069         forkpty, openpty: split functions into new modules
33070         * modules/pty (Makefile.am): Substitute new witnesses.
33071         (Libraries): Move library detection...
33072         * modules/forkpty: ...into new module.
33073         * modules/openpty: Another new module.
33074         * modules/pty-tests: Rename and split...
33075         * modules/forkpty-tests: ...to this...
33076         * modules/openpty-tests: ...and this.
33077         * tests/test-pty.c: Rename and split...
33078         * tests/test-forkpty.c: ...to this...
33079         * tests/test-openpty.c: ...and this.
33080         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33081         (gl_PTY): Split library searching...
33082         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33083         (gl_FORKPTY, gl_OPENPTY): New macros.
33084         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33085         * NEWS: Mention the split.
33086         * MODULES.html.sh (Misc): Document the modules.
33087         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33088         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33089
33090         pty: improve replacement header
33091         * lib/pty.in.h: New file.
33092         * modules/pty (Files): Ship it.
33093         (Makefile.am): Always build replacement.
33094         * m4/pty.m4: Rename...
33095         * m4/pty_h.m4: ...to this.
33096         (gl_PTY): Modernize setting of witness macros; update check of
33097         forkpty to take proper advantage of cache.
33098         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33099
33100         getopt: avoid compiler warning
33101         * lib/getopt.c (attribute_hidden): Remove unused macro.
33102
33103 2010-03-18  Bruno Haible  <bruno@clisp.org>
33104
33105         Fix link errors on Solaris 8.
33106         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33107         * modules/search-tests (test_search_c___LDADD): Likewise.
33108         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33109         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33110         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33111         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33112         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33113         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33114         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33115
33116 2010-03-18  Bruno Haible  <bruno@clisp.org>
33117
33118         Fix bug introduced on 2010-03-14.
33119         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33120         (gl_SPAWN_H): Require it.
33121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33122         Reported by Simon Josefsson.
33123
33124 2010-03-18  Bruno Haible  <bruno@clisp.org>
33125
33126         Fix typo introduced on 2009-12-31.
33127         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33128         posix_spawn_file_actions_adddup2.
33129
33130 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33131         and Eric Blake  <eblake@redhat.com>
33132
33133         test-vc-list-files-git: make more robust
33134         * tests/test-vc-list-files-git.sh: Unset problematic environment
33135         variables.  Chain commands together.
33136
33137 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33138
33139         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33140         `AC_CHECK_DECL' invocation.
33141
33142 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33143
33144         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33145         appears before executable statements. Suggested by Petr Sumbera
33146         <Petr.Sumbera@Sun.COM>.
33147
33148 2010-03-14  Bruno Haible  <bruno@clisp.org>
33149
33150         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33151         portability problems. Instead use a simpler test.
33152         (main): Check that invalid arguments are rejected only on Linux.
33153
33154 2010-03-14  Bruno Haible  <bruno@clisp.org>
33155
33156         Fix bug introduced on 2009-12-31.
33157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33158         gl_PREREQ_SYS_H_WINSOCK2 always.
33159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33160         SYS_SOCKET_H variable.
33161         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33162         Update comments.
33163         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33164         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33165         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33167         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33168
33169 2010-03-14  Bruno Haible  <bruno@clisp.org>
33170
33171         Fix values returned by sinl, cosl.
33172         * lib/trigl.h: Add specification comments.
33173         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33174         that combines the values from the precomputed table with the values of
33175         the Chebyshev polynomials.
33176
33177 2010-03-14  Bruno Haible  <bruno@clisp.org>
33178
33179         Fix compilation error when modules 'posix_spawn[p]' are not used.
33180         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33182
33183 2010-03-14  Bruno Haible  <bruno@clisp.org>
33184
33185         Fix compilation error on mingw when module 'time_r' is not used.
33186         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33187         is 1.
33188         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33189         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33190         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33192
33193 2010-03-14  Bruno Haible  <bruno@clisp.org>
33194
33195         Fix compilation error with Sun C.
33196         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33197         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33198         instead of GCC specific ULONG_LONG_MAX.
33199         * lib/xstrtoll.c: Likewise.
33200         * lib/xstrtoull.c: Likewise.
33201
33202 2010-03-13  Bruno Haible  <bruno@clisp.org>
33203
33204         Allow the user to disable C++ code and tests.
33205         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33206         (gl_PROG_ANSI_CXX): Require it.
33207
33208 2010-03-13  Bruno Haible  <bruno@clisp.org>
33209
33210         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33211         cases.
33212
33213 2010-03-13  Bruno Haible  <bruno@clisp.org>
33214
33215         Test that gnulib does not break the standard C++ headers.
33216         * tests/test-locale-c++2.cc: New file.
33217         * modules/locale-tests (Files): Add it.
33218         (Makefile.am): Compile it for test-locale-c++.
33219         * tests/test-math-c++2.cc: New file.
33220         * modules/math-tests (Files): Add it.
33221         (Makefile.am): Compile it for test-math-c++.
33222         * tests/test-signal-c++2.cc: New file.
33223         * modules/signal-tests (Files): Add it.
33224         (Makefile.am): Compile it for test-signal-c++.
33225         * tests/test-stdio-c++2.cc: New file.
33226         * modules/stdio-tests (Files): Add it.
33227         (Makefile.am): Compile it for test-stdio-c++.
33228         * tests/test-stdlib-c++2.cc: New file.
33229         * modules/stdlib-tests (Files): Add it.
33230         (Makefile.am): Compile it for test-stdlib-c++.
33231         * tests/test-string-c++2.cc: New file.
33232         * modules/string-tests (Files): Add it.
33233         (Makefile.am): Compile it for test-string-c++.
33234         * tests/test-time-c++2.cc: New file.
33235         * modules/time-tests (Files): Add it.
33236         (Makefile.am): Compile it for test-time-c++.
33237         Reported by John W. Eaton <jwe@gnu.org>.
33238
33239 2010-03-13  Bruno Haible  <bruno@clisp.org>
33240
33241         * gnulib-tool (func_usage): Clarify which options are available for
33242         --create-testdir and --create-megatestdir.
33243
33244 2010-03-13  Bruno Haible  <bruno@clisp.org>
33245
33246         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33247         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33248         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33249         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33250         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33251         when appropriate.
33252         Reported by Jim Meyering.
33253
33254 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33255
33256         * gnulib-tool (func_import): Explain origin of code.
33257
33258 2010-03-12  Bruno Haible  <bruno@clisp.org>
33259
33260         Fix problem with automake's definition of CXXLINK.
33261         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33262         Reported by Simon Josefsson and Ludovic Courtès.
33263
33264 2010-03-12  Bruno Haible  <bruno@clisp.org>
33265
33266         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33267         stable releases.
33268
33269 2010-03-11  Bruno Haible  <bruno@clisp.org>
33270
33271         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33272         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33273         whether the system provides one variant or multiple variants of the
33274         function.
33275         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33276         C++ compilers.
33277         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33278         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33279         Reported by Jim Meyering.
33280
33281 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33282
33283         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33284
33285 2010-03-08  Bruno Haible  <bruno@clisp.org>
33286
33287         gnulib-tool: Add support for --libtool in --create-testdir.
33288         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33289         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33290
33291 2010-03-08  Eric Blake  <eblake@redhat.com>
33292
33293         gnulib-tool.texi: mention possibility of git submodule
33294         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33295         submodules.
33296         * doc/.gitignore: Ignore another generated file.
33297
33298 2010-03-08  Karl Berry  <karl@gnu.org>
33299
33300         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33301         of committing gnulib files while skipping others.
33302
33303 2010-03-07  Bruno Haible  <bruno@clisp.org>
33304
33305         Tests of module 'wctype' in C++ mode.
33306         * tests/test-wctype-c++.cc: New file.
33307         * modules/wctype-tests (Files): Add it and tests/signature.h.
33308         (Depends-on): Add ansi-c++-opt.
33309         (Makefile.am): Arrange to compile and run test-wctype-c++.
33310
33311         Tests of module 'wchar' in C++ mode.
33312         * tests/test-wchar-c++.cc: New file.
33313         * modules/wchar-tests (Files): Add it and tests/signature.h.
33314         (Depends-on): Add ansi-c++-opt.
33315         (Makefile.am): Arrange to compile and run test-wchar-c++.
33316         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33317         gl_MODULE_INDICATOR.
33318
33319         Tests of module 'unistd' in C++ mode.
33320         * tests/test-unistd-c++.cc: New file.
33321         * modules/unistd-tests (Files): Add it and tests/signature.h.
33322         (Depends-on): Add ansi-c++-opt.
33323         (Makefile.am): Arrange to compile and run test-unistd-c++.
33324         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33325         gl_MODULE_INDICATOR.
33326
33327         Tests of module 'time' in C++ mode.
33328         * tests/test-time-c++.cc: New file.
33329         * modules/time-tests (Files): Add it and tests/signature.h.
33330         (Depends-on): Add ansi-c++-opt.
33331         (Makefile.am): Arrange to compile and run test-time-c++.
33332         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33333
33334         Tests of module 'sys_time' in C++ mode.
33335         * tests/test-sys_time-c++.cc: New file.
33336         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33337         (Depends-on): Add ansi-c++-opt.
33338         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33339         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33340         gl_MODULE_INDICATOR.
33341
33342         Tests of module 'sys_stat' in C++ mode.
33343         * tests/test-sys_stat-c++.cc: New file.
33344         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33345         (Depends-on): Add ansi-c++-opt.
33346         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33347         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33348         gl_MODULE_INDICATOR.
33349
33350         Tests of module 'sys_socket' in C++ mode.
33351         * tests/test-sys_socket-c++.cc: New file.
33352         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33353         (Depends-on): Add ansi-c++-opt.
33354         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33356         gl_MODULE_INDICATOR.
33357
33358         Tests of module 'sys_select' in C++ mode.
33359         * tests/test-sys_select-c++.cc: New file.
33360         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33361         (Depends-on): Add ansi-c++-opt.
33362         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33363         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33364         gl_MODULE_INDICATOR.
33365
33366         Tests of module 'sys_ioctl' in C++ mode.
33367         * tests/test-sys_ioctl-c++.cc: New file.
33368         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33369         (Depends-on): Add ansi-c++-opt.
33370         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33371         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33372         gl_MODULE_INDICATOR.
33373
33374         Tests of module 'string' in C++ mode.
33375         * tests/test-string-c++.cc: New file.
33376         * modules/string-tests (Files): Add it and tests/signature.h.
33377         (Depends-on): Add ansi-c++-opt.
33378         (Makefile.am): Arrange to compile and run test-string-c++.
33379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33380         gl_MODULE_INDICATOR.
33381
33382         Tests of module 'stdlib' in C++ mode.
33383         * tests/test-stdlib-c++.cc: New file.
33384         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33385         (Depends-on): Add ansi-c++-opt.
33386         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33387         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33388         gl_MODULE_INDICATOR.
33389
33390         Tests of module 'stdio' in C++ mode.
33391         * tests/test-stdio-c++.cc: New file.
33392         * modules/stdio-tests (Files): Add it and tests/signature.h.
33393         (Depends-on): Add ansi-c++-opt.
33394         (Makefile.am): Arrange to compile and run test-stdio-c++.
33395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33396         gl_MODULE_INDICATOR.
33397
33398         Tests of module 'spawn' in C++ mode.
33399         * tests/test-spawn-c++.cc: New file.
33400         * modules/spawn-tests (Files): Add it and tests/signature.h.
33401         (Depends-on): Add ansi-c++-opt.
33402         (Makefile.am): Arrange to compile and run test-spawn-c++.
33403         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33404         gl_MODULE_INDICATOR.
33405
33406         Tests of module 'signal' in C++ mode.
33407         * tests/test-signal-c++.cc: New file.
33408         * modules/signal-tests (Files): Add it and tests/signature.h.
33409         (Depends-on): Add ansi-c++-opt.
33410         (Makefile.am): Arrange to compile and run test-signal-c++.
33411         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33412         gl_MODULE_INDICATOR.
33413
33414         Tests of module 'search' in C++ mode.
33415         * tests/test-search-c++.cc: New file.
33416         * modules/search-tests (Files): Add it and tests/signature.h.
33417         (Depends-on): Add ansi-c++-opt.
33418         (Makefile.am): Arrange to compile and run test-search-c++.
33419         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33420         gl_MODULE_INDICATOR.
33421
33422         Tests of module 'math' in C++ mode.
33423         * tests/test-math-c++.cc: New file.
33424         * modules/math-tests (Files): Add it and tests/signature.h.
33425         (Depends-on): Add ansi-c++-opt.
33426         (Makefile.am): Arrange to compile and run test-math-c++.
33427         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33428
33429         Tests of module 'locale' in C++ mode.
33430         * tests/test-locale-c++.cc: New file.
33431         * modules/locale-tests (Files): Add it and tests/signature.h.
33432         (Depends-on): Add ansi-c++-opt.
33433         (Makefile.am): Arrange to compile and run test-locale-c++.
33434         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33435         gl_MODULE_INDICATOR.
33436
33437         Tests of module 'langinfo' in C++ mode.
33438         * tests/test-langinfo-c++.cc: New file.
33439         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33440         (Depends-on): Add ansi-c++-opt.
33441         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33442         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33443         gl_MODULE_INDICATOR.
33444
33445         Tests of module 'iconv-h' in C++ mode.
33446         * tests/test-iconv-h-c++.cc: New file.
33447         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33448         (Depends-on): Add ansi-c++-opt.
33449         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33450
33451         Tests of module 'glob' in C++ mode.
33452         * tests/test-glob-c++.cc: New file.
33453         * modules/glob-tests (Files): Add it.
33454         (Depends-on): Add ansi-c++-opt.
33455         (Makefile.am): Arrange to compile and run test-glob-c++.
33456
33457         Tests of module 'fcntl-h' in C++ mode.
33458         * tests/test-fcntl-h-c++.cc: New file.
33459         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33460         (Depends-on): Add ansi-c++-opt.
33461         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33462         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33463         gl_MODULE_INDICATOR.
33464
33465         Tests of module 'dirent' in C++ mode.
33466         * tests/test-dirent-c++.cc: New file.
33467         * modules/dirent-tests (Files): Add it and tests/signature.h.
33468         (Depends-on): Add ansi-c++-opt.
33469         (Makefile.am): Arrange to compile and run test-dirent-c++.
33470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33471         gl_MODULE_INDICATOR.
33472
33473         New module 'ansi-c++-opt'.
33474         * modules/ansi-c++-opt: New file.
33475         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33476
33477         Document C++ namespace mode.
33478         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33479
33480         wctype: Avoid #define replacements in C++ mode.
33481         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33482         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33483         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33484         In C++, define a namespaced alias symbol.
33485         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33486         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33487         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33488         rule.
33489
33490         wchar: Avoid #define replacements in C++ mode.
33491         * lib/wchar.in.h: Include c++defs.h.
33492         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33493         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33494         symbol.
33495         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33496         * modules/wchar (Depends-on): Add c++defs.
33497         (Makefile.am): Update wchar.h rule.
33498
33499         unistd: Avoid #define replacements in C++ mode.
33500         * lib/unistd.in.h: Include c++defs.h.
33501         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33502         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33503         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33504         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33505         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33506         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33507         symbol.
33508         (environ): Update.
33509         * modules/unistd (Depends-on): Add c++defs.
33510         (Makefile.am): Update unistd.h rule.
33511
33512         time: Avoid #define replacements in C++ mode.
33513         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33514         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33515         define a namespaced alias symbol.
33516         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33517         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33518         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33519         * modules/time (Depends-on): Add c++defs, warn-on-use.
33520         (Makefile.am): Update time.h rule.
33521         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33522         * modules/nanosleep (configure.ac): Likewise.
33523         * modules/strptime (configure.ac): Likewise.
33524         * modules/timegm (configure.ac): Likewise.
33525
33526         sys_time: Avoid #define replacements in C++ mode.
33527         * lib/sys_time.in.h: Include c++defs.h.
33528         (gettimeofday): In C++, define a namespaced alias symbol.
33529         * modules/sys_time (Depends-on): Add c++defs.
33530         (Makefile.am): Update sys/time.h rule.
33531
33532         sys_stat: Avoid #define replacements in C++ mode.
33533         * lib/sys_stat.in.h: Include c++defs.h.
33534         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33535         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33536         namespaced alias symbol.
33537         In C++, define a namespaced alias symbol.
33538         * modules/sys_stat (Depends-on): Add c++defs.
33539         (Makefile.am): Update sys/stat.h rule.
33540
33541         sys_socket: Avoid #define replacements in C++ mode.
33542         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33543         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33544         definitions also when the system has a <sys/socket.h>.
33545         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33546         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33547         In C++, define a namespaced alias symbol.
33548         * modules/sys_socket (Depends-on): Add c++defs.
33549         (Makefile.am): Update sys/socket.h rule.
33550
33551         sys_select: Avoid #define replacements in C++ mode.
33552         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33553         definitions also when the system has a <sys/select.h>.
33554         (select): In C++, define a namespaced alias symbol.
33555         * modules/sys_select (Depends-on): Add c++defs.
33556         (Makefile.am): Update sys/select.h rule.
33557
33558         sys_ioctl: Avoid #define replacements in C++ mode.
33559         * lib/sys_ioctl.in.h: Include c++defs.h.
33560         (ioctl): In C++, define a namespaced alias symbol.
33561         * modules/sys_ioctl (Depends-on): Add c++defs.
33562         (Makefile.am): Update sys/ioctl.h rule.
33563
33564         string: Avoid #define replacements in C++ mode.
33565         * lib/string.in.h: Include c++defs.h.
33566         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33567         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33568         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33569         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33570         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33571         * modules/string (Depends-on): Add c++defs.
33572         (Makefile.am): Update string.h rule.
33573
33574         stdlib: Avoid #define replacements in C++ mode.
33575         * lib/stdlib.in.h: Include c++defs.h.
33576         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33577         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33578         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33579         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33580         symbol.
33581         * modules/stdlib (Depends-on): Add c++defs.
33582         (Makefile.am): Update stdlib.h rule.
33583
33584         stdio: Avoid #define replacements in C++ mode.
33585         * lib/stdio.in.h: Include c++defs.h.
33586         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33587         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33588         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33589         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33590         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33591         namespaced alias symbol.
33592         * modules/stdio (Depends-on): Add c++defs.
33593         (Makefile.am): Update stdio.h rule.
33594
33595         spawn: Avoid #define replacements in C++ mode.
33596         * lib/spawn.in.h: Include c++defs.h.
33597         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33598         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33599         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33600         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33601         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33602         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33603         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33604         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33605         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33606         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33607         In C++, define a namespaced alias symbol.
33608         * modules/spawn (Depends-on): Add c++defs.
33609         (Makefile.am): Update spawn.h rule.
33610
33611         signal: Avoid #define replacements in C++ mode.
33612         * lib/signal.in.h: Include c++defs.h.
33613         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33614         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33615         namespaced alias symbol.
33616         * modules/signal (Depends-on): Add c++defs.
33617         (Makefile.am): Update signal.h rule.
33618
33619         search: Avoid #define replacements in C++ mode.
33620         * lib/search.in.h: Include c++defs.h.
33621         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33622         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33623         symbol.
33624         * modules/search (Depends-on): Add c++defs.
33625         (Makefile.am): Update search.h rule.
33626
33627         math: Avoid #define replacements in C++ mode.
33628         * lib/math.in.h: Include c++defs.h.
33629         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33630         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33631         trunc, truncl): In C++, define a namespaced alias symbol.
33632         * modules/math (Depends-on): Add c++defs.
33633         (Makefile.am): Update math.h rule.
33634
33635         locale: Avoid #define replacements in C++ mode.
33636         * lib/locale.in.h: Include c++defs.h.
33637         (duplocale): In C++, define a namespaced alias symbol.
33638         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33639         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33640         * modules/locale (Depends-on): Add c++defs.
33641         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33642
33643         langinfo: Avoid #define replacements in C++ mode.
33644         * lib/langinfo.in.h: Include c++defs.h.
33645         (nl_langinfo): In C++, define a namespaced alias symbol.
33646         * modules/langinfo (Depends-on): Add c++defs.
33647         (Makefile.am): Update langinfo.h rule.
33648
33649         iconv-h: Avoid #define replacements in C++ mode.
33650         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33651         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33652         symbol.
33653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33654         whenever iconv is present.
33655         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33656         (Makefile.am): Update iconv.h rule.
33657
33658         glob: Avoid #define replacements in C++ mode.
33659         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33660         (_gl_glob_errfunc_fn): New type.
33661         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33662         symbol.
33663         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33664         (Makefile.am): Update glob.h rule.
33665
33666         fcntl-h: Avoid #define replacements in C++ mode.
33667         * lib/fcntl.in.h: Include c++defs.h.
33668         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33669         * modules/fcntl-h (Depends-on): Add c++defs.
33670         (Makefile.am): Update fcntl.h rule.
33671
33672         dirent: Avoid #define replacements in C++ mode.
33673         * lib/dirent.in.h: Include c++defs.h.
33674         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33675         namespaced alias symbol.
33676         (dirfd): Update declaration.
33677         * modules/dirent (Depends-on): Add c++defs.
33678         (Makefile.am): Update dirent.h rule.
33679
33680         ctype: Make it usable in C++ code.
33681         * lib/ctype.in.h: Include c++defs.h.
33682         (isblank): Declare as extern "C".
33683         * modules/ctype (Depends-on): Add c++defs.
33684         (Makefile.am): Update ctype.h rule.
33685
33686         New module 'c++defs'.
33687         * modules/c++defs: New file.
33688         * build-aux/c++defs.h: New file.
33689         Reported by John W. Eaton <jwe@gnu.org>.
33690
33691 2010-03-07  Bruno Haible  <bruno@clisp.org>
33692
33693         logb: Provide missing declaration for Cygwin.
33694         * lib/math.in.h (logb): New declaration.
33695         * m4/logb.m4: New file.
33696         * modules/logb (Files): Add m4/logb.m4.
33697         (Depends-on): Add math.
33698         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33699         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33701         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33702         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33703
33704 2010-03-07  Bruno Haible  <bruno@clisp.org>
33705
33706         Fix test-cond link error.
33707         * tests/test-cond.c: Include <stdio.h>.
33708
33709 2010-03-07  Bruno Haible  <bruno@clisp.org>
33710
33711         Fix test-dirent-safer link error.
33712         * modules/dirent-safer-tests (Makefile.am): Define
33713         test_dirent_safer_LDADD.
33714
33715 2010-03-07  Bruno Haible  <bruno@clisp.org>
33716
33717         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33718         among default module list.
33719
33720 2010-03-07  Bruno Haible  <bruno@clisp.org>
33721
33722         Fix link error on platforms with GNU libiconv.
33723         * modules/unistr/u8-strcoll-tests (Makefile): Define
33724         test_u8_strcoll_LDADD.
33725         * modules/unistr/u16-strcoll-tests (Makefile): Define
33726         test_u16_strcoll_LDADD.
33727         * modules/unistr/u32-strcoll-tests (Makefile): Define
33728         test_u32_strcoll_LDADD.
33729
33730 2010-03-07  Bruno Haible  <bruno@clisp.org>
33731
33732         Use POSIX declarations for socket functions.
33733         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33734         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33735         rpl_sendto): Change declaration to match POSIX.
33736         * lib/connect.c (rpl_connect): Likewise.
33737         * lib/accept.c (rpl_accept): Likewise.
33738         * lib/bind.c (rpl_bind): Likewise.
33739         * lib/getpeername.c (rpl_getpeername): Likewise.
33740         * lib/getsockname.c (rpl_getsockname): Likewise.
33741         * lib/recv.c (rpl_recv): Likewise.
33742         * lib/send.c (rpl_send): Likewise.
33743         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33744         * lib/sendto.c (rpl_sendto): Likewise.
33745
33746 2010-03-06  Bruno Haible  <bruno@clisp.org>
33747
33748         Clarify access, euidaccess, faccessat.
33749         * doc/posix-functions/faccessat.texi: Mention security problem under
33750         "Other problems", not "Portability problems".
33751         * doc/posix-functions/access.texi: Likewise. Mention a related security
33752         problem.
33753         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33754         * lib/euidaccess.c: Add comments about platforms.
33755         * lib/unistd.in.h (access, euidaccess): Add warnings.
33756
33757 2010-03-07  Bruno Haible  <bruno@clisp.org>
33758
33759         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33760         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33761         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33762         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33763         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33764         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33765         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33766         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33767         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33769         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33770         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33771         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33772         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33773         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33774         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33775         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33776         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33777         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33778         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33779         Likewise.
33780         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33781         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33782         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33783         Likewise.
33784         * tests/test-spawn.c (main): Make it work when
33785         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33786
33787 2010-03-07  Bruno Haible  <bruno@clisp.org>
33788
33789         Fix incorrect Makefile.am generation in German locale.
33790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33791         Execute sed command with character range in C locale.
33792
33793 2010-03-06  Bruno Haible  <bruno@clisp.org>
33794
33795         Tests for module 'iconv-h'.
33796         * modules/iconv-h-tests: New file.
33797         * tests/test-iconv-h.c: New file.
33798
33799         New module 'iconv-h'.
33800         * modules/iconv-h: New file.
33801         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33802         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33803         (configure.ac): Remove gl_ICONV_H.
33804         (Makefile.am): Remove rule for iconv.h.
33805
33806 2010-03-06  Bruno Haible  <bruno@clisp.org>
33807
33808         More consistent naming of *.m4 files.
33809         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33810         * modules/wctype (Files): Update.
33811
33812         More consistent naming of *.m4 files.
33813         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33814         * modules/wchar (Files): Update.
33815
33816 2010-03-06  Jim Meyering  <meyering@redhat.com>
33817
33818         euidaccess: relax license to LGPLv2+
33819         * modules/euidaccess (License): Relax to LGPLv2+.
33820
33821 2010-03-06  Bruno Haible  <bruno@clisp.org>
33822
33823         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33824         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33825         (Makefile.am): Augment lib_SOURCES instead.
33826
33827 2010-03-04  Jim Meyering  <meyering@redhat.com>
33828
33829         utime: remove obsolete module
33830         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33831         unnecessary for years, and has been marked as obsolete for 10 months.
33832         * modules/utime: Remove file.
33833         * lib/utime.c: Remove file.
33834         * m4/utime.m4: Remove file.
33835         * m4/utimes-null.m4: Remove file.
33836         * doc/posix-functions/utime.texi (utime): Remove reference to
33837         the module.  Move the sole "fixed by gnulib" item into the
33838         "problems not fixed by Gnulib" list.
33839         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33840
33841 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33842
33843         * modules/exit (License): Relax license to LGPLv2+.
33844         (Status): Mark as obsolete.
33845         * NEWS: Mention deprecated 'exit' module.
33846         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33847         of now obsolete 'exit'.
33848
33849 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33850
33851         fts-lgpl: remove unused module
33852         * modules/fts-lgpl: Remove.
33853         * MODULES.html.sh (func_all_modules): Adjust.
33854         * check-module (find_included_lib_files): Adjust.
33855         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33856
33857 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33858
33859         copy-acl: enhance Solaris ACL error handling
33860         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33861         * lib/set-mode-acl.c (qset_acl): Likewise.
33862
33863 2010-03-02  Bruno Haible  <bruno@clisp.org>
33864
33865         spawn: Don't override the system defined values on FreeBSD 8.
33866         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33867         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33868         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33869         if HAVE_POSIX_SPAWN is 1.
33870         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33871
33872 2010-03-01  Bruno Haible  <bruno@clisp.org>
33873
33874         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33875         regarding Automake.
33876
33877 2010-02-25  Bruno Haible  <bruno@clisp.org>
33878
33879         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33880         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33881         setting, not afterwards.
33882         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33883
33884 2010-02-24  Eric Blake  <eblake@redhat.com>
33885
33886         bootstrap, git-version-gen: use timestamp
33887         * build-aux/git-version-gen (scriptversion): Force UTC.
33888         * build-aux/bootstrap (scriptversion): New variable.
33889
33890         bootstrap: allow older git
33891         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33892         older than 1.6.4.  Requested by the libvirt project.
33893
33894 2010-02-23  Eric Blake  <eblake@redhat.com>
33895
33896         warn-on-use: work with old autoconf
33897         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33898         AS_VAR semantics of autoconf 2.60.
33899         Reported by Bruno Haible.
33900
33901         bootstrap: improve some comments
33902         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33903         clarification comments.
33904
33905         gettimeofday: provide correct function
33906         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33907         when replacement is declared, otherwise provide gettimeofday.
33908         Reported by Michael Goffioul.
33909
33910 2010-02-23  Jim Meyering  <meyering@redhat.com>
33911
33912         lib-ignore: relax license to "unlimited", not LGPLv2+
33913         * modules/lib-ignore (License): Relax to "unlimited".
33914
33915 2010-02-23  Jim Meyering  <meyering@redhat.com>
33916
33917         lib-ignore: relax license to LGPLv2+
33918         * modules/lib-ignore (License): Relax to LGPLv2+.
33919
33920 2010-02-22  Eric Blake  <eblake@redhat.com>
33921
33922         lseek: avoid bash 3.2 broken pipe bug
33923         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33924         warning from bash 3.2.
33925         Reported by Ben Pfaff, with analysis from Bruno Haible.
33926
33927         bootstrap: support non-FSF copyright holder
33928         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33929         bootstrap.conf override of COPYRIGHT_HOLDER.
33930         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33931
33932         bootstrap: interoperate with gettext 0.14.1
33933         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33934
33935         bootstrap: allow for alternate submodule location
33936         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33937         hardcoding submodule location.
33938         (gnulib_mk): Allow direct use of Makefile.am.
33939
33940         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33941         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33942         rather than reconfiguring where the submodule points.
33943
33944         gettimeofday: restore support for platforms that lack function
33945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33946         replacement if function is missing.
33947         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33948         * modules/sys_time (Makefile.am): Substitute it.
33949         * lib/sys_time.in.h (gettimeofday): Check it.
33950         Reported by Michael Goffioul.
33951
33952 2010-02-21  Bruno Haible  <bruno@clisp.org>
33953
33954         * lib/stdio.in.h (obstack_printf): Fix typo.
33955
33956 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33957
33958         vc-list-files: use bzr ls's -R option
33959         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33960         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33961
33962 2010-02-21  Jim Meyering  <meyering@redhat.com>
33963
33964         init.sh: fix EXEEXT shims to work also for names like test-prog
33965         * tests/init.sh: Re-exec a better shell, when needed.
33966         If the current shell lacks support for posix $(...), an init.sh-using
33967         test will now try to find a shell that supports that.  If EXEEXT is
33968         nonempty, we also require support for hyphen-in-alias-name and shell
33969         substitutions like ${var#glob}.  Failure to find such a shell results
33970         in a skipped test.
33971
33972 2010-02-21  Bruno Haible  <bruno@clisp.org>
33973
33974         Really work around around "broken pipe" error message from bash 3.2.
33975         * gnulib-tool (func_reset_sigpipe): Remove function.
33976         (echo): In bash 3.2, define to a function that uses printf.
33977         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33978
33979 2010-02-20  Bruno Haible  <bruno@clisp.org>
33980
33981         Restore support for automake 1.9.6 with autoconf 2.61.
33982         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33983         Reported by James Youngman <jay@gnu.org>.
33984
33985 2010-02-20  Bruno Haible  <bruno@clisp.org>
33986
33987         Improve *printf warning condition.
33988         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33989         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33990         and the function is overridden due to SIGPIPE emulation.
33991
33992 2010-02-20  Bruno Haible  <bruno@clisp.org>
33993
33994         * lib/stdio.in.h: Tweak comments.
33995
33996 2010-02-19  Bruno Haible  <bruno@clisp.org>
33997
33998         Make it easier to find modules. New gnulib-tool option '--find'.
33999         * gnulib-tool: New option --find.
34000         (func_usage): Document it.
34001         (func_sanitize_modulelist): New function, extracted from
34002         func_all_modules.
34003         (func_all_modules): Invoke it.
34004         * doc/gnulib-tool.texi (Which modules?): New node.
34005
34006 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34007
34008         * lib/sys_select.in.h: Provide select replacement even if
34009         sys/select.h exists on a system, for Interix.
34010
34011 2010-02-18  Jim Meyering  <meyering@redhat.com>
34012
34013         init.sh: don't use $(...) just yet
34014         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34015         to accommodate e.g., Solaris' /bin/sh.
34016
34017 2010-02-17  Bruno Haible  <bruno@clisp.org>
34018
34019         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34020         Reported by Ludovic Courtès <ludo@gnu.org>.
34021
34022 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34023
34024         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34025         linking with -lintl.
34026
34027 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34028
34029         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34030         if not provided by the system's netdb.h.  Reported by
34031         ludo@gnu.org (Ludovic Courtès).
34032
34033 2010-02-15  Jim Meyering  <meyering@redhat.com>
34034
34035         init.sh: improve portability and efficiency
34036         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34037         "dummy" in a for loop.
34038         Use '!', not '^' to select the complement of a character set used
34039         in a "case" statement.
34040         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34041         Suggestions from Eric Blake.
34042
34043         init.sh: automatically accommodate programs with the .exe suffix
34044         Automatically arrange for an invocation of "prog" to execute the
34045         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34046         may use the simpler "prog", yet still work when built on a system
34047         that requires specifying the added suffix.
34048         Do this by constructing a function named "prog" that invokes
34049         "prog.exe" for each .exe file in selected directories.
34050         * tests/init.sh (find_exe_basenames_): New function.
34051         (create_exe_shim_functions_): New function.
34052         (path_prepend_): Use it.
34053
34054         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34055         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34056         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34057
34058 2010-02-14  Jim Meyering  <meyering@redhat.com>
34059
34060         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34061         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34062         (sc_prohibit_hash_pjw_without_use): New rule.
34063
34064         maint.mk: allow the default upload destination dir to be overridden
34065         * top/maint.mk (upload_dest_dir_): Define with a default that
34066         preserves the status quo.
34067         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34068         Reported by Peter Simons.
34069
34070         maint.mk: prohibit inclusion of "hash.h" without_use
34071         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34072
34073 2010-02-10  Jim Meyering  <meyering@redhat.com>
34074
34075         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34076         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34077
34078 2010-02-09  Eric Blake  <ebb9@byu.net>
34079         and Bruno Haible  <bruno@clisp.org>
34080
34081         obstack-printf-posix: ensure declaration
34082         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34083         extracted from gl_FUNC_OBSTACK_PRINTF.
34084         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34085         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34086         Likewise.
34087         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34088         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34089         0.
34090
34091 2010-02-08  Bruno Haible  <bruno@clisp.org>
34092
34093         gnulib-tool: Fix typo in 2010-02-07 commit.
34094         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34095         Reported by Eric Blake.
34096
34097 2010-02-07  Bruno Haible  <bruno@clisp.org>
34098
34099         gnulib-tool: Fix up caching patches.
34100         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34101         option --no-cache. Use associative arrays when supported by the shell.
34102         (sed_comments): New variable.
34103         (modcache): Renamed from do_cache.
34104         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34105         abbreviate unnecessarily.
34106         (have_associative): New variable.
34107         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34108         way also for ksh and zsh.
34109         (func_init_sed_convert_to_cache_statements): New function, extracted
34110         from func_cache_lookup_module. Add support for associative arrays.
34111         Don't set the c_MODULE_cached variable here. Ignore all lines before
34112         the first field header. Remove only the final newline, not all trailing
34113         newlines. Support empty fields correctly. Limit the use of 'eval' to
34114         assignments.
34115         (func_get_description, func_get_status, func_get_notice,
34116         func_get_applicability, func_get_filelist, func_get_dependencies,
34117         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34118         func_get_automake_snippet, func_get_include_directive,
34119         func_get_link_directive, func_get_license, func_get_maintainer):
34120         Update documentation. List the unoptimized code first. Add support for
34121         associative arrays. Limit the use of 'eval' to assignments.
34122         (func_get_applicability): Undo stylistic pessimisations.
34123         (func_get_automake_snippet, func_get_include_directive): Reduce code
34124         duplication.
34125         (func_modules_transitive_closure, func_modules_add_dummy,
34126         func_modules_notice, func_modules_to_filelist, func_add_file,
34127         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34128         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34129         func_create_testdir, func_create_megatestdir): Update documentation.
34130
34131 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34132
34133         * gnulib-tool (func_cache_lookup_module): Store the module name
34134         belonging to the cache variable; error out if two different
34135         module names map to the same cache variable name.
34136
34137 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34138
34139         gnulib-tool: Make caching optional.
34140         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34141         Update matching short versions of --no-changelog.
34142         (func_usage): Update.
34143         (sed_extract_cache_prog): Renamed from ...
34144         (sed_extract_prog): ... this; revert to old extraction script.
34145         (func_get_description, func_get_status)
34146         (func_get_notice, func_get_applicability, func_get_filelist)
34147         (func_get_dependencies, func_get_autoconf_early_snippet)
34148         (func_get_autoconf_snippet, func_get_automake_snippet)
34149         (func_get_include_directive, func_get_link_directive)
34150         (func_get_license, func_get_maintainer): If $do_cache is false,
34151         use old, non-caching extraction scripts.
34152         Suggestion by Bruno Haible.
34153
34154 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34155
34156         gnulib-tool: cache module metainformation.
34157         * gnulib-tool (sed_extract_prog): Match newline before each
34158         header, and rewrite header to a shell variable suffix.
34159         (func_cache_var, func_cache_lookup_module): New functions,
34160         to turn a module name into a cache variable prefix, and to
34161         look up and cache module metainformation.
34162         (func_get_description, func_get_status)
34163         (func_get_notice, func_get_applicability, func_get_filelist)
34164         (func_get_dependencies, func_get_autoconf_early_snippet)
34165         (func_get_autoconf_snippet, func_get_automake_snippet)
34166         (func_get_include_directive, func_get_link_directive)
34167         (func_get_license, func_get_maintainer): Use
34168         func_cache_lookup_module.
34169
34170 2010-02-07  Bruno Haible  <bruno@clisp.org>
34171
34172         fnctl: Fix missing dependency.
34173         * modules/fcntl (Depends-on): Add getdtablesize.
34174         Reported by John W. Eaton <jwe@gnu.org>.
34175
34176 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34177
34178         Argp: fix recognition of short alias options.
34179
34180         * lib/argp-parse.c (convert_options): Fix improper use of
34181         `|' between character values.
34182         * tests/test-argp.c (group1_option): New alias option
34183         --read (-r).
34184         (group1_parser): Special handling for 'r'.
34185         (test15): New test case.
34186         (test_fun): Add test15.
34187         * tests/test-argp-2.sh: Update expected --help and --usage
34188         outputs.
34189
34190 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34191
34192         * tests/test-argp.c: Fix indentation.
34193
34194 2010-02-04  Eric Blake  <ebb9@byu.net>
34195
34196         gettimeofday: expose type of second argument
34197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34198         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34199         * tests/test-gettimeofday.c: Use it to silence warning.
34200         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34201         the issue.
34202
34203 2010-02-03  Jim Meyering  <meyering@redhat.com>
34204
34205         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34206         * lib/regcomp.c (TYPE_SIGNED): Define.
34207         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34208
34209         regcomp.c: avoid a new -Wshadow warning
34210         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34211
34212 2010-02-01  Jim Meyering  <meyering@redhat.com>
34213
34214         removing useless parentheses in cpp #define directives
34215         For motivation, see commit c0221df4, "define STREQ(a,b)
34216         consistently, removing useless parentheses"
34217         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34218         * lib/mountlist.c (MNT_IGNORE): Likewise.
34219         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34220
34221 2010-02-01  Eric Blake  <ebb9@byu.net>
34222
34223         sys_time: use link-warning
34224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34225         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34226         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34227         * modules/sys_time (Depends-on): Add warn-on-use.
34228         (Makefile.am): Always build replacement.
34229         (configure.ac): Update substitutions.
34230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34231         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34232         bother with SYS_TIME_H.
34233         * modules/gettimeofday (configure.ac): Declare indicator.
34234         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34235         in use.
34236
34237         closein-tests: silence compiler warning
34238         * tests/test-closein.c (main): Ignore fread result.
34239         * modules/closein-tests (Depends-on): Add ignore-value.
34240
34241         tests: silence warning about system return
34242         * tests/test-areadlink-with-size.c (main): Ignore system result.
34243         * tests/test-areadlink.c (main): Likewise.
34244         * tests/test-areadlinkat-with-size.c (main): Likewise.
34245         * tests/test-areadlinkat.c (main): Likewise.
34246         * tests/test-canonicalize-lgpl.c (main): Likewise.
34247         * tests/test-canonicalize.c (main): Likewise.
34248         * tests/test-chown.c (main): Likewise.
34249         * tests/test-fchownat.c (main): Likewise.
34250         * tests/test-fdutimensat.c (main): Likewise.
34251         * tests/test-fstatat.c (main): Likewise.
34252         * tests/test-futimens.c (main): Likewise.
34253         * tests/test-lchown.c (main): Likewise.
34254         * tests/test-link.c (main): Likewise.
34255         * tests/test-linkat.c (main): Likewise.
34256         * tests/test-lstat.c (main): Likewise.
34257         * tests/test-mkdir.c (main): Likewise.
34258         * tests/test-mkdirat.c (main): Likewise.
34259         * tests/test-mkfifo.c (main): Likewise.
34260         * tests/test-mkfifoat.c (main): Likewise.
34261         * tests/test-mknod.c (main): Likewise.
34262         * tests/test-readlink.c (main): Likewise.
34263         * tests/test-remove.c (main): Likewise.
34264         * tests/test-rename.c (main): Likewise.
34265         * tests/test-renameat.c (main): Likewise.
34266         * tests/test-rmdir.c (main): Likewise.
34267         * tests/test-symlink.c (main): Likewise.
34268         * tests/test-symlinkat.c (main): Likewise.
34269         * tests/test-unlink.c (main): Likewise.
34270         * tests/test-unlinkat.c (main): Likewise.
34271         * tests/test-utimens.c (main): Likewise.
34272         * tests/test-utimensat.c (main): Likewise.
34273         * modules/areadlink-tests (Depends-on): Add ignore-value.
34274         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34275         * modules/areadlinkat-tests (Depends-on): Likewise.
34276         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34277         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34278         * modules/canonicalize-tests (Depends-on): Likewise.
34279         * modules/chown-tests (Depends-on): Likewise.
34280         * modules/fdutimensat-tests (Depends-on): Likewise.
34281         * modules/futimens-tests (Depends-on): Likewise.
34282         * modules/lchown-tests (Depends-on): Likewise.
34283         * modules/link-tests (Depends-on): Likewise.
34284         * modules/linkat-tests (Depends-on): Likewise.
34285         * modules/lstat-tests (Depends-on): Likewise.
34286         * modules/mkdir-tests (Depends-on): Likewise.
34287         * modules/mkfifo-tests (Depends-on): Likewise.
34288         * modules/mkfifoat-tests (Depends-on): Likewise.
34289         * modules/mknod-tests (Depends-on): Likewise.
34290         * modules/openat-tests (Depends-on): Likewise.
34291         * modules/readlink-tests (Depends-on): Likewise.
34292         * modules/remove-tests (Depends-on): Likewise.
34293         * modules/rename-tests (Depends-on): Likewise.
34294         * modules/renameat-tests (Depends-on): Likewise.
34295         * modules/rmdir-tests (Depends-on): Likewise.
34296         * modules/symlink-tests (Depends-on): Likewise.
34297         * modules/symlinkat-tests (Depends-on): Likewise.
34298         * modules/unlink-tests (Depends-on): Likewise.
34299         * modules/utimens-tests (Depends-on): Likewise.
34300         * modules/utimensat-tests (Depends-on): Likewise.
34301
34302 2010-01-31  Bruno Haible  <bruno@clisp.org>
34303
34304         Perform the same test for many <math.h> functions.
34305         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34306         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34307         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34308         of gl_MATHFUNC.
34309         * modules/acos (configure.ac): Likewise.
34310         * modules/asin (configure.ac): Likewise.
34311         * modules/atan (configure.ac): Likewise.
34312         * modules/atan2 (configure.ac): Likewise.
34313         * modules/cbrt (configure.ac): Likewise.
34314         * modules/copysign (configure.ac): Likewise.
34315         * modules/cos (configure.ac): Likewise.
34316         * modules/cosh (configure.ac): Likewise.
34317         * modules/erf (configure.ac): Likewise.
34318         * modules/erfc (configure.ac): Likewise.
34319         * modules/exp (configure.ac): Likewise.
34320         * modules/fmod (configure.ac): Likewise.
34321         * modules/hypot (configure.ac): Likewise.
34322         * modules/j0 (configure.ac): Likewise.
34323         * modules/j1 (configure.ac): Likewise.
34324         * modules/jn (configure.ac): Likewise.
34325         * modules/lgamma (configure.ac): Likewise.
34326         * modules/log (configure.ac): Likewise.
34327         * modules/log10 (configure.ac): Likewise.
34328         * modules/log1p (configure.ac): Likewise.
34329         * modules/pow (configure.ac): Likewise.
34330         * modules/remainder (configure.ac): Likewise.
34331         * modules/sin (configure.ac): Likewise.
34332         * modules/sinh (configure.ac): Likewise.
34333         * modules/tan (configure.ac): Likewise.
34334         * modules/tanh (configure.ac): Likewise.
34335         * modules/y0 (configure.ac): Likewise.
34336         * modules/y1 (configure.ac): Likewise.
34337         * modules/yn (configure.ac): Likewise.
34338         Suggested by Paolo Bonzini.
34339
34340 2010-01-31  Bruno Haible  <bruno@clisp.org>
34341
34342         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34343
34344 2010-01-31  Bruno Haible  <bruno@clisp.org>
34345
34346         Work around getdelim() bug on FreeBSD 8.0.
34347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34348         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34349         not work.
34350         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34351         is 1.
34352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34353         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34354         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34355         a non-zero size.
34356         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34357
34358 2010-01-31  Bruno Haible  <bruno@clisp.org>
34359
34360         Work around getline() bug on FreeBSD 8.0.
34361         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34362         and a non-zero size.
34363         * tests/test-getline.c (main): Likewise.
34364         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34365         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34366
34367 2010-01-28  Eric Blake  <ebb9@byu.net>
34368
34369         regex: fix build failure
34370         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34371         platforms.
34372
34373 2010-01-28  Jim Meyering  <meyering@redhat.com>
34374
34375         regex: do not ignore memory allocation failure
34376         * lib/regex_internal.c (create_cd_newstate): Detect
34377         re_node_set_init_copy failure.   Extracted from glibc commit
34378         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34379
34380         regex: sync more white-space changes from libc
34381         * lib/regex_internal.c: White-space only changes.
34382         * lib/regexec.c: Likewise.
34383
34384         regex: add many uses of __attribute_warn_unused_result__
34385         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34386         * lib/regexec.c: Likewise.
34387         Extracted from a messy glibc commit.
34388
34389         regcomp.c: spelling and merge-artifact from glibc
34390         * lib/regcomp.c: Merge remainder of glibc's
34391         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34392
34393         regcomp.c: sync white-space changes from glibc
34394         * lib/regcomp.c: Merge to accommodate white space
34395         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34396
34397         regcomp.c: do not ignore internal return values
34398         * lib/regcomp.c: Do not ignore internal return values.
34399         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34400         but without its white-space changes and spelling fixes.
34401
34402         regex_internal.h: define __attribute_warn_unused_result__
34403         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34404
34405         maint: add a syntax-check rule to check for vulnerable Makefile.in
34406         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34407
34408 2010-01-27  Jim Meyering  <meyering@redhat.com>
34409
34410         ncftpput-ftp: clean up spaces
34411         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34412         Remove trailing blanks.
34413
34414 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34415
34416         * build-aux/git-version-gen: Fix copyright statement.
34417         * build-aux/gnupload: Likewise.
34418         * tests/test-arcfour.c: Likewise.
34419         * tests/test-arctwo.c: Likewise.
34420         * tests/test-count-one-bits.c: Likewise.
34421         * tests/test-crc.c: Likewise.
34422         * tests/test-des.c: Likewise.
34423         * tests/test-gc-arcfour.c: Likewise.
34424         * tests/test-gc-arctwo.c: Likewise.
34425         * tests/test-gc-des.c: Likewise.
34426         * tests/test-gc-hmac-md5.c: Likewise.
34427         * tests/test-gc-hmac-sha1.c: Likewise.
34428         * tests/test-gc-md2.c: Likewise.
34429         * tests/test-gc-md4.c: Likewise.
34430         * tests/test-gc-md5.c: Likewise.
34431         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34432         * tests/test-gc-rijndael.c: Likewise.
34433         * tests/test-gc-sha1.c: Likewise.
34434         * tests/test-gc.c: Likewise.
34435         * tests/test-gethostname.c: Likewise.
34436         * tests/test-gettimeofday.c: Likewise.
34437         * tests/test-hash.c: Likewise.
34438         * tests/test-hmac-md5.c: Likewise.
34439         * tests/test-hmac-sha1.c: Likewise.
34440         * tests/test-md2.c: Likewise.
34441         * tests/test-md4.c: Likewise.
34442         * tests/test-md5.c: Likewise.
34443         * tests/test-memchr.c: Likewise.
34444         * tests/test-memchr2.c: Likewise.
34445         * tests/test-memcmp.c: Likewise.
34446         * tests/test-memmem.c: Likewise.
34447         * tests/test-memrchr.c: Likewise.
34448         * tests/test-rawmemchr.c: Likewise.
34449         * tests/test-read-file.c: Likewise.
34450         * tests/test-rijndael.c: Likewise.
34451         * tests/test-sockets.c: Likewise.
34452         * tests/test-strchrnul.c: Likewise.
34453         * tests/test-strstr.c: Likewise.
34454         * tests/test-strtod.c: Likewise.
34455         * build-aux/ncftpput-ftp: Likewise.
34456
34457 2010-01-26  Eric Blake  <ebb9@byu.net>
34458
34459         ignore-value: update recommended header name
34460         * modules/ignore-value (Include): Only use <> for headers that
34461         exist in glibc.
34462
34463 2010-01-26  Jim Meyering  <meyering@redhat.com>
34464
34465         test-userspec.c: avoid compiler warnings
34466         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34467         and "initialization discards qualifiers..." warnings.
34468         Put the first "uid" in its own scope, and make char* members "const".
34469
34470 2010-01-25  Bruno Haible  <bruno@clisp.org>
34471
34472         gnulib-tool: Make warning diagnostics consistent.
34473         * gnulib-tool (func_warning): New function.
34474         Use it everywhere where gnulib-tool produces output to stderr and it is
34475         not a fatal error.
34476
34477 2010-01-25  Bruno Haible  <bruno@clisp.org>
34478
34479         Fix test dependencies.
34480         * modules/xstrtol-tests (Depends-on): Add inttypes.
34481         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34482
34483 2010-01-25 Pádraig Brady <P@draigBrady.com>
34484
34485         syntax-check: detect incorrect boolean macro values in config.h
34486         * modules/maintainer-makefile (configure.ac): Parameterize the location
34487         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34488         The logic is from Eric Blake and the location indicated by Jim Meyering.
34489         Note the more natural CONFIG_HEADER name is prohibited by automake
34490         for backwards compatibility reasons.
34491         * top/maint.mk (sc_Wundef_boolean): New rule.
34492
34493 2010-01-25  Jim Meyering  <meyering@redhat.com>
34494
34495         bootstrap: detect MacOS 10.6's shasum, too
34496         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34497         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34498
34499 2010-01-23  Jim Meyering  <meyering@redhat.com>
34500
34501         xstrtoll: new module
34502         * modules/xstrtoll: New file.
34503         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34504         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34505         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34506         ./configure fails if you use this module and lack "long long".
34507         * modules/xstrtoll-tests: New module.
34508         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34509         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34510         new init.sh-based test framework.
34511
34512 2010-01-24  Bruno Haible  <bruno@clisp.org>
34513
34514         Tests for module 'yn'.
34515         * modules/yn-tests: New file.
34516         * tests/test-yn.c: New file.
34517
34518         Tests for module 'y1'.
34519         * modules/y1-tests: New file.
34520         * tests/test-y1.c: New file.
34521
34522         Tests for module 'y0'.
34523         * modules/y0-tests: New file.
34524         * tests/test-y0.c: New file.
34525
34526         Tests for module 'tanh'.
34527         * modules/tanh-tests: New file.
34528         * tests/test-tanh.c: New file.
34529
34530         Tests for module 'tan'.
34531         * modules/tan-tests: New file.
34532         * tests/test-tan.c: New file.
34533
34534         Tests for module 'sqrt'.
34535         * modules/sqrt-tests: New file.
34536         * tests/test-sqrt.c: New file.
34537
34538         Tests for module 'sinh'.
34539         * modules/sinh-tests: New file.
34540         * tests/test-sinh.c: New file.
34541
34542         Tests for module 'sin'.
34543         * modules/sin-tests: New file.
34544         * tests/test-sin.c: New file.
34545
34546         Tests for module 'rint'.
34547         * modules/rint-tests: New file.
34548         * tests/test-rint.c: New file.
34549
34550         Tests for module 'remainder'.
34551         * modules/remainder-tests: New file.
34552         * tests/test-remainder.c: New file.
34553
34554         Tests for module 'pow'.
34555         * modules/pow-tests: New file.
34556         * tests/test-pow.c: New file.
34557
34558         Tests for module 'nextafter'.
34559         * modules/nextafter-tests: New file.
34560         * tests/test-nextafter.c: New file.
34561
34562         Tests for module 'modf'.
34563         * modules/modf-tests: New file.
34564         * tests/test-modf.c: New file.
34565
34566         Tests for module 'logb'.
34567         * modules/logb-tests: New file.
34568         * tests/test-logb.c: New file.
34569
34570         Tests for module 'log1p'.
34571         * modules/log1p-tests: New file.
34572         * tests/test-log1p.c: New file.
34573
34574         Tests for module 'log10'.
34575         * modules/log10-tests: New file.
34576         * tests/test-log10.c: New file.
34577
34578         Tests for module 'log'.
34579         * modules/log-tests: New file.
34580         * tests/test-log.c: New file.
34581
34582         Tests for module 'lgamma'.
34583         * modules/lgamma-tests: New file.
34584         * tests/test-lgamma.c: New file.
34585
34586         Tests for module 'ldexp'.
34587         * modules/ldexp-tests: New file.
34588         * tests/test-ldexp.c: New file.
34589
34590         Tests for module 'jn'.
34591         * modules/jn-tests: New file.
34592         * tests/test-jn.c: New file.
34593
34594         Tests for module 'j1'.
34595         * modules/j1-tests: New file.
34596         * tests/test-j1.c: New file.
34597
34598         Tests for module 'j0'.
34599         * modules/j0-tests: New file.
34600         * tests/test-j0.c: New file.
34601
34602         Tests for module 'hypot'.
34603         * modules/hypot-tests: New file.
34604         * tests/test-hypot.c: New file.
34605
34606         Tests for module 'fmod'.
34607         * modules/fmod-tests: New file.
34608         * tests/test-fmod.c: New file.
34609
34610         Tests for module 'fabs'.
34611         * modules/fabs-tests: New file.
34612         * tests/test-fabs.c: New file.
34613
34614         Tests for module 'exp'.
34615         * modules/exp-tests: New file.
34616         * tests/test-exp.c: New file.
34617
34618         Tests for module 'erfc'.
34619         * modules/erfc-tests: New file.
34620         * tests/test-erfc.c: New file.
34621
34622         Tests for module 'erf'.
34623         * modules/erf-tests: New file.
34624         * tests/test-erf.c: New file.
34625
34626         Tests for module 'cosh'.
34627         * modules/cosh-tests: New file.
34628         * tests/test-cosh.c: New file.
34629
34630         Tests for module 'cos'.
34631         * modules/cos-tests: New file.
34632         * tests/test-cos.c: New file.
34633
34634         Tests for module 'copysign'.
34635         * modules/copysign-tests: New file.
34636         * tests/test-copysign.c: New file.
34637
34638         Tests for module 'cbrt'.
34639         * modules/cbrt-tests: New file.
34640         * tests/test-cbrt.c: New file.
34641
34642         Tests for module 'atan2'.
34643         * modules/atan2-tests: New file.
34644         * tests/test-atan2.c: New file.
34645
34646         Tests for module 'atan'.
34647         * modules/atan-tests: New file.
34648         * tests/test-atan.c: New file.
34649
34650         Tests for module 'asin'.
34651         * modules/asin-tests: New file.
34652         * tests/test-asin.c: New file.
34653
34654         Tests for module 'acos'.
34655         * modules/acos-tests: New file.
34656         * tests/test-acos.c: New file.
34657
34658 2010-01-24  Bruno Haible  <bruno@clisp.org>
34659
34660         Fix tests for common <math.h> functions.
34661         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34662         code snippet that references the function pointer, rather than merely
34663         calling the function. Substitute the FUNC_LIBM variable.
34664         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34665         * modules/acos (configure.ac): Likewise.
34666         * modules/asin (configure.ac): Likewise.
34667         * modules/atan (configure.ac): Likewise.
34668         * modules/atan2 (configure.ac): Likewise.
34669         * modules/cbrt (configure.ac): Likewise.
34670         * modules/copysign (configure.ac): Likewise.
34671         * modules/cos (configure.ac): Likewise.
34672         * modules/cosh (configure.ac): Likewise.
34673         * modules/erf (configure.ac): Likewise.
34674         * modules/erfc (configure.ac): Likewise.
34675         * modules/exp (configure.ac): Likewise.
34676         * modules/fabs (configure.ac): Likewise.
34677         * modules/fmod (configure.ac): Likewise.
34678         * modules/hypot (configure.ac): Likewise.
34679         * modules/j0 (configure.ac): Likewise.
34680         * modules/j1 (configure.ac): Likewise.
34681         * modules/jn (configure.ac): Likewise.
34682         * modules/ldexp (configure.ac): Likewise.
34683         * modules/lgamma (configure.ac): Likewise.
34684         * modules/log (configure.ac): Likewise.
34685         * modules/log10 (configure.ac): Likewise.
34686         * modules/log1p (configure.ac): Likewise.
34687         * modules/logb (configure.ac): Likewise.
34688         * modules/modf (configure.ac): Likewise.
34689         * modules/nextafter (configure.ac): Likewise.
34690         * modules/pow (configure.ac): Likewise.
34691         * modules/remainder (configure.ac): Likewise.
34692         * modules/rint (configure.ac): Likewise.
34693         * modules/sin (configure.ac): Likewise.
34694         * modules/sinh (configure.ac): Likewise.
34695         * modules/tan (configure.ac): Likewise.
34696         * modules/tanh (configure.ac): Likewise.
34697         * modules/y0 (configure.ac): Likewise.
34698         * modules/y1 (configure.ac): Likewise.
34699         * modules/yn (configure.ac): Likewise.
34700
34701 2010-01-24  Bruno Haible  <bruno@clisp.org>
34702
34703         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34704         * tests/test-acosl.c (x): New variable.
34705         (main): Store argument in x and fetch it from x.
34706         * tests/test-asinl.c (x): New variable.
34707         (main): Store argument in x and fetch it from x.
34708         * tests/test-atanl.c (x): New variable.
34709         (main): Store argument in x and fetch it from x.
34710         * tests/test-cosl.c (x): New variable.
34711         (main): Store argument in x and fetch it from x.
34712         * tests/test-expl.c (x): New variable.
34713         (main): Store argument in x and fetch it from x.
34714         * tests/test-logl.c (x): New variable.
34715         (main): Store argument in x and fetch it from x.
34716         * tests/test-sinl.c (x): New variable.
34717         (main): Store argument in x and fetch it from x.
34718         * tests/test-sqrtl.c (x): New variable.
34719         (main): Store argument in x and fetch it from x.
34720         * tests/test-tanl.c (x): New variable.
34721         (main): Store argument in x and fetch it from x.
34722
34723 2010-01-24  Bruno Haible  <bruno@clisp.org>
34724
34725         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34726         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34727         assignments to the initial TESTS_ENVIRONMENT.
34728         * doc/gnulib.texi (Unit test modules): Document it.
34729         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34730         TESTS_ENVIRONMENT.
34731         * modules/btowc-tests (Makefile.am): Likewise.
34732         * modules/c-stack-tests (Makefile.am): Likewise.
34733         * modules/c-strcase-tests (Makefile.am): Likewise.
34734         * modules/copy-file-tests (Makefile.am): Likewise.
34735         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34736         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34737         * modules/mbrtowc-tests (Makefile.am): Likewise.
34738         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34739         * modules/mbscasestr-tests (Makefile.am): Likewise.
34740         * modules/mbschr-tests (Makefile.am): Likewise.
34741         * modules/mbscspn-tests (Makefile.am): Likewise.
34742         * modules/mbsinit-tests (Makefile.am): Likewise.
34743         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34744         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34745         * modules/mbspbrk-tests (Makefile.am): Likewise.
34746         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34747         * modules/mbsrchr-tests (Makefile.am): Likewise.
34748         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34749         * modules/mbsspn-tests (Makefile.am): Likewise.
34750         * modules/mbsstr-tests (Makefile.am): Likewise.
34751         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34752         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34753         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34754         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34755         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34756         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34757         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34758         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34759         * modules/wcrtomb-tests (Makefile.am): Likewise.
34760         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34761         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34762         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34763         assignments from TESTS_ENVIRONMENT.
34764         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34765         augmentation.
34766         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34767         * modules/atexit-tests (Makefile.am): Likewise.
34768         * modules/binary-io-tests (Makefile.am): Likewise.
34769         * modules/closein-tests (Makefile.am): Likewise.
34770         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34771         * modules/exclude-tests (Makefile.am): Likewise.
34772         * modules/fflush-tests (Makefile.am): Likewise.
34773         * modules/fpending-tests (Makefile.am): Likewise.
34774         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34775         * modules/freadahead-tests (Makefile.am): Likewise.
34776         * modules/freadptr-tests (Makefile.am): Likewise.
34777         * modules/freadseek-tests (Makefile.am): Likewise.
34778         * modules/fseek-tests (Makefile.am): Likewise.
34779         * modules/fseeko-tests (Makefile.am): Likewise.
34780         * modules/ftell-tests (Makefile.am): Likewise.
34781         * modules/ftello-tests (Makefile.am): Likewise.
34782         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34783         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34784         * modules/lseek-tests (Makefile.am): Likewise.
34785         * modules/parse-duration-tests (Makefile.am): Likewise.
34786         * modules/perror-tests (Makefile.am): Likewise.
34787         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34788         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34789         * modules/pipe-tests (Makefile.am): Likewise.
34790         * modules/pread-tests (Makefile.am): Likewise.
34791         * modules/printf-posix-tests (Makefile.am): Likewise.
34792         * modules/select-tests (Makefile.am): Likewise.
34793         * modules/sigpipe-tests (Makefile.am): Likewise.
34794         * modules/tsearch-tests (Makefile.am): Likewise.
34795         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34796         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34797         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34798         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34799         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34800         * modules/version-etc-tests (Makefile.am): Likewise.
34801         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34802         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34803         * modules/xalloc-die-tests (Makefile.am): Likewise.
34804         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34805         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34806         * modules/xstrtol-tests (Makefile.am): Likewise.
34807         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34808         * modules/yesno-tests (Makefile.am): Likewise.
34809         Suggested by Jim Meyering.
34810
34811 2010-01-24  Bruno Haible  <bruno@clisp.org>
34812
34813         More documentation.
34814         * doc/gnulib.texi (Writing modules): New chapter.
34815         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34816         the new chapter.
34817
34818 2010-01-24  Jim Meyering  <meyering@redhat.com>
34819
34820         maint.mk: do not prepend "./" after filtering
34821         * top/maint.mk (_prepend_srcdir_prefix): New variable
34822         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34823         "./" when $(srcdir) is ".".
34824
34825         define STREQ(a,b) consistently, removing useless parentheses
34826         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34827         since the only risk is that "a" or "b" contains an unparenthesized
34828         comma, but if either did that, STREQ would have 3 or more arguments.
34829         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34830         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34831         * lib/hash-triple.c (STREQ): Likewise.
34832         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34833         * lib/getugroups.c (STREQ): Likewise.
34834
34835 2010-01-23  Jim Meyering  <meyering@redhat.com>
34836
34837         maint.mk: fix syntax-check in a non-srcdir build directory
34838         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34839         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34840
34841 2010-01-22  Jim Meyering  <meyering@redhat.com>
34842
34843         userspec: add unit tests
34844         * tests/test-userspec.c: New file.
34845         * modules/userspec-tests: Likewise.
34846
34847 2010-01-21  Jim Meyering  <meyering@redhat.com>
34848
34849         maint.mk: handle source file names containing "." robustly
34850         * top/maint.mk (_dot_escaped_srcdir): Define.
34851         (VC_LIST): Use it in LHS of sed substitution.
34852
34853 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34854
34855         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34856         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34857         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34858         from a non-srcdir build.
34859
34860 2010-01-20  Eric Blake  <ebb9@byu.net>
34861
34862         warn-on-use: use instead of link-warning
34863         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34864         * modules/unistd (Depends-on, Makefile.am): Likewise.
34865         * modules/arpa_inet (Depends-on): Replace link-warning with
34866         warn-on-use.
34867         (Makefile.am): Update rules accordingly.
34868         * modules/ctype (Depends-on, Makefile.am): Likewise.
34869         * modules/dirent (Depends-on, Makefile.am): Likewise.
34870         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34871         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34872         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34873         * modules/locale (Depends-on, Makefile.am): Likewise.
34874         * modules/math (Depends-on, Makefile.am): Likewise.
34875         * modules/search (Depends-on, Makefile.am): Likewise.
34876         * modules/signal (Depends-on, Makefile.am): Likewise.
34877         * modules/spawn (Depends-on, Makefile.am): Likewise.
34878         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34879         * modules/string (Depends-on, Makefile.am): Likewise.
34880         * modules/strings (Depends-on, Makefile.am): Likewise.
34881         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34882         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34883         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34884         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34885         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34886         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34887         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34888         * modules/wchar (Depends-on, Makefile.am): Likewise.
34889         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34890         should be poisoned.
34891         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34892         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34893         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34895         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34896         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34897         * m4/math_h.m4 (gl_MATH_H): Likewise.
34898         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34899         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34900         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34901         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34902         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34903         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34904         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34905         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34906         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34912         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34913         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34914         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34915         GL_LINK_WARNING.
34916         * lib/ctype.in.h: Likewise.
34917         * lib/dirent.in.h: Likewise.
34918         * lib/fcntl.in.h: Likewise.
34919         * lib/inttypes.in.h: Likewise.
34920         * lib/langinfo.in.h: Likewise.
34921         * lib/locale.in.h: Likewise.
34922         * lib/math.in.h: Likewise.
34923         * lib/search.in.h: Likewise.
34924         * lib/signal.in.h: Likewise.
34925         * lib/spawn.in.h: Likewise.
34926         * lib/stdio.in.h: Likewise.
34927         * lib/stdlib.in.h: Likewise.
34928         * lib/string.in.h: Likewise.
34929         * lib/strings.in.h: Likewise.
34930         * lib/sys_file.in.h: Likewise.
34931         * lib/sys_ioctl.in.h: Likewise.
34932         * lib/sys_select.in.h: Likewise.
34933         * lib/sys_socket.in.h: Likewise.
34934         * lib/sys_stat.in.h: Likewise.
34935         * lib/sys_times.in.h: Likewise.
34936         * lib/sys_utsname.in.h: Likewise.
34937         * lib/unistd.in.h: Likewise.
34938         * lib/wchar.in.h: Likewise.
34939
34940 2010-01-20  Bruno Haible  <bruno@clisp.org>
34941
34942         Avoid duplicate -lm.
34943         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34944         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34945         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34947         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34948         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34949         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34950         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34951         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34952         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34953         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34954         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34955         Reported by Paolo Bonzini.
34956
34957 2010-01-19  Bruno Haible  <bruno@clisp.org>
34958
34959         langinfo, nl_langinfo: Relicense under LGPLv2+.
34960         * modules/langinfo (License): Change to LGPLv2+.
34961         * modules/nl_langinfo (License): Likewise.
34962         Patch by David Lutterkort <lutter@redhat.com>.
34963
34964 2010-01-19  Bruno Haible  <bruno@clisp.org>
34965
34966         Avoid compilation error with cc on OSF/1 5.1.
34967         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34968         statement, not before.
34969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34970
34971 2010-01-18  Bruno Haible  <bruno@clisp.org>
34972
34973         Avoid a link error due to the __printf__ symbol.
34974         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34975         and 2.6.x.
34976         (__format__, __printf__): Remove definitions.
34977         * lib/argp-fmtstream.h: Likewise.
34978         * lib/argp.h: Likewise.
34979         * lib/error.h: Likewise.
34980         * lib/vasnprintf.h: Likewise.
34981         * lib/xprintf.h: Likewise.
34982         * lib/xvasprintf.h: Likewise.
34983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34984
34985 2010-01-18  Bruno Haible  <bruno@clisp.org>
34986
34987         Tests for module 'tanl'.
34988         * modules/tanl-tests: New file.
34989         * tests/test-tanl.c: New file.
34990
34991         Tests for module 'sqrtl'.
34992         * modules/sqrtl-tests: New file.
34993         * tests/test-sqrtl.c: New file.
34994
34995         Tests for module 'sinl'.
34996         * modules/sinl-tests: New file.
34997         * tests/test-sinl.c: New file.
34998
34999         Tests for module 'logl'.
35000         * modules/logl-tests: New file.
35001         * tests/test-logl.c: New file.
35002
35003         Tests for module 'expl'.
35004         * modules/expl-tests: New file.
35005         * tests/test-expl.c: New file.
35006
35007         Tests for module 'cosl'.
35008         * modules/cosl-tests: New file.
35009         * tests/test-cosl.c: New file.
35010
35011         Tests for module 'atanl'.
35012         * modules/atanl-tests: New file.
35013         * tests/test-atanl.c: New file.
35014
35015         Tests for module 'asinl'.
35016         * modules/asinl-tests: New file.
35017         * tests/test-asinl.c: New file.
35018
35019         Tests for module 'acosl'.
35020         * modules/acosl-tests: New file.
35021         * tests/test-acosl.c: New file.
35022
35023         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35024         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35025         tanl): Use the standard gnulib idiom.
35026         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35027         * lib/sinl.c: Likewise.
35028         * lib/tanl.c: Don't include trigl.c.
35029         (kernel_tanl): Make static.
35030         * lib/sincosl.c: Include trigl.h first.
35031         * lib/trigl.c: Likewise.
35032         * m4/acosl.m4: New file.
35033         * m4/asinl.m4: New file.
35034         * m4/atanl.m4: New file.
35035         * m4/cosl.m4: New file.
35036         * m4/expl.m4: New file.
35037         * m4/logl.m4: New file.
35038         * m4/sinl.m4: New file.
35039         * m4/sqrtl.m4: New file.
35040         * m4/tanl.m4: New file.
35041         * m4/mathl.m4: Remove file.
35042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35043         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35044         Don't initialize GNULIB_MATHL.
35045         * modules/acosl: New file.
35046         * modules/asinl: New file.
35047         * modules/atanl: New file.
35048         * modules/cosl: New file.
35049         * modules/expl: New file.
35050         * modules/logl: New file.
35051         * modules/sinl: New file.
35052         * modules/sqrtl: New file.
35053         * modules/tanl: New file.
35054         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35055         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35056         substitute GNULIB_MATHL.
35057         * modules/mathl: Rewritten.
35058         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35059         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35060         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35061         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35062         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35063         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35064         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35065         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35066         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35067
35068 2010-01-18  Bruno Haible  <bruno@clisp.org>
35069
35070         sqrt: Make gl_FUNC_SQRT requirable.
35071         * m4/sqrt.m4: New file.
35072         * modules/sqrt (Files): Add it.
35073         (configure.ac): Invoke gl_FUNC_SQRT.
35074
35075 2010-01-18  Bruno Haible  <bruno@clisp.org>
35076
35077         New modules for common <math.h> functions.
35078         * m4/mathfunc.m4: New file.
35079         * modules/acos: New file.
35080         * modules/asin: New file.
35081         * modules/atan: New file.
35082         * modules/atan2: New file.
35083         * modules/cbrt: New file.
35084         * modules/copysign: New file.
35085         * modules/cos: New file.
35086         * modules/cosh: New file.
35087         * modules/erf: New file.
35088         * modules/erfc: New file.
35089         * modules/exp: New file.
35090         * modules/fabs: New file.
35091         * modules/fmod: New file.
35092         * modules/hypot: New file.
35093         * modules/j0: New file.
35094         * modules/j1: New file.
35095         * modules/jn: New file.
35096         * modules/ldexp: New file.
35097         * modules/lgamma: New file.
35098         * modules/log: New file.
35099         * modules/log10: New file.
35100         * modules/log1p: New file.
35101         * modules/logb: New file.
35102         * modules/modf: New file.
35103         * modules/nextafter: New file.
35104         * modules/pow: New file.
35105         * modules/remainder: New file.
35106         * modules/rint: New file.
35107         * modules/sin: New file.
35108         * modules/sinh: New file.
35109         * modules/sqrt: New file.
35110         * modules/tan: New file.
35111         * modules/tanh: New file.
35112         * modules/y0: New file.
35113         * modules/y1: New file.
35114         * modules/yn: New file.
35115         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35116         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35117         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35118         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35119         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35120         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35121         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35122         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35123         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35124         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35125         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35126         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35127         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35128         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35129         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35130         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35131         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35132         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35133         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35134         * doc/posix-functions/log.texi: Mention the 'log' module.
35135         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35136         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35137         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35138         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35139         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35140         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35141         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35142         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35143         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35144         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35145         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35146         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35147         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35148         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35149         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35150         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35151
35152 2010-01-18  Jim Meyering  <meyering@redhat.com>
35153
35154         ignore-value: relax license to LGPLv2+
35155         * modules/ignore-value (License): Relax to LGPLv2+.
35156
35157         getdate: don't leak when TZ contains two or more '"'s
35158         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35159         double quote in TZ after the first one.
35160
35161         readtokens: do not leak internal token_lengths buffer
35162         * lib/readtokens.c (readtokens): Free the local, lengths,
35163         when the supplied "token_lengths" parameter is NULL.
35164
35165 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35166
35167         Fix a couple of missing LIBTHREAD link failures on AIX.
35168         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35169         $(LIBTHREAD).
35170         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35171
35172         Link test-poll against INET_PTON_LIB.
35173         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35174         for inet_pton on Solaris 10.
35175
35176 2010-01-17  Bruno Haible  <bruno@clisp.org>
35177
35178         unistdio/*-sprintf: Fix typo in module description.
35179         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35180         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35181         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35182         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35183         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35184         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35185         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35187
35188 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35189
35190         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35191         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35192         variables in shell case patterns, for AIX and HP-UX ksh.
35193
35194         Split large sed scripts, for HP-UX sed.
35195         * modules/stdio: Split sed scripts around 50 sed commands,
35196         to avoid HP-UX limit of 99 commands, in the near future.
35197         * modules/string: Likewise.
35198         * modules/unistd: Likewise.
35199
35200         gnulib-tool: avoid writing in the current directory.
35201         * gnulib-tool (func_emit_lib_Makefile_am)
35202         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35203         not in the current directory, so concurrent gnulib-tool
35204         instances do not interfere.
35205
35206 2010-01-16  Jim Meyering  <meyering@redhat.com>
35207
35208         doc: update users.txt
35209         * users.txt: Add grep.
35210         (diffutils, gzip): Update URLs.
35211
35212 2010-01-12  Bruno Haible  <bruno@clisp.org>
35213
35214         posix_spawn: Avoid test failure on Cygwin.
35215         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35216         characters.
35217         Reported by Simon Josefsson.
35218
35219 2010-01-12  Bruno Haible  <bruno@clisp.org>
35220
35221         * tests/test-cond.c (main): When skipping the test, show the reason.
35222
35223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35224
35225         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35226
35227 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35228
35229         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35230         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35231
35232 2010-01-12  Eric Blake  <ebb9@byu.net>
35233
35234         build: guarantee AS_VAR_IF
35235         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35236         (gl_AS_VAR_IF): Move...
35237         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35238         Reported by Simon Josefsson.
35239
35240 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35241
35242         * lib/stdio.in.h: Fix typo.
35243
35244 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35245
35246         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35247         libgpg-error.
35248
35249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35250
35251         * tests/test-xalloc-die.sh: Use $EXEEXT.
35252
35253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35254             Bruno Haible  <bruno@clisp.org>
35255
35256         getlogin, getlogin_r: Avoid test failure.
35257         * tests/test-getlogin.c: Include <stdio.h>.
35258         (main): Skip the test when the function fails because stdin is not a
35259         tty.
35260         * tests/test-getlogin_r.c: Include <stdio.h>.
35261         (main): Skip the test when the function fails because stdin is not a
35262         tty.
35263
35264 2010-01-11  Eric Blake  <ebb9@byu.net>
35265
35266         tests: avoid more large file warnings
35267         * tests/test-fflush.c: Avoid warning about ftell use.
35268         * tests/test-fseek.c: Avoid warning about fseek use.
35269
35270 2010-01-10  Bruno Haible  <bruno@clisp.org>
35271
35272         nproc: Work better on Linux when /proc and /sys are not mounted.
35273         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35274         as lower bound when, on glibc/Linux systems,
35275         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35276         Suggested by Pádraig Brady <P@draigbrady.com>.
35277         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35278
35279         nproc: Refactor.
35280         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35281         extracted from num_processors.
35282         (num_processors): Call it.
35283
35284 2010-01-11  Jim Meyering  <meyering@redhat.com>
35285
35286         utimecmp: avoid new warning from upcoming gcc-4.5.0
35287         * lib/utimecmp.c (BILLION): Define using #define rather than an
35288         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35289
35290 2010-01-11  Eric Blake  <ebb9@byu.net>
35291
35292         math: add portability warnings for classification macros
35293         * modules/math (Depends-on): Add warn-on-use.
35294         (Makefile.am): Provide new substitutions.
35295         * m4/math_h.m4 (gl_MATH_H): Require inline.
35296         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35297         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35298         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35299         implement warnings.
35300
35301         unistd: warn on use of environ without module
35302         * modules/unistd (Depends-on): Add warn-on-use.
35303         (Makefile.am): Provide new substitutions.
35304         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35305         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35306
35307         stdio: warn on suspicious uses
35308         * modules/stdio (Depends-on): Add warn-on-use.
35309         (Makefile.am): Provide new substitutions.
35310         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35311         fseeko.
35312         * lib/stdio.in.h (gets): Always warn on use.
35313         (fseek, ftell): Adjust when warnings are issued, and honor
35314         _GL_NO_LARGE_FILES as a way to silence the warning.
35315         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35316         any warning about large file offsets.
35317         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35318         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35319         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35320         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35321         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35322         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35323         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35324         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35325
35326         warn-on-use: new module
35327         * modules/warn-on-use: New file.
35328         * build-aux/warn-on-use.h: Likewise.
35329         * m4/warn-on-use.m4: Likewise.
35330         * MODULES.html.sh (Support for building): Mention it.
35331
35332 2010-01-10  Bruno Haible  <bruno@clisp.org>
35333
35334         Tests for module 'unistr/u32-strdup'.
35335         * modules/unistr/u32-strdup-tests: New file.
35336         * tests/unistr/test-u32-strdup.c: New file.
35337
35338         Tests for module 'unistr/u16-strdup'.
35339         * modules/unistr/u16-strdup-tests: New file.
35340         * tests/unistr/test-u16-strdup.c: New file.
35341
35342         Tests for module 'unistr/u8-strdup'.
35343         * modules/unistr/u8-strdup-tests: New file.
35344         * tests/unistr/test-u8-strdup.c: New file.
35345         * tests/unistr/test-strdup.h: New file.
35346
35347         Tests for module 'unistr/u32-strncmp'.
35348         * modules/unistr/u32-strncmp-tests: New file.
35349         * tests/unistr/test-u32-strncmp.c: New file.
35350
35351         Tests for module 'unistr/u16-strncmp'.
35352         * modules/unistr/u16-strncmp-tests: New file.
35353         * tests/unistr/test-u16-strncmp.c: New file.
35354
35355         Tests for module 'unistr/u8-strncmp'.
35356         * modules/unistr/u8-strncmp-tests: New file.
35357         * tests/unistr/test-u8-strncmp.c: New file.
35358         * tests/unistr/test-strncmp.h: New file.
35359
35360         Tests for module 'unistr/u32-strcoll'.
35361         * modules/unistr/u32-strcoll-tests: New file.
35362         * tests/unistr/test-u32-strcoll.c: New file.
35363
35364         Tests for module 'unistr/u16-strcoll'.
35365         * modules/unistr/u16-strcoll-tests: New file.
35366         * tests/unistr/test-u16-strcoll.c: New file.
35367
35368         Tests for module 'unistr/u8-strcoll'.
35369         * modules/unistr/u8-strcoll-tests: New file.
35370         * tests/unistr/test-u8-strcoll.c: New file.
35371
35372         Tests for module 'unistr/u32-strcmp'.
35373         * modules/unistr/u32-strcmp-tests: New file.
35374         * tests/unistr/test-u32-strcmp.c: New file.
35375         * tests/unistr/test-u32-strcmp.h: New file.
35376
35377         Tests for module 'unistr/u16-strcmp'.
35378         * modules/unistr/u16-strcmp-tests: New file.
35379         * tests/unistr/test-u16-strcmp.c: New file.
35380         * tests/unistr/test-u16-strcmp.h: New file.
35381
35382         Tests for module 'unistr/u8-strcmp'.
35383         * modules/unistr/u8-strcmp-tests: New file.
35384         * tests/unistr/test-u8-strcmp.c: New file.
35385         * tests/unistr/test-u8-strcmp.h: New file.
35386         * tests/unistr/test-strcmp.h: New file.
35387
35388         Tests for module 'unistr/u32-strncat'.
35389         * modules/unistr/u32-strncat-tests: New file.
35390         * tests/unistr/test-u32-strncat.c: New file.
35391
35392         Tests for module 'unistr/u16-strncat'.
35393         * modules/unistr/u16-strncat-tests: New file.
35394         * tests/unistr/test-u16-strncat.c: New file.
35395
35396         Tests for module 'unistr/u8-strncat'.
35397         * modules/unistr/u8-strncat-tests: New file.
35398         * tests/unistr/test-u8-strncat.c: New file.
35399         * tests/unistr/test-strncat.h: New file.
35400
35401         Tests for module 'unistr/u32-strcat'.
35402         * modules/unistr/u32-strcat-tests: New file.
35403         * tests/unistr/test-u32-strcat.c: New file.
35404
35405         Tests for module 'unistr/u16-strcat'.
35406         * modules/unistr/u16-strcat-tests: New file.
35407         * tests/unistr/test-u16-strcat.c: New file.
35408
35409         Tests for module 'unistr/u8-strcat'.
35410         * modules/unistr/u8-strcat-tests: New file.
35411         * tests/unistr/test-u8-strcat.c: New file.
35412         * tests/unistr/test-strcat.h: New file.
35413
35414         Tests for module 'unistr/u32-stpncpy'.
35415         * modules/unistr/u32-stpncpy-tests: New file.
35416         * tests/unistr/test-u32-stpncpy.c: New file.
35417
35418         Tests for module 'unistr/u16-stpncpy'.
35419         * modules/unistr/u16-stpncpy-tests: New file.
35420         * tests/unistr/test-u16-stpncpy.c: New file.
35421
35422         Tests for module 'unistr/u8-stpncpy'.
35423         * modules/unistr/u8-stpncpy-tests: New file.
35424         * tests/unistr/test-u8-stpncpy.c: New file.
35425         * tests/unistr/test-stpncpy.h: New file.
35426
35427         Tests for module 'unistr/u32-strncpy'.
35428         * modules/unistr/u32-strncpy-tests: New file.
35429         * tests/unistr/test-u32-strncpy.c: New file.
35430
35431         Tests for module 'unistr/u16-strncpy'.
35432         * modules/unistr/u16-strncpy-tests: New file.
35433         * tests/unistr/test-u16-strncpy.c: New file.
35434
35435         Tests for module 'unistr/u8-strncpy'.
35436         * modules/unistr/u8-strncpy-tests: New file.
35437         * tests/unistr/test-u8-strncpy.c: New file.
35438         * tests/unistr/test-strncpy.h: New file.
35439
35440         Tests for module 'unistr/u32-stpcpy'.
35441         * modules/unistr/u32-stpcpy-tests: New file.
35442         * tests/unistr/test-u32-stpcpy.c: New file.
35443
35444         Tests for module 'unistr/u16-stpcpy'.
35445         * modules/unistr/u16-stpcpy-tests: New file.
35446         * tests/unistr/test-u16-stpcpy.c: New file.
35447
35448         Tests for module 'unistr/u8-stpcpy'.
35449         * modules/unistr/u8-stpcpy-tests: New file.
35450         * tests/unistr/test-u8-stpcpy.c: New file.
35451         * tests/unistr/test-stpcpy.h: New file.
35452
35453         Tests for module 'unistr/u32-strcpy'.
35454         * modules/unistr/u32-strcpy-tests: New file.
35455         * tests/unistr/test-u32-strcpy.c: New file.
35456
35457         Tests for module 'unistr/u16-strcpy'.
35458         * modules/unistr/u16-strcpy-tests: New file.
35459         * tests/unistr/test-u16-strcpy.c: New file.
35460
35461         Tests for module 'unistr/u8-strcpy'.
35462         * modules/unistr/u8-strcpy-tests: New file.
35463         * tests/unistr/test-u8-strcpy.c: New file.
35464         * tests/unistr/test-strcpy.h: New file.
35465
35466         Tests for module 'unistr/u32-strnlen'.
35467         * modules/unistr/u32-strnlen-tests: New file.
35468         * tests/unistr/test-u32-strnlen.c: New file.
35469
35470         Tests for module 'unistr/u16-strnlen'.
35471         * modules/unistr/u16-strnlen-tests: New file.
35472         * tests/unistr/test-u16-strnlen.c: New file.
35473
35474         Tests for module 'unistr/u8-strnlen'.
35475         * modules/unistr/u8-strnlen-tests: New file.
35476         * tests/unistr/test-u8-strnlen.c: New file.
35477         * tests/unistr/test-strnlen.h: New file.
35478
35479         Tests for module 'unistr/u32-strlen'.
35480         * modules/unistr/u32-strlen-tests: New file.
35481         * tests/unistr/test-u32-strlen.c: New file.
35482
35483         Tests for module 'unistr/u16-strlen'.
35484         * modules/unistr/u16-strlen-tests: New file.
35485         * tests/unistr/test-u16-strlen.c: New file.
35486
35487         Tests for module 'unistr/u8-strlen'.
35488         * modules/unistr/u8-strlen-tests: New file.
35489         * tests/unistr/test-u8-strlen.c: New file.
35490
35491         Tests for module 'unistr/u32-prev'.
35492         * modules/unistr/u32-prev-tests: New file.
35493         * tests/unistr/test-u32-prev.c: New file.
35494
35495         Tests for module 'unistr/u16-prev'.
35496         * modules/unistr/u16-prev-tests: New file.
35497         * tests/unistr/test-u16-prev.c: New file.
35498
35499         Tests for module 'unistr/u8-prev'.
35500         * modules/unistr/u8-prev-tests: New file.
35501         * tests/unistr/test-u8-prev.c: New file.
35502
35503         Tests for module 'unistr/u32-next'.
35504         * modules/unistr/u32-next-tests: New file.
35505         * tests/unistr/test-u32-next.c: New file.
35506
35507         Tests for module 'unistr/u16-next'.
35508         * modules/unistr/u16-next-tests: New file.
35509         * tests/unistr/test-u16-next.c: New file.
35510
35511         Tests for module 'unistr/u8-next'.
35512         * modules/unistr/u8-next-tests: New file.
35513         * tests/unistr/test-u8-next.c: New file.
35514
35515         Tests for module 'unistr/u32-strmbtouc'.
35516         * modules/unistr/u32-strmbtouc-tests: New file.
35517         * tests/unistr/test-u32-strmbtouc.c: New file.
35518
35519         Tests for module 'unistr/u16-strmbtouc'.
35520         * modules/unistr/u16-strmbtouc-tests: New file.
35521         * tests/unistr/test-u16-strmbtouc.c: New file.
35522
35523         Tests for module 'unistr/u8-strmbtouc'.
35524         * modules/unistr/u8-strmbtouc-tests: New file.
35525         * tests/unistr/test-u8-strmbtouc.c: New file.
35526
35527         Tests for module 'unistr/u32-strmblen'.
35528         * modules/unistr/u32-strmblen-tests: New file.
35529         * tests/unistr/test-u32-strmblen.c: New file.
35530
35531         Tests for module 'unistr/u16-strmblen'.
35532         * modules/unistr/u16-strmblen-tests: New file.
35533         * tests/unistr/test-u16-strmblen.c: New file.
35534
35535         Tests for module 'unistr/u8-strmblen'.
35536         * modules/unistr/u8-strmblen-tests: New file.
35537         * tests/unistr/test-u8-strmblen.c: New file.
35538
35539         Tests for module 'unistr/u32-cpy-alloc'.
35540         * modules/unistr/u32-cpy-alloc-tests: New file.
35541         * tests/unistr/test-u32-cpy-alloc.c: New file.
35542
35543         Tests for module 'unistr/u16-cpy-alloc'.
35544         * modules/unistr/u16-cpy-alloc-tests: New file.
35545         * tests/unistr/test-u16-cpy-alloc.c: New file.
35546
35547         Tests for module 'unistr/u8-cpy-alloc'.
35548         * modules/unistr/u8-cpy-alloc-tests: New file.
35549         * tests/unistr/test-u8-cpy-alloc.c: New file.
35550         * tests/unistr/test-cpy-alloc.h: New file.
35551
35552         Tests for module 'unistr/u32-mbsnlen'.
35553         * modules/unistr/u32-mbsnlen-tests: New file.
35554         * tests/unistr/test-u32-mbsnlen.c: New file.
35555
35556         Tests for module 'unistr/u16-mbsnlen'.
35557         * modules/unistr/u16-mbsnlen-tests: New file.
35558         * tests/unistr/test-u16-mbsnlen.c: New file.
35559
35560         Tests for module 'unistr/u8-mbsnlen'.
35561         * modules/unistr/u8-mbsnlen-tests: New file.
35562         * tests/unistr/test-u8-mbsnlen.c: New file.
35563
35564         Tests for module 'unistr/u32-chr'.
35565         * modules/unistr/u32-chr-tests: New file.
35566         * tests/unistr/test-u32-chr.c: New file.
35567
35568         Tests for module 'unistr/u16-chr'.
35569         * modules/unistr/u16-chr-tests: New file.
35570         * tests/unistr/test-u16-chr.c: New file.
35571
35572         Tests for module 'unistr/u8-chr'.
35573         * modules/unistr/u8-chr-tests: New file.
35574         * tests/unistr/test-u8-chr.c: New file.
35575         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35576
35577         Tests for module 'unistr/u32-cmp2'.
35578         * modules/unistr/u32-cmp2-tests: New file.
35579         * tests/unistr/test-u32-cmp2.c: New file.
35580
35581         Tests for module 'unistr/u16-cmp2'.
35582         * modules/unistr/u16-cmp2-tests: New file.
35583         * tests/unistr/test-u16-cmp2.c: New file.
35584
35585         Tests for module 'unistr/u8-cmp2'.
35586         * modules/unistr/u8-cmp2-tests: New file.
35587         * tests/unistr/test-u8-cmp2.c: New file.
35588         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35589
35590         Tests for module 'unistr/u32-cmp'.
35591         * modules/unistr/u32-cmp-tests: New file.
35592         * tests/unistr/test-u32-cmp.c: New file.
35593
35594         Tests for module 'unistr/u16-cmp'.
35595         * modules/unistr/u16-cmp-tests: New file.
35596         * tests/unistr/test-u16-cmp.c: New file.
35597
35598         Tests for module 'unistr/u8-cmp'.
35599         * modules/unistr/u8-cmp-tests: New file.
35600         * tests/unistr/test-u8-cmp.c: New file.
35601         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35602
35603         Tests for module 'unistr/u32-set'.
35604         * modules/unistr/u32-set-tests: New file.
35605         * tests/unistr/test-u32-set.c: New file.
35606
35607         Tests for module 'unistr/u16-set'.
35608         * modules/unistr/u16-set-tests: New file.
35609         * tests/unistr/test-u16-set.c: New file.
35610
35611         Tests for module 'unistr/u8-set'.
35612         * modules/unistr/u8-set-tests: New file.
35613         * tests/unistr/test-u8-set.c: New file.
35614         * tests/unistr/test-set.h: New file.
35615
35616         Tests for module 'unistr/u32-move'.
35617         * modules/unistr/u32-move-tests: New file.
35618         * tests/unistr/test-u32-move.c: New file.
35619
35620         Tests for module 'unistr/u16-move'.
35621         * modules/unistr/u16-move-tests: New file.
35622         * tests/unistr/test-u16-move.c: New file.
35623
35624         Tests for module 'unistr/u8-move'.
35625         * modules/unistr/u8-move-tests: New file.
35626         * tests/unistr/test-u8-move.c: New file.
35627         * tests/unistr/test-move.h: New file.
35628
35629         Tests for module 'unistr/u32-cpy'.
35630         * modules/unistr/u32-cpy-tests: New file.
35631         * tests/unistr/test-u32-cpy.c: New file.
35632
35633         Tests for module 'unistr/u16-cpy'.
35634         * modules/unistr/u16-cpy-tests: New file.
35635         * tests/unistr/test-u16-cpy.c: New file.
35636
35637         Tests for module 'unistr/u8-cpy'.
35638         * modules/unistr/u8-cpy-tests: New file.
35639         * tests/unistr/test-u8-cpy.c: New file.
35640         * tests/unistr/test-cpy.h: New file.
35641
35642 2010-01-09  Bruno Haible  <bruno@clisp.org>
35643
35644         Tests for module 'unistr/u32-uctomb'.
35645         * modules/unistr/u32-uctomb-tests: New file.
35646         * tests/unistr/test-u32-uctomb.c: New file.
35647
35648         Tests for module 'unistr/u16-uctomb'.
35649         * modules/unistr/u16-uctomb-tests: New file.
35650         * tests/unistr/test-u16-uctomb.c: New file.
35651
35652         Tests for module 'unistr/u8-uctomb'.
35653         * modules/unistr/u8-uctomb-tests: New file.
35654         * tests/unistr/test-u8-uctomb.c: New file.
35655
35656         Tests for module 'unistr/u32-mbtoucr'.
35657         * modules/unistr/u32-mbtoucr-tests: New file.
35658         * tests/unistr/test-u32-mbtoucr.c: New file.
35659
35660         Tests for module 'unistr/u16-mbtoucr'.
35661         * modules/unistr/u16-mbtoucr-tests: New file.
35662         * tests/unistr/test-u16-mbtoucr.c: New file.
35663
35664         Tests for module 'unistr/u8-mbtoucr'.
35665         * modules/unistr/u8-mbtoucr-tests: New file.
35666         * tests/unistr/test-u8-mbtoucr.c: New file.
35667
35668         Tests for module 'unistr/u32-mbtouc'.
35669         * modules/unistr/u32-mbtouc-tests: New file.
35670         * tests/unistr/test-u32-mbtouc.c: New file.
35671
35672         Tests for module 'unistr/u16-mbtouc'.
35673         * modules/unistr/u16-mbtouc-tests: New file.
35674         * tests/unistr/test-u16-mbtouc.c: New file.
35675
35676         Tests for module 'unistr/u8-mbtouc'.
35677         * modules/unistr/u8-mbtouc-tests: New file.
35678         * tests/unistr/test-u8-mbtouc.c: New file.
35679
35680         Tests for module 'unistr/u32-mbtouc-unsafe'.
35681         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35682         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35683         * tests/unistr/test-u32-mbtouc.h: New file.
35684
35685         Tests for module 'unistr/u16-mbtouc-unsafe'.
35686         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35687         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35688         * tests/unistr/test-u16-mbtouc.h: New file.
35689
35690         Tests for module 'unistr/u8-mbtouc-unsafe'.
35691         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35692         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35693         * tests/unistr/test-u8-mbtouc.h: New file.
35694
35695         Tests for module 'unistr/u32-mblen'.
35696         * modules/unistr/u32-mblen-tests: New file.
35697         * tests/unistr/test-u32-mblen.c: New file.
35698
35699         Tests for module 'unistr/u16-mblen'.
35700         * modules/unistr/u16-mblen-tests: New file.
35701         * tests/unistr/test-u16-mblen.c: New file.
35702
35703         Tests for module 'unistr/u8-mblen'.
35704         * modules/unistr/u8-mblen-tests: New file.
35705         * tests/unistr/test-u8-mblen.c: New file.
35706
35707         Tests for module 'unistr/u32-to-u16'.
35708         * modules/unistr/u32-to-u16-tests: New file.
35709         * tests/unistr/test-u32-to-u16.c: New file.
35710
35711         Tests for module 'unistr/u32-to-u8'.
35712         * modules/unistr/u32-to-u8-tests: New file.
35713         * tests/unistr/test-u32-to-u8.c: New file.
35714
35715         Tests for module 'unistr/u16-to-u32'.
35716         * modules/unistr/u16-to-u32-tests: New file.
35717         * tests/unistr/test-u16-to-u32.c: New file.
35718
35719         Tests for module 'unistr/u16-to-u8'.
35720         * modules/unistr/u16-to-u8-tests: New file.
35721         * tests/unistr/test-u16-to-u8.c: New file.
35722
35723         Tests for module 'unistr/u8-to-u32'.
35724         * modules/unistr/u8-to-u32-tests: New file.
35725         * tests/unistr/test-u8-to-u32.c: New file.
35726
35727         Tests for module 'unistr/u8-to-u16'.
35728         * modules/unistr/u8-to-u16-tests: New file.
35729         * tests/unistr/test-u8-to-u16.c: New file.
35730
35731         Tests for module 'unistr/u32-check'.
35732         * modules/unistr/u32-check-tests: New file.
35733         * tests/unistr/test-u32-check.c: New file.
35734
35735         Tests for module 'unistr/u16-check'.
35736         * modules/unistr/u16-check-tests: New file.
35737         * tests/unistr/test-u16-check.c: New file.
35738
35739         Tests for module 'unistr/u8-check'.
35740         * modules/unistr/u8-check-tests: New file.
35741         * tests/unistr/test-u8-check.c: New file.
35742
35743         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35744         (category_equals): New function.
35745         (main): Add more tests.
35746         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35747
35748         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35749
35750 2010-01-10  Bruno Haible  <bruno@clisp.org>
35751
35752         unistr/u*-strcoll: Try harder to distinguish different strings.
35753         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35754         compare s1 and s2 to see if they are different.
35755
35756 2010-01-10  Bruno Haible  <bruno@clisp.org>
35757
35758         unistr/u*-stpncpy: Fix the return value.
35759         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35760         description of the return value consistent with stpncpy in glibc.
35761         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35762         written non-NUL unit.
35763
35764 2010-01-10  Bruno Haible  <bruno@clisp.org>
35765
35766         unistr/u*-next: Add missing dependencies.
35767         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35768         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35769         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35770
35771 2010-01-10  Bruno Haible  <bruno@clisp.org>
35772
35773         unistr/u8-mbsnlen: Fix return value for incomplete character.
35774         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35775         u8_mblen.
35776         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35777         Remove unistr/u8-mblen.
35778         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35779         u16_mblen.
35780         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35781         Remove unistr/u16-mblen.
35782
35783 2010-01-10  Bruno Haible  <bruno@clisp.org>
35784
35785         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35786         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35787         Reported by Brian Gough <bjg@gnu.org> and
35788         Chris Clayton <chris2553@googlemail.com> via
35789         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35790
35791 2010-01-09  Bruno Haible  <bruno@clisp.org>
35792
35793         unistr/u16-to-u32: Reject invalid input.
35794         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35795         u16_mbtouc.
35796         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35797         Remove unistr/u16-mbtouc.
35798
35799         unistr/u16-to-u8: Reject invalid input.
35800         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35801         u16_mbtouc.
35802         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35803         Remove unistr/u16-mbtouc.
35804
35805         unistr/u8-to-u32: Reject invalid input.
35806         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35807         u8_mbtouc.
35808         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35809         Remove unistr/u8-mbtouc.
35810
35811         unistr/u8-to-u16: Reject invalid input.
35812         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35813         u8_mbtouc.
35814         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35815         Remove unistr/u8-mbtouc.
35816
35817 2010-01-09  Bruno Haible  <bruno@clisp.org>
35818
35819         Tests for module 'getlogin'.
35820         * modules/getlogin-tests: New file.
35821         * tests/test-getlogin.c: New file.
35822
35823         New module 'getlogin'.
35824         * lib/unistd.in.h (getlogin): New declaration.
35825         * lib/getlogin.c: New file.
35826         * m4/getlogin.m4: New file.
35827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35828         HAVE_GETLOGIN.
35829         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35830         HAVE_GETLOGIN.
35831         * modules/getlogin: New file.
35832         * doc/posix-functions/getlogin.texi: Mention the new module.
35833         Reported by John W. Eaton <jwe@gnu.org>.
35834
35835 2010-01-09  Bruno Haible  <bruno@clisp.org>
35836
35837         getlogin_r: Support for native Windows.
35838         * lib/getlogin_r.c: Include <windows.h>
35839         (getlogin_r): Implement for native Windows.
35840         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35841         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35842         via John W. Eaton <jwe@gnu.org>.
35843
35844 2010-01-09  Bruno Haible  <bruno@clisp.org>
35845
35846         getlogin_r: Small fixes.
35847         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35848         succeeds.
35849         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35850         before testing whether getlogin_r is declared. No need to set
35851         HAVE_DECL_GETLOGIN_R to 1.
35852         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35853
35854 2010-01-09  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/unistd.in.h (getlogin_r): Add comment.
35857
35858 2010-01-09  Bruno Haible  <bruno@clisp.org>
35859
35860         Tests for module 'getlogin_r'.
35861         * modules/getlogin_r-tests: New file.
35862         * tests/test-getlogin_r.c: New file.
35863
35864 2010-01-09  Jim Meyering  <meyering@redhat.com>
35865
35866         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35867         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35868         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35869
35870 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35871
35872         * lib/dup2.c (rpl_dup2): Improve comment.
35873
35874 2010-01-08  Eric Blake  <ebb9@byu.net>
35875
35876         maint.mk: allow packages to add makefile @@ exceptions
35877         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35878         (sc_makefile_check): Rename...
35879         (sc_makefile_at_at_check): ...to this, and use hook.
35880
35881         dup2: work around mingw bug
35882         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35883         Reported by Simon Josefsson.
35884
35885 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35886
35887         glob: Fix C++ compilation.
35888         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35889         C++.
35890
35891 2010-01-07  Bruno Haible  <bruno@clisp.org>
35892
35893         Fix indentation of wctype.in.h, broken since 2007-01-06.
35894         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35895
35896 2010-01-07  Bruno Haible  <bruno@clisp.org>
35897
35898         mbslen: Avoid collision with system function.
35899         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35900         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35901         * m4/mbslen.m4: New file.
35902         * modules/mbslen (Files): Add it.
35903         (configure.ac): Invoke gl_MBSLEN.
35904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35905         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35907         via Ian Beckwith <ianb@erislabs.net>.
35908
35909 2010-01-07  Bruno Haible  <bruno@clisp.org>
35910
35911         dirent: Document the last fix.
35912         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35913
35914 2010-01-07  Bruno Haible  <bruno@clisp.org>
35915
35916         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35917         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35918         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35919         va_list are defined.
35920         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35921         Reported by Eric Blake.
35922
35923 2010-01-07  Bruno Haible  <bruno@clisp.org>
35924
35925         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35926         * modules/xlist (Depends-on): Add 'list',
35927         * modules/xoset (Depends-on): Add 'oset'.
35928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35929
35930 2010-01-07  Bruno Haible  <bruno@clisp.org>
35931
35932         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35933         * doc/posix-functions/strncasecmp.texi: Likewise.
35934
35935 2010-01-07  Bruno Haible  <bruno@clisp.org>
35936
35937         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35938
35939 2010-01-07  John W. Eaton  <jwe@octave.org>
35940
35941         wctype: allow C++ use
35942         * lib/wctype.in.h: Add extern "C" block for C++.
35943
35944 2010-01-06  Eric Blake  <ebb9@byu.net>
35945
35946         maint.mk: detect incorrect GFDL usage
35947         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35948
35949 2010-01-06  Jim Meyering  <meyering@redhat.com>
35950         and Eric Blake  <ebb9@byu.net>
35951
35952         maint.mk: ignore multi-line copyright in NEWS
35953         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35954
35955 2010-01-06  Eric Blake  <ebb9@byu.net>
35956
35957         select: add missing dependency
35958         * modules/select-tests (Depends-on): Move sockets dependency...
35959         * modules/select (Depends-on): ...here.
35960         Reported by Ian Beckwith.
35961
35962         doc: regenerate INSTALL
35963         * doc/INSTALL: Reflect recent autoconf update.
35964         * doc/INSTALL.ISO: Likewise.
35965         * doc/INSTALL.UTF-8: Likewise.
35966
35967         pread: fix compilation on glibc
35968         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35969         Reported by Ralf Wildenhues.
35970
35971         dirent: fix test failure
35972         * lib/dirent.in.h (includes): Guarantee ino_t.
35973         Reported by Ralf Wildenhues.
35974
35975 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35976
35977         linkat, renameat: avoid bad free
35978         * lib/at-func2.c (at_func2): Fix typo.
35979         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35980
35981 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35982
35983         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35984         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35985         to avoid failure of symlink test later.
35986
35987 2010-01-06  Eric Blake  <ebb9@byu.net>
35988
35989         stdio, unistd: guarantee ssize_t
35990         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35991         2008 are exposed when needed.
35992         * lib/stdio.in.h (includes): Likewise.
35993         Reported by Ralf Wildenhues.
35994
35995 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35996
35997         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35998         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35999         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36000
36001 2010-01-06  Jim Meyering  <meyering@redhat.com>
36002
36003         readtokens: this module *does* require xalloc.h
36004         It uses only functions that were omitted by the old syntax-check rule.
36005         * lib/readtokens.c: Include "xalloc.h" once again.
36006         * modules/readtokens (Depends-on): Add xalloc.
36007         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36008
36009 2010-01-05  Eric Blake  <ebb9@byu.net>
36010
36011         maint: support 'make announcement' from a VPATH build
36012         * top/maint.mk (announcement): Look for correct NEWS file.
36013
36014 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36015
36016         utimens (fdutimens): ignore a negative FD, per contract
36017         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36018         when we have a valid file descriptor.  Otherwise, using a brand
36019         new glibc (with just-patched futimens that now fails with EBADF)
36020         would cause this function to fail with ENOSYS.
36021         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36022         See also http://bugzilla.redhat.com/552320.
36023
36024 2010-01-05  Eric Blake  <ebb9@byu.net>
36025
36026         strcase: document what it provides
36027         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36028         gnulib module.
36029         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36030         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36031
36032 2010-01-05  Jim Meyering  <meyering@redhat.com>
36033
36034         maint: remove useless inclusions of "xalloc.h"
36035         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36036         * lib/readtokens.c: Likewise.
36037         * lib/same.c: Likewise.
36038         * modules/getloadavg (Depends-on): Remove xalloc.
36039         * modules/readtokens: Likewise.
36040         * modules/same: Likewise.
36041
36042         maint.mk: include 4 more function names in alloca.h-checking regexp
36043         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36044         regexp.  Before, we would give a false-positive (saying alloca.h
36045         is included unnecessarily) when the only uses involved omitted symbols.
36046
36047         xalloc.h: use consistent formatting
36048         * lib/xalloc.h: Move declarations to start in the first column.
36049
36050 2010-01-05  Eric Blake  <ebb9@byu.net>
36051
36052         mkdir: avoid xalloc
36053         * lib/mkdir.c (includes): Drop unused header.
36054         Reported by John W. Eaton.
36055
36056 2010-01-04  Jim Meyering  <meyering@redhat.com>
36057
36058         nl_langinfo: avoid configure-time syntax error
36059         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36060         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36061         the empty string.  Don't let that provoke a shell syntax error.
36062
36063         regcomp, regexec, fnmatch: avoid array bounds read error
36064         * lib/regcomp.c (build_equiv_class): From glibc:
36065         Use only the low 24 bits of a findidx return value as an index
36066         into the weights array.  Patch by Ulrich Drepper:
36067         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36068         * lib/regexec.c (check_node_accept_bytes): Likewise.
36069         * lib/fnmatch_loop.c (FCT): Likewise.
36070
36071         regcomp: skip collseq lookup when there are no rules
36072         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36073         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36074
36075         regcomp: recognize ill-formed { } expressions
36076         * lib/regcomp.c (parse_dup_op): From glibc:
36077         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36078
36079         regcomp: fix typo in comment
36080         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36081         s/satisfy/satisfies/.
36082
36083         regcomp: sync from glibc: remove dead store
36084         * lib/regcomp.c (duplicate_node_closure): Remove useless
36085         search_duplicated_node call and dead store.
36086
36087         regcomp: sync from glibc; always use nl_langinfo
36088         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36089         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36090         * modules/regex (Depends-on): Add nl_langinfo.
36091
36092 2010-01-04  Eric Blake  <ebb9@byu.net>
36093
36094         fdopendir: fix configure test
36095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36096
36097 2010-01-01  Bruno Haible  <bruno@clisp.org>
36098
36099         wchar: Remove unused configure check.
36100         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36101
36102 2010-01-01  Eric Blake  <ebb9@byu.net>
36103
36104         headers: make check of system header explicit
36105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36106         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36107         ourselves.
36108         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36111         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36112         internals.
36113         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36114         missing.
36115         Suggested by Bruno Haible.
36116
36117 2010-01-01  Jim Meyering  <meyering@redhat.com>
36118
36119         ChangeLog: tweak to eliminate unnecessary copyright line
36120         * ChangeLog: Remove a copyright line that was mistakenly updated
36121         by today's update-copyright run.  Reported by Eric Blake.
36122
36123         test-update-copyright: don't let envvar setting cause test failure
36124         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36125
36126 2010-01-01  Bruno Haible  <bruno@clisp.org>
36127
36128         localename: Avoid gcc warning.
36129         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36130         function if it is not used.
36131
36132 2010-01-01  Jim Meyering  <meyering@redhat.com>
36133
36134         update nearly all FSF copyright year lists to include 2010
36135         Use the same procedure as for 2009, outlined in
36136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36137
36138         version-etc: set COPYRIGHT_YEAR to 2010
36139         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36140
36141 2009-12-31  Eric Blake  <ebb9@byu.net>
36142
36143         doc: correct availability of cygwin 1.5.x getopt
36144         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36145         variables.
36146         * doc/posix-functions/opterr.texi (opterr): Likewise.
36147         * doc/posix-functions/optind.texi (optind): Likewise.
36148         * doc/posix-functions/optopt.texi (optopt): Likewise.
36149         * doc/posix-functions/tzname.texi (tzname): Likewise.
36150
36151         openat: update maintainer
36152         * modules/openat (Maintainer): Add myself.
36153
36154         utimens: avoid shadowing warning
36155         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36156         buffers into one, to avoid shadowing, as well as avoiding a
36157         redundant stat.
36158         Reported by Jim Meyering.
36159
36160         test-dup2: avoid compiler warning
36161         * tests/test-dup2.c (is_inheritable): Only define if used.
36162
36163 2010-01-01  Bruno Haible  <bruno@clisp.org>
36164
36165         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36166         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36167         defined, use wctomb instead of wcrtomb.
36168
36169 2010-01-01  Bruno Haible  <bruno@clisp.org>
36170
36171         iconv: Reject native Solaris iconv.
36172         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36173         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36174
36175 2009-12-31  Bruno Haible  <bruno@clisp.org>
36176
36177         * tests/test-signal.c (main): Remove test of 'SIG'.
36178
36179 2009-12-31  Bruno Haible  <bruno@clisp.org>
36180
36181         spawn: Fix incomplete fix.
36182         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36183         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36184         warnings for GNULIB_POSIXCHECK again.
36185         Reported by Eric Blake.
36186
36187 2009-12-31  Bruno Haible  <bruno@clisp.org>
36188
36189         Avoid namespace pollution on glibc systems.
36190         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36191         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36192         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36193         glibc systems.
36194
36195 2009-12-31  Bruno Haible  <bruno@clisp.org>
36196
36197         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36198         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36199         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36200         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36201         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36202         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36203         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36204
36205 2009-12-31  Bruno Haible  <bruno@clisp.org>
36206
36207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36208         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36209         afterwards.
36210
36211 2009-12-31  Bruno Haible  <bruno@clisp.org>
36212
36213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36214         SYS_UTSNAME_H.
36215
36216 2009-12-31  Bruno Haible  <bruno@clisp.org>
36217
36218         spawn: Fix misapplied patch.
36219         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36220         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36221         warnings for GNULIB_POSIXCHECK.
36222
36223 2009-12-31  Bruno Haible  <bruno@clisp.org>
36224
36225         times: Update after sys_times changed.
36226         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36227         * modules/times (Files): Add it.
36228         (configure.ac): Invoke gl_FUNC_TIMES.
36229
36230 2009-12-31  Bruno Haible  <bruno@clisp.org>
36231
36232         Use AC_C_INLINE where necessary.
36233         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36235         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36236         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36237         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36238         * m4/mbiter.m4 (gl_MBITER): Likewise.
36239         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36240         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36241         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36242         * modules/u64 (configure.ac): Likewise.
36243
36244 2009-12-31  Bruno Haible  <bruno@clisp.org>
36245
36246         Use AC_C_INLINE instead of module 'inline' where possible.
36247         * modules/inline (Description): Clarify purpose.
36248         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36249         * modules/count-one-bits (Depends-on): Remove inline.
36250         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36251         * modules/openat (Depends-on): Remove inline.
36252         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36253         instead of depending on module 'inline'.
36254         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36255         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36256         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36257         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36258         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36259         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36260         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36261         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36262         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36263         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36264         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36265         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36266         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36267         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36268         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36269         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36270         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36271         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36272         Likewise.
36273         * modules/unictype/property-ascii-hex-digit (Depends-on,
36274         configure.ac): Likewise.
36275         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36276         configure.ac): Likewise.
36277         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36278         configure.ac): Likewise.
36279         * modules/unictype/property-bidi-block-separator (Depends-on,
36280         configure.ac): Likewise.
36281         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36282         configure.ac): Likewise.
36283         * modules/unictype/property-bidi-common-separator (Depends-on,
36284         configure.ac): Likewise.
36285         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36286         Likewise.
36287         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36288         configure.ac): Likewise.
36289         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36290         configure.ac): Likewise.
36291         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36292         configure.ac): Likewise.
36293         * modules/unictype/property-bidi-european-digit (Depends-on,
36294         configure.ac): Likewise.
36295         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36296         configure.ac): Likewise.
36297         * modules/unictype/property-bidi-left-to-right (Depends-on,
36298         configure.ac): Likewise.
36299         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36300         configure.ac): Likewise.
36301         * modules/unictype/property-bidi-other-neutral (Depends-on,
36302         configure.ac): Likewise.
36303         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36304         Likewise.
36305         * modules/unictype/property-bidi-segment-separator (Depends-on,
36306         configure.ac): Likewise.
36307         * modules/unictype/property-bidi-whitespace (Depends-on,
36308         configure.ac): Likewise.
36309         * modules/unictype/property-combining (Depends-on, configure.ac):
36310         Likewise.
36311         * modules/unictype/property-composite (Depends-on, configure.ac):
36312         Likewise.
36313         * modules/unictype/property-currency-symbol (Depends-on,
36314         configure.ac): Likewise.
36315         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36316         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36317         Likewise.
36318         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36319         configure.ac): Likewise.
36320         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36321         Likewise.
36322         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36323         Likewise.
36324         * modules/unictype/property-extender (Depends-on, configure.ac):
36325         Likewise.
36326         * modules/unictype/property-format-control (Depends-on, configure.ac):
36327         Likewise.
36328         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36329         Likewise.
36330         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36331         Likewise.
36332         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36333         Likewise.
36334         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36335         Likewise.
36336         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36337         Likewise.
36338         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36339         Likewise.
36340         * modules/unictype/property-id-start (Depends-on, configure.ac):
36341         Likewise.
36342         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36343         Likewise.
36344         * modules/unictype/property-ids-binary-operator (Depends-on,
36345         configure.ac): Likewise.
36346         * modules/unictype/property-ids-trinary-operator (Depends-on,
36347         configure.ac): Likewise.
36348         * modules/unictype/property-ignorable-control (Depends-on,
36349         configure.ac): Likewise.
36350         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36351         Likewise.
36352         * modules/unictype/property-join-control (Depends-on, configure.ac):
36353         Likewise.
36354         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36355         Likewise.
36356         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36357         Likewise.
36358         * modules/unictype/property-logical-order-exception (Depends-on,
36359         configure.ac): Likewise.
36360         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36361         Likewise.
36362         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36363         * modules/unictype/property-non-break (Depends-on, configure.ac):
36364         Likewise.
36365         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36366         Likewise.
36367         * modules/unictype/property-numeric (Depends-on, configure.ac):
36368         Likewise.
36369         * modules/unictype/property-other-alphabetic (Depends-on,
36370         configure.ac): Likewise.
36371         * modules/unictype/property-other-default-ignorable-code-point
36372         (Depends-on, configure.ac): Likewise.
36373         * modules/unictype/property-other-grapheme-extend (Depends-on,
36374         configure.ac): Likewise.
36375         * modules/unictype/property-other-id-continue (Depends-on,
36376         configure.ac): Likewise.
36377         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36378         Likewise.
36379         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36380         Likewise.
36381         * modules/unictype/property-other-math (Depends-on, configure.ac):
36382         Likewise.
36383         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36384         Likewise.
36385         * modules/unictype/property-paired-punctuation (Depends-on,
36386         configure.ac): Likewise.
36387         * modules/unictype/property-paragraph-separator (Depends-on,
36388         configure.ac): Likewise.
36389         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36390         Likewise.
36391         * modules/unictype/property-pattern-white-space (Depends-on,
36392         configure.ac): Likewise.
36393         * modules/unictype/property-private-use (Depends-on, configure.ac):
36394         Likewise.
36395         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36396         Likewise.
36397         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36398         Likewise.
36399         * modules/unictype/property-radical (Depends-on, configure.ac):
36400         Likewise.
36401         * modules/unictype/property-sentence-terminal (Depends-on,
36402         configure.ac): Likewise.
36403         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36404         Likewise.
36405         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36406         * modules/unictype/property-terminal-punctuation (Depends-on,
36407         configure.ac): Likewise.
36408         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36409         Likewise.
36410         * modules/unictype/property-unassigned-code-value (Depends-on,
36411         configure.ac): Likewise.
36412         * modules/unictype/property-unified-ideograph (Depends-on,
36413         configure.ac): Likewise.
36414         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36415         Likewise.
36416         * modules/unictype/property-variation-selector (Depends-on,
36417         configure.ac): Likewise.
36418         * modules/unictype/property-white-space (Depends-on, configure.ac):
36419         Likewise.
36420         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36421         Likewise.
36422         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36423         Likewise.
36424         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36425         Likewise.
36426         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36427         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36428         Likewise.
36429
36430 2009-12-31  Bruno Haible  <bruno@clisp.org>
36431
36432         Remove unnecessary AC_C_INLINE invocation.
36433         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36434         since 2009-08-21.
36435
36436 2009-12-31  Jim Meyering  <meyering@redhat.com>
36437
36438         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36439         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36440         With this change, we can all remove the gpg_key_ID = ... definition
36441         from our respective cfg.mk files.
36442
36443         maint.mk: create announcement template in ~/, not in /tmp
36444         * top/maint.mk (emit_upload_commands): Adjust.
36445         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36446         Remove temporary file, .ci-msg.
36447
36448 2009-12-31  Eric Blake  <ebb9@byu.net>
36449
36450         link-warning: always build headers with link warnings
36451         * modules/arpa_inet (Makefile.am): Always build replacement
36452         header.
36453         * modules/ctype (Makefile.am): Likewise.
36454         * modules/dirent (Makefile.am): Likewise.
36455         * modules/inttypes (Makefile.am): Likewise.
36456         * modules/langinfo (Makefile.am): Likewise.
36457         * modules/locale (Makefile.am): Likewise.
36458         * modules/spawn (Makefile.am): Likewise.
36459         * modules/sys_file (Makefile.am): Likewise.
36460         * modules/sys_ioctl (Makefile.am): Likewise.
36461         * modules/sys_select (Makefile.am): Likewise.
36462         * modules/sys_socket (Makefile.am): Likewise.
36463         * modules/sys_times (Makefile.am): Likewise.
36464         * modules/sys_utsname (Makefile.am): Likewise.
36465         * modules/sys_wait (Makefile.am): Likewise.
36466         * modules/wchar (Makefile.am): Likewise.
36467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36468         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36469         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36470         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36471         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36472         Likewise.
36473         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36474         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36475         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36476         Likewise.
36477         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36478         Likewise.
36479         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36480         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36481         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36483         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36484         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36485         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36486         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36487         (gl_WCHAR_H_DEFAULTS): Likewise.
36488
36489 2009-12-31  Eric Blake  <ebb9@byu.net>
36490
36491         signal, spawn: use link warnings
36492         * lib/signal.in.h (sigset_t): Make unconditional.
36493         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36494         (sigpending, sigprocmask, sigaction): Add link warnings.
36495         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36496         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36497         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36498         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36499         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36500         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36501         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36502         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36503         (posix_spawn_file_actions_destroy)
36504         (posix_spawn_file_actions_addopen)
36505         (posix_spawn_file_actions_addclose)
36506         (posix_spawn_file_actions_adddup2): Likewise.
36507         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36508         * tests/test-signal.c (main): Enhance test.
36509
36510         spawn: improve wrapper support
36511         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36512         (gl_SPAWN_H_DEFAULTS): New defaults.
36513         * modules/spawn (Makefile.am): Substitute them.
36514         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36515         Only declare if missing or broken.
36516
36517         sys_times, sys_utsname: use include_next
36518         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36519         header.
36520         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36522         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36523         * modules/sys_times (Depends-on): Add include_next.
36524         (Makefile.am): Substitute additional values.
36525         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36526         * lib/sys_times.in.h (includes): Include native header, if
36527         available.
36528         * lib/sys_utsname.in.h (includes): Likewise.
36529         * tests/test-sys_times.c (main): Enhance test.
36530
36531         fdutimensat: revert prior patch
36532         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36533         utimens.h.
36534         Reported by Bruno Haible.
36535
36536 2009-12-30  Eric Blake  <ebb9@byu.net>
36537
36538         sys_wait: drop link-warning dependency
36539         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36540         link-warning efforts.
36541         * lib/sys_wait.in.h: Likewise.
36542
36543         fdutimensat: remove bogus dependency
36544         * modules/fdutimensat (Depends-on): Drop inline.
36545
36546         unistd: fix typo
36547         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36548
36549 2009-12-30  Bruno Haible  <bruno@clisp.org>
36550
36551         Fix compilation error with Solaris cc.
36552         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36553         * lib/unicase/u16-is-invariant.c: Likewise.
36554         * lib/unicase/u32-is-invariant.c: Likewise.
36555         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36556
36557 2009-12-30  Bruno Haible  <bruno@clisp.org>
36558
36559         Fix test crash.
36560         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36561         locales.
36562         Reported by Simon Josefsson <simon@josefsson.org>.
36563
36564 2009-12-30  Bruno Haible  <bruno@clisp.org>
36565
36566         Fix compilation error on most platforms.
36567         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36568         Reported by Simon Josefsson <simon@josefsson.org>
36569         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36570
36571 2009-12-30  Eric Blake  <ebb9@byu.net>
36572
36573         futimens, utimensat: work around ntfs-3g bug
36574         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36575         a ctime bug is present, and expand workaround to cover ntfs-3g.
36576         * lib/utimens.c (fdutimens, lutimens): Likewise.
36577         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36578         (validate_timespec): Adjust return value.
36579         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36581         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36582
36583 2009-12-29  Eric Blake  <ebb9@byu.net>
36584
36585         link-warning: make usage consistent
36586         * modules/ctype (Depends-on): Add link-warning.
36587         (Makefile.am): Update rules accordingly.
36588         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36589         * modules/locale (Depends-on, Makefile.am): Likewise.
36590         * modules/sys_file (Makefile.am): Likewise.
36591         * modules/getopt-posix (Makefile.am): Delete unused link warning
36592         efforts.
36593         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36594         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36595         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36596         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36597
36598         stdio: remove unused variables
36599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36601         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36602
36603         tests: test more substitute headers
36604         * modules/ctype-tests: New file.
36605         * modules/dirent-tests: Likewise.
36606         * modules/spawn-tests: Likewise.
36607         * modules/sys_file-tests: Likewise.
36608         * modules/sys_ioctl-tests: Likewise.
36609         * modules/sys_wait-tests: Likewise.
36610         * tests/test-ctype.c: Likewise.
36611         * tests/test-dirent.c: Likewise.
36612         * tests/test-spawn.c: Likewise.
36613         * tests/test-sys_file.c: Likewise.
36614         * tests/test-sys_ioctl.c: Likewise.
36615         * tests/test-sys_wait.c: Likewise.
36616         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36617         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36618         whether or not flock is in use.
36619
36620         tests: remove License section from module
36621         * modules/arpa_inet-tests: Remove unneeded section.
36622         * modules/byteswap-tests: Likewise.
36623         * modules/ceilf-tests: Likewise.
36624         * modules/ceill-tests: Likewise.
36625         * modules/crypto/des-tests: Likewise.
36626         * modules/crypto/gc-arcfour-tests: Likewise.
36627         * modules/crypto/gc-arctwo-tests: Likewise.
36628         * modules/crypto/gc-des-tests: Likewise.
36629         * modules/crypto/gc-hmac-md5-tests: Likewise.
36630         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36631         * modules/crypto/gc-md2-tests: Likewise.
36632         * modules/crypto/gc-md4-tests: Likewise.
36633         * modules/crypto/gc-md5-tests: Likewise.
36634         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36635         * modules/crypto/gc-rijndael-tests: Likewise.
36636         * modules/crypto/gc-sha1-tests: Likewise.
36637         * modules/crypto/gc-tests: Likewise.
36638         * modules/crypto/md2-tests: Likewise.
36639         * modules/crypto/md4-tests: Likewise.
36640         * modules/fcntl-h-tests: Likewise.
36641         * modules/floorf-tests: Likewise.
36642         * modules/floorl-tests: Likewise.
36643         * modules/frexp-nolibm-tests: Likewise.
36644         * modules/frexp-tests: Likewise.
36645         * modules/frexpl-nolibm-tests: Likewise.
36646         * modules/frexpl-tests: Likewise.
36647         * modules/getaddrinfo-tests: Likewise.
36648         * modules/inttypes-tests: Likewise.
36649         * modules/isfinite-tests: Likewise.
36650         * modules/isinf-tests: Likewise.
36651         * modules/ldexpl-tests: Likewise.
36652         * modules/locale-tests: Likewise.
36653         * modules/math-tests: Likewise.
36654         * modules/netdb-tests: Likewise.
36655         * modules/netinet_in-tests: Likewise.
36656         * modules/printf-frexp-tests: Likewise.
36657         * modules/printf-frexpl-tests: Likewise.
36658         * modules/priv-set-tests: Likewise.
36659         * modules/random_r-tests: Likewise.
36660         * modules/round-tests: Likewise.
36661         * modules/roundf-tests: Likewise.
36662         * modules/roundl-tests: Likewise.
36663         * modules/search-tests: Likewise.
36664         * modules/select-tests: Likewise.
36665         * modules/signal-tests: Likewise.
36666         * modules/stdbool-tests: Likewise.
36667         * modules/stddef-tests: Likewise.
36668         * modules/stdint-tests: Likewise.
36669         * modules/stdio-tests: Likewise.
36670         * modules/stdlib-tests: Likewise.
36671         * modules/string-tests: Likewise.
36672         * modules/strings-tests: Likewise.
36673         * modules/sys_select-tests: Likewise.
36674         * modules/sys_socket-tests: Likewise.
36675         * modules/sys_stat-tests: Likewise.
36676         * modules/sys_time-tests: Likewise.
36677         * modules/sys_utsname-tests: Likewise.
36678         * modules/sysexits-tests: Likewise.
36679         * modules/time-tests: Likewise.
36680         * modules/trunc-tests: Likewise.
36681         * modules/truncf-tests: Likewise.
36682         * modules/truncl-tests: Likewise.
36683         * modules/tsearch-tests: Likewise.
36684         * modules/unistd-tests: Likewise.
36685         * modules/wchar-tests: Likewise.
36686         * modules/wctype-tests: Likewise.
36687
36688         tests: fix license on several tests
36689         * tests/test-des.c: Update to GPLv3+.
36690         * tests/test-flock.c: Likewise.
36691         * tests/test-fsync.c: Likewise.
36692         * tests/test-futimens.h: Likewise.
36693         * tests/test-gc-arcfour.c: Likewise.
36694         * tests/test-gc-arctwo.c: Likewise.
36695         * tests/test-gc-des.c: Likewise.
36696         * tests/test-gc-hmac-md5.c: Likewise.
36697         * tests/test-gc-hmac-sha1.c: Likewise.
36698         * tests/test-gc-md2.c: Likewise.
36699         * tests/test-gc-md4.c: Likewise.
36700         * tests/test-gc-md5.c: Likewise.
36701         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36702         * tests/test-gc-rijndael.c: Likewise.
36703         * tests/test-gc-sha1.c: Likewise.
36704         * tests/test-gc.c: Likewise.
36705         * tests/test-getcwd.c: Likewise.
36706         * tests/test-link.c: Likewise.
36707         * tests/test-link.h: Likewise.
36708         * tests/test-lutimens.h: Likewise.
36709         * tests/test-md2.c: Likewise.
36710         * tests/test-md4.c: Likewise.
36711         * tests/test-mkdir.h: Likewise.
36712         * tests/test-rename.c: Likewise.
36713         * tests/test-rename.h: Likewise.
36714         * tests/test-safe-alloc.c: Likewise.
36715         * tests/test-utimens-common.h: Likewise.
36716         * tests/test-utimens.h: Likewise.
36717
36718         maint: sync license texts
36719         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36720         * doc/gpl-3.0.texi: Revert copyright year update.
36721         * doc/lgpl-3.0.texi: Likewise.
36722
36723 2009-12-29  Jim Meyering  <meyering@redhat.com>
36724
36725         update nearly all FSF copyright year lists to include 2009
36726         The files named by the following are exempted:
36727             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36728               test -f "$dst" && { echo "$dst"; continue; }
36729               test -d "$dst" || continue
36730               echo "$dst"/$(basename "$src")
36731             done > exempt
36732             git ls-files tests/unictype >> exempt
36733         In the remaining files, convert to all-interval notation if
36734         - there is already at least one year interval like 2000-2003
36735         - the file is maintained by me
36736         - the file is in lib/uni*/, where that style already prevails
36737         Otherwise, use update-copyright's default.
36738
36739 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36740         and Eric Blake  <ebb9@byu.net>
36741
36742         tests: don't require debug system() to pass
36743         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36744         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36745         * tests/test-unlink.h (test_unlink_func): Likewise.
36746         * tests/test-fstatat.c (main): ...into callers.
36747         * tests/test-lstat.c (main): Likewise.
36748         * tests/test-rmdir.c (main): Likewise.
36749         * tests/test-unlink.c (main): Likewise.
36750         * tests/test-unlinkat.c (main): Likewise.
36751         * tests/test-areadlink-with-size.c (main): Don't require a
36752         debug-only system call to pass, aiding cross-testing to mingw.
36753         * tests/test-areadlink.c (main): Likewise.
36754         * tests/test-areadlinkat-with-size.c (main): Likewise.
36755         * tests/test-areadlinkat.c (main): Likewise.
36756         * tests/test-canonicalize-lgpl.c (main): Likewise.
36757         * tests/test-canonicalize.c (main): Likewise.
36758         * tests/test-chown.c (main): Likewise.
36759         * tests/test-fchownat.c (main): Likewise.
36760         * tests/test-lchown.c (main): Likewise.
36761         * tests/test-fdutimensat.c (main): Likewise.
36762         * tests/test-futimens.c (main): Likewise.
36763         * tests/test-link.c (main): Likewise.
36764         * tests/test-linkat.c (main): Likewise.
36765         * tests/test-mkdir.c (main): Likewise.
36766         * tests/test-mkdirat.c (main): Likewise.
36767         * tests/test-mkfifo.c (main): Likewise.
36768         * tests/test-mkfifoat.c (main): Likewise.
36769         * tests/test-mknod.c (main): Likewise.
36770         * tests/test-readlink.c (main): Likewise.
36771         * tests/test-remove.c (main): Likewise.
36772         * tests/test-rename.c (main): Likewise.
36773         * tests/test-renameat.c (main): Likewise.
36774         * tests/test-symlink.c (main): Likewise.
36775         * tests/test-symlinkat.c (main): Likewise.
36776         * tests/test-utimens.c (main): Likewise.
36777         * tests/test-utimensat.c (main): Likewise.
36778
36779 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36780
36781         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36782         on $(UNUSED_PARAMETER_H) to avoid build failure.
36783
36784 2009-12-28  Jim Meyering  <meyering@redhat.com>
36785
36786         update-copyright: you may specify a max. line length other than 72
36787         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36788
36789         maint: use consistent FSF copyright line syntax
36790         * lib/posixtm.c: Add missing comma in FSF copyright line.
36791         * lib/posixtm.h: Likewise.
36792         * lib/getugroups.c: Add missing ", Inc.".
36793
36794         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36795         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36796         FSF copyright line.  Remove trailing blanks.
36797
36798 2009-12-28  Eric Blake  <ebb9@byu.net>
36799
36800         test-dup2: reduce dependencies
36801         * modules/cloexec (Configure.ac): Set witness.
36802         * modules/dup2-tests (Depends-on): Drop cloexec.
36803         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36804         not present.
36805         Suggested by Bruno Haible.
36806
36807 2009-12-26  Bruno Haible  <bruno@clisp.org>
36808
36809         Remove an unneeded dependency.
36810         * modules/fseterr (Depends-on): Remove dup2.
36811
36812 2009-12-26  Eric Blake  <ebb9@byu.net>
36813
36814         tests: use macros.h in more places
36815         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36816         (ASSERT_STREAM): Provide default of stderr.
36817         * tests/test-dirent-safer.c: Include macros.h, using alternate
36818         stream for assertions.
36819         * tests/test-dup-safer.c: Likewise.
36820         * tests/test-freopen-safer.c: Likewise.
36821         * tests/test-getopt.c: Likewise.
36822         * tests/test-openat-safer.c: Likewise.
36823         * tests/test-pipe.c: Likewise.
36824         * tests/test-popen-safer.c: Likewise.
36825         * modules/dirent-safer-tests (Files): Include macros.h.
36826         * modules/unistd-safer-tests (Files): Likewise.
36827         * modules/freopen-safer-tests (Files): Likewise.
36828         * modules/getopt-posix-tests (Files): Likewise.
36829         * modules/openat-safer-tests (Files): Likewise.
36830         * modules/pipe-tests (Files): Likewise.
36831
36832 2009-12-26  Bruno Haible  <bruno@clisp.org>
36833
36834         javacomp: Portability fix.
36835         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36836         that it also works on Solaris.
36837
36838 2009-12-26  Bruno Haible  <bruno@clisp.org>
36839
36840         localename: Fix storage allocation of gl_locale_name_thread's result.
36841         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36842         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36843         all platforms that have 'uselocale'.
36844         (gl_locale_name_thread_unsafe): New function, extracted from
36845         gl_locale_name_thread.
36846         (gl_locale_name_thread): Call struniq on all platforms that have
36847         'uselocale'.
36848         * tests/test-localename.c (test_locale_name_thread): Check that the
36849         resulting strings are permanently allocated.
36850         * modules/localename-tests (Depends-on): Add strdup.
36851
36852 2009-12-26  Bruno Haible  <bruno@clisp.org>
36853
36854         * tests/test-localename.c (categories): Fill in the strings.
36855
36856 2009-12-26  Jim Meyering  <meyering@redhat.com>
36857
36858         isdir: complete the removal of m4/isdir.m4
36859         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36860
36861         isdir: clean up, since at least grep still uses it
36862         * lib/isdir.c: Include "isdir.h".
36863         (S_ISDIR): Remove now-unneeded definition.
36864         * modules/isdir (Files): Add lib/isdir.h.
36865         * lib/isdir.h: New file, with declaration.
36866         * m4/isdir.m4: Remove file -- unneeded.
36867
36868 2009-12-25  Bruno Haible  <bruno@clisp.org>
36869
36870         selinux-h: Make generated .h files standalone.
36871         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36872         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36873         * lib/se-selinux.in.h: Likewise.
36874         * modules/selinux-h (Depends-on): Add unused-parameter.
36875         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36876         selinux/selinux.h and selinux/context.h.
36877         Suggested by Eric Blake.
36878
36879 2009-12-25  Bruno Haible  <bruno@clisp.org>
36880
36881         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36882         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36883         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36884         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36885         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36886
36887 2009-12-24  Bruno Haible  <bruno@clisp.org>
36888
36889         openat: Fix warning.
36890         * lib/openat-proc.c: Include <unistd.h>.
36891
36892 2009-12-24  Bruno Haible  <bruno@clisp.org>
36893
36894         New module 'unused-parameter'.
36895         * build-aux/unused-parameter.h: New file, extracted from earlier
36896         gnulib-common.m4.
36897         * modules/unused-parameter: New file.
36898         * lib/unistr.h: Include unused-parameter.h.
36899         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36900         _GL_UNUSED.
36901         * modules/unistr/base (Depends-on): Add unused-parameter.
36902
36903 2009-12-24  Bruno Haible  <bruno@clisp.org>
36904
36905         Add missing dependencies to 'extensions' module.
36906         * m4/extensions.m4: Add comment.
36907         * modules/accept4 (Depends-on): Add extensions.
36908         * modules/dup3 (Depends-on): Likewise.
36909         * modules/fcntl (Depends-on): Likewise.
36910         * modules/futimens (Depends-on): Likewise.
36911         * modules/mknod (Depends-on): Likewise.
36912         * modules/pipe2 (Depends-on): Likewise.
36913         * modules/stat-time (Depends-on): Likewise.
36914         * modules/strcasestr-simple (Depends-on): Likewise.
36915         * modules/strsignal (Depends-on): Likewise.
36916         * modules/utimensat (Depends-on): Likewise.
36917         * modules/localcharset (Depends-on): Likewise. Needed because of
36918         gl_FCNTL_O_FLAGS.
36919         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36920         AC_TYPE_MBSTATE_T.
36921         * modules/wcsnrtombs (Depends-on): Likewise.
36922         * modules/wcsrtombs (Depends-on): Likewise.
36923
36924 2009-12-24  Bruno Haible  <bruno@clisp.org>
36925
36926         binary-io: Avoid gcc warning due to SET_BINARY.
36927         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36928         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36929
36930 2009-12-24  Bruno Haible  <bruno@clisp.org>
36931
36932         Avoid future namespace pollution on glibc systems.
36933         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36934         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36935         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36936         glibc systems.
36937
36938 2009-12-24  Bruno Haible  <bruno@clisp.org>
36939
36940         Refactor common macros used in tests.
36941         * tests/macros.h: New file.
36942         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36943         and/or <stdlib.h>, if appropriate.
36944         (ASSERT, SIZEOF): Remove macros.
36945         * tests/test-areadlink-with-size.c: Likewise.
36946         * tests/test-areadlinkat.c: Likewise.
36947         * tests/test-areadlinkat-with-size.c: Likewise.
36948         * tests/test-argmatch.c: Likewise.
36949         * tests/test-argv-iter.c: Likewise.
36950         * tests/test-array-mergesort.c: Likewise.
36951         * tests/test-array_list.c: Likewise.
36952         * tests/test-array_oset.c: Likewise.
36953         * tests/test-avltree_list.c: Likewise.
36954         * tests/test-avltree_oset.c: Likewise.
36955         * tests/test-avltreehash_list.c: Likewise.
36956         * tests/test-base64.c: Likewise.
36957         * tests/test-binary-io.c: Likewise.
36958         * tests/test-bitrotate.c: Likewise.
36959         * tests/test-btowc.c: Likewise.
36960         * tests/test-byteswap.c: Likewise.
36961         * tests/test-c-ctype.c: Likewise.
36962         * tests/test-c-stack.c: Likewise.
36963         * tests/test-c-strcasecmp.c: Likewise.
36964         * tests/test-c-strcasestr.c: Likewise.
36965         * tests/test-c-strncasecmp.c: Likewise.
36966         * tests/test-c-strstr.c: Likewise.
36967         * tests/test-canonicalize-lgpl.c: Likewise.
36968         * tests/test-canonicalize.c: Likewise.
36969         * tests/test-carray_list.c: Likewise.
36970         * tests/test-ceilf1.c: Likewise.
36971         * tests/test-ceilf2.c: Likewise.
36972         * tests/test-ceill.c: Likewise.
36973         * tests/test-chown.c: Likewise.
36974         * tests/test-cloexec.c: Likewise.
36975         * tests/test-copy-acl.c: Likewise.
36976         * tests/test-copy-file.c: Likewise.
36977         * tests/test-count-one-bits.c: Likewise.
36978         * tests/test-dprintf-posix.c: Likewise.
36979         * tests/test-dup2.c: Likewise.
36980         * tests/test-dup3.c: Likewise.
36981         * tests/test-duplocale.c: Likewise.
36982         * tests/test-fbufmode.c: Likewise.
36983         * tests/test-fchdir.c: Likewise.
36984         * tests/test-fchownat.c: Likewise.
36985         * tests/test-fcntl-safer.c: Likewise.
36986         * tests/test-fcntl.c: Likewise.
36987         * tests/test-fdopendir.c: Likewise.
36988         * tests/test-fdutimensat.c: Likewise.
36989         * tests/test-fflush2.c: Likewise.
36990         * tests/test-file-has-acl.c: Likewise.
36991         * tests/test-filevercmp.c: Likewise.
36992         * tests/test-flock.c: Likewise.
36993         * tests/test-floorf1.c: Likewise.
36994         * tests/test-floorf2.c: Likewise.
36995         * tests/test-floorl.c: Likewise.
36996         * tests/test-fnmatch.c: Likewise.
36997         * tests/test-fopen.h: Likewise.
36998         * tests/test-fpending.c: Likewise.
36999         * tests/test-fprintf-posix.c: Likewise.
37000         * tests/test-fpurge.c: Likewise.
37001         * tests/test-freadable.c: Likewise.
37002         * tests/test-freadahead.c: Likewise.
37003         * tests/test-freading.c: Likewise.
37004         * tests/test-freadptr.c: Likewise.
37005         * tests/test-freadptr2.c: Likewise.
37006         * tests/test-freadseek.c: Likewise.
37007         * tests/test-freopen.c: Likewise.
37008         * tests/test-frexp.c: Likewise.
37009         * tests/test-frexpl.c: Likewise.
37010         * tests/test-fseek.c: Likewise.
37011         * tests/test-fseeko.c: Likewise.
37012         * tests/test-fstatat.c: Likewise.
37013         * tests/test-fstrcmp.c: Likewise.
37014         * tests/test-fsync.c: Likewise.
37015         * tests/test-ftell.c: Likewise.
37016         * tests/test-ftello.c: Likewise.
37017         * tests/test-func.c: Likewise.
37018         * tests/test-futimens.c: Likewise.
37019         * tests/test-fwritable.c: Likewise.
37020         * tests/test-fwriting.c: Likewise.
37021         * tests/test-getcwd.c: Likewise.
37022         * tests/test-getdate.c: Likewise.
37023         * tests/test-getdelim.c: Likewise.
37024         * tests/test-getdtablesize.c: Likewise.
37025         * tests/test-getgroups.c: Likewise.
37026         * tests/test-getline.c: Likewise.
37027         * tests/test-getndelim2.c: Likewise.
37028         * tests/test-glob.c: Likewise.
37029         * tests/test-hash.c: Likewise.
37030         * tests/test-i-ring.c: Likewise.
37031         * tests/test-iconv-utf.c: Likewise.
37032         * tests/test-iconv.c: Likewise.
37033         * tests/test-idpriv-drop.c: Likewise.
37034         * tests/test-idpriv-droptemp.c: Likewise.
37035         * tests/test-inet_ntop.c: Likewise.
37036         * tests/test-inet_pton.c: Likewise.
37037         * tests/test-isblank.c: Likewise.
37038         * tests/test-isfinite.c: Likewise.
37039         * tests/test-isinf.c: Likewise.
37040         * tests/test-isnan.c: Likewise.
37041         * tests/test-isnand.h: Likewise.
37042         * tests/test-isnanf.h: Likewise.
37043         * tests/test-isnanl.h: Likewise.
37044         * tests/test-lchown.c: Likewise.
37045         * tests/test-ldexpl.c: Likewise.
37046         * tests/test-link.c: Likewise.
37047         * tests/test-linkat.c: Likewise.
37048         * tests/test-linked_list.c: Likewise.
37049         * tests/test-linkedhash_list.c: Likewise.
37050         * tests/test-localename.c: Likewise.
37051         * tests/test-lseek.c: Likewise.
37052         * tests/test-lstat.c: Likewise.
37053         * tests/test-mbmemcasecmp.c: Likewise.
37054         * tests/test-mbmemcasecoll.c: Likewise.
37055         * tests/test-mbrtowc.c: Likewise.
37056         * tests/test-mbscasecmp.c: Likewise.
37057         * tests/test-mbscasestr1.c: Likewise.
37058         * tests/test-mbscasestr2.c: Likewise.
37059         * tests/test-mbscasestr3.c: Likewise.
37060         * tests/test-mbscasestr4.c: Likewise.
37061         * tests/test-mbschr.c: Likewise.
37062         * tests/test-mbscspn.c: Likewise.
37063         * tests/test-mbsinit.c: Likewise.
37064         * tests/test-mbsncasecmp.c: Likewise.
37065         * tests/test-mbsnrtowcs.c: Likewise.
37066         * tests/test-mbspbrk.c: Likewise.
37067         * tests/test-mbspcasecmp.c: Likewise.
37068         * tests/test-mbsrchr.c: Likewise.
37069         * tests/test-mbsrtowcs.c: Likewise.
37070         * tests/test-mbsspn.c: Likewise.
37071         * tests/test-mbsstr1.c: Likewise.
37072         * tests/test-mbsstr2.c: Likewise.
37073         * tests/test-mbsstr3.c: Likewise.
37074         * tests/test-memchr.c: Likewise.
37075         * tests/test-memchr2.c: Likewise.
37076         * tests/test-memcmp.c: Likewise.
37077         * tests/test-memmem.c: Likewise.
37078         * tests/test-memrchr.c: Likewise.
37079         * tests/test-mkdir.c: Likewise.
37080         * tests/test-mkdirat.c: Likewise.
37081         * tests/test-mkfifo.c: Likewise.
37082         * tests/test-mkfifoat.c: Likewise.
37083         * tests/test-mknod.c: Likewise.
37084         * tests/test-nanosleep.c: Likewise.
37085         * tests/test-nl_langinfo.c: Likewise.
37086         * tests/test-obstack-printf.c: Likewise.
37087         * tests/test-open.c: Likewise.
37088         * tests/test-openat.c: Likewise.
37089         * tests/test-pipe-filter-gi1.c: Likewise.
37090         * tests/test-pipe-filter-gi2-main.c: Likewise.
37091         * tests/test-pipe-filter-ii1.c: Likewise.
37092         * tests/test-pipe-filter-ii2-main.c: Likewise.
37093         * tests/test-pipe2.c: Likewise.
37094         * tests/test-popen.h: Likewise.
37095         * tests/test-posixtm.c: Likewise.
37096         * tests/test-pread.c: Likewise.
37097         * tests/test-printf-frexp.c: Likewise.
37098         * tests/test-printf-frexpl.c: Likewise.
37099         * tests/test-printf-posix.c: Likewise.
37100         * tests/test-priv-set.c: Likewise.
37101         * tests/test-quotearg.c: Likewise.
37102         * tests/test-random_r.c: Likewise.
37103         * tests/test-rawmemchr.c: Likewise.
37104         * tests/test-rbtree_list.c: Likewise.
37105         * tests/test-rbtree_oset.c: Likewise.
37106         * tests/test-rbtreehash_list.c: Likewise.
37107         * tests/test-readlink.c: Likewise.
37108         * tests/test-remove.c: Likewise.
37109         * tests/test-rename.c: Likewise.
37110         * tests/test-renameat.c: Likewise.
37111         * tests/test-rmdir.c: Likewise.
37112         * tests/test-round1.c: Likewise.
37113         * tests/test-roundf1.c: Likewise.
37114         * tests/test-roundl.c: Likewise.
37115         * tests/test-safe-alloc.c: Likewise.
37116         * tests/test-sameacls.c: Likewise.
37117         * tests/test-set-mode-acl.c: Likewise.
37118         * tests/test-setenv.c: Likewise.
37119         * tests/test-sigaction.c: Likewise.
37120         * tests/test-signbit.c: Likewise.
37121         * tests/test-sleep.c: Likewise.
37122         * tests/test-snprintf-posix.c: Likewise.
37123         * tests/test-snprintf.c: Likewise.
37124         * tests/test-sprintf-posix.c: Likewise.
37125         * tests/test-stat-time.c: Likewise.
37126         * tests/test-stat.c: Likewise.
37127         * tests/test-strcasestr.c: Likewise.
37128         * tests/test-strchrnul.c: Likewise.
37129         * tests/test-strerror.c: Likewise.
37130         * tests/test-striconv.c: Likewise.
37131         * tests/test-striconveh.c: Likewise.
37132         * tests/test-striconveha.c: Likewise.
37133         * tests/test-strsignal.c: Likewise.
37134         * tests/test-strstr.c: Likewise.
37135         * tests/test-strtod.c: Likewise.
37136         * tests/test-strverscmp.c: Likewise.
37137         * tests/test-symlink.c: Likewise.
37138         * tests/test-symlinkat.c: Likewise.
37139         * tests/test-trunc1.c: Likewise.
37140         * tests/test-trunc2.c: Likewise.
37141         * tests/test-truncf1.c: Likewise.
37142         * tests/test-truncf2.c: Likewise.
37143         * tests/test-truncl.c: Likewise.
37144         * tests/test-uname.c: Likewise.
37145         * tests/test-unlink.c: Likewise.
37146         * tests/test-unlinkat.c: Likewise.
37147         * tests/test-unsetenv.c: Likewise.
37148         * tests/test-usleep.c: Likewise.
37149         * tests/test-utimens.c: Likewise.
37150         * tests/test-utimensat.c: Likewise.
37151         * tests/test-vasnprintf-posix.c: Likewise.
37152         * tests/test-vasnprintf-posix2.c: Likewise.
37153         * tests/test-vasnprintf.c: Likewise.
37154         * tests/test-vasprintf-posix.c: Likewise.
37155         * tests/test-vasprintf.c: Likewise.
37156         * tests/test-vdprintf-posix.c: Likewise.
37157         * tests/test-vfprintf-posix.c: Likewise.
37158         * tests/test-vprintf-posix.c: Likewise.
37159         * tests/test-vsnprintf-posix.c: Likewise.
37160         * tests/test-vsnprintf.c: Likewise.
37161         * tests/test-vsprintf-posix.c: Likewise.
37162         * tests/test-wcrtomb.c: Likewise.
37163         * tests/test-wcsnrtombs.c: Likewise.
37164         * tests/test-wcsrtombs.c: Likewise.
37165         * tests/test-wctype.c: Likewise.
37166         * tests/test-wcwidth.c: Likewise.
37167         * tests/test-xfprintf-posix.c: Likewise.
37168         * tests/test-xmemdup0.c: Likewise.
37169         * tests/test-xprintf-posix.c: Likewise.
37170         * tests/test-xvasprintf.c: Likewise.
37171         * tests/unicase/test-locale-language.c: Likewise.
37172         * tests/unicase/test-mapping-part1.h: Likewise.
37173         * tests/unicase/test-predicate-part1.h: Likewise.
37174         * tests/unicase/test-u8-casecmp.c: Likewise.
37175         * tests/unicase/test-u8-casecoll.c: Likewise.
37176         * tests/unicase/test-u8-casefold.c: Likewise.
37177         * tests/unicase/test-u8-is-cased.c: Likewise.
37178         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37179         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37180         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37181         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37182         * tests/unicase/test-u8-tolower.c: Likewise.
37183         * tests/unicase/test-u8-totitle.c: Likewise.
37184         * tests/unicase/test-u8-toupper.c: Likewise.
37185         * tests/unicase/test-u16-casecmp.c: Likewise.
37186         * tests/unicase/test-u16-casecoll.c: Likewise.
37187         * tests/unicase/test-u16-casefold.c: Likewise.
37188         * tests/unicase/test-u16-is-cased.c: Likewise.
37189         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37190         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37191         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37192         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37193         * tests/unicase/test-u16-tolower.c: Likewise.
37194         * tests/unicase/test-u16-totitle.c: Likewise.
37195         * tests/unicase/test-u16-toupper.c: Likewise.
37196         * tests/unicase/test-u32-casecmp.c: Likewise.
37197         * tests/unicase/test-u32-casecoll.c: Likewise.
37198         * tests/unicase/test-u32-casefold.c: Likewise.
37199         * tests/unicase/test-u32-is-cased.c: Likewise.
37200         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37201         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37202         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37203         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37204         * tests/unicase/test-u32-tolower.c: Likewise.
37205         * tests/unicase/test-u32-totitle.c: Likewise.
37206         * tests/unicase/test-u32-toupper.c: Likewise.
37207         * tests/unicase/test-ulc-casecmp.c: Likewise.
37208         * tests/unicase/test-ulc-casecoll.c: Likewise.
37209         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37210         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37211         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37212         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37213         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37214         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37215         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37216         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37217         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37218         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37219         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37220         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37221         * tests/unictype/test-bidi_byname.c: Likewise.
37222         * tests/unictype/test-bidi_name.c: Likewise.
37223         * tests/unictype/test-bidi_of.c: Likewise.
37224         * tests/unictype/test-bidi_test.c: Likewise.
37225         * tests/unictype/test-block_list.c: Likewise.
37226         * tests/unictype/test-block_of.c: Likewise.
37227         * tests/unictype/test-block_test.c: Likewise.
37228         * tests/unictype/test-categ_and.c: Likewise.
37229         * tests/unictype/test-categ_and_not.c: Likewise.
37230         * tests/unictype/test-categ_byname.c: Likewise.
37231         * tests/unictype/test-categ_name.c: Likewise.
37232         * tests/unictype/test-categ_none.c: Likewise.
37233         * tests/unictype/test-categ_of.c: Likewise.
37234         * tests/unictype/test-categ_or.c: Likewise.
37235         * tests/unictype/test-categ_test_withtable.c: Likewise.
37236         * tests/unictype/test-combining.c: Likewise.
37237         * tests/unictype/test-decdigit.c: Likewise.
37238         * tests/unictype/test-digit.c: Likewise.
37239         * tests/unictype/test-mirror.c: Likewise.
37240         * tests/unictype/test-numeric.c: Likewise.
37241         * tests/unictype/test-pr_byname.c: Likewise.
37242         * tests/unictype/test-pr_test.c: Likewise.
37243         * tests/unictype/test-predicate-part1.h: Likewise.
37244         * tests/unictype/test-scripts.c: Likewise.
37245         * tests/unictype/test-sy_c_ident.c: Likewise.
37246         * tests/unictype/test-sy_java_ident.c: Likewise.
37247         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37248         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37249         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37250         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37251         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37252         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37253         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37254         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37255         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37256         * tests/uninorm/test-compat-decomposition.c: Likewise.
37257         * tests/uninorm/test-composition.c: Likewise.
37258         * tests/uninorm/test-decomposing-form.c: Likewise.
37259         * tests/uninorm/test-decomposition.c: Likewise.
37260         * tests/uninorm/test-u8-nfc.c: Likewise.
37261         * tests/uninorm/test-u8-nfd.c: Likewise.
37262         * tests/uninorm/test-u8-nfkc.c: Likewise.
37263         * tests/uninorm/test-u8-nfkd.c: Likewise.
37264         * tests/uninorm/test-u8-normcmp.c: Likewise.
37265         * tests/uninorm/test-u8-normcoll.c: Likewise.
37266         * tests/uninorm/test-u16-nfc.c: Likewise.
37267         * tests/uninorm/test-u16-nfd.c: Likewise.
37268         * tests/uninorm/test-u16-nfkc.c: Likewise.
37269         * tests/uninorm/test-u16-nfkd.c: Likewise.
37270         * tests/uninorm/test-u16-normcmp.c: Likewise.
37271         * tests/uninorm/test-u16-normcoll.c: Likewise.
37272         * tests/uninorm/test-u32-nfc.c: Likewise.
37273         * tests/uninorm/test-u32-nfd.c: Likewise.
37274         * tests/uninorm/test-u32-nfkc.c: Likewise.
37275         * tests/uninorm/test-u32-nfkd.c: Likewise.
37276         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37277         * tests/uninorm/test-u32-normcmp.c: Likewise.
37278         * tests/uninorm/test-u32-normcoll.c: Likewise.
37279         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37280         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37281         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37282         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37283         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37284         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37285         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37286         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37287         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37288         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37289         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37290         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37291         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37292         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37293         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37294         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37295         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37296         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37297         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37298         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37299         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37300         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37301         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37302         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37303         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37304         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37305         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37306         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37307         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37308         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37309         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37310         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37311         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37312         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37313         * tests/uniwidth/test-u8-width.c: Likewise.
37314         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37315         * tests/uniwidth/test-u16-width.c: Likewise.
37316         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37317         * tests/uniwidth/test-u32-width.c: Likewise.
37318         * tests/uniwidth/test-uc_width.c: Likewise.
37319         * tests/uniwidth/test-uc_width2.c: Likewise.
37320         * modules/acl-tests (Files): Add tests/macros.h.
37321         * modules/areadlink-tests (Files): Likewise.
37322         * modules/areadlink-with-size-tests (Files): Likewise.
37323         * modules/areadlinkat-tests (Files): Likewise.
37324         * modules/areadlinkat-with-size-tests (Files): Likewise.
37325         * modules/argmatch-tests (Files): Likewise.
37326         * modules/argv-iter-tests (Files): Likewise.
37327         * modules/array-list-tests (Files): Likewise.
37328         * modules/array-mergesort-tests (Files): Likewise.
37329         * modules/array-oset-tests (Files): Likewise.
37330         * modules/avltree-list-tests (Files): Likewise.
37331         * modules/avltree-oset-tests (Files): Likewise.
37332         * modules/avltreehash-list-tests (Files): Likewise.
37333         * modules/base64-tests (Files): Likewise.
37334         * modules/binary-io-tests (Files): Likewise.
37335         * modules/bitrotate-tests (Files): Likewise.
37336         * modules/btowc-tests (Files): Likewise.
37337         * modules/byteswap-tests (Files): Likewise.
37338         * modules/c-ctype-tests (Files): Likewise.
37339         * modules/c-stack-tests (Files): Likewise.
37340         * modules/c-strcase-tests (Files): Likewise.
37341         * modules/c-strcasestr-tests (Files): Likewise.
37342         * modules/c-strstr-tests (Files): Likewise.
37343         * modules/canonicalize-lgpl-tests (Files): Likewise.
37344         * modules/canonicalize-tests (Files): Likewise.
37345         * modules/carray-list-tests (Files): Likewise.
37346         * modules/ceilf-tests (Files): Likewise.
37347         * modules/ceill-tests (Files): Likewise.
37348         * modules/chown-tests (Files): Likewise.
37349         * modules/cloexec-tests (Files): Likewise.
37350         * modules/copy-file-tests (Files): Likewise.
37351         * modules/count-one-bits-tests (Files): Likewise.
37352         * modules/dprintf-posix-tests (Files): Likewise.
37353         * modules/dup2-tests (Files): Likewise.
37354         * modules/dup3-tests (Files): Likewise.
37355         * modules/duplocale-tests (Files): Likewise.
37356         * modules/fbufmode-tests (Files): Likewise.
37357         * modules/fchdir-tests (Files): Likewise.
37358         * modules/fcntl-safer-tests (Files): Likewise.
37359         * modules/fcntl-tests (Files): Likewise.
37360         * modules/fdopendir-tests (Files): Likewise.
37361         * modules/fdutimensat-tests (Files): Likewise.
37362         * modules/fflush-tests (Files): Likewise.
37363         * modules/filevercmp-tests (Files): Likewise.
37364         * modules/flock-tests (Files): Likewise.
37365         * modules/floorf-tests (Files): Likewise.
37366         * modules/floorl-tests (Files): Likewise.
37367         * modules/fnmatch-tests (Files): Likewise.
37368         * modules/fopen-safer-tests (Files): Likewise.
37369         * modules/fopen-tests (Files): Likewise.
37370         * modules/fpending-tests (Files): Likewise.
37371         * modules/fprintf-posix-tests (Files): Likewise.
37372         * modules/fpurge-tests (Files): Likewise.
37373         * modules/freadable-tests (Files): Likewise.
37374         * modules/freadahead-tests (Files): Likewise.
37375         * modules/freading-tests (Files): Likewise.
37376         * modules/freadptr-tests (Files): Likewise.
37377         * modules/freadseek-tests (Files): Likewise.
37378         * modules/freopen-tests (Files): Likewise.
37379         * modules/frexp-nolibm-tests (Files): Likewise.
37380         * modules/frexp-tests (Files): Likewise.
37381         * modules/frexpl-nolibm-tests (Files): Likewise.
37382         * modules/frexpl-tests (Files): Likewise.
37383         * modules/fseek-tests (Files): Likewise.
37384         * modules/fseeko-tests (Files): Likewise.
37385         * modules/fstrcmp-tests (Files): Likewise.
37386         * modules/fsync-tests (Files): Likewise.
37387         * modules/ftell-tests (Files): Likewise.
37388         * modules/ftello-tests (Files): Likewise.
37389         * modules/func-tests (Files): Likewise.
37390         * modules/futimens-tests (Files): Likewise.
37391         * modules/fwritable-tests (Files): Likewise.
37392         * modules/fwriting-tests (Files): Likewise.
37393         * modules/getcwd-tests (Files): Likewise.
37394         * modules/getdate-tests (Files): Likewise.
37395         * modules/getdelim-tests (Files): Likewise.
37396         * modules/getdtablesize-tests (Files): Likewise.
37397         * modules/getgroups-tests (Files): Likewise.
37398         * modules/getline-tests (Files): Likewise.
37399         * modules/getndelim2-tests (Files): Likewise.
37400         * modules/glob-tests (Files): Likewise.
37401         * modules/hash-tests (Files): Likewise.
37402         * modules/i-ring-tests (Files): Likewise.
37403         * modules/iconv-tests (Files): Likewise.
37404         * modules/iconv_open-utf-tests (Files): Likewise.
37405         * modules/idpriv-drop-tests (Files): Likewise.
37406         * modules/idpriv-droptemp-tests (Files): Likewise.
37407         * modules/inet_ntop-tests (Files): Likewise.
37408         * modules/inet_pton-tests (Files): Likewise.
37409         * modules/isblank-tests (Files): Likewise.
37410         * modules/isfinite-tests (Files): Likewise.
37411         * modules/isinf-tests (Files): Likewise.
37412         * modules/isnan-tests (Files): Likewise.
37413         * modules/isnand-nolibm-tests (Files): Likewise.
37414         * modules/isnand-tests (Files): Likewise.
37415         * modules/isnanf-nolibm-tests (Files): Likewise.
37416         * modules/isnanf-tests (Files): Likewise.
37417         * modules/isnanl-nolibm-tests (Files): Likewise.
37418         * modules/isnanl-tests (Files): Likewise.
37419         * modules/lchown-tests (Files): Likewise.
37420         * modules/ldexpl-tests (Files): Likewise.
37421         * modules/link-tests (Files): Likewise.
37422         * modules/linkat-tests (Files): Likewise.
37423         * modules/linked-list-tests (Files): Likewise.
37424         * modules/linkedhash-list-tests (Files): Likewise.
37425         * modules/localename-tests (Files): Likewise.
37426         * modules/lseek-tests (Files): Likewise.
37427         * modules/lstat-tests (Files): Likewise.
37428         * modules/mbmemcasecmp-tests (Files): Likewise.
37429         * modules/mbmemcasecoll-tests (Files): Likewise.
37430         * modules/mbrtowc-tests (Files): Likewise.
37431         * modules/mbscasecmp-tests (Files): Likewise.
37432         * modules/mbscasestr-tests (Files): Likewise.
37433         * modules/mbschr-tests (Files): Likewise.
37434         * modules/mbscspn-tests (Files): Likewise.
37435         * modules/mbsinit-tests (Files): Likewise.
37436         * modules/mbsncasecmp-tests (Files): Likewise.
37437         * modules/mbsnrtowcs-tests (Files): Likewise.
37438         * modules/mbspbrk-tests (Files): Likewise.
37439         * modules/mbspcasecmp-tests (Files): Likewise.
37440         * modules/mbsrchr-tests (Files): Likewise.
37441         * modules/mbsrtowcs-tests (Files): Likewise.
37442         * modules/mbsspn-tests (Files): Likewise.
37443         * modules/mbsstr-tests (Files): Likewise.
37444         * modules/memchr-tests (Files): Likewise.
37445         * modules/memchr2-tests (Files): Likewise.
37446         * modules/memcmp-tests (Files): Likewise.
37447         * modules/memmem-tests (Files): Likewise.
37448         * modules/memrchr-tests (Files): Likewise.
37449         * modules/mkdir-tests (Files): Likewise.
37450         * modules/mkfifo-tests (Files): Likewise.
37451         * modules/mkfifoat-tests (Files): Likewise.
37452         * modules/mknod-tests (Files): Likewise.
37453         * modules/nanosleep-tests (Files): Likewise.
37454         * modules/nl_langinfo-tests (Files): Likewise.
37455         * modules/obstack-printf-tests (Files): Likewise.
37456         * modules/open-tests (Files): Likewise.
37457         * modules/openat-tests (Files): Likewise.
37458         * modules/pipe-filter-gi-tests (Files): Likewise.
37459         * modules/pipe-filter-ii-tests (Files): Likewise.
37460         * modules/pipe2-tests (Files): Likewise.
37461         * modules/popen-safer-tests (Files): Likewise.
37462         * modules/popen-tests (Files): Likewise.
37463         * modules/posixtm-tests (Files): Likewise.
37464         * modules/pread-tests (Files): Likewise.
37465         * modules/printf-frexp-tests (Files): Likewise.
37466         * modules/printf-frexpl-tests (Files): Likewise.
37467         * modules/printf-posix-tests (Files): Likewise.
37468         * modules/priv-set-tests (Files): Likewise.
37469         * modules/quotearg-tests (Files): Likewise.
37470         * modules/random_r-tests (Files): Likewise.
37471         * modules/rawmemchr-tests (Files): Likewise.
37472         * modules/rbtree-list-tests (Files): Likewise.
37473         * modules/rbtree-oset-tests (Files): Likewise.
37474         * modules/rbtreehash-list-tests (Files): Likewise.
37475         * modules/readlink-tests (Files): Likewise.
37476         * modules/remove-tests (Files): Likewise.
37477         * modules/rename-tests (Files): Likewise.
37478         * modules/renameat-tests (Files): Likewise.
37479         * modules/rmdir-tests (Files): Likewise.
37480         * modules/round-tests (Files): Likewise.
37481         * modules/roundf-tests (Files): Likewise.
37482         * modules/roundl-tests (Files): Likewise.
37483         * modules/safe-alloc-tests (Files): Likewise.
37484         * modules/setenv-tests (Files): Likewise.
37485         * modules/sigaction-tests (Files): Likewise.
37486         * modules/signbit-tests (Files): Likewise.
37487         * modules/sleep-tests (Files): Likewise.
37488         * modules/snprintf-posix-tests (Files): Likewise.
37489         * modules/snprintf-tests (Files): Likewise.
37490         * modules/sprintf-posix-tests (Files): Likewise.
37491         * modules/stat-tests (Files): Likewise.
37492         * modules/stat-time-tests (Files): Likewise.
37493         * modules/strcasestr-tests (Files): Likewise.
37494         * modules/strchrnul-tests (Files): Likewise.
37495         * modules/strerror-tests (Files): Likewise.
37496         * modules/striconv-tests (Files): Likewise.
37497         * modules/striconveh-tests (Files): Likewise.
37498         * modules/striconveha-tests (Files): Likewise.
37499         * modules/strsignal-tests (Files): Likewise.
37500         * modules/strstr-tests (Files): Likewise.
37501         * modules/strtod-tests (Files): Likewise.
37502         * modules/strverscmp-tests (Files): Likewise.
37503         * modules/symlink-tests (Files): Likewise.
37504         * modules/symlinkat-tests (Files): Likewise.
37505         * modules/trunc-tests (Files): Likewise.
37506         * modules/truncf-tests (Files): Likewise.
37507         * modules/truncl-tests (Files): Likewise.
37508         * modules/uname-tests (Files): Likewise.
37509         * modules/unicase/cased-tests (Files): Likewise.
37510         * modules/unicase/ignorable-tests (Files): Likewise.
37511         * modules/unicase/locale-language-tests (Files): Likewise.
37512         * modules/unicase/tolower-tests (Files): Likewise.
37513         * modules/unicase/totitle-tests (Files): Likewise.
37514         * modules/unicase/toupper-tests (Files): Likewise.
37515         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37516         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37517         * modules/unicase/u8-casefold-tests (Files): Likewise.
37518         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37519         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37520         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37521         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37522         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37523         * modules/unicase/u8-tolower-tests (Files): Likewise.
37524         * modules/unicase/u8-totitle-tests (Files): Likewise.
37525         * modules/unicase/u8-toupper-tests (Files): Likewise.
37526         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37527         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37528         * modules/unicase/u16-casefold-tests (Files): Likewise.
37529         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37530         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37531         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37532         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37533         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37534         * modules/unicase/u16-tolower-tests (Files): Likewise.
37535         * modules/unicase/u16-totitle-tests (Files): Likewise.
37536         * modules/unicase/u16-toupper-tests (Files): Likewise.
37537         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37538         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37539         * modules/unicase/u32-casefold-tests (Files): Likewise.
37540         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37541         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37542         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37543         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37544         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37545         * modules/unicase/u32-tolower-tests (Files): Likewise.
37546         * modules/unicase/u32-totitle-tests (Files): Likewise.
37547         * modules/unicase/u32-toupper-tests (Files): Likewise.
37548         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37549         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37550         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37551         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37552         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37553         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37554         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37555         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37556         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37557         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37558         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37559         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37560         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37561         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37562         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37563         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37564         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37565         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37566         * modules/unictype/block-list-tests (Files): Likewise.
37567         * modules/unictype/block-of-tests (Files): Likewise.
37568         * modules/unictype/block-test-tests (Files): Likewise.
37569         * modules/unictype/category-C-tests (Files): Likewise.
37570         * modules/unictype/category-Cc-tests (Files): Likewise.
37571         * modules/unictype/category-Cf-tests (Files): Likewise.
37572         * modules/unictype/category-Cn-tests (Files): Likewise.
37573         * modules/unictype/category-Co-tests (Files): Likewise.
37574         * modules/unictype/category-Cs-tests (Files): Likewise.
37575         * modules/unictype/category-L-tests (Files): Likewise.
37576         * modules/unictype/category-Ll-tests (Files): Likewise.
37577         * modules/unictype/category-Lm-tests (Files): Likewise.
37578         * modules/unictype/category-Lo-tests (Files): Likewise.
37579         * modules/unictype/category-Lt-tests (Files): Likewise.
37580         * modules/unictype/category-Lu-tests (Files): Likewise.
37581         * modules/unictype/category-M-tests (Files): Likewise.
37582         * modules/unictype/category-Mc-tests (Files): Likewise.
37583         * modules/unictype/category-Me-tests (Files): Likewise.
37584         * modules/unictype/category-Mn-tests (Files): Likewise.
37585         * modules/unictype/category-N-tests (Files): Likewise.
37586         * modules/unictype/category-Nd-tests (Files): Likewise.
37587         * modules/unictype/category-Nl-tests (Files): Likewise.
37588         * modules/unictype/category-No-tests (Files): Likewise.
37589         * modules/unictype/category-P-tests (Files): Likewise.
37590         * modules/unictype/category-Pc-tests (Files): Likewise.
37591         * modules/unictype/category-Pd-tests (Files): Likewise.
37592         * modules/unictype/category-Pe-tests (Files): Likewise.
37593         * modules/unictype/category-Pf-tests (Files): Likewise.
37594         * modules/unictype/category-Pi-tests (Files): Likewise.
37595         * modules/unictype/category-Po-tests (Files): Likewise.
37596         * modules/unictype/category-Ps-tests (Files): Likewise.
37597         * modules/unictype/category-S-tests (Files): Likewise.
37598         * modules/unictype/category-Sc-tests (Files): Likewise.
37599         * modules/unictype/category-Sk-tests (Files): Likewise.
37600         * modules/unictype/category-Sm-tests (Files): Likewise.
37601         * modules/unictype/category-So-tests (Files): Likewise.
37602         * modules/unictype/category-Z-tests (Files): Likewise.
37603         * modules/unictype/category-Zl-tests (Files): Likewise.
37604         * modules/unictype/category-Zp-tests (Files): Likewise.
37605         * modules/unictype/category-Zs-tests (Files): Likewise.
37606         * modules/unictype/category-and-not-tests (Files): Likewise.
37607         * modules/unictype/category-and-tests (Files): Likewise.
37608         * modules/unictype/category-byname-tests (Files): Likewise.
37609         * modules/unictype/category-name-tests (Files): Likewise.
37610         * modules/unictype/category-none-tests (Files): Likewise.
37611         * modules/unictype/category-of-tests (Files): Likewise.
37612         * modules/unictype/category-or-tests (Files): Likewise.
37613         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37614         * modules/unictype/combining-class-tests (Files): Likewise.
37615         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37616         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37617         * modules/unictype/ctype-blank-tests (Files): Likewise.
37618         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37619         * modules/unictype/ctype-digit-tests (Files): Likewise.
37620         * modules/unictype/ctype-graph-tests (Files): Likewise.
37621         * modules/unictype/ctype-lower-tests (Files): Likewise.
37622         * modules/unictype/ctype-print-tests (Files): Likewise.
37623         * modules/unictype/ctype-punct-tests (Files): Likewise.
37624         * modules/unictype/ctype-space-tests (Files): Likewise.
37625         * modules/unictype/ctype-upper-tests (Files): Likewise.
37626         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37627         * modules/unictype/decimal-digit-tests (Files): Likewise.
37628         * modules/unictype/digit-tests (Files): Likewise.
37629         * modules/unictype/mirror-tests (Files): Likewise.
37630         * modules/unictype/numeric-tests (Files): Likewise.
37631         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37632         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37633         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37634         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37635         Likewise.
37636         * modules/unictype/property-bidi-block-separator-tests (Files):
37637         Likewise.
37638         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37639         Likewise.
37640         * modules/unictype/property-bidi-common-separator-tests (Files):
37641         Likewise.
37642         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37643         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37644         Likewise.
37645         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37646         Likewise.
37647         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37648         Likewise.
37649         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37650         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37651         Likewise.
37652         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37653         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37654         Likewise.
37655         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37656         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37657         * modules/unictype/property-bidi-segment-separator-tests (Files):
37658         Likewise.
37659         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37660         * modules/unictype/property-byname-tests (Files): Likewise.
37661         * modules/unictype/property-combining-tests (Files): Likewise.
37662         * modules/unictype/property-composite-tests (Files): Likewise.
37663         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37664         * modules/unictype/property-dash-tests (Files): Likewise.
37665         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37666         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37667         Likewise.
37668         * modules/unictype/property-deprecated-tests (Files): Likewise.
37669         * modules/unictype/property-diacritic-tests (Files): Likewise.
37670         * modules/unictype/property-extender-tests (Files): Likewise.
37671         * modules/unictype/property-format-control-tests (Files): Likewise.
37672         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37673         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37674         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37675         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37676         * modules/unictype/property-hyphen-tests (Files): Likewise.
37677         * modules/unictype/property-id-continue-tests (Files): Likewise.
37678         * modules/unictype/property-id-start-tests (Files): Likewise.
37679         * modules/unictype/property-ideographic-tests (Files): Likewise.
37680         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37681         * modules/unictype/property-ids-trinary-operator-tests (Files):
37682         Likewise.
37683         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37684         * modules/unictype/property-iso-control-tests (Files): Likewise.
37685         * modules/unictype/property-join-control-tests (Files): Likewise.
37686         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37687         * modules/unictype/property-line-separator-tests (Files): Likewise.
37688         * modules/unictype/property-logical-order-exception-tests (Files):
37689         Likewise.
37690         * modules/unictype/property-lowercase-tests (Files): Likewise.
37691         * modules/unictype/property-math-tests (Files): Likewise.
37692         * modules/unictype/property-non-break-tests (Files): Likewise.
37693         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37694         * modules/unictype/property-numeric-tests (Files): Likewise.
37695         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37696         * modules/unictype/property-other-default-ignorable-code-point-tests
37697         (Files): Likewise.
37698         * modules/unictype/property-other-grapheme-extend-tests (Files):
37699         Likewise.
37700         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37701         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37702         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37703         * modules/unictype/property-other-math-tests (Files): Likewise.
37704         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37705         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37706         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37707         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37708         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37709         * modules/unictype/property-private-use-tests (Files): Likewise.
37710         * modules/unictype/property-punctuation-tests (Files): Likewise.
37711         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37712         * modules/unictype/property-radical-tests (Files): Likewise.
37713         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37714         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37715         * modules/unictype/property-space-tests (Files): Likewise.
37716         * modules/unictype/property-terminal-punctuation-tests (Files):
37717         Likewise.
37718         * modules/unictype/property-test-tests (Files): Likewise.
37719         * modules/unictype/property-titlecase-tests (Files): Likewise.
37720         * modules/unictype/property-unassigned-code-value-tests (Files):
37721         Likewise.
37722         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37723         * modules/unictype/property-uppercase-tests (Files): Likewise.
37724         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37725         * modules/unictype/property-white-space-tests (Files): Likewise.
37726         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37727         * modules/unictype/property-xid-start-tests (Files): Likewise.
37728         * modules/unictype/property-zero-width-tests (Files): Likewise.
37729         * modules/unictype/scripts-tests (Files): Likewise.
37730         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37731         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37732         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37733         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37734         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37735         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37736         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37737         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37738         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37739         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37740         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37741         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37742         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37743         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37744         * modules/uninorm/composition-tests (Files): Likewise.
37745         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37746         * modules/uninorm/decomposition-tests (Files): Likewise.
37747         * modules/uninorm/filter-tests (Files): Likewise.
37748         * modules/uninorm/nfc-tests (Files): Likewise.
37749         * modules/uninorm/nfd-tests (Files): Likewise.
37750         * modules/uninorm/nfkc-tests (Files): Likewise.
37751         * modules/uninorm/nfkd-tests (Files): Likewise.
37752         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37753         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37754         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37755         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37756         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37757         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37758         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37759         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37760         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37761         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37762         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37763         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37764         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37765         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37766         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37767         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37768         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37769         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37770         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37771         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37772         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37773         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37774         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37775         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37776         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37777         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37778         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37779         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37780         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37781         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37782         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37783         * modules/uniwidth/u8-width-tests (Files): Likewise.
37784         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37785         * modules/uniwidth/u16-width-tests (Files): Likewise.
37786         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37787         * modules/uniwidth/u32-width-tests (Files): Likewise.
37788         * modules/uniwidth/width-tests (Files): Likewise.
37789         * modules/unlink-tests (Files): Likewise.
37790         * modules/unsetenv-tests (Files): Likewise.
37791         * modules/usleep-tests (Files): Likewise.
37792         * modules/utimens-tests (Files): Likewise.
37793         * modules/utimensat-tests (Files): Likewise.
37794         * modules/vasnprintf-posix-tests (Files): Likewise.
37795         * modules/vasnprintf-tests (Files): Likewise.
37796         * modules/vasprintf-posix-tests (Files): Likewise.
37797         * modules/vasprintf-tests (Files): Likewise.
37798         * modules/vdprintf-posix-tests (Files): Likewise.
37799         * modules/vfprintf-posix-tests (Files): Likewise.
37800         * modules/vprintf-posix-tests (Files): Likewise.
37801         * modules/vsnprintf-posix-tests (Files): Likewise.
37802         * modules/vsnprintf-tests (Files): Likewise.
37803         * modules/vsprintf-posix-tests (Files): Likewise.
37804         * modules/wcrtomb-tests (Files): Likewise.
37805         * modules/wcsnrtombs-tests (Files): Likewise.
37806         * modules/wcsrtombs-tests (Files): Likewise.
37807         * modules/wctype-tests (Files): Likewise.
37808         * modules/wcwidth-tests (Files): Likewise.
37809         * modules/xmemdup0-tests (Files): Likewise.
37810         * modules/xprintf-posix-tests (Files): Likewise.
37811         * modules/xvasprintf-tests (Files): Likewise.
37812
37813 2009-12-24  Eric Blake  <ebb9@byu.net>
37814
37815         test-nanosleep: fix typo
37816         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37817         patch.
37818         Reported by Bruno Haible.
37819
37820 2009-12-24  Bruno Haible  <bruno@clisp.org>
37821
37822         Reduce namespace pollution on glibc systems.
37823         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37824         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37825         systems.
37826         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37827         <getopt.h> on glibc systems.
37828         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37829         systems.
37830         * lib/fcntl.c: Include <unistd.h> here instead.
37831
37832 2009-12-24  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37835
37836 2009-12-24  Eric Blake  <ebb9@byu.net>
37837
37838         tests: add signature checks
37839         * tests/signature.h (SIGNATURE_CHECK): New file.
37840         * modules/atexit-tests (Files): Use it.
37841         * modules/btowc-tests (Files): Likewise.
37842         * modules/canonicalize-lgpl-tests (Files): Likewise.
37843         * modules/ceilf-tests (Files): Likewise.
37844         * modules/ceill-tests (Files): Likewise.
37845         * modules/chown-tests (Files): Likewise.
37846         * modules/dprintf-posix-tests (Files): Likewise.
37847         * modules/dup2-tests (Files): Likewise.
37848         * modules/dup3-tests (Files): Likewise.
37849         * modules/duplocale-tests (Files): Likewise.
37850         * modules/fchdir-tests (Files): Likewise.
37851         * modules/fcntl-tests (Files): Likewise.
37852         * modules/fdopendir-tests (Files): Likewise.
37853         * modules/fflush-tests (Files): Likewise.
37854         * modules/flock-tests (Files): Likewise.
37855         * modules/floorf-tests (Files): Likewise.
37856         * modules/floorl-tests (Files): Likewise.
37857         * modules/fnmatch-tests (Files): Likewise.
37858         * modules/fopen-tests (Files): Likewise.
37859         * modules/fprintf-posix-tests (Files): Likewise.
37860         * modules/freopen-tests (Files): Likewise.
37861         * modules/frexp-nolibm-tests (Files): Likewise.
37862         * modules/frexp-tests (Files): Likewise.
37863         * modules/frexpl-nolibm-tests (Files): Likewise.
37864         * modules/frexpl-tests (Files): Likewise.
37865         * modules/fseek-tests (Files): Likewise.
37866         * modules/fseeko-tests (Files): Likewise.
37867         * modules/fsync-tests (Files): Likewise.
37868         * modules/ftell-tests (Files): Likewise.
37869         * modules/ftello-tests (Files): Likewise.
37870         * modules/futimens-tests (Files): Likewise.
37871         * modules/getaddrinfo-tests (Files): Likewise.
37872         * modules/getcwd-tests (Files): Likewise.
37873         * modules/getdelim-tests (Files): Likewise.
37874         * modules/getdtablesize-tests (Files): Likewise.
37875         * modules/getgroups-tests (Files): Likewise.
37876         * modules/gethostname-tests (Files): Likewise.
37877         * modules/getline-tests (Files): Likewise.
37878         * modules/getopt-posix-tests (Files): Likewise.
37879         * modules/gettimeofday-tests (Files): Likewise.
37880         * modules/glob-tests (Files): Likewise.
37881         * modules/iconv-tests (Files): Likewise.
37882         * modules/inet_ntop-tests (Files): Likewise.
37883         * modules/inet_pton-tests (Files): Likewise.
37884         * modules/isblank-tests (Files): Likewise.
37885         * modules/lchown-tests (Files): Likewise.
37886         * modules/ldexpl-tests (Files): Likewise.
37887         * modules/link-tests (Files): Likewise.
37888         * modules/linkat-tests (Files): Likewise.
37889         * modules/lseek-tests (Files): Likewise.
37890         * modules/lstat-tests (Files): Likewise.
37891         * modules/mbrtowc-tests (Files): Likewise.
37892         * modules/mbsinit-tests (Files): Likewise.
37893         * modules/mbsnrtowcs-tests (Files): Likewise.
37894         * modules/mbsrtowcs-tests (Files): Likewise.
37895         * modules/memchr-tests (Files): Likewise.
37896         * modules/memcmp-tests (Files): Likewise.
37897         * modules/memmem-tests (Files): Likewise.
37898         * modules/memrchr-tests (Files): Likewise.
37899         * modules/mkdir-tests (Files): Likewise.
37900         * modules/mkfifo-tests (Files): Likewise.
37901         * modules/mkfifoat-tests (Files): Likewise.
37902         * modules/mknod-tests (Files): Likewise.
37903         * modules/nanosleep-tests (Files): Likewise.
37904         * modules/nl_langinfo-tests (Files): Likewise.
37905         * modules/obstack-printf-tests (Files): Likewise.
37906         * modules/open-tests (Files): Likewise.
37907         * modules/openat-tests (Files): Likewise.
37908         * modules/perror-tests (Files): Likewise.
37909         * modules/pipe2-tests (Files): Likewise.
37910         * modules/poll-tests (Files): Likewise.
37911         * modules/popen-tests (Files): Likewise.
37912         * modules/posix_spawn-tests (Files): Likewise.
37913         * modules/posix_spawnp-tests (Files): Likewise.
37914         * modules/pread-tests (Files): Likewise.
37915         * modules/printf-posix-tests (Files): Likewise.
37916         * modules/pty-tests (Files): Likewise.
37917         * modules/random_r-tests (Files): Likewise.
37918         * modules/rawmemchr-tests (Files): Likewise.
37919         * modules/readlink-tests (Files): Likewise.
37920         * modules/remove-tests (Files): Likewise.
37921         * modules/rename-tests (Files): Likewise.
37922         * modules/renameat-tests (Files): Likewise.
37923         * modules/rmdir-tests (Files): Likewise.
37924         * modules/round-tests (Files): Likewise.
37925         * modules/roundf-tests (Files): Likewise.
37926         * modules/roundl-tests (Files): Likewise.
37927         * modules/select-tests (Files): Likewise.
37928         * modules/setenv-tests (Files): Likewise.
37929         * modules/sigaction-tests (Files): Likewise.
37930         * modules/sleep-tests (Files): Likewise.
37931         * modules/snprintf-posix-tests (Files): Likewise.
37932         * modules/snprintf-tests (Files): Likewise.
37933         * modules/sprintf-posix-tests (Files): Likewise.
37934         * modules/stat-tests (Files): Likewise.
37935         * modules/strcasestr-tests (Files): Likewise.
37936         * modules/strchrnul-tests (Files): Likewise.
37937         * modules/strerror-tests (Files): Likewise.
37938         * modules/strsignal-tests (Files): Likewise.
37939         * modules/strstr-tests (Files): Likewise.
37940         * modules/strtod-tests (Files): Likewise.
37941         * modules/strverscmp-tests (Files): Likewise.
37942         * modules/symlink-tests (Files): Likewise.
37943         * modules/symlinkat-tests (Files): Likewise.
37944         * modules/times-tests (Files): Likewise.
37945         * modules/trunc-tests (Files): Likewise.
37946         * modules/truncf-tests (Files): Likewise.
37947         * modules/truncl-tests (Files): Likewise.
37948         * modules/tsearch-tests (Files): Likewise.
37949         * modules/uname-tests (Files): Likewise.
37950         * modules/unlink-tests (Files): Likewise.
37951         * modules/unsetenv-tests (Files): Likewise.
37952         * modules/usleep-tests (Files): Likewise.
37953         * modules/utimensat-tests (Files): Likewise.
37954         * modules/vasprintf-tests (Files): Likewise.
37955         * modules/vdprintf-posix-tests (Files): Likewise.
37956         * modules/vfprintf-posix-tests (Files): Likewise.
37957         * modules/vprintf-posix-tests (Files): Likewise.
37958         * modules/vsnprintf-posix-tests (Files): Likewise.
37959         * modules/vsnprintf-tests (Files): Likewise.
37960         * modules/vsprintf-posix-tests (Files): Likewise.
37961         * modules/wcrtomb-tests (Files): Likewise.
37962         * modules/wcsnrtombs-tests (Files): Likewise.
37963         * modules/wcsrtombs-tests (Files): Likewise.
37964         * modules/wcwidth-tests (Files): Likewise.
37965         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37966         * tests/test-isinf.c (isinf): Likewise.
37967         * tests/test-isnan.c (isnan): Likewise.
37968         * tests/test-signbit.c (signbit): Likewise.
37969         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37970         declaration, either as macro or with correct signature.
37971         (select): Ensure function under test is declared with correct
37972         signature in correct header.
37973         * tests/test-atexit.c (atexit): Likewise.
37974         * tests/test-btowc.c (btowc): Likewise.
37975         * tests/test-canonicalize-lgpl.c (realpath)
37976         (canonicalize_file_name): Likewise.
37977         * tests/test-ceilf1.c (ceilf): Likewise.
37978         * tests/test-ceill.c (ceill): Likewise.
37979         * tests/test-chown.c (chown): Likewise.
37980         * tests/test-dprintf-posix.c (dprintf): Likewise.
37981         * tests/test-dup2.c (dup2): Likewise.
37982         * tests/test-dup3.c (dup3): Likewise.
37983         * tests/test-duplocale.c (duplocale): Likewise.
37984         * tests/test-fchdir.c (fchdir): Likewise.
37985         * tests/test-fchownat.c (fchownat): Likewise.
37986         * tests/test-fcntl.c (fcntl): Likewise.
37987         * tests/test-fdopendir.c (fdopendir): Likewise.
37988         * tests/test-fflush.c (fflush): Likewise.
37989         * tests/test-flock.c (flock): Likewise.
37990         * tests/test-floorf1.c (floorf): Likewise.
37991         * tests/test-floorl.c (floorl): Likewise.
37992         * tests/test-fnmatch.c (fnmatch): Likewise.
37993         * tests/test-fopen.c (fopen): Likewise.
37994         * tests/test-fprintf-posix.c (fprintf): Likewise.
37995         * tests/test-freopen.c (freopen): Likewise.
37996         * tests/test-frexp.c (frexp): Likewise.
37997         * tests/test-frexpl.c (frexpl): Likewise.
37998         * tests/test-fseek.c (fseek): Likewise.
37999         * tests/test-fseeko.c (fseeko): Likewise.
38000         * tests/test-fstatat.c (fstatat): Likewise.
38001         * tests/test-fsync.c (fsync): Likewise.
38002         * tests/test-ftell.c (ftell): Likewise.
38003         * tests/test-ftello.c (ftello): Likewise.
38004         * tests/test-futimens.c (futimens): Likewise.
38005         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38006         (gai_strerror): Likewise.
38007         * tests/test-getcwd.c (getcwd): Likewise.
38008         * tests/test-getdelim.c (getdelim): Likewise.
38009         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38010         * tests/test-getgroups.c (getgroups): Likewise.
38011         * tests/test-gethostname.c (gethostname): Likewise.
38012         * tests/test-getline.c (getline): Likewise.
38013         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38014         Likewise.
38015         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38016         * tests/test-glob.c (glob, globfree): Likewise.
38017         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38018         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38019         * tests/test-inet_pton.c (inet_pton): Likewise.
38020         * tests/test-isblank.c (isblank): Likewise.
38021         * tests/test-lchown.c (lchown): Likewise.
38022         * tests/test-ldexpl.c (ldexpl): Likewise.
38023         * tests/test-link.c (link): Likewise.
38024         * tests/test-linkat.c (linkat): Likewise.
38025         * tests/test-lseek.c (lseek): Likewise.
38026         * tests/test-lstat.c (lstat): Likewise.
38027         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38028         * tests/test-mbsinit.c (mbsinit): Likewise.
38029         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38030         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38031         * tests/test-memchr.c (memchr): Likewise.
38032         * tests/test-memcmp.c (memcmp): Likewise.
38033         * tests/test-memmem.c (memmem): Likewise.
38034         * tests/test-memrchr.c (memrchr): Likewise.
38035         * tests/test-mkdir.c (mkdir): Likewise.
38036         * tests/test-mkdirat.c (mkdirat): Likewise.
38037         * tests/test-mkfifo.c (mkfifo): Likewise.
38038         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38039         * tests/test-mknod.c (mknod): Likewise.
38040         * tests/test-nanosleep.c (nanosleep): Likewise.
38041         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38042         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38043         Likewise.
38044         * tests/test-open.c (open): Likewise.
38045         * tests/test-openat.c (openat): Likewise.
38046         * tests/test-perror.c (perror): Likewise.
38047         * tests/test-pipe2.c (pipe2): Likewise.
38048         * tests/test-poll.c (poll): Likewise.
38049         * tests/test-popen.c (popen, pclose): Likewise.
38050         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38051         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38052         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38053         (posix_spawn_file_actions_destroy)
38054         (posix_spawn_file_actions_addclose)
38055         (posix_spawn_file_actions_addopen)
38056         (posix_spawn_file_actions_adddup2): Likewise.
38057         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38058         * tests/test-pread.c (pread): Likewise.
38059         * tests/test-printf-posix.c (printf): Likewise.
38060         * tests/test-pty.c (openpty, forkpty): Likewise.
38061         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38062         (random_r): Likewise.
38063         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38064         * tests/test-readlink.c (readlink): Likewise.
38065         * tests/test-remove.c (remove): Likewise.
38066         * tests/test-rename.c (rename): Likewise.
38067         * tests/test-renameat.c (renameat): Likewise.
38068         * tests/test-rmdir.c (rmdir): Likewise.
38069         * tests/test-round1.c (round): Likewise.
38070         * tests/test-roundf1.c (roundf): Likewise.
38071         * tests/test-roundl.c (roundl): Likewise.
38072         * tests/test-setenv.c (setenv): Likewise.
38073         * tests/test-sigaction.c (sigaction): Likewise.
38074         * tests/test-sleep.c (sleep): Likewise.
38075         * tests/test-snprintf.c (snprintf): Likewise.
38076         * tests/test-sprintf-posix.c (sprintf): Likewise.
38077         * tests/test-stat.c (stat): Likewise.
38078         * tests/test-stpncpy.c (stpncpy): Likewise.
38079         * tests/test-strcasestr.c (strcasestr): Likewise.
38080         * tests/test-strchrnul.c (strchrnul): Likewise.
38081         * tests/test-strerror.c (strerror): Likewise.
38082         * tests/test-strsignal.c (strsignal): Likewise.
38083         * tests/test-strstr.c (strstr): Likewise.
38084         * tests/test-strtod.c (strtod): Likewise.
38085         * tests/test-strverscmp.c (strverscmp): Likewise.
38086         * tests/test-symlink.c (symlink): Likewise.
38087         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38088         * tests/test-times.c (times): Likewise.
38089         * tests/test-trunc1.c (trunc): Likewise.
38090         * tests/test-truncf1.c (truncf): Likewise.
38091         * tests/test-truncl.c (truncl): Likewise.
38092         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38093         Likewise.
38094         * tests/test-uname.c (uname): Likewise.
38095         * tests/test-unlink.c (unlink): Likewise.
38096         * tests/test-unlinkat.c (unlinkat): Likewise.
38097         * tests/test-unsetenv.c (unsetenv): Likewise.
38098         * tests/test-usleep.c (usleep): Likewise.
38099         * tests/test-utimensat.c (utimensat): Likewise.
38100         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38101         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38102         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38103         * tests/test-vprintf-posix.c (vprintf): Likewise.
38104         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38105         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38106         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38107         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38108         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38109         * tests/test-wcwidth.c (wcwidth): Likewise.
38110
38111         build: pull in conditional headers during GNULIB_POSIXCHECK
38112         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38113         definitions from any conditionally-included headers.
38114         * lib/stdlib.in.h (includes): Likewise.
38115         * lib/unistd.in.h (includes): Likewise.
38116
38117 2009-12-24  Bruno Haible  <bruno@clisp.org>
38118
38119         * tests/test-argv-iter.c: Include header file being tested immediately
38120         after config.h.
38121         * tests/test-base64.c: Likewise.
38122         * tests/test-flock.c: Likewise.
38123         * tests/test-fsync.c: Likewise.
38124         * tests/test-getdate.c: Likewise.
38125         * tests/test-getndelim2.c: Likewise.
38126         * tests/test-isfinite.c: Likewise.
38127         * tests/test-isinf.c: Likewise.
38128         * tests/test-strerror.c: Likewise.
38129         * tests/test-strsignal.c: Likewise.
38130
38131 2009-12-23  Eric Blake  <ebb9@byu.net>
38132
38133         unistd: work around cygwin bug
38134         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38135         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38136         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38137
38138 2009-12-23  Bruno Haible  <bruno@clisp.org>
38139
38140         localename: More tests.
38141         * tests/test-localename.c (SIZEOF): New macro.
38142         (categories): New variable.
38143         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38144         test_locale_name_default): Add test w.r.t. thread locale.
38145         (test_locale_name_thread): New function.
38146         (main): Invoke it.
38147
38148         localename: Make aware of thread locale.
38149         * lib/localename.h (gl_locale_name_thread): New declaration.
38150         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38151         behaviour with respect to thread locale.
38152         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38153         <langinfo.h>, glthread/lock.h.
38154         (SIZE_BITS): New macro.
38155         (string_hash): New function.
38156         (struct hash_node): New type.
38157         (HASH_TABLE_SIZE): New macro.
38158         (struniq_hash_table, struniq_lock): New variables.
38159         (struniq): New function.
38160         (gl_locale_name_thread): New function.
38161         (gl_locale_name): Invoke it.
38162         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38163         * modules/localename (Depends-on): Add lock.
38164         Reported by Mike Gran <spk121@yahoo.com>.
38165
38166 2009-12-23  Eric Blake  <ebb9@byu.net>
38167
38168         va-args: new module
38169         * modules/va-args: New file.
38170         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38171         * MODULES.html.sh (Core language properties): Mention it.
38172
38173         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38174         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38175         named alias for __attribute__((__unused__)).
38176         * lib/chown.c: Update client.
38177         * lib/fchmodat.c: Likewise.
38178         * lib/fts.c: Likewise.
38179         * lib/getdate.y: Likewise.
38180         * lib/getgroups.c: Likewise.
38181         * lib/getopt.c: Likewise.
38182         * lib/getugroups.c: Likewise.
38183         * lib/mkdir.c: Likewise.
38184         * lib/mkfifo.c: Likewise.
38185         * lib/mkfifoat.c: Likewise.
38186         * lib/mknod.c: Likewise.
38187         * lib/mknodat.c: Likewise.
38188         * lib/readlink.c: Likewise.
38189         * lib/se-context.in.h: Likewise.
38190         * lib/se-selinux.in.h: Likewise.
38191         * lib/sockets.c: Likewise.
38192         * lib/symlink.c: Likewise.
38193         * lib/symlinkat.c: Likewise.
38194         * lib/unicodeio.c: Likewise.
38195         * lib/unistr.h: Likewise.
38196         * tests/test-areadlink.c: Likewise.
38197         * tests/test-areadlinkat.c: Likewise.
38198         * tests/test-filenamecat.c: Likewise.
38199         * tests/test-fseeko.c: Likewise.
38200         * tests/test-ftello.c: Likewise.
38201         * tests/test-getdate.c: Likewise.
38202         * tests/test-getgroups.c: Likewise.
38203         * tests/test-gethostname.c: Likewise.
38204         * tests/test-quotearg.c: Likewise.
38205         * tests/test-version-etc.c: Likewise.
38206         * tests/test-xalloc-die.c: Likewise.
38207         * tests/test-xfprintf-posix.c: Likewise.
38208         * tests/test-xprintf-posix.c: Likewise.
38209         * tests/test-xvasprintf.c: Likewise.
38210
38211         tests: avoid compiler warnings
38212         * tests/test-fcntl.c (main): Delete unused parameters.
38213         * tests/test-freopen-safer.c (main): Likewise.
38214         * tests/test-xalloc-die.c (main): Mark unused parameters.
38215         * tests/test-fseeko.c (main): Likewise.
38216         * tests/test-ftello.c (main): Likewise.
38217         * tests/test-nanosleep.c (main): Avoid declaration warning.
38218         * tests/test-sleep.c (main): Likewise.
38219         * tests/test-unsetenv.c (main): Silence warning about string
38220         literal.
38221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38222
38223 2009-12-23  Bruno Haible  <bruno@clisp.org>
38224
38225         * tests/test-localename.c (test_locale_name): New function, extracted
38226         from main. Also test mixed situations.
38227         (test_locale_name_posix, test_locale_name_environ,
38228         test_locale_name_default): New functions.
38229         (main): Invoke them all.
38230         * modules/localename-tests (configure.ac): Test for newlocale.
38231
38232 2009-12-23  Bruno Haible  <bruno@clisp.org>
38233
38234         unistd: Ensure getcwd gets declared before being overridden.
38235         * lib/unistd.in.h: Conditionally include <io.h>.
38236
38237 2009-12-22  Bruno Haible  <bruno@clisp.org>
38238
38239         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38240         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38241         (gl_WCHAR_H): Invoke it.
38242         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38243         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38244         Reported by Karl Berry <karl@freefriends.org>.
38245
38246 2009-12-22  Eric Blake  <ebb9@byu.net>
38247
38248         math, unistd: avoid redundant includes
38249         * lib/math.in.h (isnan): No need to re-include <math.h>.
38250         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38251
38252         getsubopt: work around cygwin bug
38253         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38254         avoid conflicting with system getsubopt.
38255         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38256         bug.
38257
38258         getopt: synchronize from glibc
38259         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38260         parameter order.  Adjust all callers.
38261         (_getopt_internal_r, main): Adjust quoting in error messages.
38262         Drop considerations for outdated POSIX 1003.2 error message.
38263         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38264         callers.
38265         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38266
38267         test-getopt: test stderr behavior
38268         * modules/getopt-posix-tests (Depends-on): Add dup2.
38269         * tests/test-getopt.c (ASSERT): Avoid stderr.
38270         (main): Move stderr to a temporary file.
38271         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38272         Instead, add parameter to inform caller if output occurred.
38273         (test_getopt): Adjust all existing tests to expect silence, and
38274         add new tests of leading ":".
38275         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38276         glibc shortcomings with leading "-:" or "+:" in optstring.
38277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38278         Likewise.
38279         * doc/posix-functions/getopt.texi (getopt): Likewise.
38280
38281         test-getopt: enhance test
38282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38283         supports optind=0.
38284         * tests/test-getopt.c (OPTIND_MIN): Move...
38285         * tests/test-getopt.h (OPTIND_MIN): ...here.
38286         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38287         Require that optind=0 works, since modern BSD supports it in
38288         addition to optreset, and since coreutils expects it.
38289         (test_getopt_long_only): New test.
38290         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38291         glibc shortcomings with 'W;', and enforcement of optind=0.
38292         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38293         Likewise.
38294
38295 2009-12-21  Bruno Haible  <bruno@clisp.org>
38296
38297         localename: Improvements for MacOS X and Cygwin.
38298         * lib/localename.h (gl_locale_name_environ): New declaration.
38299         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38300         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38301         (gl_locale_name_posix): Invoke it.
38302         (gl_locale_name_default): Add comments. Use Windows native API also on
38303         Cygwin.
38304
38305 2009-12-21  Bruno Haible  <bruno@clisp.org>
38306
38307         Update list of Win32 locale ids.
38308         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38309         (LANG_SAMI): Renamed from LANG_SAAMI.
38310         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38311         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38312         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38313         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38314         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38315         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38316         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38317         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38318         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38319         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38320         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38321         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38322         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38323         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38324         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38325         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38326         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38327         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38328         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38329         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38330         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38331         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38332         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38333         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38334         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38335         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38336         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38337         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38338         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38339         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38340         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38341         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38342         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38343         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38344         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38345         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38346         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38347         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38348         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38349         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38350         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38351         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38352         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38353         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38354         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38355         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38356         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38357         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38358         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38359         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38360         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38361         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38362         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38363         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38364         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38365         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38366         Add more languages and countries for Sami, Sorbian. Add more countries
38367         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38368         for Pashto. Change country for Syriac, Tswana.
38369
38370 2009-12-21  Eric Blake  <ebb9@byu.net>
38371
38372         test-utimens: avoid spurious failure
38373         * tests/test-chown.h (nap): Factor...
38374         * tests/nap.h: ...into new file.
38375         * tests/test-lchown.h (nap): Avoid duplication.
38376         * tests/test-utimens-common.h (nap): Use shared implementation,
38377         necessary on file systems with 1-second resolution.
38378         * modules/chown-tests (Files): Include new file.
38379         * modules/fdutimensat-tests (Files): Likewise.
38380         * modules/futimens-tests (Files): Likewise.
38381         * modules/lchown-tests (Files): Likewise.
38382         * modules/openat-tests (Files): Likewise.
38383         * modules/utimens-tests (Files): Likewise.
38384         * modules/utimensat-tests (Files): Likewise.
38385
38386 2009-12-19  Eric Blake  <ebb9@byu.net>
38387
38388         futimens, utimensat: work around Linux bug
38389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38390         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38391         * lib/utimensat.c (rpl_utimensat): Work around it.
38392         * lib/futimens.c (rpl_futimens): Adjust comment.
38393
38394         utimens: work around Linux ctime bug
38395         * lib/utimens.c (detect_ctime_bug): New helper function.
38396         (update_timespec): Differentiate between workaround needed for
38397         this bug vs. what is needed for systems that lack utimensat.
38398         (fdutimens, lutimens): Work around bug.
38399
38400         utimens: check for ctime update
38401         * tests/test-utimens-common.h (check_ctime): Define.
38402         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38403         * tests/test-futimens.h (test_futimens): Likewise.
38404         * tests/test-lutimens.h (test_lutimens): Likewise.
38405         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38406         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38407
38408 2009-12-19  Bruno Haible  <bruno@clisp.org>
38409
38410         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38411         * tests/test-dprintf-posix2.sh: New file.
38412         * tests/test-dprintf-posix2.c: New file.
38413         * modules/dprintf-posix-tests (Files): Add them.
38414         (configure.ac): Check for getrlimit and setrlimit.
38415         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38416
38417 2009-12-19  Bruno Haible  <bruno@clisp.org>
38418
38419         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38420         * tests/test-fprintf-posix3.sh: New file.
38421         * tests/test-fprintf-posix3.c: New file.
38422         * modules/fprintf-posix-tests (Files): Add them.
38423         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38424
38425 2009-12-19  Eric Blake  <ebb9@byu.net>
38426
38427         dirfd: fix prototype
38428         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38429         * lib/dirfd.c (dirfd): Likewise.
38430
38431         canonicalize: reduce memory usage
38432         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38433         allocation to size.
38434         Reported by Solar Designer <solar@openwall.com>.
38435
38436 2009-12-19  Bruno Haible  <bruno@clisp.org>
38437
38438         New module attribute 'Applicability'.
38439         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38440         * gnulib-tool: New option --extract-applicability.
38441         (func_usage): Document it.
38442         (sed_extract_prog): Recognize it.
38443         (func_get_applicability): New function.
38444         (func_import): Generalize handling of 'link-warning' module.
38445         * modules/link-warning (Applicability): New section.
38446         * modules/arg-nonnull (Applicability): New section.
38447         Repoted by Simon Josefsson <simon@josefsson.org>.
38448
38449 2009-12-19  Bruno Haible  <bruno@clisp.org>
38450
38451         fflush: tweak
38452         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38453         * lib/fseeko.c (rpl_fseeko): Likewise.
38454
38455 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38456
38457         * lib/gl_list.h: Fix typo in comment.
38458
38459 2009-12-16  Eric Blake  <ebb9@byu.net>
38460
38461         fcntl: use to simplify other modules
38462         * modules/cloexec (Depends-on): Add fcntl.
38463         * modules/fchdir (Depends-on): Likewise.
38464         * modules/fd-safer-flag (Depends-on): Likewise.
38465         * modules/unistd-safer (Depends-on): Likewise.
38466         * modules/dup3 (configure.ac): Set module indicator.
38467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38468         missing.
38469         * lib/fchdir.c (_gl_register_dup): Fix comment.
38470         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38471         * lib/dup-safer.c (dup_safer): Likewise.
38472         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38473         * lib/dup3.c (dup3): Likewise.
38474         * tests/test-fchdir.c (main): Enhance test.
38475         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38476
38477         fcntl: port portions of fcntl to mingw
38478         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38479         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38480         replacement for mingw.
38481         * modules/fcntl (Description): Update.
38482         (Depends-on): Add dup2.
38483         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38484         * modules/fcntl-h (Makefile.am): Substitute it.
38485         * lib/fcntl.in.h (fcntl): Update declaration.
38486         (F_DUPFD, F_GETFD): New macros, when needed.
38487         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38488         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38489         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38490         we now guarantee.
38491
38492         fcntl: work around cygwin bug in F_DUPFD
38493         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38494         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38495         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38496         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38497         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38498
38499         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38500         * modules/fcntl (Files): List new files.
38501         (configure.ac): Run a test.
38502         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38503         * lib/fcntl.c (rpl_fcntl): Likewise.
38504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38505         (gl_FCNTL_H): Always replace fcntl.h.
38506         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38507         * lib/fcntl.in.h (fcntl): Declare replacement.
38508         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38509         needed, plus a witness.
38510         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38511         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38512         * tests/test-fcntl.c: New file.
38513         * modules/fcntl-tests: Likewise.
38514
38515         binary-io: avoid potential compilation warning
38516         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38517         directives.
38518
38519         fflush: avoid compilation error on NetBSD
38520         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38521         between off_t and fpos_t, since the latter is sometimes a struct.
38522         * lib/fseeko.c (rpl_fseeko): Likewise.
38523         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38524
38525 2009-12-15  Eric Blake  <ebb9@byu.net>
38526
38527         fcntl-h, stdio, sys_ioctl: fix declarations
38528         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38529         function must not take arguments.
38530         * lib/sys_ioctl.in.h (ioctl): Likewise.
38531         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38532         (open): Add a link warning.
38533
38534 2009-12-15  Jim Meyering  <meyering@redhat.com>
38535
38536         areadlink, areadlink-with-size: relax license to LGPLv2+
38537         * modules/areadlink (License): Relax to LGPLv2+.
38538         * modules/areadlink-with-size (License): Likewise.
38539
38540 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38541             Bruno Haible  <bruno@clisp.org>
38542
38543         *printf: Fix memory leak.
38544         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38545         * lib/vfprintf.c (vfprintf): Likewise.
38546         * lib/dprintf.c (dprintf): Likewise.
38547         * lib/vdprintf.c (vdprintf): Likewise.
38548
38549 2009-12-14  Eric Blake  <ebb9@byu.net>
38550
38551         accept4: adjust module dependencies
38552         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38553
38554         utimens: one more try at avoiding compiler warning
38555         * lib/utimens.c (lutimens): Lower scope of result.
38556
38557 2009-12-13  Bruno Haible  <bruno@clisp.org>
38558
38559         Move the malloc checking from module 'list' to new module 'xlist'.
38560         * modules/xlist: New file.
38561         * lib/gl_xlist.h: New file.
38562         * lib/gl_xlist.c: New file.
38563         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38564         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38565         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38566         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38567         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38568         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38569         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38570         gl_sortedlist_nx_add): New declarations.
38571         (struct gl_list_implementation): Rename and change methods accordingly.
38572         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38573         (gl_list_nx_create): Renamed from gl_list_create.
38574         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38575         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38576         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38577         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38578         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38579         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38580         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38581         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38582         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38583         gl_list_create_empty.
38584         (gl_list_nx_create): Renamed from gl_list_create.
38585         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38586         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38587         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38588         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38589         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38590         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38591         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38592         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38593         * lib/gl_array_list.c: Don't include xalloc.h.
38594         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38595         NULL upon out-of-memory.
38596         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38597         out-of-memory.
38598         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38599         Change return type to 'int'.
38600         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38601         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38602         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38603         upon out-of-memory.
38604         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38605         upon out-of-memory.
38606         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38607         upon out-of-memory.
38608         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38609         upon out-of-memory.
38610         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38611         out-of-memory.
38612         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38613         Update.
38614         (gl_array_list_implementation): Update.
38615         * lib/gl_carray_list.c: Don't include xalloc.h.
38616         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38617         Return NULL upon out-of-memory.
38618         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38619         out-of-memory.
38620         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38621         Change return type to 'int'.
38622         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38623         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38624         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38625         upon out-of-memory.
38626         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38627         upon out-of-memory.
38628         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38629         out-of-memory.
38630         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38631         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38632         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38633         Update.
38634         (gl_carray_list_implementation): Update.
38635         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38636         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38637         gl_linked_create_empty. Return NULL upon out-of-memory.
38638         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38639         out-of-memory.
38640         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38641         Change return type to 'int'. Return -1 upon out-of-memory.
38642         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38643         out-of-memory.
38644         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38645         upon out-of-memory.
38646         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38647         upon out-of-memory.
38648         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38649         NULL upon out-of-memory.
38650         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38651         upon out-of-memory.
38652         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38653         out-of-memory.
38654         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38655         Update.
38656         * lib/gl_linked_list.c: Don't include xalloc.h.
38657         (gl_linked_list_implementation): Update.
38658         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38659         (add_to_bucket): Change return type to 'int'.
38660         (gl_linkedhash_list_implementation): Update.
38661         * lib/gl_anytree_list1.h (free_subtree): New function.
38662         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38663         gl_tree_create_empty. Return NULL upon out-of-memory.
38664         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38665         Change return type to 'int'. Return -1 upon out-of-memory.
38666         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38667         out-of-memory.
38668         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38669         (gl_tree_remove_node): New function, moved here from
38670         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38671         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38672         Update.
38673         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38674         malloc, not xmalloc. Return NULL upon out-of-memory.
38675         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38676         out-of-memory.
38677         (gl_tree_remove_node_from_tree): New function, extracted from
38678         gl_tree_remove_node.
38679         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38680         upon out-of-memory.
38681         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38682         out-of-memory.
38683         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38684         upon out-of-memory.
38685         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38686         upon out-of-memory.
38687         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38688         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38689         not xmalloc. Return NULL upon out-of-memory.
38690         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38691         out-of-memory.
38692         (gl_tree_remove_node_from_tree): New function, extracted from
38693         gl_tree_remove_node.
38694         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38695         upon out-of-memory.
38696         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38697         out-of-memory.
38698         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38699         upon out-of-memory.
38700         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38701         upon out-of-memory.
38702         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38703         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38704         gl_anytree_list1.h before gl_anyavltree_list2.h.
38705         (gl_avltree_list_implementation): Update.
38706         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38707         gl_anytree_list1.h before gl_anyavltree_list2.h.
38708         (gl_rbtree_list_implementation): Update.
38709         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38710         Change return type to 'int'. Return -1 upon out-of-memory. Use
38711         __builtin_expect.
38712         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38713         (gl_avltreehash_list_implementation): Update.
38714         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38715         (gl_rbtreehash_list_implementation): Update.
38716         * modules/array-list (Depends-on): Remove xalloc.
38717         * modules/carray-list (Depends-on): Likewise.
38718         * modules/linked-list (Depends-on): Likewise.
38719         * modules/linkedhash-list (Depends-on): Likewise.
38720         * modules/avltree-list (Depends-on): Likewise.
38721         * modules/rbtree-list (Depends-on): Likewise.
38722         * modules/avltreehash-list (Depends-on): Likewise.
38723         * modules/rbtreehash-list (Depends-on): Likewise.
38724
38725         * modules/xsublist: New file.
38726         * lib/gl_xsublist.h: New file.
38727         * lib/gl_xsublist.c: New file.
38728         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38729         (gl_sublist_nx_create): New declaration.
38730         * lib/gl_sublist.c: Don't include xalloc.h.
38731         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38732         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38733         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38734         Change return type to 'int'. Return -1 upon out-of-memory.
38735         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38736         upon out-of-memory.
38737         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38738         NULL upon out-of-memory.
38739         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38740         upon out-of-memory.
38741         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38742         NULL upon out-of-memory.
38743         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38744         NULL upon out-of-memory.
38745         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38746         upon out-of-memory.
38747         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38748         (gl_sublist_list_implementation): Update.
38749         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38750         upon out-of-memory.
38751         * modules/sublist (Depends-on): Remove xalloc.
38752
38753         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38754         * tests/test-carray_list.c: Likewise.
38755         * tests/test-linked_list.c: Likewise.
38756         * tests/test-linkedhash_list.c: Likewise.
38757         * tests/test-avltree_list.c: Likewise.
38758         * tests/test-rbtree_list.c: Likewise.
38759         * tests/test-avltreehash_list.c: Likewise.
38760         * tests/test-rbtreehash_list.c: Likewise.
38761         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38762         * modules/carray-list-tests (Makefile.am): Likewise.
38763         * modules/linked-list-tests (Makefile.am): Likewise.
38764         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38765         * modules/avltree-list-tests (Makefile.am): Likewise.
38766         * modules/rbtree-list-tests (Makefile.am): Likewise.
38767         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38768         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38769
38770         * NEWS: Mention the changes.
38771
38772         * lib/clean-temp.c: Include gl_xlist.h.
38773         * modules/clean-temp (Depends-on): Add xlist.
38774
38775         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38776         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38777
38778         * tests/test-array_oset.c: Include gl_xlist.h.
38779         * modules/array-oset-tests (Depends-on): Add xlist.
38780
38781         Reported by José E. Marchesi <jemarch@gnu.org>.
38782
38783 2009-12-13  Bruno Haible  <bruno@clisp.org>
38784
38785         Move the malloc checking from module 'oset' to new module 'xoset'.
38786         * modules/xoset: New file.
38787         * lib/gl_xoset.h: New file.
38788         * lib/gl_xoset.c: New file.
38789         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38790         declarations.
38791         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38792         (struct gl_oset_implementation): Rename and change methods accordingly.
38793         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38794         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38795         'int'. Mark as __warn_unused_result__.
38796         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38797         gl_oset_create_empty.
38798         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38799         'int'.
38800         * lib/gl_array_oset.c: Don't include xalloc.h.
38801         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38802         malloc, not xmalloc.
38803         (grow): Change return type to 'int'. Don't call xalloc_die.
38804         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38805         to 'int'.
38806         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38807         'int'.
38808         (gl_array_oset_implementation): Update.
38809         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38810         gl_tree_create_empty.
38811         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38812         'int'.
38813         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38814         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38815         xmalloc.
38816         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38817         not xmalloc.
38818         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38819         xmalloc.
38820         (gl_avltree_oset_implementation): Update.
38821         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38822         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38823         xmalloc.
38824         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38825         not xmalloc.
38826         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38827         xmalloc.
38828         (gl_rbtree_oset_implementation): Update.
38829         * modules/array-oset (Depends-on): Remove xalloc.
38830         * modules/avltree-oset (Depends-on): Likewise.
38831         * modules/rbtree-oset (Depends-on): Likewise.
38832         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38833         * tests/test-avltree_oset.c: Likewise.
38834         * tests/test-rbtree_oset.c: Likewise.
38835         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38836         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38837         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38838         * NEWS: Mention the change.
38839
38840 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38841
38842         maint.mk: allow a project to override release-prep commands
38843         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38844         commands into a new rule.
38845         (release-prep): New rule.
38846         (release-prep-hook): New overridable variable.
38847
38848 2009-12-13  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38851
38852 2009-12-13  Jim Meyering  <meyering@redhat.com>
38853
38854         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38855         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38856
38857 2009-12-12  Bruno Haible  <bruno@clisp.org>
38858
38859         duplocale: Tweak.
38860         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38861
38862 2009-12-12  Karl Berry  <karl@gnu.org>
38863
38864         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38865
38866 2009-12-12  Bruno Haible  <bruno@clisp.org>
38867
38868         * m4/po.m4: Undo incorrect untabification.
38869
38870 2009-12-12  Bruno Haible  <bruno@clisp.org>
38871
38872         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38873         * modules/c-strtod (Depends-on): Add locale.
38874         * modules/c-strtold (Depends-on): Likewise.
38875
38876 2009-12-12  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38879
38880 2009-12-11  Eric Blake  <ebb9@byu.net>
38881
38882         setenv: relax requirement in light of POSIX ruling
38883         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38884         not NULL.
38885         * tests/test-setenv.c (main): Relax test.
38886         * tests/test-unsetenv.c (main): Likewise.
38887         * doc/posix-functions/setenv.texi (setenv): Document this.
38888         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38889
38890 2009-12-11  Bruno Haible  <bruno@clisp.org>
38891
38892         New module 'fd-safer-flag'.
38893         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38894         * lib/dup-safer.c (dup_safer_flag): Remove function.
38895         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38896         * lib/fd-safer.c (fd_safer_flag): Remove function.
38897         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38898         * modules/cloexec (configure.ac): Drop indicator macro.
38899         * modules/fd-safer-flag: New file.
38900         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38901         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38902         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38903
38904 2009-12-11  Bruno Haible  <bruno@clisp.org>
38905
38906         Tests for module 'nl_langinfo'.
38907         * modules/nl_langinfo-tests: New file.
38908         * tests/test-nl_langinfo.sh: New file.
38909         * tests/test-nl_langinfo.c: New file.
38910
38911         New module 'nl_langinfo'.
38912         * lib/nl_langinfo.c: New file.
38913         * m4/nl_langinfo.m4: New file.
38914         * modules/nl_langinfo: New file.
38915         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38916
38917 2009-12-11  Bruno Haible  <bruno@clisp.org>
38918
38919         Tests for module 'langinfo'.
38920         * modules/langinfo-tests: New file.
38921         * tests/test-langinfo.c: New file.
38922
38923         New module 'langinfo'.
38924         * lib/langinfo.in.h: New file.
38925         * m4/langinfo_h.m4: New file.
38926         * modules/langinfo: New file.
38927         * doc/posix-headers/langinfo.texi: Mention the new module.
38928
38929 2009-12-11  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/config.charset: Untabify.
38932
38933 2009-12-11  Bruno Haible  <bruno@clisp.org>
38934
38935         * modules/unistd-safer (configure.ac): Drop indicator macro.
38936
38937 2009-12-11  Bruno Haible  <bruno@clisp.org>
38938
38939         Move pipe2-safer code to its own file.
38940         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38941         * lib/pipe-safer.c (pipe2_safer): Remove function.
38942         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38943         (Makefile.am): Add it to lib_SOURCES.
38944
38945 2009-12-10  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38948
38949 2009-12-10  Bruno Haible  <bruno@clisp.org>
38950
38951         Declare which arguments expect non-NULL values, for GCC and clang.
38952         * build-aux/arg-nonnull.h: New file.
38953         * modules/arg-nonnull: New file.
38954         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38955         (inet_ntop, inet_pton): Use it.
38956         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38957         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38958         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38959         (open, openat): Use it.
38960         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38961         (fnmatch): Use it.
38962         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38963         (getopt, getopt_long, getopt_long_only): Use it.
38964         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38965         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38966         Use it.
38967         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38968         (iconv_open): Use it.
38969         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38970         (strtoimax, strtoumax): Use it.
38971         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38972         (duplocale): Use it.
38973         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38974         (frexp, frexpl): Use it.
38975         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38976         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38977         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38978         (tsearch, tfind, tdelete, twalk): Use it.
38979         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38980         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38981         sigpending): Use it.
38982         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38983         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38984         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38985         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38986         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38987         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38988         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38989         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38990         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38991         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38992         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38993         Use it.
38994         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38995         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38996         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38997         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38998         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38999         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39000         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39001         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39002         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39003         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39004         strtoull, unsetenv): Use it.
39005         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39006         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39007         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39008         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39009         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39010         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39011         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39012         (strcasecmp, strncasecmp): Use it.
39013         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39014         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39015         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39016         rpl_setsockopt): Use it.
39017         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39018         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39019         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39020         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39021         (gettimeofday): Use it.
39022         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39023         (times): Use it.
39024         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39025         (uname): Use it.
39026         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39027         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39028         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39029         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39030         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39031         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39032         unlinkat, write): Use it.
39033         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39034         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39035         * lib/argv-iter.h: Include arg-nonnull.h.
39036         (_ATTRIBUTE_NONNULL_): Remove macro.
39037         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39038         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39039         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39040         optimization.
39041         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39042         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39043         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39044         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39045         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39046         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39047         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39048         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39049         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39050         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39051         * modules/dirent (Depends-on): Add arg-nonnull.
39052         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39053         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39054         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39055         * modules/fnmatch (Depends-on): Add arg-nonnull.
39056         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39057         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39058         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39059         * modules/glob (Depends-on): Add arg-nonnull.
39060         (Makefile.am): Insert arg-nonnull.h into glob.h.
39061         * modules/iconv_open (Depends-on): Add arg-nonnull.
39062         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39063         * modules/inttypes (Depends-on): Add arg-nonnull.
39064         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39065         * modules/locale (Depends-on): Add arg-nonnull.
39066         (Makefile.am): Insert arg-nonnull.h into locale.h.
39067         * modules/math (Depends-on): Add arg-nonnull.
39068         (Makefile.am): Insert arg-nonnull.h into math.h.
39069         * modules/netdb (Depends-on): Add arg-nonnull.
39070         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39071         * modules/search (Depends-on): Add arg-nonnull.
39072         (Makefile.am): Insert arg-nonnull.h into search.h.
39073         * modules/signal (Depends-on): Add arg-nonnull.
39074         (Makefile.am): Insert arg-nonnull.h into signal.h.
39075         * modules/spawn (Depends-on): Add arg-nonnull.
39076         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39077         * modules/stdio (Depends-on): Add arg-nonnull.
39078         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39079         * modules/stdlib (Depends-on): Add arg-nonnull.
39080         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39081         * modules/string (Depends-on): Add arg-nonnull.
39082         (Makefile.am): Insert arg-nonnull.h into string.h.
39083         * modules/strings (Depends-on): Add arg-nonnull.
39084         (Makefile.am): Insert arg-nonnull.h into strings.h.
39085         * modules/sys_socket (Depends-on): Add arg-nonnull.
39086         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39087         * modules/sys_stat (Depends-on): Add arg-nonnull.
39088         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39089         * modules/sys_time (Depends-on): Add arg-nonnull.
39090         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39091         * modules/sys_times (Depends-on): Add arg-nonnull.
39092         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39093         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39094         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39095         * modules/time (Depends-on): Add arg-nonnull.
39096         (Makefile.am): Insert arg-nonnull.h into time.h.
39097         * modules/unistd (Depends-on): Add arg-nonnull.
39098         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39099         * modules/wchar (Depends-on): Add arg-nonnull.
39100         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39101         * modules/argv-iter (Depends-on): Add arg-nonnull.
39102         * tests/test-canonicalize.c (null_ptr): New function.
39103         (main): Use it.
39104         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39105         (main): Use it.
39106         * tests/test-memmem.c (null_ptr): New function.
39107         (main): Use it.
39108         Reported by Jim Meyering.
39109
39110 2009-12-10  Bruno Haible  <bruno@clisp.org>
39111
39112         Use spaces for indentation, not tabs.
39113         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39114         * m4/*.m4: Untabify.
39115         * build-aux/*.h: Untabify.
39116         * tests/**/*.[hc]: Untabify.
39117         * README: New section "Indent with spaces, not TABs", based on
39118         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39119         * NEWS: Mention the change.
39120
39121 2009-12-10  Bruno Haible  <bruno@clisp.org>
39122
39123         pty test: Fix link error.
39124         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39125         test_pty_LDADD.
39126
39127 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39128
39129         * modules/pty: New file.
39130         * modules/pty-tests: New file.
39131         * m4/pty.m4: New file.
39132         * tests/test-pty.c: New file.
39133         * doc/glibc-headers/pty.texi: Modified.
39134         * doc/glibc-functions/forkpty.texi: Modified.
39135         * doc/glibc-functions/openpty.texi: Modified.
39136
39137 2009-12-10  Bruno Haible  <bruno@clisp.org>
39138
39139         Avoid syntax error in C++ mode.
39140         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39141
39142 2009-12-10  Bruno Haible  <bruno@clisp.org>
39143
39144         Use sed with option -e.
39145         * gnulib-tool (func_version, func_emit_copyright_notice,
39146         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39147         option -e to sed.
39148         * modules/link-warning (Makefile.am): Likewise.
39149
39150 2009-12-10  Jim Meyering  <meyering@redhat.com>
39151
39152         mgetgroups: do not write bytes beyond end of malloc'd buffer
39153         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39154         username, we call getgroups with a one-element-shorter buffer,
39155         but still told it the length was original, max_n_groups.
39156
39157 2009-12-09  Eric Blake  <ebb9@byu.net>
39158
39159         cloexec: relax license
39160         * modules/cloexec (Maintainer): Add myself.
39161         (License): Use LGPL, not GPL.
39162
39163         link-warning: optimize generation
39164         * modules/link-warning (Makefile.am): Reduce process usage.
39165
39166 2009-12-09  Bruno Haible  <bruno@clisp.org>
39167
39168         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39169         workaround was added on 2009-11-17.
39170
39171 2009-12-09  Jim Meyering  <meyering@redhat.com>
39172             Bruno Haible  <bruno@clisp.org>
39173
39174         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39175         * modules/link-warning (Makefile.am): Make the comment-removing sed
39176         command more robust in the face of bootstrap-prepended comment lines.
39177
39178 2009-12-09  Bruno Haible  <bruno@clisp.org>
39179
39180         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39181         most one group.
39182
39183 2009-12-09  Simon Josefsson <simon@josefsson.org>
39184             Bruno Haible  <bruno@clisp.org>
39185
39186         * build-aux/link-warning.h: Add copyright notice.
39187         * modules/link-warning (Makefile.am): Generate link-warning.h from
39188         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39189         * NEWS: Mention change in link-warning module.
39190         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39191         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39192         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39193         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39194         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39195         * modules/math (Makefile.am): Add dependency to math.h.
39196         * modules/search (Makefile.am): Add dependency to search.h.
39197         * modules/signal (Makefile.am): Add dependency to signal.h.
39198         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39199         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39200         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39201         * modules/string (Makefile.am): Add dependency to string.h.
39202         * modules/strings (Makefile.am): Add dependency to strings.h.
39203         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39204         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39205         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39206         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39207         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39208         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39209         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39210         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39211         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39212
39213 2009-12-09  Bruno Haible  <bruno@clisp.org>
39214
39215         fchdir: Optimize away rpl_fstat when possible.
39216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39217         REPLACE_OPEN_DIRECTORY.
39218         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39219
39220 2009-12-09  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/fchdir.c: Update comment.
39223
39224 2009-12-09  Bruno Haible  <bruno@clisp.org>
39225
39226         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39227
39228 2009-12-08  Eric Blake  <ebb9@byu.net>
39229
39230         fchdir: avoid memory leak on re-registration.
39231         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39232
39233 2009-12-08  Jim Meyering  <meyering@redhat.com>
39234
39235         init.sh: avoid Solaris 10 /bin/sh portability problem
39236         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39237         sourced script:
39238           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39239           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39240           bar
39241         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39242         and two tests used that idiom.
39243         * tests/init.sh: Update suggested usage comments.
39244         (path_prepend_): New function, to be used in place
39245         of the --src-path=DIR option.
39246         (setup_): Move PATH-prepending code into path_prepend_.
39247         * tests/test-pread.sh: Adapt to new usage.
39248         * tests/test-xalloc-die.sh: Likewise.
39249
39250 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39251
39252         * doc/gnulib.texi (Glibc pty.h): Add.
39253         * doc/glibc-functions/forkpty.texi: Add.
39254         * doc/glibc-functions/openpty.texi: Add.
39255         Suggested by Bruno Haible.
39256
39257 2009-12-08  Eric Blake  <ebb9@byu.net>
39258
39259         fchdir: fix logic bugs
39260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39261         * tests/test-fchdir.c (main): Enhance test.
39262         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39263         is in use.
39264
39265         dup2: fix logic bugs
39266         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39267         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39268         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39269         exists.
39270         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39271
39272 2009-12-07  Eric Blake  <ebb9@byu.net>
39273
39274         unlink: fix m4 detection
39275         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39276
39277         unistd-safer: add unit test
39278         * modules/unistd-safer-tests: New file.
39279         * tests/test-dup-safer.c: Likewise.
39280         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39281         * tests/test-dup2.c (setmode): Likewise.
39282         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39283
39284         cloexec: preserve text vs. binary across dup_cloexec
39285         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39286         mode.
39287         * modules/dup2-tests (Depends-on): Add binary-io.
39288         * modules/cloexec-tests (Depends-on): Likewise.
39289         * tests/test-dup2.c (setmode, is_mode): New helpers.
39290         (main): Add tests that translation mode is preserved.
39291         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39292         Reported by Bruno Haible.
39293
39294         mgetgroups: reduce duplicate listings
39295         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39296         resulting array.
39297         * tests/test-chown.h (test_chown): Simplify client.
39298         * tests/test-lchown.h (test_lchown): Likewise.
39299
39300 2009-12-06  Bruno Haible  <bruno@clisp.org>
39301
39302         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39303         value.
39304
39305 2009-12-06  Bruno Haible  <bruno@clisp.org>
39306
39307         * lib/progname.c: Include stdio.h, stdlib.h.
39308         (set_program_name): Reject a NULL argument.
39309
39310 2009-12-05  Eric Blake  <ebb9@byu.net>
39311
39312         pipe2-safer: new module
39313         * modules/pipe2-safer: New file.
39314         * lib/unistd-safer.h (pipe2_safer): New prototype.
39315         * lib/unistd--.h (pipe2): New wrapper.
39316         * lib/pipe-safer.c (pipe2_safer): New function.
39317         * modules/pipe (Depends-on): Add pipe2-safer.
39318         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39319
39320         stdlib-safer: preserve cloexec flag for mkostemp[s]
39321         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39322         fd_safer_flag.
39323
39324         unistd-safer: allow preservation of cloexec status via flag
39325         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39326         prototypes.
39327         * lib/dup-safer.c (dup_safer_flag): New function.
39328         * lib/fd-safer.c (fd_safer_flag): Likewise.
39329         * modules/cloexec (configure.ac): Set witness.
39330
39331         test-dup2: enhance test
39332         * modules/dup2-tests (Depends-on): Add cloexec.
39333         * tests/test-dup2.c (main): Enhance test.
39334
39335         cloexec: add dup_cloexec
39336         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39337         header and comments.
39338         * lib/cloexec.c (set_cloexec_flag): Add comments.
39339         (dup_cloexec): New function, with mingw implementation borrowed
39340         from...
39341         * lib/w32spawn.h (dup_noinherit): ...here.
39342         * modules/execute (Depends-on): Add cloexec.
39343         * modules/pipe (Depends-on): Likewise.
39344         * modules/cloexec (Depends-on): Add dup2.
39345         * modules/cloexec-tests (Files): New file.
39346         * tests/test-cloexec.c: Likewise.
39347
39348         test-xalloc-die: fix test for mingw
39349         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39350         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39351         directory and .exe suffix off argv[0] output.
39352
39353         test-fseeko: fix test for mingw
39354         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39355         than undefining fseek, so test will pass on mingw.
39356
39357 2009-12-05  Bruno Haible  <bruno@clisp.org>
39358
39359         * lib/progname.h (set_program_name): Clarify specification.
39360         * lib/progname.c (set_program_name): Likewise.
39361         Reported by Jim Meyering.
39362
39363 2009-12-05  Jim Meyering  <meyering@redhat.com>
39364
39365         maint.mk: backslash-escape parens in default regexp
39366         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39367         backslash-escape the literal parentheses.
39368
39369         maint.mk: news-date-check: use grep -E
39370         * top/maint.mk (today): Define a Make variable, not a...
39371         (news-date-check): ...shell variable.
39372         (news-date-regexp): Use the Make variable.
39373         Use grep's -E option.  Change the failing diagnostic to mention
39374         the variable, $(news-date-regexp).
39375
39376 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39377
39378         maintainer-makefile: allow customization of NEWS entry format
39379         * top/maint.mk (news-date-regexp): New overridable variable.
39380         (news-date-check): Use it.
39381
39382 2009-12-04  Eric Blake  <ebb9@byu.net>
39383
39384         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39385         * lib/mgetgroups.h (xgetgroups): New prototype.
39386         * lib/mgetgroups.c (xgetgroups): New wrapper.
39387         (mgetgroups): Handle ENOSYS.
39388         * modules/mgetgroups (Depends-on): Add realloc.
39389         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39390
39391         mgetgroups: avoid argument promotion issues with -1
39392         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39393         for invalid gid_t.
39394         * tests/test-chown.h (getegid, test_chown): Likewise.
39395         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39396
39397 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39398
39399         exclude: Fix header file problems.
39400         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39401
39402 2009-12-01  Jim Meyering  <meyering@redhat.com>
39403
39404         fts: fts_open: do not let an empty string cause immediate failure
39405         This is required in support of GNU rm, for which the command
39406         "rm A '' B" must process and remove both A and B, in spite of
39407         the empty string argument.
39408         * lib/fts.c (fts_open): Do not let the presence of an empty string
39409         cause fts_open to fail immediately.  Most fts-using tools must be
39410         able to process all arguments, in order, and can be expected to
39411         diagnose such arguments themselves.
39412
39413 2009-11-30  Eric Blake  <ebb9@byu.net>
39414
39415         utimens: fix compilation error
39416         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39417         Declare variable at right scope.
39418
39419 2009-11-29  Jim Meyering  <meyering@redhat.com>
39420
39421         bootstrap: handle perl-5.11's changed --version output
39422         * build-aux/bootstrap (get_version): Handle perl separately,
39423         since perl-5.11's --version output is different.
39424
39425 2009-11-28  Jim Meyering  <meyering@redhat.com>
39426
39427         userspec: depend on the inttostr module, too
39428         * modules/userspec (Depends-on): Add inttostr.
39429
39430         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39431         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39432         number of MAXUID when it evaluates to (uid_t) -1.
39433         Likewise for group ID.  Reported by Matt McCutchen in
39434         <http://savannah.gnu.org/bugs/?28113>
39435
39436         userspec: reformat to use spaces, not TABs
39437         * lib/userspec.c: Expand TABs to spaces.
39438         Add Emacs' "indent-tabs-mode: nil" hint.
39439
39440 2009-11-27  Eric Blake  <ebb9@byu.net>
39441
39442         getopt-gnu: flush out another BSD bug
39443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39444         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39445         flush out BSD bug.
39446         * tests/test-getopt.h (test_getopt): End lists with NULL.
39447         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39448         (test_getopt_long_posix): Enhance test.
39449         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39450         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39451         getopt-gnu.
39452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39453         Likewise.
39454
39455 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39456
39457         * modules/idpriv-droptemp-tests (Notice): Fix text.
39458
39459 2009-11-27  Jim Meyering  <meyering@redhat.com>
39460
39461         test-xalloc-die: avoid spurious failure due to libtool argv difference
39462         In a libtool-enabled project, this test would fail due to a difference
39463         in the emitted program name, e.g.,
39464         -test-xalloc-die: memory exhausted
39465         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39466         Use program to avoid that.
39467         * modules/xalloc-die-tests (Depends-on): Add progname.
39468         * tests/test-xalloc-die.c: Include progname.h".
39469         (program_name): Remove decl.
39470         (main): Call set_program_name.
39471         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39472
39473 2009-11-26  Richard Jones  <rjones@redhat.com>
39474
39475         w32sock: leave win32 error in place.
39476         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39477
39478 2009-11-26  Eric Blake  <ebb9@byu.net>
39479
39480         init.sh: suggest to use skip_ and fail_ functions in comments
39481         * tests/init.sh: Add a sentence.
39482
39483 2009-11-25  Bruno Haible  <bruno@clisp.org>
39484
39485         init.sh: add documentation in comments
39486         * tests/init.sh: Add some developer and user documentation.
39487
39488 2009-11-26  Jim Meyering  <meyering@redhat.com>
39489
39490         init.sh: accommodate even those who specify bogus srcdir manually
39491         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39492         configure-time tests to be sanitized, so that there is no need to
39493         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39494         (with no double quotes) suffices.  However, since tests may be
39495         invoked manually, and since you may explicitly set srcdir to the
39496         name of a directory containing spaces, do quote its uses here.
39497         * tests/test-pread.sh: Likewise.
39498         Suggested by Bruno Haible.
39499
39500         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39501         * tests/test-pread.sh: Write no data into the pipe, because
39502         test-pread actually reads none.  This avoids a diagnostic,
39503         "bash: echo: write error: Broken pipe", that arises in the unusual
39504         event something is ignoring SIGPIPE, and might be interpreted
39505         as some sort of failure.  Reported by Bruno Haible.
39506
39507 2009-11-25  Jim Meyering  <meyering@redhat.com>
39508
39509         test-pread: cover failure with ESPIPE and EINVAL
39510         * tests/test-pread.c (main): Test for failure, too.
39511         * tests/test-pread.sh: Invoke with stdin on a pipe.
39512         Suggested by Eric Blake.
39513
39514         pread: improvement and fix
39515         * modules/pread (Depends-on): Depend on lseek, for portability to
39516         e.g., mingw.  Suggested by Eric Blake.
39517         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39518
39519         unistd.in.h: correct declaration of pread
39520         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39521         Reported by Richard W.M. Jones.
39522
39523         test-pread.sh: distribute the test script
39524         * modules/pread-tests (Files): Include test-pread.sh.
39525
39526         test-pread.sh: clean up
39527         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39528         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39529         That is unnecessary, since it's always ".".
39530         Suggestion from Eric Blake.
39531
39532         test-pread.sh: make executable
39533         * tests/test-pread.sh: Set executable bit.
39534         Reported by Eric Blake.
39535
39536         correct typo in test-pread.sh
39537         * tests/test-pread.sh: Add #! line.
39538
39539         test pread
39540         * tests/test-pread.c: New file.
39541         * tests/test-pread.sh: Likewise.
39542         * modules/pread-tests: Likewise.
39543
39544         pread: new module
39545         * modules/pread: New file.
39546         * lib/unistd.in.h (pread): Define/declare.
39547         * lib/pread.c (pread): New file.
39548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39549         * modules/unistd (Makefile.am): Substitute witnesses.
39550         * doc/posix-functions/pread.texi (pread): Update.
39551         * MODULES.html.sh: Add pread.
39552
39553 2009-11-25  Jim Meyering  <meyering@redhat.com>
39554
39555         tests/init.sh: new file to be used via most *.sh tests
39556         * tests/init.sh: New file.
39557
39558 2009-11-25  Eric Blake  <ebb9@byu.net>
39559
39560         utimens: work around older Linux failure with symlinks
39561         * lib/utimens.c (lutimensat_works_really): New variable.
39562         (fdutimens, lutimens): Use it to manage kernels that support
39563         nanosecond times on files, but not on symlinks.
39564         Reported by Ondřej Vašík.
39565
39566         utimes: fix configure grammar
39567         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39568
39569 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39570
39571         regex: Fix fastmap for multibyte character ranges.
39572         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39573         characters when a multibyte character range is included.
39574
39575 2009-11-22  Andy Wingo  <wingo@pobox.com>
39576
39577         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39578         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39579
39580 2009-11-24  Bruno Haible  <bruno@clisp.org>
39581
39582         doc: Most *_l functions exist in MacOS X 10.5.
39583         * doc/posix-functions/duplocale.texi: Update platforms list.
39584         * doc/posix-functions/freelocale.texi: Likewise.
39585         * doc/posix-functions/newlocale.texi: Likewise.
39586         * doc/posix-functions/uselocale.texi: Likewise.
39587         * doc/posix-functions/isalnum_l.texi: Likewise.
39588         * doc/posix-functions/isalpha_l.texi: Likewise.
39589         * doc/posix-functions/isblank_l.texi: Likewise.
39590         * doc/posix-functions/iscntrl_l.texi: Likewise.
39591         * doc/posix-functions/isdigit_l.texi: Likewise.
39592         * doc/posix-functions/isgraph_l.texi: Likewise.
39593         * doc/posix-functions/islower_l.texi: Likewise.
39594         * doc/posix-functions/isprint_l.texi: Likewise.
39595         * doc/posix-functions/ispunct_l.texi: Likewise.
39596         * doc/posix-functions/isspace_l.texi: Likewise.
39597         * doc/posix-functions/isupper_l.texi: Likewise.
39598         * doc/posix-functions/iswalnum_l.texi: Likewise.
39599         * doc/posix-functions/iswalpha_l.texi: Likewise.
39600         * doc/posix-functions/iswblank_l.texi: Likewise.
39601         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39602         * doc/posix-functions/iswctype_l.texi: Likewise.
39603         * doc/posix-functions/iswdigit_l.texi: Likewise.
39604         * doc/posix-functions/iswgraph_l.texi: Likewise.
39605         * doc/posix-functions/iswlower_l.texi: Likewise.
39606         * doc/posix-functions/iswprint_l.texi: Likewise.
39607         * doc/posix-functions/iswpunct_l.texi: Likewise.
39608         * doc/posix-functions/iswspace_l.texi: Likewise.
39609         * doc/posix-functions/iswupper_l.texi: Likewise.
39610         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39611         * doc/posix-functions/isxdigit_l.texi: Likewise.
39612         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39613         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39614         * doc/posix-functions/strcoll_l.texi: Likewise.
39615         * doc/posix-functions/strfmon_l.texi: Likewise.
39616         * doc/posix-functions/strftime_l.texi: Likewise.
39617         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39618         * doc/posix-functions/strxfrm_l.texi: Likewise.
39619         * doc/posix-functions/tolower_l.texi: Likewise.
39620         * doc/posix-functions/toupper_l.texi: Likewise.
39621         * doc/posix-functions/towctrans_l.texi: Likewise.
39622         * doc/posix-functions/towlower_l.texi: Likewise.
39623         * doc/posix-functions/towupper_l.texi: Likewise.
39624         * doc/posix-functions/wcscoll_l.texi: Likewise.
39625         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39626         * doc/posix-functions/wctrans_l.texi: Likewise.
39627         * doc/posix-functions/wctype_l.texi: Likewise.
39628         * doc/glibc-functions/strptime_l.texi: Likewise.
39629         * doc/glibc-functions/strtod_l.texi: Likewise.
39630         * doc/glibc-functions/strtof_l.texi: Likewise.
39631         * doc/glibc-functions/strtol_l.texi: Likewise.
39632         * doc/glibc-functions/strtold_l.texi: Likewise.
39633         * doc/glibc-functions/strtoll_l.texi: Likewise.
39634         * doc/glibc-functions/strtoul_l.texi: Likewise.
39635         * doc/glibc-functions/strtoull_l.texi: Likewise.
39636         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39637         * doc/glibc-functions/wcstod_l.texi: Likewise.
39638         * doc/glibc-functions/wcstof_l.texi: Likewise.
39639         * doc/glibc-functions/wcstol_l.texi: Likewise.
39640         * doc/glibc-functions/wcstold_l.texi: Likewise.
39641         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39642         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39643         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39644
39645 2009-11-24  Bruno Haible  <bruno@clisp.org>
39646
39647         duplocale: Fix logic bug.
39648         * lib/duplocale.c: Don't include <langinfo.h>.
39649         (_NL_LOCALE_NAME): Remove macro.
39650         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39651         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39652
39653 2009-11-23  Jim Meyering  <meyering@redhat.com>
39654
39655         test-update-copyright: don't hard-code /usr/bin/perl
39656         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39657         perl to print the current year.  Gilles Espinasse reported that
39658         the replaced use of perl was hard-coded as /usr/bin/perl.
39659
39660 2009-11-23  Bruno Haible  <bruno@clisp.org>
39661
39662         duplocale: Add support for glibc 2.3.x.
39663         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39664
39665 2009-11-22  Bruno Haible  <bruno@clisp.org>
39666
39667         vasnprintf: Tiny optimization.
39668         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39669         MacOS X.
39670
39671 2009-11-22  Bruno Haible  <bruno@clisp.org>
39672
39673         Tests for module 'duplocale'.
39674         * modules/duplocale-tests: New file.
39675         * tests/test-duplocale.c: New file.
39676
39677         New module 'duplocale'.
39678         * m4/duplocale.m4: New file.
39679         * lib/locale.in.h (duplocale): New declaration.
39680         * lib/duplocale.c: New file.
39681         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39682         gl_LOCALE_H_DEFAULTS): New macros.
39683         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39684         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39685         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39686         REPLACE_DUPLOCALE.
39687         * modules/duplocale: New file.
39688         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39689
39690 2009-11-22  Bruno Haible  <bruno@clisp.org>
39691
39692         * modules/locale-tests (configure.ac): Test for newlocale function.
39693         * tests/test-locale.c: When the system has extended locale functions,
39694         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39695
39696         locale: Make locale_t available when possible.
39697         * lib/locale.in.h: Include <xlocale.h> when it exists.
39698         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39699         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39700         * modules/locale (Depends-on): Add extensions.
39701         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39702         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39703
39704 2009-11-22  Bruno Haible  <bruno@clisp.org>
39705
39706         Add comments.
39707         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39708         invocation.
39709         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39710         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39711         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39712
39713 2009-11-22  Bruno Haible  <bruno@clisp.org>
39714
39715         error: account for the possibility of freopen (stdout).
39716         * lib/error.c: Include <unistd.h>.
39717         (flush_stdout): New function, extracted from error and error_at_line.
39718         Determine stdout's fd dynamically.
39719         (error, error_at_line): Invoke flush_stdout.
39720         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39721         * modules/error (Depends-on): Add unistd.
39722
39723 2009-11-22  Bruno Haible  <bruno@clisp.org>
39724
39725         diffseq: Add comment.
39726         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39727
39728 2009-11-22  Jim Meyering  <meyering@redhat.com>
39729
39730         c-stack: avoid defining an unused static function
39731         * lib/c-stack.c (find_stack_direction): Do not define this function
39732         when it will not be used.
39733
39734         diffseq: avoid spurious gcc warnings
39735         * lib/diffseq.h (IF_LINT2): Define.
39736         (compareseq): Use it to initialize two members of "part".
39737         This avoids two used-uninitialized warnings.
39738
39739 2009-11-21  Jim Meyering  <meyering@redhat.com>
39740
39741         c-stack: avoid "ignoring return value of `write'" warning
39742         * lib/c-stack.c: Include "ignore-value.h".
39743         (die): Explicitly ignore each write return value.
39744         * modules/c-stack (Depends-on): Add ignore-value.
39745
39746 2009-11-21  Bruno Haible  <bruno@clisp.org>
39747
39748         diffseq: reduce scope of variable 'best'.
39749         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39750         variable, earlier used for two different purposes.
39751
39752 2009-11-21  Jim Meyering  <meyering@redhat.com>
39753
39754         diffseq: remove useless assignment to "best"
39755         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39756         assignment.  At that point "best" is already guaranteed to be zero.
39757
39758 2009-11-20  Eric Blake  <ebb9@byu.net>
39759
39760         build: mention ftp redirector in release announcements
39761         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39762         values that used to come from cfg.mk; mention FTP redirect URL.
39763         * build-aux/announce-gen: Mention the mirror list.
39764         Suggested by Karl Berry.
39765
39766         nanosleep: improve port to mingw
39767         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39769         LIB_NANOSLEEP, but only when needed.
39770         * modules/select (Link): Document LIBSOCKET.
39771         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39772         enough.
39773
39774         nanosleep: work around cygwin bug
39775         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39776         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39777         bug.
39778         (getnow): Delete, not needed.
39779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39780         LIB_CLOCK_GETTIME.
39781         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39782         clock-time, gettime.
39783         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39784         bug.
39785         * modules/nanosleep-tests: New test.
39786         * tests/test-nanosleep.c: New file.
39787
39788         sleep: work around cygwin bug
39789         * lib/sleep.c (rpl_sleep): Work around the bug.
39790         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39791         (gl_PREREQ_SLEEP): Delete unused macro.
39792         * modules/sleep (Depends-on): Add verify.
39793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39794         * modules/unistd (Makefile.am): Substitute witness.
39795         * lib/unistd.in.h (sleep): Update prototype.
39796         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39797         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39798         * modules/sleep-tests (Depends-on): Check for alarm.
39799
39800 2009-11-20  Jim Meyering  <meyering@redhat.com>
39801
39802         maint.mk: improve sc_prohibit_magic_number_exit
39803         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39804         so it does not match uses like System.exit(1).
39805         Add comments showing how to correct all offenders.
39806
39807 2009-11-19  Eric Blake  <ebb9@byu.net>
39808
39809         xalloc-die-tests: add missing library
39810         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39811
39812         test-xvasprintf: silence compiler warnings
39813         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39814         empty string from gcc.
39815
39816 2009-11-19  Jim Meyering  <meyering@redhat.com>
39817
39818         xfreopen: new module, from coreutils
39819         * modules/xfreopen: New module.
39820         * lib/xfreopen.c: New file.
39821         * lib/xfreopen.h: New file.
39822         * MODULES.html.sh (File stream based Input/Output"): Add it.
39823
39824 2009-11-19  Eric Blake  <ebb9@byu.net>
39825
39826         manywarnings: depend on warnings
39827         * modules/manywarnings (Depends-on): Add warnings.
39828
39829         build: avoid compiler warnings
39830         * lib/select.c (rpl_select): Delete unused variable.
39831         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39832
39833 2009-11-18  Eric Blake  <ebb9@byu.net>
39834
39835         tests: avoid false negative with --with-packager
39836         * tests/test-version-etc.sh: Discard packager information.
39837         * tests/test-argp-version-etc-1.sh: Likewise.
39838         Reported by Mike Frysinger.
39839
39840         utimens: fix regression on Solaris
39841         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39842         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39843         can only change fd timestamps via futimesat.  Instead, use an
39844         additional witness macro to avoid BSD bug.
39845         Reported by Jim Meyering.
39846
39847 2009-11-17  Eric Blake  <ebb9@byu.net>
39848
39849         usleep: use it to simplify tests
39850         * modules/stat-time-tests (Depends-on): Add usleep.
39851         (configure.ac): Drop usleep check.
39852         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39853         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39854         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39855         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39856         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39857         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39858         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39859         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39860         Likewise.
39861         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39862         * tests/test-lchown.h (nap): Likewise.
39863         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39864         * tests/test-stat-time.c (nap): Likewise.
39865         * tests/test-utimens-common.h (nap): Update comments.
39866
39867         usleep: new module
39868         * modules/usleep: New file.
39869         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39870         * lib/usleep.c (usleep): Likewise.
39871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39872         * modules/unistd (Makefile.am): Substitute witnesses.
39873         * lib/unistd.in.h (usleep): Add declaration.
39874         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39875         * MODULES.html.sh (Date and time): Likewise.
39876         * modules/usleep-tests (Depends-on): New test.
39877         * tests/test-usleep.c: New file.
39878
39879         chown: work around OpenBSD bug
39880         * lib/chown.c (rpl_chown): Work around the bug.
39881         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39882         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39884         * modules/chown (Depends-on): Add stdbool.
39885         * modules/lchown (Depends-on): Likewise.
39886         * doc/posix-functions/chown.texi (chown): Document the bug.
39887         * doc/posix-functions/lchown.texi (lchown): Likewise.
39888         * tests/test-lchown.h (test_chown): Relax test.
39889
39890         mkstemp: avoid conflict with C++ keyword template
39891         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39892         * lib/mkostemp.c (mkostemp): Likewise.
39893         * lib/mkostemps.c (mkostemps): Likewise.
39894         * lib/mkstemp.c (mkstemp): Likewise.
39895         * lib/mkstemps.c (mkstemps): Likewise.
39896
39897         xalloc-die-tests: optimize
39898         * tests/test-xalloc-die.sh: Reduce number of processes.
39899
39900 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39901
39902         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39903         patch from ludo@gnu.org (Ludovic Courtès).
39904
39905 2009-11-17  Jim Meyering  <meyering@redhat.com>
39906
39907         version-etc: use proper license string
39908         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39909         * modules/version-etc-fsf: Likewise.
39910
39911 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39912
39913         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39914         printed to stdout.  Deal with EOL differences.
39915
39916 2009-11-17  Eric Blake  <ebb9@byu.net>
39917
39918         unsetenv: work around Solaris bug
39919         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39920         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39921         Reported by Jim Meyering.
39922
39923         vasnprintf: avoid compiler warnings
39924         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39925         variables.
39926         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39927
39928 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39929
39930         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39931         settings since xalloc-die is no longer the self test,
39932         xalloc-die.sh is.
39933
39934 2009-11-17  Jim Meyering  <meyering@redhat.com>
39935
39936         test-xalloc-die.sh: make the code agree with the commit log
39937         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39938         at the end, just in case you happen to have a test-xalloc-die
39939         program in some other PATH directory.
39940
39941         test-xalloc-die.sh: fix a portability bug
39942         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39943         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39944         Otherwise, argv[0] (as often seen in diagnostics) would be too
39945         system-dependent, sometimes with, and sometimes without the leading "./".
39946
39947         version-etc-fsf: relax license to LGPLv3+
39948         * modules/version-etc-fsf (License): Relax license.
39949
39950 2009-11-16  Eric Blake  <ebb9@byu.net>
39951
39952         xalloc-die-tests: avoid printing null pointer
39953         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39954         shell script.
39955         * tests/test-xalloc-die.c (program_name): Declare.
39956         * tests/test-xalloc-die.sh (tmpfiles): New file.
39957
39958         setenv, unsetenv: work around various bugs
39959         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39960         (setenv) [HAVE_SETENV]: Work around bugs.
39961         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39962         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39963         for bugs.
39964         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39965         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39967         * modules/stdlib (Makefile.am): Update substitutions.
39968         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39969         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39970         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39971         * modules/setenv-tests: New test.
39972         * modules/unsetenv-tests: Likewise.
39973         * tests/test-setenv.c: New file.
39974         * tests/test-unsetenv.c: Likewise.
39975
39976 2009-11-16  Jim Meyering  <meyering@redhat.com>
39977
39978         version-etc: relax license to LGPLv3+
39979         * modules/version-etc (License): Relax license.
39980
39981         better AC_REQUIRE expanded-before-required-warning avoidance
39982         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39983         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39984         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39985         which is no longer needed.
39986
39987 2009-11-16  Eric Blake  <ebb9@byu.net>
39988
39989         test-freading: clean up temporary file
39990         * tests/test-freading.c (main): Remove file on success, and use
39991         ASSERT more liberally.
39992         Reported by Jim Meyering.
39993
39994 2009-11-16  Jim Meyering  <meyering@redhat.com>
39995
39996         avoid new AC_REQUIRE expanded-before-required warnings
39997         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39998         merely using it.
39999         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40000         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40001
40002 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40003
40004         * tests/test-xalloc-die.c: New file.
40005         * modules/xalloc-die-tests: New file.
40006         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40007         XFAIL_TESTS so it can be appended by modules.
40008
40009 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40010
40011         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40012         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40013
40014 2009-11-14  Eric Blake  <ebb9@byu.net>
40015
40016         fnmatch: avoid compiler warning
40017         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40018         to silence compiler warning about mismatch signedness in ?:.
40019         Reported by Robert Millan.
40020
40021         intprops: add double-inclusion guard
40022         * lib/intprops.h: Allow idempotent includes.
40023         Suggested by Bruce Korb.
40024
40025         openat: detect Solaris fchownat bug
40026         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40027         penalizing glibc chownat when only lchownat is broken.
40028         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40029         trailing slash bugs.
40030         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40031         * modules/openat-tests (Files): Include more files.
40032         (Depends-on): Add mgetgroups, sleep, stat-time.
40033         (configure.ac): Add additional checks.
40034         (Makefile.am): Build new test.
40035         * tests/test-fchownat.c: New file.
40036
40037         lchown: detect Solaris and FreeBSD bug
40038         * lib/lchown.c (rpl_lchown): Work around bug.
40039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40041         * modules/unistd (Makefile.am): Populate it.
40042         * lib/unistd.in.h (lchown): Update declaration.
40043         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40044         * modules/lchown-tests: New file.
40045         * tests/test-lchown.h (test_lchown): Likewise.
40046         * tests/test-lchown.c (main): Likewise.
40047
40048         chown: detect Solaris and FreeBSD bug
40049         * lib/chown.c (rpl_chown): Work around bug.
40050         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40051         (gl_PREREQ_CHOWN): Delete.
40052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40053         * modules/unistd (Makefile.am): Populate it.
40054         * lib/unistd.in.h (chown): Update declaration.
40055         * lib/lchown.c (chown): Update client.
40056         * modules/lchown (Depends-on): Add lstat.
40057         * doc/posix-functions/chown.texi (chown): Document the bug.
40058         * doc/posix-functions/getgroups.texi (getgroups): Document
40059         getgroups pitfall.
40060         * modules/chown-tests: New file.
40061         * tests/test-chown.h (test_chown): Likewise.
40062         * tests/test-chown.c (main): Likewise.
40063
40064 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40065
40066         gnulib-tool: correctly detect absence of m4 directories
40067         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40068
40069 2009-11-14  Jim Meyering  <meyering@redhat.com>
40070
40071         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40072         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40073
40074 2009-11-14  John W. Eaton  <jwe@gnu.org>
40075
40076         strftime.h: wrap function declaration in extern "C" block
40077         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40078
40079 2009-11-13  Eric Blake  <ebb9@byu.net>
40080
40081         getgroups: avoid compiler warning
40082         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40083
40084         getgroups: work around FreeBSD bug
40085         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40087         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40088         * tests/test-getgroups.c (main): Fix buffer overrun.
40089
40090         getgroups: avoid compilation failure
40091         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40092         * modules/getgroups (Depends-on): Add stdint.
40093
40094 2009-11-13  Jim Meyering  <meyering@redhat.com>
40095
40096         test-getgroups: avoid compilation failure
40097         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40098
40099 2009-11-13  Eric Blake  <ebb9@byu.net>
40100
40101         mgetgroups: new module, taken from coreutils
40102         * modules/mgetgroups: New file.
40103         * lib/mgetgroups.h: Likewise.
40104         * lib/mgetgroups.c (mgetgroups): Likewise.
40105         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40106         * MODULES.html.sh (Users and groups): Mention it.
40107
40108         getgroups: don't expose GETGROUPS_T to user
40109         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40110         an element at a time if GETGROUPS_T is wrong size.
40111         * lib/getugroups.h (getugroups): Change signature.
40112         * lib/unistd.in.h (getgroups): Likewise.
40113         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40114         signature needs fixing.
40115         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40116         AC_TYPE_GETGROUPS.
40117         * modules/group-member (Depends-on): Add getgroups.
40118         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40119         (group_member): Rely on getgroups replacement.
40120         * lib/getugroups.c (getugroups): Use gid_t.
40121         * tests/test-getgroups.c (main): Likewise.
40122         * NEWS: Mention the signature change.
40123         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40124         problem with signature.
40125         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40126         GETGROUPS_T is still useful for setgroups.
40127
40128         getgroups, getugroups: provide stubs for mingw
40129         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40130         * lib/getugroups.c (getugroups): Likewise.
40131         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40132         function.  Modernize replacement scheme.
40133         (gl_PREREQ_GETGROUPS): Delete.
40134         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40135         * modules/getgroups (configure.ac): Declare witness.
40136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40137         * modules/unistd (Depends-on): Substitute witness.
40138         * lib/unistd.in.h (getgroups): Declare replacement.
40139
40140         getgroups: avoid calling exit
40141         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40142         drop xalloc.
40143         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40144         dependencies.
40145         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40146         exiting, in the rare case of malloc failure.
40147
40148         getgroups: fix logic error
40149         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40150         has more than 20 groups.
40151         * modules/getgroups-tests: New test.
40152         * tests/test-getgroups.c: New file.
40153
40154 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40155
40156         * tests/test-base64.c: Improve.
40157
40158 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40159
40160         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40161         Blake <ebb9@byu.net>.
40162
40163 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40164
40165         * tests/test-xvasprintf.c: Add %s%s related checks.
40166
40167 2009-11-12  Eric Blake  <ebb9@byu.net>
40168
40169         version-etc: match standards.texi style
40170         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40171         and use <> only for URLs.
40172
40173 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40174
40175         fts: do not fail on a submount during traversal
40176         * lib/fts.c (fts_build): Read the stat info again after opening
40177         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40178         Original report at http://bugzilla.redhat.com/501848.
40179
40180 2009-11-12  Jim Meyering  <meyering@redhat.com>
40181
40182         bootstrap: sync from coreutils
40183         * build-aux/bootstrap (bootstrap_epilogue): New function.
40184         Use git_modules_config in one more place.  This make bootstrap's
40185         --gnulib-srcdir option more useful for testing.
40186
40187         bootstrap: generalize autoheader check
40188         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40189         AC_CONFIG_HEADERS.
40190
40191 2009-11-11  Eric Blake  <ebb9@byu.net>
40192
40193         mkfifoat: use new modules for Solaris and BSD bugs
40194         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40195         * lib/mkfifoat.c (mknodat): Split...
40196         * lib/mknodat.c (mknodat): ...into new file.
40197         * modules/mkfifoat (Files): Ship new file.
40198         (Depends-on): Add mkfifo, mknod.
40199         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40200         (Depends-on): Add symlink.
40201         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40202         redundant with test_mkfifo.h.
40203         (do_mkfifoat, do_mknodat): New helpers.
40204
40205         mknod: new module
40206         * modules/mknod: New file.
40207         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40208         * lib/mknod.c (mknod): Likewise.
40209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40210         defaults.
40211         * modules/sys_stat (Makefile.am): Substitute them.
40212         * lib/sys_stat.in.h (mknod): Declare replacement.
40213         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40214         Document it.
40215         * doc/posix-functions/mknod.texi (mknod): Likewise.
40216         * modules/mknod-tests: New test.
40217         * tests/test-mknod.c: Likewise.
40218
40219         mkfifo: new module
40220         * modules/mkfifo: New file.
40221         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40222         * lib/mkfifo.c (mkfifo): Likewise.
40223         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40224         defaults.
40225         * modules/sys_stat (Makefile.am): Substitute them.
40226         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40227         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40228         Document it.
40229         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40230         * modules/mkfifo-tests: New test.
40231         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40232         from test-mkfifoat.c.
40233         * tests/test-mkfifo.c: New file.
40234
40235         readlink: detect FreeBSD bug
40236         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40237         slash on symlink.
40238         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40239         * tests/test-readlink.h (test_readlink): Enhance test.
40240
40241         symlink: detect FreeBSD bug
40242         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40243         slash on symlink.
40244         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40245         * tests/test-symlink.h (test_symlink): Enhance test.
40246
40247 2009-11-10  Eric Blake  <ebb9@byu.net>
40248
40249         link: detect FreeBSD bug
40250         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40251         symlink.
40252         * doc/posix-functions/link.texi (link): Document the bug.
40253         * tests/test-link.h (test_link): Enhance test.
40254         * tests/test-linkat.c (main): Update caller.
40255
40256         unlink, remove: detect FreeBSD bug
40257         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40258         slash on symlink.
40259         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40260         * doc/posix-functions/remove.texi (remove): Likewise.
40261         * tests/test-unlink.h (test_unlink): Enhance test.
40262         * tests/test-remove.c (main): Likewise.
40263
40264 2009-11-09  Eric Blake  <ebb9@byu.net>
40265
40266         rename: detect FreeBSD bug
40267         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40268         slash on symlink.
40269         * modules/renameat-tests (Depends-on): Add filenamecat.
40270         * tests/test-rename.h (test_rename): Allow one more errno.
40271         * tests/test-renameat.c (main): Likewise.
40272         * doc/posix-functions/rename.texi (rename): Document the bug.
40273
40274         open: detect FreeBSD bug
40275         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40276         symlink.
40277         * doc/posix-functions/open.texi (open): Document the bug.
40278         * doc/posix-functions/utimes.texi (utimes): Likewise.
40279         * tests/test-open.h (test_open): Add parameters, and test symlink
40280         handling.
40281         * tests/test-open.c (main): Adjust caller.
40282         * tests/test-fcntl-safer.c (main): Likewise.
40283         * modules/open-tests (Depends-on): Add stdbool, symlink.
40284         * modules/fcntl-safer-tests (Depends-on): Likewise.
40285         * tests/test-openat.c (main): Add test-open tests.
40286
40287         stat: detect FreeBSD bug
40288         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40289         symlink.
40290         * doc/posix-functions/stat.texi (stat): Document the bug.
40291         * tests/test-stat.h (test_stat_func): Add argument.
40292         * tests/test-stat.c (main): Adjust caller.
40293         * tests/test-fstatat.c (main): Likewise.
40294         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40295         Reported by Jim Meyering.
40296
40297 2009-11-09  James Youngman  <jay@gnu.org>
40298
40299         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40300         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40301
40302 2009-11-08  Jim Meyering  <meyering@redhat.com>
40303
40304         utimens: remove invalid futimesat call
40305         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40306         It used the file descriptor of the target file as the DIR_FD
40307         parameter and NULL as the file name.  That caused failure with
40308         errno == EFAULT on FreeBSD-8.0-rc2
40309
40310 2009-11-07  Eric Blake  <ebb9@byu.net>
40311
40312         fflush, freadseek: use fseeko, not fseek
40313         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40314         (clear_ungetc_buffer): Avoid potential problems on large files.
40315         * lib/freadseek.c (freadseek): Likewise.
40316         * modules/freadseek (Depends-on): Add fseeko.
40317         * modules/fseek (configure.ac): Set a witness.
40318         * tests/test-fflush.c (main): Use fseeko.
40319         * tests/test-fpurge.c (fseek): Disable link warning.
40320         * tests/test-freadable.c (fseek): Likewise.
40321         * tests/test-freading.c (fseek): Likewise.
40322         * tests/test-fseeko.c (fseek): Likewise.
40323         * tests/test-ftell.c (fseek): Likewise.
40324         * tests/test-ftello.c (fseek): Likewise.
40325         * tests/test-fwritable.c (fseek): Likewise.
40326         * tests/test-fwriting.c (fseek): Likewise.
40327
40328 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40329
40330         * modules/memchr (Depends-on): Drop getpagesize dependency.
40331
40332 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40333
40334         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40335         Reported by Ludovic Courtès.
40336         * build-aux/pmccabe2html: Improve example usage.
40337         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40338
40339 2009-11-06  Jim Meyering  <meyering@redhat.com>
40340
40341         do-release-commit-and-tag: New module.
40342         Automate the release-commit and tag process.
40343         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40344         * modules/do-release-commit-and-tag: New file.
40345         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40346
40347 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40348
40349         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40350         because test-select.c uses inet_pton.
40351
40352 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40353
40354         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40355         GETADDRINFO_LIB.  Bump serial number.
40356         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40357         Suggested by Eric Blake <ebb9@byu.net>.
40358
40359 2009-11-05  Eric Blake  <ebb9@byu.net>
40360
40361         strtod: detect darwin bug
40362         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40363         Reported by Leo Davis.
40364
40365         freopen-safer: new module
40366         * modules/freopen-safer: New module.
40367         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40368         * lib/freopen-safer.c (freopen_safer): New file.
40369         * lib/stdio-safer.h (freopen_safer): New declaration.
40370         * lib/stdio--.h (freopen): New override.
40371         * MODULES.html.sh (File stream based Input/Output): Mention it.
40372         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40373         freopen-safer module.
40374         * doc/posix-functions/stderr.texi (stderr): Likewise.
40375         * doc/posix-functions/stdin.texi (stdin): Likewise.
40376         * doc/posix-functions/stdout.texi (stdout): Likewise.
40377         * modules/freopen-safer-tests: New test.
40378         * tests/test-reopen-safer.c: New file.
40379
40380 2009-11-05  Jim Meyering  <meyering@redhat.com>
40381
40382         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40383         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40384
40385 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40386
40387         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40388
40389 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40390
40391         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40392
40393 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40394
40395         Fix link error.
40396         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40398
40399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40400
40401         * tests/test-func.c: Also test value of __func__.
40402
40403 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40404
40405         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40406         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40407
40408 2009-11-05  Bruno Haible  <bruno@clisp.org>
40409
40410         Fix link error.
40411         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40412         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40413         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40414
40415 2009-11-05  Bruno Haible  <bruno@clisp.org>
40416
40417         Tests for module 'inet_pton'.
40418         * modules/inet_pton-tests: New file.
40419         * tests/test-inet_pton.c: New file.
40420
40421 2009-11-05  Bruno Haible  <bruno@clisp.org>
40422
40423         Tests for module 'inet_ntop'.
40424         * modules/inet_ntop-tests: New file.
40425         * tests/test-inet_ntop.c: New file.
40426
40427 2009-11-04  Eric Blake  <ebb9@byu.net>
40428
40429         stdlib-safer: wrap all mkstemp variants
40430         * modules/mkostemp (configure.ac): Set witness.
40431         * modules/mkostemps (configure.ac): Likewise.
40432         * modules/mkstemps (configure.ac): Likewise.
40433         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40434         (mkstemps_safer): Wrap more functions.
40435         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40436         wrapping.
40437         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40438         (mkstemps_safer): Implement the wrappers.
40439
40440         mkstemps, mkostemps: new modules
40441         * modules/mkostemps: New module.
40442         * modules/mkstemps: Likewise.
40443         * lib/mkostemps.c (mkostemps): New file.
40444         * lib/mkstemps.c (mkstemps): Likewise.
40445         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40446         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40448         * modules/stdlib (Makefile.am): Substitute them.
40449         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40450         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40451         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40452         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40453         * MODULES.html.sh (File system functions): Mention them.
40454
40455         tempname: resync from glibc
40456         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40457         same values for __GT_FILE as glibc.  Abort even when assertions
40458         are disabled.
40459         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40460         match its value otherwise.  Allow idempotent inclusion.
40461         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40462         * lib/mkostemp.c (mkostemp): Likewise.
40463         * lib/mkstemp.c (mkstemp): Likewise.
40464         * lib/tmpfile.c (tmpfile): Likewise.
40465         * NEWS: Document this.
40466
40467         utimens: fix use of futimens on older Linux
40468         * lib/utimens.c (fdutimens): Use updated, rather than original,
40469         timespec to avoid bug in older Linux kernel.
40470         Reported by Simon Josefsson.
40471
40472 2009-11-04  Bruno Haible  <bruno@clisp.org>
40473
40474         Make num_processors more flexible and consistent.
40475         * lib/nproc.h (enum nproc_query): New type.
40476         (num_processors): Add a 'query' argument.
40477         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40478         (num_processors): Add a 'query' argument. Test the value of the
40479         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40480         mingw, count the number of CPUs available for the current process.
40481         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40482         Check for sched_getaffinity and sched_getaffinity_np.
40483         * modules/nproc (Depends-on): Add c-ctype, extensions.
40484         * NEWS: Mention the change.
40485
40486 2009-11-03  Bruno Haible  <bruno@clisp.org>
40487
40488         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40489
40490 2009-11-03  Jim Meyering  <meyering@redhat.com>
40491
40492         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40493         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40494         if it is defined.
40495
40496 2009-11-02  Eric Blake  <ebb9@byu.net>
40497
40498         mktime, timegm: share common declaration
40499         * lib/mktime-internal.h: New file.
40500         * lib/mktime.c: Use it rather than open-coding a declaration.
40501         * lib/timegm.c: Likewise.
40502         * modules/mktime (Files): Ship it.
40503         * modules/timegm (Files): Likewise.
40504         Suggested by Bruno Haible.
40505
40506         test-update-copyright: update test to match script changes
40507         * tests/test-update-copyright.sh: Avoid hard-coding perl
40508         location.  Don't update *.bak created by earlier runs.
40509
40510 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40511             Simon Josefsson  <simon@josefsson.org>
40512             Bruno Haible  <bruno@clisp.org>
40513
40514         Fix link error on Solaris 8.
40515         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40516         also in libnsl. Define also INET_PTON_LIB.
40517         * modules/inet_pton (Link): New section.
40518
40519 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40520             Bruno Haible  <bruno@clisp.org>
40521
40522         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40523         * modules/inet_ntop (Link): New section.
40524         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40525
40526 2009-11-02  Eric Blake  <ebb9@byu.net>
40527
40528         maint: avoid compiler warnings in m4 macros
40529         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40531
40532 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40533
40534         * m4/pmccabe2html.m4: Remove file.
40535         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40536         function.  Change maintainer.
40537         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40538         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40539         Courtès).
40540
40541 2009-10-31  Eric Blake  <ebb9@byu.net>
40542
40543         fseeko: fix m4 regression
40544         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40545         regression from 2009-10-27.
40546         Reported by Ralf Wildenhues.
40547
40548 2009-10-31  Jim Meyering  <meyering@redhat.com>
40549
40550         inttostr: aesthetics and improved (compile-time) safety
40551         Define inttype_is_signed rather than inttype_is_unsigned,
40552         since the sole use is via "#if inttype_is_signed".
40553         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40554         inttype_is_unsigned.
40555         * lib/offtostr.c (inttype_is_signed): Likewise.
40556         * lib/uinttostr.c (inttype_is_signed): Likewise.
40557         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40558         * lib/inttostr.c (inttostr): Use verify to cross-check the
40559         inttype_is_signed value and the signedness of the actual type.
40560         * modules/inttostr (Depends-on): Add verify.
40561
40562 2009-10-30  Eric Blake  <ebb9@byu.net>
40563
40564         build: avoid compiler warnings
40565         * lib/fchmodat.c (lchmod): Mark unused variables.
40566         * lib/getopt.c (_getopt_initialize): Likewise.
40567         * lib/mktime.c (__mktime_internal): Provide prototype.
40568         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40569         older gcc that do not understand #pragma GCC diagnostic.
40570         * lib/uinttostr.c (inttype_is_unsigned): Define.
40571         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40572
40573 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40574
40575         stat: fix compilation on AIX
40576         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40577         only see struct stat64.
40578
40579 2009-10-30  Eric Blake  <ebb9@byu.net>
40580
40581         exclude: make more robust
40582         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40583         rather than masking a coding bug.
40584         Suggested by Bruno Haible.
40585
40586 2009-10-30  Jim Meyering  <meyering@redhat.com>
40587
40588         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40589         Rather than putting #!/usr/bin/perl on the first line,
40590         start with a variant of what's recommended by "man perlrun" that
40591         invokes the first "perl" program from your shell's search path.
40592         * build-aux/gitlog-to-changelog: Replace #!... as above.
40593         Add a "Local Variables" perl mode setting.
40594         Prompted by a patch from Ludovic Courtès.
40595         Improved by Eric Blake.
40596         * build-aux/useless-if-before-free: Likewise.
40597         * build-aux/announce-gen: Likewise.
40598         * build-aux/update-copyright: Likewise.
40599
40600 2009-10-29  Eric Blake  <ebb9@byu.net>
40601
40602         filenamecat-lgpl: adjust clients
40603         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40604         filenamecat.
40605         * modules/renameat (Depends-on): Likewise.
40606
40607         filenamecat: split into filenamecat-lgpl
40608         * modules/filenamecat-lgpl: New module.
40609         * modules/filenamecat (Files): Move library-safe files into
40610         filenamecat-lgpl.
40611         (Depends-on): Add filenamecat-lgpl.
40612         (configure.ac): Declare witness.
40613         * lib/filenamecat.h (file_name_concat): Only declare when using
40614         GPL module.
40615         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40616         Move...
40617         * lib/filenamecat-lgpl.c: ...into new file.
40618         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40619         (gl_FILE_NAME_CONCAT): Use it.
40620         * MODULES.html.sh (File system functions): Mention new module.
40621
40622         argp: avoid memory leak
40623         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40624         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40625         base_name, since the latter malloc()s and can call exit().
40626         Leak introduced 2006-07-03.
40627
40628         dirname-lgpl: adjust clients that don't need full dirname
40629         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40630         * modules/filenamecat (Depends-on): Likewise.
40631         * modules/linkat (Depends-on): Likewise.
40632         * modules/mkancesdirs (Depends-on): Likewise.
40633         * modules/mkdir (Depends-on): Likewise.
40634         * modules/openat (Depends-on): Likewise.
40635         * modules/savewd (Depends-on): Likewise.
40636         * modules/rename (Depends-on): Likewise.
40637         (License): Relax license.
40638         * modules/mkdir-tests (Depends-on): Drop progname.
40639         (Makefile.am): Delete unneeded LDADD.
40640         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40641
40642         dirname: split into dirname-lgpl
40643         * modules/dirname-lgpl: New module.
40644         * modules/dirname (Files): Move library-safe files into
40645         dirname-lgpl.
40646         (Depends-on): Add dirname-lgpl.
40647         (configure.ac): Declare witness.
40648         * modules/double-slash-root (License): Relax license.
40649         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40650         module.
40651         * lib/dirname.c (dir_len, mdir_name): Move...
40652         * lib/dirname-lgpl.c: ...into new file.
40653         * lib/basename.c (last_component, base_len): Move...
40654         * lib/basename-lgpl.c: ...into new file.
40655         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40656         (gl_DIRNAME): Use it.
40657         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40658         Mention new module.
40659         * modules/dirname-tests (Depends-on): Add progname.
40660         * tests/test-dirname.c (program_name): Delete.
40661
40662         mkdir: make safe for libraries
40663         * modules/mkdir (Depends-on): Drop xalloc.
40664         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40665         exit.
40666
40667         tests: avoid some compiler warnings
40668         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40669         literals.
40670         * tests/test-memchr.c (main): Avoid type mismatch.
40671         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40672         * tests/test-base64.c (main): Likewise.
40673         * tests/test-getdelim.c (main): Likewise.
40674         * tests/test-gethostname.c (main): Likewise.
40675         * tests/test-getline.c (main): Likewise.
40676         * tests/test-netinet_in.c (main): Likewise.
40677         * tests/test-select.c (open_server_socket, main): Likewise.
40678         * tests/test-select-stdin.c (main): Likewise.
40679         * tests/test-sockets.c (main): Likewise.
40680         * tests/test-strsignal.c (main): Likewise.
40681         * tests/test-sys_select.c (main): Likewise.
40682         * tests/test-sys_socket.c (main): Likewise.
40683         * tests/test-u64.c (main): Likewise.
40684         * tests/test-xfprintf-posix.c (main): Likewise.
40685         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40686
40687         sockets: avoid compiler warning
40688         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40689
40690         maint: detect usage(1) and other suspicious exits
40691         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40692
40693 2009-10-29  Jim Meyering  <meyering@redhat.com>
40694
40695         timespec: long-to-int truncation could make timespec_cmp malfunction
40696         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40697         a multiple of 2^32 nanoseconds as no difference.
40698
40699 2009-10-28  Jim Meyering  <meyering@redhat.com>
40700
40701         fprintftime: wrap macro code argument in "do {...} while(0)"
40702         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40703         cpy macro must be a statement that can be followed by a semicolon.
40704         Now that the else clause contains a comment and is hence longer
40705         than one line, I require curly braces.  That in turn requires
40706         that we wrap this code block in the standard do...while(0).
40707
40708         fprintftime: remove stray semicolon from previous change
40709         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40710
40711         fprintftime: avoid a warning about ignored fwrite return value
40712         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40713         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40714         that is unsafe.
40715         * modules/fprintftime (Depends-on): Add ignore-value.
40716
40717         exclude: avoid an unwarranted warning
40718         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40719
40720 2009-10-27  Eric Blake  <ebb9@byu.net>
40721
40722         fseek: avoid compilation failure when fflush is replaced
40723         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40724         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40725         module is in use.
40726         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40727         module is not in use; since REPLACE_FSEEK worked otherwise.
40728         (GNULIB_FTELLO): Likewise for ftell.
40729         Reported by Ian Beckwith and others.
40730
40731 2009-10-27  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40734         Reported by Jim Meyering.
40735
40736 2009-10-27  Jim Meyering  <jim@meyering.net>
40737             Bruno Haible  <bruno@clisp.org>
40738
40739         Avoid warning despite dropping the return value of fwrite.
40740         * lib/unicodeio.c: Include ignore-value.h.
40741         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40742         * modules/unicodeio (Depends-on): Add ignore-value.
40743
40744 2009-10-26  Eric Blake  <ebb9@byu.net>
40745
40746         areadlinkat: fix fallback path
40747         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40748         pointer and zero.
40749
40750 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40751
40752         Use a better IO block size for modern systems
40753         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40754         * lib/md2.c: Likewise.
40755         * lib/md4.c: Likewise.
40756         * lib/md5.c: Likewise.
40757         * lib/sha1.c: Likewise.
40758         * lib/sha256.c: Likewise.
40759         * lib/sha512.c: Likewise.
40760
40761 2009-10-22  Eric Blake  <ebb9@byu.net>
40762
40763         tests: avoid several compiler warnings
40764         * tests/test-getcwd.c (main): Avoid buffer underflow.
40765         * tests/test-getdate.c (main): String literals are not safe with
40766         putenv, so use setenv.  Declare unused argument.
40767         * modules/getdate-tests (Depends-on): Add setenv.
40768         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40769         problems with string literals in char *.
40770         * tests/test-hash.c (main): Avoid shadowing declaration.
40771         (insert_new): Treat string literals as char const *.
40772         * tests/test-getopt.h (test_getopt): Likewise.
40773         (getopt_loop): Alter types to minimize casting elsewhere.
40774         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40775         (test_getopt_long_posix): Likewise.
40776         (do_getopt_long): Add wrapper to minimize casting.
40777         * tests/test-atexit.c (clear_temp_file): Use void.
40778         * tests/test-areadlink-with-size.c (main): Declare unused
40779         arguments.
40780         * tests/test-areadlink.c (main): Likewise.
40781         * tests/test-areadlinkat-with-size.c (main): Likewise.
40782         * tests/test-areadlinkat.c (main): Likewise.
40783         * tests/test-canonicalize-lgpl.c (main): Likewise.
40784         * tests/test-canonicalize.c (main): Likewise.
40785         * tests/test-dirent-safer.c (main): Likewise.
40786         * tests/test-dirname.c (main): Likewise.
40787         * tests/test-dup2.c (main): Likewise.
40788         * tests/test-fchdir.c (main): Likewise.
40789         * tests/test-fcntl-h.c (main): Likewise.
40790         * tests/test-fcntl-safer.c (main): Likewise.
40791         * tests/test-fdopendir.c (main): Likewise.
40792         * tests/test-fdutimensat.c (main): Likewise.
40793         * tests/test-fflush.c (main): Likewise.
40794         * tests/test-filenamecat.c (main): Likewise.
40795         * tests/test-filevercmp.c (main): Likewise.
40796         * tests/test-fopen-safer.c (main): Likewise.
40797         * tests/test-fopen.c (main): Likewise.
40798         * tests/test-fpending.c (main): Likewise.
40799         * tests/test-fpurge.c (main): Likewise.
40800         * tests/test-freading.c (main): Likewise.
40801         * tests/test-fstatat.c (main): Likewise.
40802         * tests/test-fsync.c (main): Likewise.
40803         * tests/test-futimens.c (main): Likewise.
40804         * tests/test-getndelim2.c (main): Likewise.
40805         * tests/test-gettimeofday.c (main): Likewise.
40806         * tests/test-getopt.c (main): Likewise.
40807         * tests/test-i-ring.c (main): Likewise.
40808         * tests/test-inttypes.c (main): Likewise.
40809         * tests/test-link.c (main): Likewise.
40810         * tests/test-lstat.c (main): Likewise.
40811         * tests/test-math.c (main): Likewise.
40812         * tests/test-md5.c (main): Likewise.
40813         * tests/test-memchr2.c (main): Likewise.
40814         * tests/test-memrchr.c (main): Likewise.
40815         * tests/test-mkdir.c (main): Likewise.
40816         * tests/test-mkdirat.c (main): Likewise.
40817         * tests/test-mkfifoat.c (main): Likewise.
40818         * tests/test-open.c (main): Likewise.
40819         * tests/test-openat-safer.c (main): Likewise.
40820         * tests/test-openat.c (main): Likewise.
40821         * tests/test-quotearg.c (main): Likewise.
40822         * tests/test-rawmemchr.c (main): Likewise.
40823         * tests/test-readlink.c (main): Likewise.
40824         * tests/test-remove.c (main): Likewise.
40825         * tests/test-rename.c (main): Likewise.
40826         * tests/test-renameat.c (main): Likewise.
40827         * tests/test-rmdir.c (main): Likewise.
40828         * tests/test-sha1.c (main): Likewise.
40829         * tests/test-signal.c (main): Likewise.
40830         * tests/test-sigaction.c (main): Likewise.
40831         * tests/test-stat.c (main): Likewise.
40832         * tests/test-stat-time.c (main): Likewise.
40833         * tests/test-stddef.c (main): Likewise.
40834         * tests/test-stdint.c (main): Likewise.
40835         * tests/test-stdio.c (main): Likewise.
40836         * tests/test-stdlib.c (main): Likewise.
40837         * tests/test-strchrnul.c (main): Likewise.
40838         * tests/test-strerror.c (main): Likewise.
40839         * tests/test-string.c (main): Likewise.
40840         * tests/test-strtod.c (main): Likewise.
40841         * tests/test-strverscmp.c (main): Likewise.
40842         * tests/test-symlink.c (main): Likewise.
40843         * tests/test-symlinkat.c (main): Likewise.
40844         * tests/test-sys_stat.c (main): Likewise.
40845         * tests/test-sys_time.c (main): Likewise.
40846         * tests/test-time.c (main): Likewise.
40847         * tests/test-unistd.c (main): Likewise.
40848         * tests/test-unlink.c (main): Likewise.
40849         * tests/test-unlinkat.c (main): Likewise.
40850         * tests/test-utimens.c (main): Likewise.
40851         * tests/test-utimensat.c (main): Likewise.
40852         * tests/test-version-etc.c (main): Likewise.
40853         * tests/test-wchar.c (main): Likewise.
40854         * tests/test-wctype.c (main): Likewise.
40855         * tests/test-xprintf-posix.c (main): Likewise.
40856         * tests/test-posixtm.c (main): Likewise.
40857         (STREQ): Delete unused macro.
40858         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40859         shadowed variables.
40860         * tests/test-memchr.c (main): Likewise.
40861
40862 2009-10-21  Eric Blake  <ebb9@byu.net>
40863
40864         areadlinkat: avoid failure on older glibc
40865         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40866         rather than mis-comparing 0 against FUNC_RESULT of char*.
40867
40868 2009-10-21  Bruno Haible  <bruno@clisp.org>
40869
40870         * modules/stpncpy (License): Relicense under LGPLv2+.
40871         Reported by David Lutterkort <lutter@redhat.com>.
40872
40873 2009-10-20  Eric Blake  <ebb9@byu.net>
40874
40875         utimensat: work around Solaris 9 bug
40876         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40877         has trailing slash bugs.
40878         * tests/test-lutimens.h (test_lutimens): Enhance test.
40879         * tests/test-utimens.h (test_utimens): Likewise.
40880         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40881         * doc/posix-functions/utimes.texi (utimes): Likewise.
40882         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40883         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40884         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40885         * doc/posix-functions/futimens.texi (futimens): Likewise.
40886
40887         fdutimensat: new module
40888         * modules/fdutimensat: New file.
40889         * lib/fdutimensat.c (fdutimensat): Likewise.
40890         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40891         * MODULES.html.sh (File system functions): Mention module.
40892         * modules/fdutimensat-tests: New test.
40893         * tests/test-fdutimensat.c: Likewise.
40894
40895         doc: regenerate INSTALL
40896         * doc/INSTALL: Reflect recent autoconf update.
40897         * doc/INSTALL.ISO: Likewise.
40898         * doc/INSTALL.UTF-8: Likewise.
40899
40900 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40901
40902         acl: warn if ACL support is not detected
40903         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40904
40905 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40906
40907         * lib/nproc.h: Add extern "C" block for C++.
40908
40909 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40910             Bruno Haible  <bruno@clisp.org>
40911
40912         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40913         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40914         * doc/posix-functions/isalpha.texi: Likewise.
40915         * doc/posix-functions/isblank.texi: Likewise.
40916         * doc/posix-functions/iscntrl.texi: Likewise.
40917         * doc/posix-functions/isdigit.texi: Likewise.
40918         * doc/posix-functions/isgraph.texi: Likewise.
40919         * doc/posix-functions/islower.texi: Likewise.
40920         * doc/posix-functions/isprint.texi: Likewise.
40921         * doc/posix-functions/ispunct.texi: Likewise.
40922         * doc/posix-functions/isspace.texi: Likewise.
40923         * doc/posix-functions/isupper.texi: Likewise.
40924         * doc/posix-functions/isxdigit.texi: Likewise.
40925
40926 2009-10-18  Bruno Haible  <bruno@clisp.org>
40927
40928         Tests for module 'isblank'.
40929         * modules/isblank-tests: New file.
40930         * tests/test-isblank.c: New file.
40931
40932         New module 'isblank'.
40933         * lib/isblank.c: New file.
40934         * m4/isblank.m4: New file.
40935         * modules/isblank: New file.
40936         * doc/posix-functions/isblank.texi: Mention the new module.
40937
40938 2009-10-18  Bruno Haible  <bruno@clisp.org>
40939
40940         New module 'ctype'.
40941         * lib/ctype.in.h: New file.
40942         * m4/ctype.m4: New file.
40943         * modules/ctype: New file.
40944         * doc/posix-headers/ctype.texi: Mention the new module.
40945
40946 2009-10-18  Jim Meyering  <meyering@redhat.com>
40947
40948         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40949         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40950         right after its initialization, rather than farther down.
40951         Keeping these in close proximity makes it easier to ensure
40952         that each such variable is initialized.  E.g.,
40953
40954             LIB_CLOCK_GETTIME=
40955             AC_SUBST([LIB_CLOCK_GETTIME])
40956
40957         This change also increments these serial numbers.
40958         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40961
40962 2009-10-18  Bruno Haible  <bruno@clisp.org>
40963
40964         Don't let environment variables perturb build.
40965         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40966         (gl_PREREQ_GETHRXTIME): ... not here.
40967
40968 2009-10-18  Bruno Haible  <bruno@clisp.org>
40969
40970         Avoid symlink attack in localcharset module.
40971         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40972         (O_NOFOLLOW): Define fallback.
40973         (get_charset_aliases): Don't open the file if it is a symbolic link.
40974         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40975         gl_FCNTL_H.
40976         (gl_FCNTL_H): Require it.
40977         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40978         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40979         Reported by Fergal Glynn <fglynn@veracode.com>.
40980
40981 2009-10-18  Bruno Haible  <bruno@clisp.org>
40982
40983         Implement nproc for mingw.
40984         * lib/nproc.c: Include <windows.h>
40985         (num_processors): On native Windows platforms, try GetSystemInfo.
40986
40987 2009-10-18  Bruno Haible  <bruno@clisp.org>
40988
40989         Implement nproc for IRIX.
40990         * lib/nproc.c: Include <sys/sysmp.h>.
40991         (num_processors): On IRIX systems, try sysmp.
40992         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40993
40994 2009-10-18  Bruno Haible  <bruno@clisp.org>
40995
40996         Implement nproc for HP-UX.
40997         * lib/nproc.c: Include <sys/pstat.h>
40998         (num_processors): On HP-UX systems, try pstat_getdynamic.
40999         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41000         pstat_getdynamic.
41001
41002 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41003             Bruno Haible  <bruno@clisp.org>
41004
41005         Implement nproc for NetBSD, OpenBSD.
41006         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41007         (ARRAY_SIZE): New macro.
41008         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41009         * m4/nproc.m4: New file.
41010         * modules/nproc (Files): Add m4/nproc.m4.
41011         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41012         (Makefile.am): Instead, augment lib_SOURCES.
41013
41014 2009-10-18  Bruno Haible  <bruno@clisp.org>
41015
41016         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41017         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41018         sys/param.h.
41019
41020 2009-10-16  Eric Blake  <ebb9@byu.net>
41021
41022         utimensat: new module
41023         * modules/utimensat: New file.
41024         * lib/utimensat.c (utimensat): Likewise.
41025         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41026         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41027         so we can work around Linux bugs.
41028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41029         * modules/sys_stat (Makefile.am): Substitute them.
41030         * lib/sys_stat.in.h (utimensat): Declare it.
41031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41032         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41033         * modules/utimensat-tests: New test.
41034         * tests/test-utimensat.c: Likewise.
41035
41036         utimens: let lutimens work on non-symlinks
41037         * lib/utimens.c (lutimens): Fall back to utimens rather than
41038         failing with ENOSYS, when file is not a symlink.
41039         (utimens): Reduce redirection.
41040         * tests/test-lutimens.h (test_lutimens): Update test to cover
41041         non-symlinks.
41042         * tests/test-utimens.h (test_utimens): Update test to cover
41043         symlinks.
41044         * tests/test-utimens.c (main): Update caller.
41045
41046         utimens: cache whether utimensat syscall works
41047         * lib/utimens.c (utimensat_works_really): New cache variable.
41048         (fdutimens, lutimens): Use it to avoid failing syscall.
41049
41050         test-stat-time, test-utimens: improve portability
41051         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41052         ext4 on alpha, and for cygwin.
41053         * tests/test-utimens-common.h: New file.
41054         (nap): Factor delays into single function.
41055         * tests/test-lutimens.h (test_lutimens): Use new header.
41056         * tests/test-futimens.h (test_futimens): Likewise.
41057         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41058         timestamps to occur from same machine, as was done previously for
41059         test_utimens.
41060         * modules/utimens-tests (Files): Ship new file.
41061         * modules/futimens-tests (Files): Likewise.
41062         Reported in part by Jim Meyering.
41063
41064         sys_stat: sort replacement declarations
41065         * lib/sys_stat.in.h: Sort declarations.
41066         * lib/futimens.c (futimens): Fix typo.
41067
41068 2009-10-15  Jim Meyering  <meyering@redhat.com>
41069
41070         don't let environment settings perturb build
41071         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41072         could cause a configure-time and/or build-time malfunction.
41073         Typically, a configure-time function-in-library test is performed
41074         via code like this:
41075
41076           LIB_VAR=
41077           AC_SUBST([LIB_VAR])
41078           prefix_saved_LIBS=$LIBS
41079             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41080                        [test "$ac_cv_search_FUNC" = "none required" ||
41081                         LIB_VAR=$ac_cv_search_FUNC])
41082           LIBS=$prefix_saved_LIBS
41083
41084         However, in each of the files affected by this change, the LIB_VAR=
41085         initialization was omitted.  Thus, when set in the environment, its
41086         value would propagate into generated Makefiles when FUNC is not found
41087         in LIB_NAME.
41088         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41089         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41091
41092 2009-10-14  Eric Blake  <ebb9@byu.net>
41093
41094         fchdir: avoid infinite recursion in mingw
41095         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41096         recursing.
41097
41098         test-stat-time: port to mingw
41099         * tests/test-stat-time.c (force_unlink): Return a value.
41100         (test_ctime) [W32]: Fix compilation error.
41101         (nap): Don't call usleep with too large an argument.  Use
41102         force_unlink.
41103         * doc/pastposix-functions/usleep.texi (usleep): Document the
41104         portability issue.
41105
41106 2009-10-13  Jim Meyering  <meyering@redhat.com>
41107
41108         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41109         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41110         * modules/pipe-filter-ii: Likewise.
41111         * modules/sys_socket-tests: Likewise.
41112         * modules/tsearch-tests: Likewise.
41113         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41114         (check): Depend on it.
41115
41116 2009-10-12  Eric Blake  <ebb9@byu.net>
41117
41118         utimens-tests: port to NFS file systems
41119         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41120         comparisons to avoid spurious failures from timestamp drift
41121         between NFS machines.
41122
41123 2009-10-12  Eric Blake  <ebb9@byu.net>
41124
41125         stat-time-tests: minor cleanups
41126         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41127         * tests/test-stat-time.c (nap): Separate assignment from call.
41128         Suggested by Paolo Bonzini and Bruno Haible.
41129
41130         sys_stat: guarantee struct timespec
41131         * lib/sys_stat.in.h (includes): Always include <time.h>
41132         * modules/sys_stat (Depends-on): Add time.
41133         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41134         mode_t permission values.
41135         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41136         get at subsecond timestamps.
41137
41138 2009-10-10  Eric Blake  <ebb9@byu.net>
41139
41140         futimens: new module
41141         * modules/futimens: New file.
41142         * lib/futimens.c (futimens): Likewise.
41143         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41144         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41145         we can work around Linux bugs.
41146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41147         * modules/sys_stat (Makefile.am): Substitute them.
41148         * lib/sys_stat.in.h (futimens): Declare it.
41149         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41150         * doc/posix-functions/futimens.texi (futimens): Likewise.
41151         * modules/futimens-tests: New test.
41152         * tests/test-futimens.c: Likewise.
41153
41154         utimens: introduce fdutimens
41155         * lib/utimens.h (fdutimens): New prototype.
41156         * lib/utimens.c (gl_futimens): Move guts...
41157         (fdutimens): ...to new interface.
41158         * tests/test-utimens.c (do_fdutimens): Use it.
41159
41160         utimens: add UTIME_NOW and UTIME_OMIT support
41161         * lib/utimens.c (validate_timespec, update_timespec): New helper
41162         functions.
41163         (gl_futimens, lutimens): Use them.
41164         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41165         stdbool, sys_stat.
41166         (Link): Mention resulting library dependency.
41167         * modules/utimecmp (Link): Likewise.
41168         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41169         (Makefile.am): Pick up library dependency.
41170         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41171         definition.
41172         * tests/test-sys_stat.c: Test the definitions.
41173         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41174         * NEWS: Document library dependency.
41175
41176         utimecmp: support symlink timestamps
41177         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41178         hashing when possible.  Use pathconf when available.
41179         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41180         * modules/utimecmp (Depends-on): Add lstat.
41181
41182         utimens: add lutimens interface
41183         * lib/utimens.c (lutimens): New function.
41184         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41185         * lib/utimens.h (lutimens): Declare new interface.
41186         * tests/test-utimens.c (main): Enhance test.
41187         * tests/test-lutimens.h (test_lutimens): New file.
41188         * modules/utimens-tests (Files): Distribute it.
41189         (Depends-on): Add symlink.
41190         (configure.ac): Check for usleep.
41191
41192         utimens: validate futimens usage
41193         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41194         fewer syscalls on failure later on.  Avoid compiler warning on
41195         mingw.
41196         * modules/utimens (Depends-on): Add dup2.
41197
41198         utimens: add test
41199         * modules/utimens-tests: New test.
41200         * tests/test-utimens.h: New file.
41201         * tests/test-futimens.h: Likewise.
41202         * tests/test-utimens.c: Likewise.
41203
41204         doc: mention timestamp portability issues
41205         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41206         instead.
41207         * doc/posix-functions/utime.texi (utime): Likewise.
41208         * doc/posix-functions/utimes.texi (utimes): Likewise.
41209         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41210         instead.
41211         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41212         module.
41213         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41214         Mention weakness with symlink timestamps.
41215         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41216         to utimensat/futimens instead.
41217         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41218
41219         test-dup2: enhance test
41220         * tests/test-dup2.c (main): Also check AT_FDCWD.
41221
41222         test-stat-time: avoid more spurious failures
41223         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41224         xfs; and avoid race if the two timestamps cross quantization edge.
41225
41226         relocatable: prefer 'file system' over 'filesystem'
41227         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41228         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41229         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41230         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41231         * lib/relocatable.c (compute_curr_prefix): Likewise.
41232
41233 2009-10-10  Jim Meyering  <meyering@redhat.com>
41234
41235         stat-time-tests: check for the usleep function
41236         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41237
41238 2009-10-10  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/xnanosleep: Put the Link section after the Include section.
41241
41242 2009-10-09  Eric Blake  <ebb9@byu.net>
41243
41244         dup2: work around FreeBSD 6.1 bug
41245         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41246         * doc/posix-functions/dup2.texi (dup2): Document it.
41247         Reported by Nelson H. F. Beebe and Jim Meyering.
41248
41249         test-stat-time: port to buggy NFS clients
41250         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41251         (test_ctime): Also skip test if mtime and ctime are skewed.
41252
41253         maint: prefer 'file system' over 'filesystem'
41254         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41255         * doc/posix-functions/lstat.texi (lstat): Likewise.
41256         * lib/file-has-acl.c (file_has_acl): Likewise.
41257         * lib/fwriteerror.c [TEST]: Likewise.
41258         * tests/test-areadlink.h (test_areadlink): Likewise.
41259         * tests/test-areadlinkat-with-size.c (main): Likewise.
41260         * tests/test-areadlinkat.c (main): Likewise.
41261         * tests/test-canonicalize-lgpl.c (main): Likewise.
41262         * tests/test-canonicalize.c (main): Likewise.
41263         * tests/test-fstatat.c (main): Likewise.
41264         * tests/test-linkat.c (main): Likewise.
41265         * tests/test-lstat.h (test_lstat_func): Likewise.
41266         * tests/test-mkdir.h (test_mkdir): Likewise.
41267         * tests/test-readlink.h (test_readlink): Likewise.
41268         * tests/test-remove.c (main): Likewise.
41269         * tests/test-rename.h (test_rename): Likewise.
41270         * tests/test-renameat.c (main): Likewise.
41271         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41272         * tests/test-symlink.h (test_symlink): Likewise.
41273         * tests/test-symlinkat.c (main): Likewise.
41274         * tests/test-unlink.h (test_unlink_func): Likewise.
41275         * tests/test-unlinkat.c (main): Likewise.
41276
41277         maint: make realtime library usage explicit
41278         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41279         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41280         * modules/settime (Link): Likewise.
41281         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41282
41283         test-stat-time: speed up execution
41284         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41285         warning on mingw.
41286         (nap): New helper function.
41287         (prepare_test): Use it to reduce sleep time.
41288         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41289         execution.
41290         * modules/stat-time-tests (configure.ac): Check for usleep.
41291
41292 2009-10-09  Jim Meyering  <meyering@redhat.com>
41293
41294         selinux-h: always use getfilecon wrappers
41295         * lib/getfilecon.c: New file.
41296         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41297         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41298         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41299         (fgetfilecon): Provide a stub.
41300         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41301         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41302         file unconditionally.
41303         When <selinux/selinux.h> is found, arrange to use wrappers.
41304         * modules/selinux-h (Files): Add getfilecon.c.
41305         (Makefile.am): Substitute include-next-related bits
41306         into the now-always-generated selinux/selinux.h file.
41307         * doc/glibc-functions/lgetfilecon.texi: New file.
41308         * doc/glibc-functions/fgetfilecon.texi: New file.
41309         * doc/glibc-functions/getfilecon.texi: New file.
41310         * doc/glibc-functions/getfilecon-desc.texi: New file.
41311         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41312         which to pull in the new files.
41313         * MODULES.html.sh (Misc): Add selinux-h.
41314
41315 2009-10-08  Jim Meyering  <meyering@redhat.com>
41316
41317         unistd: fix comment typo
41318         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41319
41320 2009-10-08  Eric Blake  <ebb9@byu.net>
41321
41322         areadlink: use SIZE_MAX consistently
41323         * modules/areadlink (Depends-on): Add stdint.
41324         * modules/areadlink-with-size (Depends-on): Likewise.
41325         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41326         gives NULL; drop sys/types, since unistd gives size_t; and add
41327         stdint for SIZE_MAX.
41328         (SIZE_MAX): Rely on headers.
41329         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41330         and add stdint.
41331         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41332         (SIZE_MAX): Likewise.
41333         (INITIAL_BUF_SIZE): Turn into enum.
41334         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41335
41336 2009-10-08  Jim Meyering  <meyering@redhat.com>
41337
41338         areadlinkat: avoid compilation failure
41339         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41340         Fix typo in comment.
41341
41342 2009-10-07  Eric Blake  <ebb9@byu.net>
41343
41344         areadlinkat-with-size: new module
41345         * modules/areadlinkat-with-size: New module.
41346         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41347         * lib/areadlink.h (areadlinkat): Declare it.
41348         * MODULES.html.sh (File system functions): Mention it.
41349         * modules/areadlinkat-with-size-tests: New test.
41350         * tests/test-areadlinkat-with-size.c: New file.
41351
41352         xreadlinkat: new module
41353         * modules/xreadlinkat: New module.
41354         * lib/xreadlinkat.c (xreadlinkat): New file.
41355         * lib/xreadlink.h (xreadlinkat): Declare it.
41356         * MODULES.html.sh (File system functions): Mention it.
41357
41358         areadlinkat: new module
41359         * lib/at-func.c (FUNC_FAIL): New define.
41360         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41361         * modules/areadlinkat: New module.
41362         * lib/linkat.c (areadlinkat): Move...
41363         * lib/areadlinkat.c (areadlinkat): ...to new file.
41364         * lib/areadlink.h (areadlinkat): Declare it.
41365         * modules/linkat (Depends-on): Add areadlinkat.
41366         * MODULES.html.sh (File system functions): Mention it.
41367         * modules/areadlinkat-tests: New test.
41368         * tests/test-areadlinkat.c: New file.
41369
41370         areadlink, areadlink-with-size: add tests
41371         * modules/areadlink-tests: New test.
41372         * modules/areadlink-with-size-tests: Likewise.
41373         * tests/test-areadlink.h: New file.
41374         * tests/test-areadlink.c: Likewise.
41375         * tests/test-areadlink-with-size.c: Likewise.
41376
41377         maint: minor cleanups
41378         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41379         _UNUSED_PARAMETER_ instead.
41380         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41381         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41382         * modules/linkat-tests (Files): Distribute test-link.h.
41383
41384         openat, utimens: whitespace cleanup
41385         * lib/openat.c: Prefer space throughout, rather than mix of 8
41386         spaces vs. tabs.
41387         * lib/at-func.c: Likewise.
41388         * lib/utimens.c: Likewise.
41389
41390         openat: avoid using wrong fd
41391         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41392         working directory chooses same fd.
41393         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41394
41395         mkdir, mkdirat: fix cygwin 1.5.x bug
41396         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41397         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41398         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41399         bug.
41400         (gl_PREREQ_MKDIR): Delete unused macro.
41401         * modules/mkdir (Files): Track file rename.
41402         (configure.ac): Update macro name.
41403         * modules/openat (Depends-on): Add mkdir.
41404         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41405
41406         mkdir, mkdirat: add tests
41407         * modules/mkdir-tests: New test.
41408         * tests/test-mkdir.h: New file.
41409         * tests/test-mkdir.c: Likewise.
41410         * tests/test-mkdirat.c: Likewise.
41411         * modules/openat-tests (Files): Add new files.
41412         (Makefile.am): Run new test.
41413
41414 2009-10-06  Eric Blake  <ebb9@byu.net>
41415
41416         doc: tweak *at function documentation
41417         * doc/posix-functions/faccessat.texi (faccessat): Mention
41418         known issue with replacement.
41419         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41420         * doc/posix-functions/linkat.texi (linkat): Likewise.
41421         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41422         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41423         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41424         * doc/posix-functions/renameat.texi (renameat): Likewise.
41425         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41426
41427         openat: fix GNU/Hurd bug in unlinkat
41428         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41429         broken.
41430         * doc/posix-functions/unlink.texi (unlink): Document this.
41431         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41432
41433         fdopendir: fix GNU/Hurd bug
41434         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41435         allowing non-directory fds.
41436         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41437         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41438         * modules/dirent (Makefile.am): Substitute it.
41439         * lib/dirent.in.h (fdopendir): Declare replacement.
41440         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41441         * tests/test-fdopendir.c (main): Test something other than
41442         /dev/null, since on Hurd that behaves like a directory.
41443
41444         test-symlink: port to GNU/Hurd
41445         * tests/test-symlink.h (test_symlink): Relax expected errno.
41446
41447         doc: tweak more cygwin information
41448         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41449         now compatible with glibc.
41450         * doc/posix-functions/getopt.texi (getopt): Likewise.
41451
41452         getopt-gnu: add another test
41453         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41454         guarantee behavior relied on by m4.
41455         * tests/test-getopt.c (main): Use it.
41456         * modules/getopt-posix-tests (Depends-on): Add setenv.
41457         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41458
41459         getopt: fix compilation on darwin
41460         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41461         include.
41462         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41463         Reported by Ludovic Courtès.
41464
41465 2009-10-06  Bruno Haible  <bruno@clisp.org>
41466
41467         * modules/size_max (Description): Discourage its use.
41468         Reported by Simon Josefsson.
41469
41470 2009-10-06  Jim Meyering  <meyering@redhat.com>
41471
41472         linkat: avoid compilation failure
41473         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41474
41475 2009-10-05  Eric Blake  <ebb9@byu.net>
41476
41477         linkat: support Linux 2.6.17
41478         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41479         linkat on Linux, but allow cache variable override.
41480         * lib/linkat.c (rpl_linkat): Define override.
41481         * modules/linkat (Depends-on): Add symlinkat.
41482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41483         * modules/unistd (Makefile.am): Substitute it.
41484         * lib/unistd.in.h (linkat): Declare replacement.
41485         Reported by Pádraig Brady.
41486
41487         quotearg: port test to systems with C.UTF-8 locale
41488         * tests/test-quotearg.c (struct result_strings): Add another
41489         member, differentiating between C.ASCII and C.UTF-8 handling.
41490         (compare_strings): Add parameter.
41491         (main): Adjust all callers.
41492
41493         getopt: avoid clash with FreeBSD _getopt_internal
41494         * lib/getopt.in.h (_getopt_internal): Override the name.
41495         * lib/getopt_int.h (includes): Pick up any overrides.
41496         Reported by Reuben Thomas.
41497
41498         hash: allow C89 compilation
41499         * lib/hash.c (check_tuning): Move declaration before statement.
41500         Reported by Reuben Thomas.
41501
41502 2009-10-05  Karl Berry  <karl@gnu.org>
41503
41504         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41505
41506 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41507             Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/uname.c (uname): Use a table-driven algorithm to compute
41510         Windows NT versions.
41511
41512 2009-10-04  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41515         program_invocation_short_name.
41516         * modules/progname (configure.ac): Test for presence of
41517         program_invocation_short_name.
41518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41519
41520 2009-10-04  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/progname.c (set_program_name): Fix comment.
41523         Reported by Jim Meyering.
41524
41525 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41526             Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/uname.c: Include <string.h>.
41529         (uname): Do only one call to GetVersionEx in the common case.
41530
41531 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41532             Bruno Haible  <bruno@clisp.org>
41533
41534         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41535         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41536         (uname): Add support for Windows CE and various non-x86 CPU types.
41537
41538 2009-10-03  Bruno Haible  <bruno@clisp.org>
41539
41540         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41541         invocation to tests/configure.ac.
41542         Reported by Ian Beckwith <ianb@erislabs.net>.
41543
41544 2009-10-02  Eric Blake  <ebb9@byu.net>
41545
41546         fchdir: avoid compiler warning
41547         * lib/fchdir.c (canonicalize_file_name)
41548         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41549
41550         test-open: support mingw errno values
41551         * tests/test-open.h (test_open): Relax test.
41552         * tests/test-fopen.h (test_fopen): Likewise.
41553         * tests/test-openat-safer.c (main): Likewise.
41554
41555         open: fix opening directory on mingw
41556         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41557
41558         test-open: on GNU/Hurd, /dev/null is a directory
41559         * tests/test-fopen.h (main): Rename...
41560         (test_fopen): ...to this.  Use a guaranteed non-directory when
41561         confirming open behavior on trailing slash.
41562         * tests/test-openat-safer.c (main): Likewise.
41563         * tests/test-open.h (main): Likewise....
41564         (test_open): ...to this.
41565         * tests/test-fopen.c (main): Adjust caller.
41566         * tests/test-fopen-safer.c (main): Likewise.
41567         * tests/test-open.c (main): Likewise.
41568         * tests/test-fcntl-safer.c (main): Likewise.
41569         Reported by Samuel Thibault.
41570
41571         rename, fchdir: don't ignore chdir failure
41572         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41573         * lib/rename.c (rpl_rename) [W32]: Likewise.
41574         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41575         an empty destination directory if source cannot be renamed,
41576         although there is still possibility for failure.
41577         * doc/posix-functions/rename.texi (rename): Document the race.
41578         Reported by Jim Meyering.
41579
41580         maint: cleanup whitespace in recent commits
41581         * lib/rename.c (rpl_rename): Remove tabs.
41582         * tests/test-link.h (test_link): Likewise.
41583         * lib/fchdir.c (get_name): Likewise.
41584         Reported by Jim Meyering.
41585
41586 2009-10-02  Ben Pfaff  <blp@gnu.org>
41587
41588         relocatable-prog-wrapper: Add missing dependency on
41589         double-slash-root.
41590         * modules/relocatable-prog-wrapper: Add dependency.
41591         Reported by Ian Beckwith <ianb@erislabs.net>.
41592
41593 2009-10-02  Eric Blake  <ebb9@byu.net>
41594
41595         renameat: fix Solaris bugs
41596         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41597         needed fixing.
41598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41599         * modules/stdio (Makefile.am): Substitute it.
41600         * lib/stdio.in.h (renameat): Declare replacement.
41601         * lib/renameat.c (rpl_renameat): Implement fix.
41602
41603         renameat: new module
41604         * modules/renameat: New file.
41605         * lib/renameat.c (renameat): Likewise.
41606         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41608         * modules/stdio (Makefile.am): Substitute them.
41609         * lib/stdio.in.h (renameat): Declare it.
41610         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41611         * doc/posix-functions/renameat.texi (renameat): Likewise.
41612         * modules/renameat-tests: New test.
41613         * tests/test-renameat.c: Likewise.
41614
41615         rename: fix mingw bugs
41616         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41617         directory overwrite bugs.
41618
41619         rename: fix another cygwin 1.5 bug
41620         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41621         checks.
41622         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41623         unnecessary cygwin workarounds.  Also work around bug with moving
41624         full directory onto an empty one.
41625         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41626
41627         rename-dest-slash: merge into rename module
41628         * modules/rename-dest-slash (Status): Mark obsolete.
41629         (Depends-on): Add rename.
41630         (Files): Let rename do it all.
41631         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41632         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41633         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41634         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41635         * lib/rename.c (rpl_rename): Update comments.
41636
41637         rename: fix cygwin 1.5.x bugs
41638         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41639         * lib/rename.c (rpl_rename): Work around them.
41640         * modules/rename (Depends-on): Add same-inode.
41641
41642         rename: fix Solaris 10 bug
41643         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41644         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41645         was the only bug.
41646
41647         rename: fix Solaris 9 bug
41648         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41649         on non-directory.  Avoid calling exit.
41650         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41651         strdup.
41652         * modules/rename-tests (Depends-on): Drop lstat.
41653         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41654         (gl_PREREQ_RENAME): Delete unused macro.
41655
41656         rename-dest-slash: fix NetBSD bug
41657         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41658         links.
41659         * modules/rename-dest-slash (Depends-on): Add same-inode.
41660
41661         rename-tests: new test, exposes several platform bugs
41662         * modules/rename-tests: New file.
41663         * tests/test-rename.h: Likewise.
41664         * tests/test-rename.c: Likewise.
41665         * doc/posix-functions/rename.texi (rename): Improve documentation,
41666         including bugs that will eventually be fixed in gnulib.
41667
41668 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41669
41670         * lib/uname.c: Include <stdlib.h>
41671         (uname): Assume version info is available.
41672
41673 2009-10-02  Jim Meyering  <meyering@redhat.com>
41674
41675         gnu-web-doc-update: correct --help output
41676         * build-aux/gnu-web-doc-update: Make --help output relevant.
41677
41678         gnu-web-doc-update: add standard options
41679         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41680
41681         gnu-web-doc-update: New module.
41682         Use this script to automatically update the on-line web documentation
41683         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41684         * modules/gnu-web-doc-update: New file, from coreutils.
41685         * build-aux/gnu-web-doc-update: New script.
41686
41687 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41688
41689         link: LoadLibrary is not needed.
41690         * lib/link.c: Use GetModuleHandle.
41691
41692 2009-10-01  Eric Blake  <ebb9@byu.net>
41693
41694         getopt: bump serial number
41695         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41696         change.
41697
41698         tests: tighten link, rmdir, and remove tests
41699         * tests/test-link.h (includes): No need to use <config.h> here.
41700         Clean up if directory hard link was created, otherwise test for
41701         trailing '.'.
41702         * tests/test-linkat.c (main): Simplify.
41703         * tests/test-remove.c (main): Enhance test for trailing '.'.
41704         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41705
41706 2009-10-01  Jim Meyering  <meyering@redhat.com>
41707
41708         maint.mk: requiring "make major" was annoying, for a "minor" release.
41709         What is intended is "stable", to contrast with alpha and beta,
41710         so require "make stable", not "make major".
41711         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41712         (get_tool_versions): Likewise.
41713         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41714
41715 2009-09-30  Ben Pfaff  <blp@gnu.org>
41716
41717         Fix broken build of replacement for Windows tmpfile().
41718         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41719         flags argument added along with the 'mkostemp' module.
41720
41721 2009-09-28  Bruno Haible  <bruno@clisp.org>
41722
41723         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41724         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41725         to 'remove_elt'.
41726         (gl_list_remove): Update.
41727         * lib/gl_list.c (gl_list_remove): Update.
41728         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41729         to 'remove_elt'.
41730         (gl_oset_remove): Update.
41731         * lib/gl_list.c (gl_oset_remove): Update.
41732         Reported by Eric Blake.
41733
41734 2009-09-28  Eric Blake  <ebb9@byu.net>
41735
41736         doc: mention yet more cygwin 1.7 status
41737         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41738         cygwin.
41739         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41740         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41741
41742         argp: fix test failure
41743         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41744         that are not upper-case.  Pass correct range to tolower.
41745
41746 2009-09-27  Jim Meyering  <meyering@redhat.com>
41747
41748         test-yesno: work around sparc-dash here-document infelicity
41749         Without this change, the literal \177 byte in a here document
41750         would make dash 0.5.5.1-3 access uninitialized memory.
41751         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41752         Instead, use a marker, "@", and filter through tr to create the desired
41753         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41754
41755 2009-09-27  Bruno Haible  <bruno@clisp.org>
41756
41757         Disable untested support for new flavours of ACLs on AIX.
41758         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41759         progress.
41760         * lib/set-mode-acl.c (qset_acl): Likewise.
41761
41762 2008-12-07  Bruno Haible  <bruno@clisp.org>
41763
41764         Add support for new flavours of ACLs on AIX. (Untested.)
41765         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41766         (file_has_acl): Add support for newer AIX.
41767         * lib/set-mode-acl.c (qset_acl): Likewise.
41768         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41769         Rainer Tammer <tammer@tammer.net>.
41770
41771 2009-09-26  Eric Blake  <ebb9@byu.net>
41772
41773         argp: fix compilation of getopt
41774         * lib/getopt.in.h (includes): Use different guard than glibc.
41775         Reported by Sergey Poznyakoff.
41776
41777         doc: mention more cygwin 1.7 status
41778         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41779         bug.
41780         * doc/posix-functions/execl.texi (execl): Likewise.
41781         * doc/posix-functions/execle.texi (execle): Likewise.
41782         * doc/posix-functions/execlp.texi (execlp): Likewise.
41783         * doc/posix-functions/execv.texi (execv): Likewise.
41784         * doc/posix-functions/execve.texi (execve): Likewise.
41785         * doc/posix-functions/execvp.texi (execvp): Likewise.
41786         * doc/glibc-functions/canonicalize_file_name.texi
41787         (canonicalize_file_name): Cygwin 1.7 now provides this.
41788         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41789         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41790         on AT_SYMLINK_NOFOLLOW.
41791
41792 2009-09-24  Eric Blake  <ebb9@byu.net>
41793
41794         test-linkat: make test more robust
41795         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41796
41797         getopt: fix inclusion guards for cygwin
41798         * modules/getopt-posix (Depends-on): Add include-next.
41799         (Makefile.am): Substitute more items in replacement header.
41800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41801         <getopt.h>.
41802         * lib/getopt.in.h (includes): Use split inclusion guard, and
41803         prefer <getopt.h> over include <unistd.h> when one is present.
41804         (option): Also override name of 'struct option'.
41805
41806         same-inode: revert prior change; it is not yet ready
41807         * NEWS: Undo mention of this change.
41808         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41809         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41810         * lib/cycle-check.c (cycle_check): Likewise.
41811         * lib/same.c (same_name): Likewise.
41812         * lib/at-func2.c (at_func2): Likewise.
41813
41814 2009-09-23  Eric Blake  <ebb9@byu.net>
41815
41816         linkat: new module
41817         * modules/linkat: New file.
41818         * lib/at-func2.c (at_func2): Likewise.
41819         * lib/linkat.c (linkat): Likewise.
41820         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41821         * lib/openat-priv.h (at_func2): Add declaration.
41822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41823         * modules/unistd (Makefile.am): Substitute them.
41824         * lib/unistd.in.h (linkat): Declare it.
41825         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41826         * doc/posix-functions/linkat.texi (linkat): Likewise.
41827         * doc/posix-functions/link.texi (link): Tweak wording.
41828         * tests/test-link.c (main): Move guts...
41829         * tests/test-link.h (test_link): ...into new file.
41830         * modules/linkat-tests: New test.
41831         * tests/test-linkat.c: Likewise.
41832         * modules/link-tests (Files): Ship new file.
41833         (Depends-on): Add stdbool.
41834
41835         dirname: add library-safe mdir_name
41836         * lib/dirname.h (mdir_name): New prototype.
41837         * lib/dirname.c (dir_name): Move guts...
41838         (mdir_name): ...to new function that avoids xalloc_die.
41839
41840         fchdir: another mingw fix
41841         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41842         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41843         on mingw (where it has not yet been ported), and make it optional
41844         elsewhere.
41845         (_gl_register_fd): Use it.
41846
41847         same-inode: make SAME_INODE tri-state, to port to mingw
41848         * NEWS: Mention this change.
41849         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41850         st_ino always being 0.
41851         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41852         * lib/cycle-check.c (cycle_check): Likewise.
41853         * lib/same.c (same_name): Likewise.
41854
41855         lstat: avoid mingw compilation error
41856         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41857         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41858         lstat ourselves.
41859         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41860         was adequate.
41861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41862         the checks for lstat.
41863         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41864
41865         link: fix test failure on Solaris 9
41866         * lib/link.c (rpl_link): Don't assume link will catch bogus
41867         trailing slash on source.
41868
41869         test-symlinkat: enhance test
41870         * tests/test-readlink.c (main): Move guts...
41871         * tests/test-readlink.h (test_readlink): ...into new file.
41872         * tests/test-symlink.c (main): Move guts...
41873         * tests/test-symlink.h (test_symlink): ...into new file.
41874         * tests/test-symlinkat.c (main): Use new files for further
41875         coverage.
41876         (do_symlink, do_readlink): New helper functions.
41877         * modules/symlink-tests (Files): Ship new file.
41878         (Depends-on): Add stdbool.
41879         * modules/readlink-tests (Files): Ship new file.
41880         (Depends-on): Add stdbool.
41881         * modules/symlinkat-tests (Files): Use new files.
41882
41883 2009-09-23  Eric Blake  <ebb9@byu.net>
41884
41885         readlink: document portability issue with symlink length
41886         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41887         systems have bogus st_size on symlinks, and mention the
41888         areadlink-with-size module.
41889         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41890         * doc/posix-functions/readlink.texi (readlink): Mention the
41891         areadlink module, and ERANGE failure.
41892         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41893         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41894
41895         readlink: fix Solaris 9 bug with trailing slash
41896         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41897         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41898         * doc/posix-functions/readlink.texi (readlink): Document this.
41899         * modules/readlink-tests: New test.
41900         * tests/test-readlink.c: Likewise.
41901
41902         readlink: fix cygwin 1.5.x bug with return type
41903         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41904         * lib/unistd.in.h (readlink): Use ssize_t.
41905         * lib/readlink.c (readlink): Likewise.
41906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41907         * modules/unistd (Makefile.am): Substitute it.
41908         * lib/unistd.in.h (readlink): Declare replacement.
41909         * doc/posix-functions/readlink.texi (readlink): Document this.
41910
41911         symlink: use throughout gnulib
41912         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41913         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41914         symlink is not used.
41915         * modules/symlinkat (Depends-on): Add symlink.
41916         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41917         * modules/canonicalize-tests (Depends-on): Likewise.
41918         * modules/lstat-tests (Depends-on): Likewise.
41919         * modules/openat-tests (Depends-on): Likewise.
41920         * modules/remove-tests (Depends-on): Likewise.
41921         * modules/rmdir-tests (Depends-on): Likewise.
41922         * modules/unlink-tests (Depends-on): Likewise.
41923         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41924         * tests/test-canonicalize.c (symlink): Likewise.
41925         * tests/test-fstatat.c (symlink): Likewise.
41926         * tests/test-lstat.c (symlink): Likewise.
41927         * tests/test-remove.c (symlink): Likewise.
41928         * tests/test-rmdir.c (symlink): Likewise.
41929         * tests/test-unlink.c (symlink): Likewise.
41930         * tests/test-unlinkat.c (symlink): Likewise.
41931
41932         symlink: new module, for Solaris 9 bug
41933         * modules/symlink: New file.
41934         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41935         * lib/symlink.c: Likewise.
41936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41937         * modules/unistd (Makefile.am): Substitute them.
41938         * lib/unistd.in.h (symlink): Declare replacement.
41939         * MODULES.html.sh (File system functions): Mention it.
41940         * doc/posix-functions/symlink.texi (symlink): Likewise.
41941         * modules/symlink-tests: New test.
41942         * tests/test-symlink.c: Likewise.
41943
41944 2009-09-23  Bruno Haible  <bruno@clisp.org>
41945
41946         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41947         when needed.
41948         Test case: gnulib-tool --import --with-tests atexit inttypes.
41949         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41950
41951 2009-09-23  Bruno Haible  <bruno@clisp.org>
41952
41953         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41954         subcommand, not in a subshell.
41955
41956 2009-09-22  Eric Blake  <ebb9@byu.net>
41957
41958         unistd: sort replacement declarations
41959         * lib/unistd.in.h: Sort declarations.
41960
41961         open, openat: minor optimization
41962         * lib/open.c (open): If open succeeded, len is non-zero.
41963         * lib/openat.c (rpl_openat): Likewise.
41964
41965         link-follow: ensure correct result
41966         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41967         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41968         distinguish between possible failures.
41969
41970 2009-09-21  Eric Blake  <ebb9@byu.net>
41971
41972         fts: avoid compiler warning
41973         * lib/fts.c (dirent_inode_sort_may_be_useful)
41974         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41975
41976 2009-09-19  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/progreloc.c (canonicalize_file_name): New declaration.
41979
41980 2009-09-19  Eric Blake  <ebb9@byu.net>
41981
41982         link: fix quoting
41983         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41984
41985         openat: fix openat bugs on Solaris 9
41986         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41987         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41988         * modules/openat (Depends-on): Add open.
41989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41990         * modules/fcntl-h (Makefile.am): Substitute it.
41991         * lib/fcntl.in.h (openat): Declare replacement.
41992         * doc/posix-functions/openat.texi (openat): Document this.
41993
41994         openat: move fstatat and unlinkat into correct files
41995         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41996         compiled.
41997         * lib/openat.c (fstatat, unlinkat): Move...
41998         * lib/fstatat.c (fstatat): ...into correct files.
41999         * lib/unlinkat.c (unlinkat): Likewise.
42000
42001         openat: fix unlinkat bugs on Solaris 9
42002         * lib/unlinkat.c (unlinkat): New file.
42003         * modules/openat (Depends-on): Add unlink.
42004         (Files): Distribute it.
42005         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42006         trailing slash behavior is broken.
42007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42008         * modules/unistd (Makefile.am): Substitute it.
42009         * lib/unistd.in.h (unlinkat): Declare replacement.
42010         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42011
42012         openat: fix fstatat bugs on Solaris 9
42013         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42014         stat.
42015         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42016
42017         test-unlinkat: enhance test, to expose Solaris 9 bug
42018         * tests/test-unlink.c (main): Factor guts...
42019         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42020         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42021         * tests/test-rmdir.c (main): Adjust caller.
42022         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42023         (unlinker): New helper function.
42024         (rmdirat): Enhance check.
42025         * modules/rmdir-tests (Depends-on): Add stdbool.
42026         * modules/unlink-tests (Depends-on): Likewise.
42027         (Files): Add test-unlink.h.
42028         * modules/openat-tests (Files): Likewise.
42029         (Depends-on): Add unlinkdir.
42030
42031         test-fstatat: new test, to expose Solaris 9 bugs
42032         * tests/test-stat.c (main): Factor guts...
42033         * tests/test-stat.h (test_stat_func): ...into new file.
42034         * tests/test-lstat.c (main): Factor guts...
42035         * tests/test-lstat.h (test_lstat_func): ...into new file.
42036         * tests/test-fstatat.c: New file.
42037         * modules/stat-tests (Files): Add test-stat.h.
42038         * modules/lstat-tests (Files): Add test-lstat.h.
42039         (Depends-on): Add stdbool.
42040         * modules/openat-tests (Depends-on): Add pathmax.
42041         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42042         (Makefile.am): Run new test.
42043
42044         remove: new module, for mingw and Solaris 9 bugs
42045         * modules/remove: New file.
42046         * lib/remove.c: Likewise.
42047         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42049         * modules/stdio (Makefile.am): Use them.
42050         * lib/stdio.in.h (remove): Declare replacement.
42051         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42052         * doc/posix-functions/remove.texi (remove): Likewise.
42053         * modules/remove-tests: New test.
42054         * tests/test-remove.c: Likewise.
42055
42056         unlink: new module, for Solaris 9 bug
42057         * modules/unlink: New file.
42058         * lib/unlink.c: Likewise.
42059         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42061         * modules/unistd (Makefile.am): Use them.
42062         * lib/unistd.in.h (stat): Declare replacement.
42063         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42064         * doc/posix-functions/unlink.texi (unlink): Likewise.
42065         * modules/unlink-tests: New test.
42066         * tests/test-unlink.c: Likewise.
42067
42068         lstat: fix Solaris 9 bug
42069         * lib/lstat.c (lstat): Also check for trailing slash on
42070         non-symlink, non-directories.  Use stat module to simplify logic.
42071         * doc/posix-functions/lstat.texi (lstat): Document it.
42072         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42073         (configure.ac): Check for symlink.
42074         * tests/test-lstat.c (main): Add more tests.
42075
42076         stat: add as dependency to other modules
42077         * modules/chown (Depends-on): Add stat.
42078         * modules/euidaccess (Depends-on): Likewise.
42079         * modules/fchdir (Depends-on): Likewise.
42080         * modules/isdir (Depends-on): Likewise.
42081         * modules/link (Depends-on): Likewise.
42082         * modules/lstat (Depends-on): Likewise.
42083         * modules/mkdir-p (Depends-on): Likewise.
42084         * modules/modechange (Depends-on): Likewise.
42085         * modules/open (Depends-on): Likewise.
42086         * modules/readlink (Depends-on): Likewise.
42087         * modules/same (Depends-on): Likewise.
42088
42089         stat: fix Solaris 9 bug
42090         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42091         slash.
42092         * lib/stat.c (rpl_stat): Work around it.
42093         * doc/posix-functions/stat.texi (stat): Update documentation.
42094
42095         stat: new module, for mingw bug
42096         * modules/stat: New file.
42097         * lib/stat.c: Likewise.
42098         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42100         * modules/sys_stat (Makefile.am): Use them.
42101         * lib/sys_stat.in.h (stat): Declare replacement.
42102         * lib/openat.c (fstatat): Deal with lstat and stat being function
42103         macros.
42104         * modules/openat (Depends-on): Add inline.
42105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42106         * doc/posix-functions/stat.texi (stat): Likewise.
42107         * modules/stat-tests: New test.
42108         * tests/test-stat.c: Likewise.
42109
42110 2009-09-19  Jim Meyering  <meyering@redhat.com>
42111
42112         syntax-check: detect unnecessary inclusion of canonicalize.h
42113         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42114
42115 2009-09-19  Eric Blake  <ebb9@byu.net>
42116
42117         canonicalize-lgpl: adjust clients to use correct header
42118         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42119         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42120         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42121         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42122         * lib/progreloc.c (includes): Likewise.
42123
42124 2009-09-19  Jim Meyering  <meyering@redhat.com>
42125
42126         test-posixtm.c: correct a comment
42127         * tests/test-posixtm.c: Correct first-line comment.
42128         Spotted by Eric Blake.
42129
42130 2009-09-16  Jim Meyering  <meyering@redhat.com>
42131
42132         posixtm-tests: make T const-correct; add a test case
42133         * tests/test-posixtm.c (T): Declare const.
42134         Add a test for -(2^31+1).
42135         Remove useless can-succeed-only-in-2002 test.
42136
42137         posixtm-tests: adjust the sole failing test
42138         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42139         expected output matches what mktime now produces.  Cross-checked via
42140         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42141
42142         posixtm: move #ifdef'd tests into a new module
42143         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42144         * tests/test-posixtm.c: ... this new file.
42145         * modules/posixtm-tests: New module.
42146
42147 2009-09-19  Eric Blake  <ebb9@byu.net>
42148
42149         openat: simplify use of at-func.c
42150         * lib/at-func.c (includes): Include prerequisites here, to
42151         simplify requirements on client files.
42152         * lib/openat-priv.h: Add double-inclusion guard.
42153         * lib/faccessat.c (includes): Simplify.
42154         * lib/fchmodat.c (includes): Likewise.
42155         * lib/fchownat.c (includes): Likewise.
42156         * lib/mkdirat.c (includes): Likewise.
42157         * lib/mkfifoat.c (includes): Likewise.
42158         * lib/symlinkat.c (includes): Likewise.
42159
42160         openat: allow return of fd 0
42161         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42162         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42163         unistd-safer.
42164         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42165         <fcntl.h>; this module does not leak fds.
42166         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42167         must be allowed to return 0, leaving openat_safer to add the
42168         safety.
42169         (openat_permissive): Avoid writing to just-opened fd 2 if
42170         restoring the current directory fails.
42171         * lib/openat-die.c (openat_restore_fail): Add comment.
42172         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42173         (save_cwd): Guarantee safe fd, but without use of open_safer.
42174         * tests/test-openat.c: New test.
42175         * modules/openat-tests (Files, Makefile.am): Distribute and build
42176         new file.
42177
42178         relocatable-prog-wrapper: fix build
42179         * modules/relocatable-prog-wrapper (Files): Update name of
42180         canonicalize m4 file, broken on 2009-09-17.
42181         Reported by emad hajjar <aleppos@hotmail.com>.
42182
42183 2009-09-19  Bruno Haible  <bruno@clisp.org>
42184
42185         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42186         * lib/safe-alloc.c: Likewise.
42187         Reported by Ian Beckwith <ianb@erislabs.net>.
42188
42189 2009-09-18  Bruno Haible  <bruno@clisp.org>
42190
42191         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42192         Reported by <erobles@sensacd.com.mx>.
42193
42194 2009-09-17  Eric Blake  <ebb9@byu.net>
42195
42196         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42197         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42198         slashes when checking if last component is missing.
42199         * tests/test-canonicalize.c (main): Test this.
42200
42201         canonicalize, canonicalize-lgpl: honor // if distinct from /
42202         * modules/canonicalize (Files): Add double-slash-root.m4.
42203         * modules/canonicalize-lgpl (Files): Likewise.
42204         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42205         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42206         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42207         fallback definition.
42208         (canonicalize_filename_mode): Use it to protect //.
42209         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42210         (__realpath): Likewise.
42211         * tests/test-canonicalize.c (main): Test this.
42212         * tests/test-canonicalize-lgpl.c (main): Likewise.
42213         * modules/canonicalize-tests (Depends-on): Add same-inode.
42214         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42215
42216         canonicalize-lgpl: fix glibc bug with trailing slash
42217         * m4/canonicalize-lgpl.m4: Move contents...
42218         * m4/canonicalize.m4: ...here.
42219         (gl_CANONICALIZE_LGPL): Factor realpath check...
42220         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42221         glibc 2.3.5 bug, fixed 2005-04-27.
42222         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42223         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42224         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42225         * modules/canonicalize-lgpl (Files): Manage file rename.
42226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42227         * modules/stdlib (Makefile.am): Substitute witness.
42228         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42229         is needed.
42230         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42231         replacement is required.
42232         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42233         * doc/glibc-functions/canonicalize_file_name.texi
42234         (canonicalize_file_name): Document this.
42235         * doc/posix-functions/realpath.texi (realpath): Likewise.
42236
42237         canonicalize-lgpl: reject non-directory with trailing slash
42238         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42239         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42240         catches failures in glibc 2.3.5.
42241         * tests/test-canonicalize.c (main): Likewise.
42242
42243         canonicalize-lgpl: use native realpath if it works
42244         * lib/canonicalize-lgpl.c (realpath): Guard with
42245         FUNC_REALPATH_WORKS.
42246         * lib/stdlib.in.h (realpath): Make declaration optional based on
42247         HAVE_REALPATH.
42248         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42249         native realpath works.
42250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42251         * modules/stdlib (Makefile.am): Substitute witness.
42252
42253         canonicalize, canonicalize-lgpl: use <stdlib.h>
42254         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42255         (Include): Mention <stdlib.h>.
42256         (configure.ac): Mention functions we provide.
42257         * modules/canonicalize (configure.ac): Likewise.
42258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42259         realpath if canonicalize_file_name is missing.
42260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42261         * modules/stdlib (Makefile.am): Substitute witnesses.
42262         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42263         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42264         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42265         * NEWS: Document this.
42266         * doc/glibc-functions/canonicalize_file_name.texi
42267         (canonicalize_file_name): Likewise.
42268         * doc/posix-functions/realpath.texi (realpath): Likewise.
42269         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42270
42271         test-canonicalize: consolidate into single C program
42272         * tests/test-canonicalize.sh: Delete; move setup into...
42273         * tests/test-canonicalize.c (main): ...the program, making it
42274         easier to run in debugger.  Add some tests.
42275         * modules/canonicalize-tests (Files): Remove unused file.
42276         (Depends-on): Add progname.
42277         (configure.ac, Makefile.am): Simplify.
42278
42279         test-canonicalize-lgpl: consolidate into single C program
42280         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42281         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42282         easier to run in debugger.  Add some tests.
42283         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42284         (configure.ac, Makefile.am): Simplify.
42285
42286         canonicalize: avoid resolvepath
42287         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42288         unnecessary checks.
42289         * lib/canonicalize.c (includes): Simplify.
42290         (canonicalize_file_name): Drop resolvepath implementation.
42291         * modules/canonicalize (Depends-on): Drop filenamecat.
42292
42293         canonicalize: don't lose errno
42294         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42295         over calls to free.
42296
42297         canonicalize: simplify errno handling
42298         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42299         assignment.
42300
42301         canonicalize, canonicalize-lgpl: update module dependencies
42302         * modules/canonicalize (Depends-on): Add extensions, lstat,
42303         pathmax, stdlib.
42304         (Files): Drop pathmax.h.
42305         (configure.ac): Adjust macro name.
42306         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42307         lstat, stdlib, sys_stat.
42308         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42309         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42310         extensions.
42311         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42312         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42313         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42314         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42315         declaration, if available.
42316         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42317         we can rely on the readlink module.
42318         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42319         (includes): Use <unistd.h> unconditionally.
42320
42321 2009-09-17  Eric Blake  <ebb9@byu.net>
42322
42323         maint: make Include sections of modules consistent
42324         * modules/alloca: Use only header name; no need to list #include.
42325         * modules/alloca-opt: Likewise.
42326         * modules/arpa_inet: Likewise.
42327         * modules/canon-host: Likewise.
42328         * modules/configmake: Likewise.
42329         * modules/dirent: Likewise.
42330         * modules/eealloc: Likewise.
42331         * modules/environ: Likewise.
42332         * modules/fchdir: Likewise.
42333         * modules/fcntl: Likewise.
42334         * modules/fcntl-h: Likewise.
42335         * modules/gethrxtime: Likewise.
42336         * modules/gettime: Likewise.
42337         * modules/ignore-value: Likewise.
42338         * modules/inet_ntop: Likewise.
42339         * modules/inet_pton: Likewise.
42340         * modules/inttypes: Likewise.
42341         * modules/isnand-nolibm: Likewise.
42342         * modules/isnanf-nolibm: Likewise.
42343         * modules/mbchar: Likewise.
42344         * modules/mbfile: Likewise.
42345         * modules/mbiter: Likewise.
42346         * modules/mbuiter: Likewise.
42347         * modules/netdb: Likewise.
42348         * modules/netinet_in: Likewise.
42349         * modules/nproc: Likewise.
42350         * modules/pagealign_alloc: Likewise.
42351         * modules/poll: Likewise.
42352         * modules/printf-frexp: Likewise.
42353         * modules/pthread: Likewise.
42354         * modules/putenv: Likewise.
42355         * modules/random_r: Likewise.
42356         * modules/relocatable-prog: Likewise.
42357         * modules/search: Likewise.
42358         * modules/select: Likewise.
42359         * modules/selinux-h: Likewise.
42360         * modules/settime: Likewise.
42361         * modules/signal: Likewise.
42362         * modules/size_max: Likewise.
42363         * modules/socklen: Likewise.
42364         * modules/ssize_t: Likewise.
42365         * modules/stdarg: Likewise.
42366         * modules/stdbool: Likewise.
42367         * modules/stddef: Likewise.
42368         * modules/stdint: Likewise.
42369         * modules/stdio: Likewise.
42370         * modules/stdlib: Likewise.
42371         * modules/string: Likewise.
42372         * modules/strings: Likewise.
42373         * modules/sys_file: Likewise.
42374         * modules/sys_ioctl: Likewise.
42375         * modules/sys_select: Likewise.
42376         * modules/sys_socket: Likewise.
42377         * modules/sys_stat: Likewise.
42378         * modules/sys_time: Likewise.
42379         * modules/sys_times: Likewise.
42380         * modules/sys_utsname: Likewise.
42381         * modules/sys_wait: Likewise.
42382         * modules/sysexits: Likewise.
42383         * modules/time: Likewise.
42384         * modules/times: Likewise.
42385         * modules/tmpfile: Likewise.
42386         * modules/trim: Likewise.
42387         * modules/unistd: Likewise.
42388         * modules/wchar: Likewise.
42389         * modules/wctype: Likewise.
42390
42391 2009-09-17  Bruno Haible  <bruno@clisp.org>
42392
42393         Make getdate.y compile on QNX and NetBSD 5 / i386.
42394         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42395         TIME_T_FITS_IN_LONG_INT.
42396         * lib/getdate.y (long_time_t): New type.
42397         (relative_time): Change type of 'seconds' field to long_time_t.
42398         (get_date): Update types of local variables. Check against overflow
42399         during conversion from long_time_t to time_t.
42400         Reported by Matt Kraai <kraai@ftbfs.org>
42401         and Hasso Tepper <hasso@netbsd.org>.
42402
42403 2009-09-17  Bruno Haible  <bruno@clisp.org>
42404
42405         * modules/COPYING: Update copyright years.
42406         * modules/README: Likeiwse.
42407         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42408         Reported by Ian Beckwith <ianb@erislabs.net>.
42409
42410 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42411
42412         * users.txt: Update references for gnuit package.
42413
42414 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42415
42416         * m4/getdelim.m4: Fix typo in copyright line.
42417
42418 2009-09-17  Bruno Haible  <bruno@clisp.org>
42419
42420         * lib/atoll.c: Use the standard header with GPL copyright.
42421         * lib/argz.in.h: Likewise.
42422         * lib/glob.c: Likewise.
42423         * lib/glob-libc.h: Likewise.
42424         * lib/random_r.c: Likewise.
42425         * lib/siglist.h: Likewise.
42426         * lib/strsignal.c: Likewise.
42427         Reported by Ian Beckwith <ianb@erislabs.net>.
42428
42429 2009-09-17  Eric Blake  <ebb9@byu.net>
42430
42431         rmdir: ensure correct dependency order
42432         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42433
42434 2009-09-17  Bruno Haible  <bruno@clisp.org>
42435
42436         Disable assertion that fails on NetBSD 5 / i386.
42437         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42438         Reported by Sam Steingold <sds@gnu.org>
42439         and Hasso Tepper <hasso@netbsd.org>.
42440
42441 2009-09-16  Eric Blake  <ebb9@byu.net>
42442
42443         unlinkdir: port to mingw
42444         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42445         on which no one can unlink a directory.
42446
42447         stdlib: sort witness names
42448         * modules/stdlib (Makefile.am): Sort replacements.
42449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42450         * lib/stdlib.in.h: Likewise.
42451
42452         parse-duration-tests: avoid link failure
42453         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42454         LIBINTL.
42455         Reported by Tom G. Christensen.
42456
42457         openat-tests: ensure unlinkat behaves like rmdir
42458         * tests/test-rmdir.c (main): Factor guts...
42459         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42460         * modules/rmdir-tests (Files): Ship new file.
42461         * modules/openat-tests: New test.
42462         * tests/test-unlinkat.c: Likewise.
42463
42464         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42465         * modules/rmdir-errno (Status, Notice): Now obsolete.
42466
42467         rmdir: work around cygwin 1.5.x and mingw bugs
42468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42469         * lib/rmdir.c (rmdir): Work around it.
42470         * modules/rmdir (Status, Notice): No longer obsolete.
42471         (Files): Add dos.m4.
42472         (Depends-on): Add unistd.
42473         (configure.ac): Set witnesses.
42474         (License): Relax to LGPLv2+.
42475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42476         * modules/unistd (Makefile.am): Substitute witnesses.
42477         * lib/unistd.in.h (rmdir): Declare replacement.
42478         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42479         * modules/rmdir-tests: New tests.
42480         * tests/test-rmdir.c: Likewise.
42481
42482 2009-09-15  Eric Blake  <ebb9@byu.net>
42483
42484         fchdir: improve use of replacement functions
42485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42488         REPLACE_CLOSEDIR.
42489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42490         * modules/sys_stat (Makefile.am): Substitute correct witness.
42491         * modules/dirent (Makefile.am): Likewise.
42492         * modules/unistd (Makefile.am): Likewise.
42493         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42494         * lib/unistd.in.h (dup): Likewise.
42495         * lib/sys_stat.in.h (fstat): Likewise.
42496
42497         maint: ignore gnulib-tool temp files
42498         * .gitignore: Ignore files created during gnulib-tool --test.
42499
42500 2009-09-13  Jim Meyering  <meyering@redhat.com>
42501
42502         posixtm: don't reject a time that specify "60" as the number of seconds
42503         * lib/posixtm.c (posixtime): The code to reject invalid dates
42504         would also reject a time specified with the .60 suffix.
42505         But POSIX allows that, in order to accommodate leap seconds.
42506         So don't reject it.
42507         (main): Adjust tests accordingly.
42508         * modules/posixtm (Depends-on): Add stpcpy.
42509
42510 2009-09-11  Jim Meyering  <meyering@redhat.com>
42511
42512         announce-gen: include [$release_type] in emitted Subject:
42513         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42514         e.g., [stable] in the emitted Subject: line.
42515
42516 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42517
42518         Remove obsolete macros from several modules.
42519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42520         obsolete Autoconf macros with their modern counterparts.
42521         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42522         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42523         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42524         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42525         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42526         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42529         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42530         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42533         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42534         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42535         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42536         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42537         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42538         * m4/time_r.m4 (gl_TIME_R): Likewise.
42539         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42540         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42541         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42542
42543         Fix copyright header in build-aux scripts.
42544         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42545         recommendation.
42546         * build-aux/ncftpput-ftp: Likewise.
42547         * build-aux/update-copyright: Likewise.
42548
42549 2009-09-09  Eric Blake  <ebb9@byu.net>
42550
42551         test-link: allow Linux choice of errno
42552         * tests/test-link.c (main): Relax test for alternate error.
42553
42554         strndup: fix improper m4 caching
42555         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42556         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42557         (gl_PREREQ_STRNDUP): Delete.
42558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42559         * modules/string (Makefile.am): Substitute it.
42560         * lib/string.in.h (strndup): Modernize prototype.
42561
42562         getcwd: port to mingw
42563         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42564         different from the POSIX assumptions made throughout the getcwd
42565         module; fortunately, the mingw getcwd does not need replacement.
42566         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42567         * modules/getcwd-tests: New test.
42568         * tests/test-getcwd.c: Likewise.
42569
42570         link: fix platform bugs
42571         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42572         * lib/link.c (link): Work around them.  Fix related mingw bug.
42573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42574         * modules/unistd (Makefile.am): Substitute it.
42575         * lib/unistd.in.h (link): Declare replacement.
42576         * doc/posix-functions/link.texi (link): Document this.
42577         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42578
42579         test-link: consolidate into single C program, test more cases
42580         * tests/test-link.sh: Delete.
42581         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42582         at least Cygwin and Solaris.
42583         * modules/link-tests (Files): Remove unused file.
42584         (Depends-on): Add errno, sys_stat.
42585         (Makefile.am): Simplify.
42586
42587 2009-09-08  Bruno Haible  <bruno@clisp.org>
42588
42589         Work around towlower, towupper bug on mingw.
42590         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42591         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42592         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42593         * doc/posix-functions/towupper.texi: Likewise.
42594         Reported by Eric Blake.
42595
42596 2009-09-08  Jim Meyering  <meyering@redhat.com>
42597
42598         build: don't try to run autoheader if we don't use it
42599         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42600         is not used in configure.ac.
42601
42602 2009-09-08  Eric Blake  <ebb9@byu.net>
42603
42604         euidaccess: fix compilation error
42605         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42606
42607         rawmemchr: relax license
42608         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42609         okay.
42610         Reported by Jim Meyering.
42611
42612         mkfifoat: new module
42613         * modules/mkfifoat: New file.
42614         * lib/mkfifoat.c: Likewise.
42615         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42616         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42617         * modules/sys_stat (Makefile.am): Use them.
42618         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42619         * MODULES.html.sh (File system functions): Mention module.
42620         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42621         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42622         * modules/mkfifoat-tests: New test.
42623         * tests/test-mkfifoat.c: Likewise.
42624
42625         strchrnul: relax license
42626         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42627         okay.
42628         Reported by Jim Meyering.
42629
42630 2009-09-08  Eric Blake  <ebb9@byu.net>
42631
42632         fstatat: fix compilation on Solaris
42633         * lib/fstatat.c (includes): Add fcntl.h.
42634         Reported by Pádraig Brady.
42635
42636 2009-09-07  Eric Blake  <ebb9@byu.net>
42637
42638         rename: modernize replacement
42639         * modules/rename (Depends-on): Add stdio.
42640         (configure.ac): Declare witness.
42641         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42642         stdio take care of replacement.
42643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42644         * modules/stdio (Makefile.am): Substitute them.
42645         * lib/stdio.in.h (rename): Declare replacement.
42646         * lib/rename.c (includes): Allow cross-compilation to non-windows
42647         machines.
42648         * doc/posix-functions/rename.texi (rename): Improve
42649         documentation.
42650
42651         stdio: sort witness names
42652         * modules/stdio (Makefile.am): Sort replacements.
42653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42654         * lib/stdio.in.h: Likewise.
42655
42656         getcwd: minor cleanups
42657         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42658         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42659
42660         openat: provide more convenience names
42661         * modules/faccessat (configure.ac): Add C witness.
42662         * lib/unistd.in.h (readlinkat): Fix typo.
42663         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42664         convenience wrappers.
42665         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42666         wrappers in syntax checks.
42667
42668 2009-09-06  Eric Blake  <ebb9@byu.net>
42669
42670         doc: fix comments in recent patches
42671         * lib/faccessat.c: Mention correct function.
42672         * lib/fchmodat.c: Likewise.
42673         * lib/fchownat.c: Likewise.
42674         * lib/symlinkat.c: Likewise.
42675         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42676         constants.
42677
42678         faccessat, symlinkat: continue cleanup of previous patch
42679         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42680         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42681         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42683         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42684         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42685         set.
42686
42687 2009-09-06  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42690         (fstatat): Declare if GNULIB_FSTATAT is set.
42691         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42692         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42693         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42694         * modules/fcntl-h (Files): Remove m4/openat.m4.
42695         * modules/sys_stat (Files): Remove m4/openat.m4.
42696         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42697         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42698         * modules/unistd (Files): Remove m4/openat.m4.
42699         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42700         GNULIB_OPENAT.
42701         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42702         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42704         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42705         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42706         gl_OPENAT_DEFAULTS.
42707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42708         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42709         Don't require gl_OPENAT_DEFAULTS.
42710         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42711         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42712         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42713         (gl_OPENAT_DEFAULTS): Remove macro.
42714
42715 2009-09-06  Bruno Haible  <bruno@clisp.org>
42716
42717         * modules/openat (configure.ac): Remove unneeded witness.
42718
42719 2009-09-06  Bruno Haible  <bruno@clisp.org>
42720
42721         Set errno to ENOSYS when a function is entirely unsupported.
42722         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42723         EOPNOTSUPP.
42724         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42725         * modules/chown (Depends-on): Remove errno.
42726
42727 2009-09-06  Bruno Haible  <bruno@clisp.org>
42728
42729         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42730
42731 2009-09-06  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42734
42735 2009-09-06  Ben Pfaff  <blp@gnu.org>
42736             Bruno Haible  <bruno@clisp.org>
42737
42738         Work around a glibc bug in strtok_r.
42739         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42740         Undefine if UNDEFINE_STRTOK_R is set.
42741         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42743         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42745         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42746         UNDEFINE_STRTOK_R.
42747         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42748
42749 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42750
42751         exclude: minor fix
42752         * lib/exclude.c: Include wctype.h
42753
42754 2009-09-06  Akim Demaille  <demaille@gostai.com>
42755
42756         bootstrap: improve error message
42757         * build-aux/bootstrap (find_tool): Upon failure, report the list
42758         of candidates.
42759         Honor the initial value of the envvar.
42760
42761 2009-09-05  Eric Blake  <ebb9@byu.net>
42762
42763         symlinkat: new module
42764         * modules/symlinkat: New file.
42765         * lib/symlinkat.c: Likewise.
42766         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42768         * modules/unistd (Makefile.am): Use them.
42769         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42770         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42771         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42772         * MODULES.html.sh (File system functions): Mention module.
42773         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42774         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42775         * modules/symlinkat-tests: New test.
42776         * tests/test-symlinkat.c: Likewise.
42777
42778         test-openat-safer: add more checks
42779         * tests/test-openat-safer.c (main): Check more code paths.
42780
42781 2009-09-05  Jim Meyering  <meyering@redhat.com>
42782
42783         syntax-check: detect unnecessary inclusion of openat.h
42784         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42785
42786 2009-09-05  Bruno Haible  <bruno@clisp.org>
42787
42788         Support towlower, towupper.
42789         * doc/posix-functions/towlower.texi: Mention module wctype.
42790         * doc/posix-functions/towupper.texi: Likewise.
42791         * lib/wctype.in.h (towlower, towupper): New functions.
42792         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42793         (ASSERT): New macro.
42794         (e): New variable.
42795         (main): Test also towlower, towupper. Test WEOF argument.
42796         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42797
42798 2009-09-05  Bruno Haible  <bruno@clisp.org>
42799
42800         Fix conversion behaviour when the input is invalid.
42801         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42802         mark occurring in first pass of indirect conversion.
42803         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42804         input.
42805         Found by clang's static analyzer.
42806
42807 2009-09-05  Bruno Haible  <bruno@clisp.org>
42808
42809         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42810         where direct conversion is possible.
42811
42812 2009-09-04  Eric Blake  <ebb9@byu.net>
42813
42814         openat: fail with ENOENT on empty name
42815         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42816         buffer.
42817
42818         link-follow: fix logic bug in prior patch
42819         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42820         reversed sense of yes and no in prior patch.  Avoid confusing
42821         compilation failure with desired semantics.
42822
42823         link-follow: accommodate mingw and cross-compilation
42824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42825         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42826         cross-compilation results to -1, to make linkat easier to
42827         implement when cross-compiling.  Trivially support mingw.
42828         * modules/link-follow (configure.ac): Call new name.
42829         * NEWS: Mention this.
42830
42831 2009-09-03  Eric Blake  <ebb9@byu.net>
42832
42833         faccessat: compile replacement
42834         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42835         needed.
42836
42837         fts: fix compilation error
42838         * lib/fts.c (includes): Re-add "openat.h", for
42839         openat_needs_fchdir.
42840
42841         faccessat: new module
42842         * modules/faccessat: New file.
42843         * lib/faccessat.c: Likewise.
42844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42846         * modules/unistd (Makefile.am): Use it.
42847         * lib/unistd.in.h (faccessat): Declare it.
42848         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42849         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42850         * MODULES.html.sh (File system functions): Mention it.
42851         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42852         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42853
42854         euidaccess: prefer POSIX over non-standard implementation
42855         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42856         * lib/euidaccess.c (euidaccess): Use it if available.
42857
42858         openat: make template easier to use
42859         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42860         AT_FUNC_F2 to be undefined.
42861         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42862         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42863         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42864         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42865         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42866         Likewise.
42867         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42868         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42869         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42870         Likewise.
42871
42872         openat: declare in POSIX headers
42873         * NEWS: Mention this.
42874         * modules/openat (configure.ac): Declare witnesses.
42875         (Depends-on): Add fcntl-h, sys_stat, unistd.
42876         (Include): Mention correct headers.
42877         * modules/fcntl-h (Depends-on): Add link-warning.
42878         (Files): Add openat.m4.
42879         (Makefile.am): Substitute witnesses.
42880         * modules/sys_stat (Files, Makefile.am): Likewise.
42881         * modules/unistd (Files, Makefile.am): Likewise.
42882         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42883         (gl_OPENAT_DEFAULTS): New macro.
42884         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42886         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42887         (SYS_STAT_H): Remove unused variable.
42888         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42889         * lib/fcntl--.h (includes): Remove unneeded header.
42890         * lib/openat-safer.c (includes): Likewise.
42891         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42892         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42893         appropriate headers.
42894         (__OPENAT_PREFIX): Delete.
42895         * lib/fcntl.in.h (openat): Provide declaration.
42896         (AT_FDCWD): Fix Solaris bug.
42897         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42898         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42899         * lib/fchmodat.c (includes):  Adjust to find declaration.
42900         * lib/fchownat.c (includes): Likewise.
42901         * lib/mkdirat.c (includes): Likewise.
42902         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42903         still visible.
42904
42905 2009-09-02  Eric Blake  <ebb9@byu.net>
42906
42907         errno: use consistently
42908         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42909         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42910         * lib/canonicalize.c (ELOOP): Likewise.
42911         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42912         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42913         * lib/lchown.c (EOPNOTSUPP): Likewise.
42914         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42915         * lib/savewd.c (ESTALE): Likewise.
42916         * lib/settime.c (ENOSYS): Likewise.
42917         * lib/utimens.c (ENOSYS): Likewise.
42918         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42919         * lib/chdir-safer.c (ELOOP): Likewise.
42920         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42921         * modules/c-stack (Depends-on): Add errno.
42922         * modules/canonicalize (Depends-on): Likewise.
42923         * modules/chdir-safer (Depends-on): Likewise.
42924         * modules/fdopendir (Depends-on): Likewise.
42925         * modules/inet_ntop (Depends-on): Likewise.
42926         * modules/inet_pton (Depends-on): Likewise.
42927         * modules/lchown (Depends-on): Likewise.
42928         * modules/openat (Depends-on): Likewise.
42929         * modules/savewd (Depends-on): Likewise.
42930         * modules/settime (Depends-on): Likewise.
42931         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42932
42933         fts: avoid leaking fds
42934         * modules/fts (Depends-on): Add cloexec.
42935         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42936         flag.
42937
42938         fts: make directory fds more robust
42939         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42940         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42941
42942         backupfile, chdir-long, fts, savedir: make safer
42943         * lib/backupfile.c (includes): Use "dirent--.h", since
42944         numbered_backup can write to stderr during readdir.
42945         * lib/savedir.c (includes): Likewise.
42946         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42947         emulation can write to stderr on failure.
42948         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42949         * lib/getcwd.c: Document why opendir_safer is unused.
42950         * lib/glob.c: Likewise.
42951         * lib/scandir.c: Likewise.
42952         * lib/openat-proc.c: Likewise, for open_safer.
42953         * modules/backupfile (Depends-on): Add dirent-safer.
42954         * modules/savedir (Depends-on): Likewise.
42955         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42956         * modules/chdir-long (Depends-on): Add openat-safer.
42957
42958         openat-safer: new module
42959         * modules/openat-safer: New file.
42960         * lib/openat-safer.c: Likewise.
42961         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42962         * lib/fcntl-safer.h (openat_safer): Declare.
42963         * lib/fcntl--.h (openat): Override.
42964         * MODULES.html.sh (File descriptor based I/O): Mention it.
42965         * lib/openat.h: Add double-inclusion guards.
42966         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42967         "fcntl--.h", so we can implement openat.
42968         * modules/openat-safer-tests: New test.
42969         * tests/test-openat-safer.c: New file.
42970
42971         dirent-safer: new module
42972         * modules/dirent-safer: New file.
42973         * lib/dirent--.h: Likewise.
42974         * lib/dirent-safer.h: Likewise.
42975         * lib/opendir-safer.c: Likewise.
42976         * m4/dirent-safer.m4: Likewise.
42977         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42978         * modules/dirent-safer-tests: New test.
42979         * tests/test-dirent-safer.c: New file.
42980         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42981
42982         fdopendir: optimize on mingw
42983         * lib/unistd.in.h (_gl_directory_name): New prototype.
42984         * lib/fchdir.c (_gl_directory_name): Implement it.
42985         (fchdir): Use it to simplify implementation.
42986         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42987         fchdir, when available, to avoid calling [f]chdir().
42988
42989         fdopendir: split into its own module
42990         * lib/openat.c (fdopendir): Move...
42991         * lib/fdopendir.c: ...into new file.
42992         * modules/fdopendir: New module.
42993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42994         * modules/openat (Depends-on): Add fdopendir.
42995         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42996         fdopendir here.
42997         * modules/savedir (Depends-on): Only need fdopendir, not full
42998         openat.
42999         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43000         * lib/openat.h (fdopendir): Drop prototype.
43001         * lib/dirent.in.h (fdopendir): Provide prototype.
43002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43003         * modules/dirent (Makefile.am): Substitute them.
43004         * MODULES.html.sh (File system functions): Mention it.
43005         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43006         * modules/fdopendir-tests: New file.
43007         * tests/test-fdopendir.c: Likewise.
43008
43009         fchdir: use more consistent macro convention
43010         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43011         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43012         REPLACE_FCHDIR, rather than relying on config.h macros.
43013         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43014         inside a single make-time REPLACE_FCHDIR block, rather than using
43015         the config.h FCHDIR_REPLACEMENT.
43016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43017         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43018         Manage fstat replacement.
43019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43020         REPLACE_FCHDIR.
43021         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43022         (Makefile.am): Substitute REPLACE_FCHDIR.
43023         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43024         FCHDIR_REPLACEMENT.
43025         * lib/dup-safer.c (dup_safer): Likewise.
43026         * lib/dup2.c (rpl_dup2): Likewise.
43027         * lib/dup3.c (rpl_dup3): Likewise.
43028         * lib/open.c (rpl_open): Likewise.
43029
43030         fchdir: simplify error handling, and support dup3
43031         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43032         stdbool, malloc-posix, realloc-posix.
43033         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43034         (ensure_dirs_slot): Return false on allocation failure.
43035         (rpl_dup2): Delete.
43036         (_gl_register_dup): New function.
43037         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43038         (_gl_register_fd): Close fd on allocation failure.
43039         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43040         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43041         prototype.
43042         (rpl_dup2_fchdir): Delete prototype.
43043         * lib/open.c (open): Update caller.
43044         * lib/dup2.c (dup2): Track fchdir metadata.
43045         * lib/dup3.c (dup3): Likewise.
43046         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43047         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43048
43049 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43050
43051         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43052         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43053         don't pass arguments to AC_OUTPUT.
43054
43055 2009-09-02  Bruno Haible  <bruno@clisp.org>
43056
43057         * modules/mkdtemp (License): Relicense under LGPLv2+.
43058         Reported by Paolo Bonzini.
43059
43060 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43061
43062         Replace uses of obsolete autoconf macros in Jim's modules.
43063         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43064         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43065         can evoke a warning from autoconf when run with -Wobsolete
43066         enabled.  They were declared obsolete for good reasons (see
43067         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43068         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43069         should not continue using the deprecated macros.
43070         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43071         obsolete Autoconf macros with modern counterparts.
43072         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43073         * m4/dos.m4 (gl_AC_DOS): Likewise.
43074         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43076         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43077         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43078         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43080         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43081         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43082         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43083         Likewise.
43084         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43085         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43086         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43087         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43088         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43089         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43090
43091 2009-09-01  Eric Blake  <ebb9@byu.net>
43092
43093         fchdir: fix off-by-one bug in previous patch
43094         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43095         (_gl_unregister_fd): Delete useless if.
43096
43097 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43098
43099         maint.mk: sort the list of syntax-check rules
43100         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43101         easier to get a sense of progress when the rules are run sequentially
43102         and take a long time.
43103
43104 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43105
43106         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43107         * modules/netinet_in: Likewise.
43108         * modules/sys_file: Likewise.
43109         * modules/sys_ioctl: Likewise.
43110         * modules/sys_select: Likewise.
43111         * modules/sys_socket: Likewise.
43112         * modules/sys_stat: Likewise.
43113         * modules/sys_time: Likewise.
43114         * modules/sys_times: Likewise.
43115         * modules/sys_utsname: Likewise.
43116         * modules/sys_wait: Likewise.
43117
43118 2009-09-01  Jim Meyering  <meyering@redhat.com>
43119
43120         fts: help ensure that return values are not ignored
43121         * lib/fts_.h (__GNUC_PREREQ): Define.
43122         (__attribute_warn_unused_result__): Define.
43123         (fts_children, fts_close, fts_open, fts_read): Declare with
43124         __attribute_warn_unused_result__.
43125
43126         fts: fts_close now fails also when closing a dir file descriptor fails
43127         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43128         and propagate to caller, along with errno.
43129
43130         announce-gen: correct formatting in --help output
43131         * build-aux/announce-gen (usage): Move the one-line description in
43132         --help output "up", to where it belongs, just after Usage:.
43133
43134 2009-08-31  Eric Blake  <ebb9@byu.net>
43135
43136         fchdir: port to mingw
43137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43138         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43139         opened, then use a substitute.
43140         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43141         replacement.
43142         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43143         (_gl_register_fd): No need to check stat if open already filters
43144         all directories.
43145         (fchdir): Fix error condition to match POSIX.
43146         * modules/fchdir (Depends-on): Add sys_stat.
43147         * doc/posix-functions/open.texi (open): Document the limitation.
43148         * modules/fchdir-tests: New file.
43149         * tests/test-fchdir.c: Likewise.
43150
43151         canonicalize: allow cross-testing from cygwin to mingw
43152         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43153         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43154         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43155         Likewise.
43156         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43157         target does not support symlinks.
43158         * tests/test-canonicalize-lgpl.sh: Likewise.
43159
43160         chown: avoid compilation warning on mingw
43161         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43162         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43163         mingw.
43164         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43165         * modules/chown (Depends-on): Add errno.
43166
43167 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43168
43169         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43170         command.
43171
43172 2009-08-31  Jim Meyering  <meyering@redhat.com>
43173
43174         canonicalize: remove useless initialization
43175         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43176         initialization of local, "end".
43177
43178 2009-08-30  Bruno Haible  <bruno@clisp.org>
43179
43180         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43181         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43182         ENOSYS.
43183
43184 2009-08-30  Bruno Haible  <bruno@clisp.org>
43185
43186         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43187         /usr/xpg4/bin/tr when it exists.
43188         * tests/test-pipe-filter-gi1.sh: Likewise.
43189
43190 2009-08-30  Bruno Haible  <bruno@clisp.org>
43191
43192         Work around deficient /usr/bin/id program on Solaris.
43193         * tests/test-file-has-acl.sh (ID): New variable.
43194         * tests/test-set-mode-acl.sh (ID): Likewise.
43195         * tests/test-copy-acl.sh (ID): Likewise.
43196         * tests/test-copy-file.sh (ID): Likewise.
43197
43198 2009-08-30  Bruno Haible  <bruno@clisp.org>
43199
43200         New module 'xstriconveh'.
43201         * lib/xstriconveh.h: New file.
43202         * lib/xstriconveh.c: New file.
43203         * modules/xstriconveh: New file.
43204
43205 2009-08-30  Bruno Haible  <bruno@clisp.org>
43206
43207         Make it easier to use mem_cd_iconveh.
43208         * lib/striconveh.h (iconveh_t): New type.
43209         (iconveh_open, iconveh_close): New declarations.
43210         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43211         with a single 'const iconveh_t *' argument.
43212         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43213         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43214         with a single 'const iconveh_t *' argument.
43215         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43216         * tests/test-striconveh.c (main): Update.
43217         * NEWS: Mention the change.
43218
43219 2009-08-30  Bruno Haible  <bruno@clisp.org>
43220
43221         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43222         problem.
43223
43224 2009-08-30  Bruno Haible  <bruno@clisp.org>
43225
43226         Work around iconv_open problem on Solaris.
43227         * lib/iconv_open-solaris.gperf: New file.
43228         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43229         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43230         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43231         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43232         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43233         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43234
43235 2009-08-29  Jim Meyering  <meyering@redhat.com>
43236
43237         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43238         * top/maint.mk (cvs-check): Remove target; it was just an alias
43239         to the better-named vc-diff-check.
43240         (maintainer-distcheck): Remove rule.  It was used only from
43241         the (alpha/beta/major) target, and all of its commands but one
43242         were coreutils-specific.
43243         (vc-dist): Remove rule.
43244         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43245         Run vc-diff-check, not vc-dist.
43246         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43247
43248 2009-08-27  Bruno Haible  <bruno@clisp.org>
43249
43250         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43251         of 0.
43252
43253 2009-08-27  Bruno Haible  <bruno@clisp.org>
43254
43255         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43256         compilers.
43257         * doc/func.texi: Document the SunPRO C bug.
43258
43259 2009-08-27  Bruno Haible  <bruno@clisp.org>
43260
43261         Fix link error on Solaris.
43262         * tests/test-parse-duration.c (xstrdup): Remove function.
43263
43264 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43265
43266         ignore-value: handle pointer types, too
43267         * lib/ignore-value.h (__attribute__): Remove definition.
43268         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43269         of a more concise and more-often effective "(void) i" statement.
43270         (ignore_ptr): New function to suppress warnings from functions that
43271         return pointers, and to make it explicit that one function doesn't
43272         handle all cases.
43273
43274 2009-08-25  Bruno Haible  <bruno@clisp.org>
43275
43276         dup2: work around a Linux bug.
43277         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43278         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43279         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43280         Reported by Simon Josefsson.
43281
43282 2009-08-25  Jim Meyering  <meyering@redhat.com>
43283
43284         libguestfs uses gnulib
43285         * users.txt: Add libguestfs.
43286
43287 2009-08-24  Eric Blake  <ebb9@byu.net>
43288
43289         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43290         * lib/pipe2.c (includes): Add binary-io.h.
43291         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43292
43293 2009-08-24  Bruno Haible  <bruno@clisp.org>
43294
43295         Tolerate declared but missing accept4 syscall.
43296         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43297         available.
43298         * lib/sys_socket.in.h (accept4): If the function is already present,
43299         override it.
43300         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43301         * modules/accept4 (Makefile.am): Compile accept4.c always.
43302         Reported by Paolo Bonzini and Eric Blake.
43303
43304 2009-08-23  Bruno Haible  <bruno@clisp.org>
43305
43306         New module 'accept4'.
43307         * lib/sys_socket.in.h (accept4): New declaration.
43308         * lib/accept4.c: New file.
43309         * m4/accept4.m4: New file.
43310         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43311         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43312         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43313         HAVE_ACCEPT4.
43314         * modules/accept4: New file.
43315         * doc/glibc-functions/accept4.texi: Mention the new module.
43316
43317 2009-08-24  Jim Meyering  <meyering@redhat.com>
43318
43319         progname: also set global program_invocation_name, when possible
43320         Before this change, a libtool-enabled program that calls glibc's
43321         error function would report the program name as
43322         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43323         * modules/progname (configure.ac): Check for a declaration of
43324         program_invocation_name.
43325         * lib/progname.c:  Include <errno.h>.
43326         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43327         Set program_invocation_name.
43328
43329 2009-08-23  Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/dup3.c: Include <string.h>.
43332
43333 2009-08-23  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43336         * lib/pipe2.c (pipe2): Likewise.
43337         Suggested by Eric Blake.
43338
43339 2009-08-23  Bruno Haible  <bruno@clisp.org>
43340
43341         Tolerate declared but missing dup3 syscall.
43342         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43343         * lib/unistd.in.h (dup3): If the function is already present,
43344         override it.
43345         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43346         * modules/dup3 (Makefile.am): Compile dup3.c always.
43347         Reported by Paolo Bonzini.
43348
43349 2009-08-23  Bruno Haible  <bruno@clisp.org>
43350
43351         Tolerate declared but missing pipe2 syscall.
43352         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43353         available.
43354         * lib/unistd.in.h (pipe2): If the function is already present,
43355         override it.
43356         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43357         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43358         Reported by Paolo Bonzini.
43359
43360 2009-08-23  Bruno Haible  <bruno@clisp.org>
43361
43362         * lib/pipe2.c (pipe2): Move #ifs inside function.
43363
43364 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43365
43366         quotearg: document limitations of quote_these_too
43367         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43368         those limitations are created.
43369         * lib/quotearg.h (set_char_quoting): Document that digits and
43370         letters that are special after backslash are not permitted.
43371         (quotearg_char): Cross-reference set_char_quoting documentation.
43372
43373 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43374
43375         quotearg: implement custom_quoting_style
43376         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43377         right_quote fields.
43378         (set_custom_quoting): New public function.
43379         (quotearg_buffer_restyled): Add left_quote and right_quote
43380         arguments, handle them very much like locale quoting, and update
43381         all uses.
43382         (quotearg_n_custom): New public function.
43383         (quotearg_n_custom_mem): New public function.
43384         (quotearg_custom): New public function.
43385         (quotearg_custom_mem): New public function.
43386         * lib/quotearg.h: Prototype and document new public functions.
43387         (enum quoting_style): For escape_quoting_style and
43388         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43389         ignored even though they're otherwise like c_quoting_style.
43390         Add custom_quoting_style member and document with comparison to
43391         clocale_quoting_style.
43392         * tests/test-quotearg.c (custom_quotes): New array.
43393         (custom_results): New array.
43394         (main): Extend to test custom quoting.
43395
43396 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43397
43398         quotearg: fix right quote escaping when it's in quote_these_too
43399         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43400         quote, be sure to prepend only one backslash.
43401         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43402         (main): Test it.
43403
43404 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43405
43406         quotearg-tests: test escaping of embedded locale quotes
43407         * tests/test-quotearg.c (struct result_strings): Add member for
43408         new input.
43409         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43410         (inputs): Add new input.
43411         (results_g): Add expected results.
43412         (flag_results): Likewise.
43413         (locale_results): Likewise.
43414         (compare_strings): Check those.
43415
43416 2009-08-23  Bruno Haible  <bruno@clisp.org>
43417
43418         Tests for module 'dup3'.
43419         * modules/dup3-tests: New file.
43420         * tests/test-dup3.c: New file.
43421
43422         New module 'dup3'.
43423         * lib/unistd.in.h (dup3): New declaration.
43424         * lib/dup3.c: New file.
43425         * m4/dup3.m4: New file.
43426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43427         HAVE_DUP3.
43428         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43429         * modules/dup3: New file.
43430         * doc/glibc-functions/dup3.texi: Mention the new module.
43431
43432 2009-08-23  Bruno Haible  <bruno@clisp.org>
43433
43434         Tweak the dup2 test.
43435         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43436         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43437         the test file is still empty. Fix argument order of lseek.
43438
43439 2009-08-23  Bruno Haible  <bruno@clisp.org>
43440
43441         Avoid test link errors when the modules getopt-gnu, gettext are used.
43442         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43444
43445 2009-08-23  Bruno Haible  <bruno@clisp.org>
43446
43447         Fix getdtablesize() on mingw.
43448         * lib/getdtablesize.c (getdtablesize): Implement differently.
43449         * lib/unistd.in.h (getdtablesize): Improve comment.
43450
43451 2009-08-23  Bruno Haible  <bruno@clisp.org>
43452
43453         New module 'mkostemp'.
43454         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43455         * lib/stdlib.in.h (mksotemp): New declaration.
43456         * lib/mkostemp.c: New file, from glibc with modifications.
43457         * lib/tempname.h (GT_FILE): Remove outdated comment.
43458         (gen_tempname): Add flags argument.
43459         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43460         (__GT_FILE): Map to 1.
43461         (small_open, large_open): Remove macros.
43462         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43463         * lib/mkstemp.c (mkstemp): Update.
43464         * lib/mkdtemp.c (mkdtemp): Likewise.
43465         * m4/mkostemp.m4: New file.
43466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43467         HAVE_MKOSTEMP.
43468         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43469         HAVE_MKOSTEMP.
43470         * modules/mkostemp: New file, based on modules/mkstemp.
43471         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43472         * NEWS: Mention the change.
43473
43474 2009-08-23  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43477         Reported by Eric Blake.
43478
43479 2009-08-23  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43482         Reported by Eric Blake.
43483
43484 2009-08-23  Bruno Haible  <bruno@clisp.org>
43485
43486         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43487         * modules/pipe2 (Depends-on): Likewise.
43488
43489 2009-08-23  Eric Blake  <ebb9@byu.net>
43490
43491         fcntl-h: add O_TTY_INIT support
43492         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43493         * tests/test-fcntl-h.c (o): Test it.
43494         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43495
43496         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43497         * modules/fcntl: Move <fcntl.h> header replacement...
43498         * modules/fcntl-h: ...to new name, so as not to collide with
43499         like-named function.
43500         * tests/test-fcntl.c: Rename...
43501         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43502         * modules/fcntl-tests: Rename...
43503         * modules/fcntl-h-tests: ...to this.  Update test file name.
43504         * modules/chdir-long (Depends-on): Update clients.
43505         * modules/chdir-safer (Depends-on): Likewise.
43506         * modules/fcntl-safer (Depends-on): Likewise.
43507         * modules/fts (Depends-on): Likewise.
43508         * modules/mkancesdirs (Depends-on): Likewise.
43509         * modules/mkdir-p (Depends-on): Likewise.
43510         * modules/open (Depends-on): Likewise.
43511         * modules/savewd (Depends-on): Likewise.
43512         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43513         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43514
43515 2009-08-22  Bruno Haible  <bruno@clisp.org>
43516
43517         * modules/binary-io (License): Relicense under LGPL.
43518         * modules/pipe2 (License): Likewise.
43519
43520 2009-08-22  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43523         return value.
43524         * lib/pipe-filter-gi.c (filter_init): Likewise.
43525         Reported by Eric Blake.
43526
43527 2009-08-22  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43530         * modules/pipe (Depends-on): Add pipe2.
43531
43532 2009-08-22  Bruno Haible  <bruno@clisp.org>
43533
43534         Tests for module 'pipe2'.
43535         * modules/pipe2-tests: New file.
43536         * tests/test-pipe2.c: New file.
43537
43538         New module 'pipe2'.
43539         * lib/unistd.in.h (pipe2): New declaration.
43540         * lib/pipe2.c: New file.
43541         * m4/pipe2.m4: New file.
43542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43543         HAVE_PIPE2.
43544         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43545         * modules/pipe2: New file.
43546         * doc/glibc-functions/pipe2.texi: Mention the new module.
43547
43548 2009-08-22  Bruno Haible  <bruno@clisp.org>
43549
43550         Reference some new glibc functions.
43551         * doc/glibc-functions/accept4.texi: New file.
43552         * doc/glibc-functions/dup3.texi: New file.
43553         * doc/glibc-functions/mkostemp.texi: New file.
43554         * doc/glibc-functions/pipe2.texi: New file.
43555         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43556         (Glibc sys/socket.h): Refer to accept4.
43557         (Glibc unistd.h): Refer to dup3, pipe2.
43558         Reported by Eric Blake.
43559
43560 2009-08-22  Jim Meyering  <meyering@redhat.com>
43561             Bruno Haible  <bruno@clisp.org>
43562
43563         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43564         This makes it so packages using automake-1.11's silent-rules option
43565         can print e.g., a single "GEN    configmake.h" line, rather than
43566         the 30+ statements that perform the job.  If you want to see the
43567         actual commands, you can still run "make V=1".
43568         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43569         so that make output is abbreviated when those variables are defined
43570         appropriately.
43571         * modules/argz: Likewise.
43572         * modules/arpa_inet: Likewise.
43573         * modules/byteswap: Likewise.
43574         * modules/configmake: Likewise.
43575         * modules/dirent: Likewise.
43576         * modules/errno: Likewise.
43577         * modules/fcntl: Likewise.
43578         * modules/float: Likewise.
43579         * modules/fnmatch: Likewise.
43580         * modules/getopt-posix: Likewise.
43581         * modules/glob: Likewise.
43582         * modules/iconv_open: Likewise.
43583         * modules/inttypes: Likewise.
43584         * modules/localcharset: Likewise.
43585         * modules/locale: Likewise.
43586         * modules/math: Likewise.
43587         * modules/netdb: Likewise.
43588         * modules/netinet_in: Likewise.
43589         * modules/poll: Likewise.
43590         * modules/posix_spawnp-tests: Likewise.
43591         * modules/sched: Likewise.
43592         * modules/search: Likewise.
43593         * modules/selinux-h: Likewise.
43594         * modules/signal: Likewise.
43595         * modules/spawn: Likewise.
43596         * modules/stdarg: Likewise.
43597         * modules/stdbool: Likewise.
43598         * modules/stddef: Likewise.
43599         * modules/stdint: Likewise.
43600         * modules/stdio: Likewise.
43601         * modules/stdlib: Likewise.
43602         * modules/string: Likewise.
43603         * modules/strings: Likewise.
43604         * modules/sys_file: Likewise.
43605         * modules/sys_ioctl: Likewise.
43606         * modules/sys_select: Likewise.
43607         * modules/sys_socket: Likewise.
43608         * modules/sys_stat: Likewise.
43609         * modules/sys_time: Likewise.
43610         * modules/sys_times: Likewise.
43611         * modules/sys_utsname: Likewise.
43612         * modules/sys_wait: Likewise.
43613         * modules/sysexits: Likewise.
43614         * modules/time: Likewise.
43615         * modules/unistd: Likewise.
43616         * modules/wchar: Likewise.
43617         * modules/wctype: Likewise.
43618
43619 2009-08-22  Jim Meyering  <meyering@redhat.com>
43620
43621         announce-gen: detect write failure
43622         * build-aux/announce-gen: Add Coda at end.
43623         Remove equivalent-but-more-verbose block at top.
43624
43625 2009-08-19  Akim Demaille  <demaille@gostai.com>
43626
43627         bootstrap: --help to stdout.
43628         * bootstrap (usage): Don't send --help to stderr.
43629         Use a here doc instead of a long string.
43630
43631 2009-08-21  Eric Blake  <ebb9@byu.net>
43632
43633         test-popen-safer: split from test-popen
43634         * tests/test-popen.c (main): Move...
43635         * tests/test-popen.h: ...into new file.
43636         * tests/test-popen-safer2.c: New file.
43637         * modules/popen-tests (Files): Add test-popen.h.
43638         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43639         Suggested by Bruno Haible.
43640
43641         test-fcntl-safer: split from test-open
43642         * tests/test-open.c (main): Move...
43643         * tests/test-open.h: ...into new file.
43644         * tests/test-fcntl-safer.c: New file.
43645         * modules/open-tests (Files): Add test-open.h.
43646         * modules/fcntl-safer-tests: New file.
43647         Suggested by Bruno Haible.
43648
43649         test-fopen-safer: split from test-fopen
43650         * tests/test-fopen.c (main): Move...
43651         * tests/test-fopen.h: ...into new file.
43652         * tests/test-fopen-safer.c: New file.
43653         * modules/fopen-tests (Files): Add test-fopen.h.
43654         * modules/fopen-safer-tests: New file.
43655         Suggested by Bruno Haible.
43656
43657 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43658
43659         popen-safer: test O_CLOEXEC at run-time.
43660         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43661
43662 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43663
43664         fcntl: move more flags to the header
43665         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43666         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43667         * lib/fcntl.in.h: Do both things here.
43668
43669 2009-08-21  Jim Meyering  <meyering@redhat.com>
43670
43671         consistently remove $@-t before redirecting to it
43672         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43673         * modules/alloca-opt: Likewise.
43674         * modules/byteswap: Likewise.
43675         * modules/fnmatch: Likewise.
43676         * modules/getopt-posix: Likewise.
43677         * modules/glob: Likewise.
43678         * modules/poll: Likewise.
43679         * modules/posix_spawnp-tests: Likewise.
43680         * modules/sys_socket: Likewise.
43681         * modules/sysexits: Likewise.
43682
43683 2009-08-21  Eric Blake  <ebb9@byu.net>
43684
43685         popen: simplify access to original popen
43686         * lib/popen.c (rpl_popen): No need to worry about popen being a
43687         macro.
43688         Reported by Bruno Haible.
43689
43690 2009-08-20  Eric Blake  <ebb9@byu.net>
43691
43692         build: avoid some compiler warnings
43693         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43694         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43695         type.
43696         (new_exclude_segment, excluded_file_pattern_p)
43697         (excluded_file_name_p): Reduce scope.
43698         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43699         old-style declaration.
43700
43701 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43702
43703         * tests/test-exclude1.sh: Handle Windows EOL.
43704         * tests/test-exclude2.sh: Likewise.
43705         * tests/test-exclude3.sh: Likewise.
43706         * tests/test-exclude4.sh: Likewise.
43707         * tests/test-exclude5.sh: Likewise.
43708         * tests/test-exclude6.sh: Likewise.
43709         * tests/test-exclude7.sh: Likewise.
43710
43711 2009-08-19  Akim Demaille  <demaille@gostai.com>
43712
43713         bootstrap: find sha1sum when named gsha1sum.
43714         * bootstrap (find_tool): New.
43715         ($SHA1SUM): New.
43716         Use it.
43717
43718 2009-08-20  Jim Meyering  <meyering@redhat.com>
43719
43720         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43721         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43722         expression that converts "." in a file name to "\." in the resulting
43723         regexp.  Start with a dummy statement, so that prior shell variable
43724         definitions are expanded portably.  Reported by Simon Josefsson.
43725
43726 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43727
43728         Fix polling for writeability of a screen buffer.
43729         * lib/poll.c: Distinguish input and screen buffers for the
43730         Win32 implementation.
43731         * lib/select.c: Likewise.
43732
43733 2009-08-19  Eric Blake  <ebb9@byu.net>
43734
43735         popen-safer: prevent popen from clobbering std descriptors
43736         * modules/popen-safer: New file.
43737         * lib/popen-safer.c: Likewise.
43738         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43739         * lib/stdio--.h (popen): Provide override.
43740         * lib/stdio-safer.h (popen_safer): Provide declaration.
43741         * tests/test-popen.c (includes): Partially test this.
43742         * modules/popen-safer-tests: New file, for more tests.
43743         * tests/test-popen-safer.c: Likewise.
43744         * MODULES.html.sh (file stream based Input/Output): Mention it.
43745
43746         tests: test some of the *-safer modules
43747         * modules/fopen-safer (Depends-on): Add fopen.
43748         * modules/fcntl-safer (Depends-on): Add fcntl.
43749         * modules/stdlib-safer (Depends-on): Add stdlib.
43750         (configure.ac): Set indicator.
43751         * modules/unistd-safer (configure.ac): Likewise.
43752         * modules/tmpfile-safer (configure.ac): Likewise.
43753         (Depends-on): Add tmpfile.
43754         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43755         active.
43756         * tests/test-fopen.c (includes): Test safer versions when they are
43757         in use.
43758         * tests/test-open.c (includes): Likewise.
43759
43760         popen: fix cygwin 1.5 bug when stdin closed
43761         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43762         * modules/popen: New file.
43763         * modules/popen-tests: Likewise.
43764         * tests/test-popen.c: Likewise.
43765         * m4/popen.m4: Likewise.
43766         * lib/popen.c: Likewise.
43767         * lib/stdio.in.h (popen): New declaration.
43768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43769         * modules/stdio (Makefile.am): Likewise.
43770         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43771
43772 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43773
43774         maint.mk: give full control over update-copyright exclusions
43775         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43776         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43777         (update-copyright): Don't force inclusion of top-level
43778         ChangeLog.  Don't force exclusion of all COPYING files, but make
43779         them the default exclusion instead.
43780
43781 2009-08-16  Bruno Haible  <bruno@clisp.org>
43782
43783         Fix test failures on Solaris 10.
43784         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43785         tests when Solaris iconv() is used.
43786         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43787         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43788         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43789         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43790         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43791
43792 2009-08-16  Bruno Haible  <bruno@clisp.org>
43793
43794         Fix test failures on Solaris 10.
43795         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43796         'tr' program and pass it as first argument.
43797         * tests/test-pipe-filter-gi1.sh: Likewise.
43798         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43799         program as first argument.
43800         * tests/test-pipe-filter-gi1.c (main): Likewise.
43801
43802 2009-08-16  Eric Blake  <ebb9@byu.net>
43803
43804         fpurge: fix previous commits
43805         * modules/fpurge (Makefile.am): Make replacement conditional,
43806         partially reverting 2007-04-29 change; missed in previous
43807         attempt.
43808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43809         is missing.
43810
43811 2009-08-16  Bruno Haible  <bruno@clisp.org>
43812
43813         Clarify fpurge's effect on the file position.
43814         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43815         * tests/test-fpurge.c (main): Make a second pass for checking the file
43816         position.
43817
43818 2009-08-16  Bruno Haible  <bruno@clisp.org>
43819
43820         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43821         declaration of fpurge is missing.
43822         * tests/test-fpurge.c (main): Check that the file has not more contents
43823         than expected. Close the file before removing it.
43824
43825 2009-08-15  Eric Blake  <ebb9@byu.net>
43826
43827         fpurge: don't wrap working cygwin implementation
43828         * lib/fpurge.c (fpurge): Fix comment typo.
43829         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43830         1.7 to avoid replacement.
43831         * tests/test-fpurge.c (main): Enhance test.
43832
43833 2009-08-15  Eric Blake  <ebb9@byu.net>
43834         and Jim Meyering  <meyering@redhat.com>
43835
43836         test-update-copyright: skip if perl is insufficient
43837         * tests/test-update-copyright.sh: Failure to run maintainer tool
43838         should not cause testsuite failure on cygwin 1.5.
43839
43840 2009-08-14  Eric Blake  <ebb9@byu.net>
43841
43842         doc: mention more functions added in cygwin 1.7.0
43843         * doc/posix-headers/limits.texi (limits.h): Update for recent
43844         cygwin additions.
43845         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43846         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43847         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43848         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43849         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43850
43851 2009-08-14  Eric Blake  <ebb9@byu.net>
43852
43853         maint.mk: simplify update-copyright rule
43854         * top/maint.mk (update-copyright-local): Delete, and document how
43855         to do it in cfg.mk instead.
43856         (update-copyright-exclude-regexp): Delete, and document how to do
43857         it in .x-update-copyright instead.
43858         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43859         exclude ChangeLog.
43860
43861 2009-08-14  Bruno Haible  <bruno@clisp.org>
43862
43863         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43864
43865 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43866
43867         maint.mk: support update-copyright-env
43868         * top/maint.mk (update-copyright-env): Define place-holder.
43869         (update-copyright): Expand $(update-copyright-env) before
43870         invoking update-copyright.
43871
43872 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43873
43874         update-copyright: implement forced reformatting
43875         * build-aux/update-copyright: Implement and document
43876         UPDATE_COPYRIGHT_FORCE.
43877         * tests/test-update-copyright.sh: Test it.
43878
43879 2009-08-14  Eric Blake  <ebb9@byu.net>
43880         and Bruno Haible  <bruno@clisp.org>
43881
43882         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43883         * tests/test-locale.c: Revert previous patch related to NULL.
43884         * tests/test-stdio.c: Likewise.
43885         * tests/test-stdlib.c: Likewise.
43886         * tests/test-string.c: Likewise.
43887         * tests/test-unistd.c: Likewise.
43888         * modules/time-tests (Depends-on): Add verify.
43889         * modules/wchar-tests (Depends-on): Likewise.
43890         * tests/test-time.c: Test for NULL compliance.
43891         * tests/test-wchar.c: Likewise.
43892         * modules/locale (Depends-on): Add stddef.
43893         * modules/stdio (Depends-on): Likewise.
43894         * modules/stdlib (Depends-on): Likewise.
43895         * modules/string (Depends-on): Likewise.
43896         * modules/time (Depends-on): Likewise.
43897         * modules/unistd (Depends-on): Likewise.
43898         * modules/wchar (Depends-on): Likewise.
43899         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43900         * lib/stdlib.in.h (includes): Likewise.
43901         * lib/string.in.h (includes): Likewise.
43902         * lib/time.in.h (includes): Likewise.
43903         * lib/unistd.in.h (includes): Likewise.
43904         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43905         replaced.
43906         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43907         * m4/stddef_h.m4: New file.
43908         * modules/stddef: Likewise.
43909         * lib/stddef.in.h: Likewise.
43910         * modules/stddef-tests: Likewise.
43911         * tests/test-stddef.c: Likewise.
43912         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43913         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43914         * doc/posix-headers/locale.texi (locale.h): Likewise.
43915         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43916         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43917         * doc/posix-headers/string.texi (string.h): Likewise.
43918         * doc/posix-headers/time.texi (time.h): Likewise.
43919         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43920         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43921
43922 2009-08-14  Eric Blake  <ebb9@byu.net>
43923
43924         doc: improve git diff of texinfo files
43925         * .gitattributes: Add rule for *.texi files, with hint on how to
43926         use it.
43927         Copied from m4, and based on a report by Bruno Haible.
43928
43929 2009-08-14  Bruno Haible  <bruno@clisp.org>
43930
43931         Disable multithread support by default on Cygwin 1.5.x for real.
43932         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43933
43934 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43935
43936         update-copyright: much ado about intervals
43937         * build-aux/update-copyright: Implement and document
43938         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43939         of copyright year intervals.
43940         Also, document UPDATE_COPYRIGHT_YEAR.
43941         * tests/test-update-copyright.sh: Test it.
43942
43943         update-copyright: convert 2-digit to 4-digit years
43944         * build-aux/update-copyright: Implement and document.
43945         * tests/test-update-copyright.sh: Update.
43946
43947 2009-08-14  Jim Meyering  <meyering@redhat.com>
43948
43949         test-exclude: avoid coreutils "make check" failure
43950         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43951         just as in test-argmatch.c.
43952
43953 2009-08-13  Eric Blake  <ebb9@byu.net>
43954
43955         test-dup2: fix bad assumption
43956         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43957         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43958
43959         test-version-etc: fix CRLF portability issue
43960         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43961         recognize \r.
43962         * tests/test-argp-version-etc-1.sh: Likewise.
43963
43964         getopt: update client modules
43965         * modules/argp (Depends-on): Use getopt-gnu.
43966         * modules/git-merge-changelog (Depends-on): Likewise.
43967         * modules/long-options (Depends-on): Likewise.
43968         * modules/xstrtol (Depends-on): Likewise.
43969
43970 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43971
43972         * tests/test-version-etc.sh: Don't fail on different
43973         project/version.  Don't fail on CRLF differences.  Rewrite to use
43974         multiple -e instead of multiple sed forks, suggested by Eric Blake
43975         <ebb9@byu.net>.
43976         * tests/test-argp-version-etc-1.sh: Likewise.
43977
43978 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43979
43980         * tests/test-version-etc.sh: Don't fail on different
43981         project/version.
43982
43983 2009-08-12  Bruno Haible  <bruno@clisp.org>
43984
43985         Tests for modules 'getopt-posix', 'getopt-gnu'.
43986         * modules/getopt-posix-tests: New file.
43987         * tests/test-getopt.c: New file.
43988         * tests/test-getopt.h: New file.
43989         * tests/test-getopt_long.h: New file.
43990
43991         New modules 'getopt-posix', 'getopt-gnu'.
43992         * modules/getopt-gnu: New file, renamed from modules/getopt.
43993         * modules/getopt-posix: New file.
43994         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43995         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43996         (gl_GETOPT): Remove macro.
43997         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43998         Disable the test against BSD systems that declare optreset. Test
43999         against mingw bug. Test against lack of support of optional arguments
44000         on many platforms.
44001         * doc/glibc-headers/getopt.texi: Update module name and list of
44002         relevant platforms.
44003         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44004         'getopt-gnu' and more portability problems.
44005         * NEWS: Mention the changes.
44006
44007 2009-08-12  Bruno Haible  <bruno@clisp.org>
44008
44009         Ensure that optarg etc. get declared by <unistd.h>.
44010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44011         AC_USE_SYSTEM_EXTENSIONS.
44012         * modules/getopt (Depends-on): Add 'extensions'.
44013
44014 2009-08-12  Bruno Haible  <bruno@clisp.org>
44015
44016         Avoid test link errors.
44017         * modules/pipe-filter-ii-tests (Makefile.am): Define
44018         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44019         * modules/pipe-filter-gi-tests (Makefile.am): Define
44020         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44022
44023 2009-08-12  Bruno Haible  <bruno@clisp.org>
44024
44025         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44026         gl_GETOPT_SUBSTITUTE before.
44027         (gl_GETOPT): Use it.
44028         * m4/argp.m4 (gl_ARGP): Update.
44029         Reported by Sergey Poznyakoff.
44030
44031         * m4/getopt.m4: Reorder macros.
44032         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44033         (gl_GETOPT_SUBSTITUTE): Remove macro.
44034
44035 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44036
44037         Minor improvement in gitlog-to-changelog
44038
44039         * build-aux/gitlog-to-changelog: New option `--format' makes
44040         output format string configurable.
44041
44042 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44043
44044         Optimize exclude: use hash tables for non-wildcard patterns.
44045
44046         * lib/exclude.c: Include hash.h and mbuiter.h
44047         (struct exclude_pattern, exclude_segment): New data types.
44048         (struct exclude): Rewrite.
44049         (fnmatch_pattern_has_wildcards): New function.
44050         (new_exclude_segment, free_exclude_segment): New functions.
44051         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44052         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44053         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44054         * modules/exclude: Depend on hash and mbuiter.
44055
44056         * modules/exclude-tests: New file.
44057         * tests/test-exclude.c: New file.
44058         * tests/test-exclude1.sh: New file.
44059         * tests/test-exclude2.sh: New file.
44060         * tests/test-exclude3.sh: New file.
44061         * tests/test-exclude4.sh: New file.
44062         * tests/test-exclude5.sh: New file.
44063         * tests/test-exclude6.sh: New file.
44064         * tests/test-exclude7.sh: New file.
44065
44066 2009-08-12  Bruno Haible  <bruno@clisp.org>
44067
44068         Ensure that getopt() gets declared by <unistd.h>.
44069         * lib/unistd.in.h: Conditionally include getopt.h.
44070         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44071         Set GNULIB_UNISTD_H_GETOPT.
44072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44073         GNULIB_UNISTD_H_GETOPT.
44074         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44075
44076 2009-08-12  Bruno Haible  <bruno@clisp.org>
44077
44078         Clarify logic.
44079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44080         gl_replace_getopt instead of GETOPT_H.
44081
44082 2009-08-12  Bruno Haible  <bruno@clisp.org>
44083
44084         * m4/getopt.m4: Add comments.
44085
44086 2009-08-12  Bruno Haible  <bruno@clisp.org>
44087
44088         Disable multithread support by default on Cygwin 1.5.x.
44089         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44090         set gl_use_threads=no if not specified otherwise.
44091
44092 2009-08-11  Bruno Haible  <bruno@clisp.org>
44093
44094         Avoid compilation error on NetBSD 5.0.
44095         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44096         * tests/test-stdio.c: Likewise.
44097         * tests/test-stdlib.c: Likewise.
44098         * tests/test-string.c: Likewise.
44099         * tests/test-unistd.c: Likewise.
44100         Reported by Greg Troxel <gdt@ir.bbn.com>
44101         at <https://savannah.gnu.org/support/?106973>.
44102
44103 2009-08-11  Bruno Haible  <bruno@clisp.org>
44104
44105         * modules/dup2-tests (Depends-on): Remove close.
44106
44107         Undo 2009-07-19 commit.
44108         * modules/acl-tests (Depends-on): Remove close.
44109         * modules/binary-io-tests (Depends-on): Likewise.
44110         * modules/closein-tests (Depends-on): Likewise.
44111         * modules/flock-tests (Depends-on): Likewise.
44112         * modules/fsync-tests (Depends-on): Likewise.
44113         * modules/lseek-tests (Depends-on): Likewise.
44114         * modules/pipe-tests (Depends-on): Likewise.
44115         * modules/posix_spawn-tests (Depends-on): Likewise.
44116         * modules/posix_spawnp-tests (Depends-on): Likewise.
44117         * modules/stat-time-tests (Depends-on): Likewise.
44118         * modules/yesno-tests (Depends-on): Likewise.
44119
44120 2009-08-10  Bruno Haible  <bruno@clisp.org>
44121
44122         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44123
44124 2009-08-10  Bruno Haible  <bruno@clisp.org>
44125
44126         Fix a gcc warning.
44127         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44128
44129 2009-08-10  Bruno Haible  <bruno@clisp.org>
44130
44131         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44132         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44133         not only the first time.
44134         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44135         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44136         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44137         is 1, not only the the first time.
44138
44139 2009-08-10  Bruno Haible  <bruno@clisp.org>
44140
44141         Make it possible to use module 'gethostname' without module 'close'.
44142         * lib/unistd.in.h (close): Evoke a link error only if
44143         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44145         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44146         * modules/unistd (Makefile.am): Substitute
44147         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44148         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44149         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44151         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44152         * modules/sys_ioctl (Makefile.am): Substitute
44153         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44154         * modules/socket (configure.ac): On native Windows, set
44155         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44157         Reported by Sam Steingold <sds@gnu.org>.
44158
44159 2009-08-10  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44162         * modules/ioctl (configure.ac): Likewise.
44163
44164 2009-08-10  Bruno Haible  <bruno@clisp.org>
44165
44166         Avoid collision between gnulib wrapper and libintl wrapper.
44167         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44168         already defined in intl/printf.c.
44169         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44170         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44171
44172 2009-08-09  Bruno Haible  <bruno@clisp.org>
44173
44174         Make <sys/select.h> really self-contained, also on Solaris 10.
44175         * lib/sys_select.in.h: Include <string.h>.
44176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44177         Solaris 10 problem.
44178         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44179         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44180         Reported by Jim Meyering.
44181
44182 2009-08-09  Bruno Haible  <bruno@clisp.org>
44183
44184         Avoid warnings from 'aclocal' that are due to a use of macro name
44185         AM_XGETTEXT_OPTION that is not defined in automake.
44186         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44187         automake.
44188         * modules/error (configure.ac): Likewise.
44189         * modules/propername (configure.ac): Likewise.
44190         * modules/vasprintf (configure.ac): Likewise.
44191         * modules/verror (configure.ac): Likewise.
44192         * modules/xprintf (configure.ac): Likewise.
44193         * modules/xvasprintf (configure.ac): Likewise.
44194
44195 2009-08-08  Bruno Haible  <bruno@clisp.org>
44196
44197         Avoid compilation error in C++ mode.
44198         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44199         Reported by Sam Steingold <sds@gnu.org>.
44200
44201 2009-08-08  Bruno Haible  <bruno@clisp.org>
44202
44203         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44204         for the various Unix platforms.
44205         * doc/posix-headers/limits.texi: Update platforms list regarding
44206         HOST_NAME_MAX.
44207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44208
44209 2009-08-07  Jim Meyering  <meyering@redhat.com>
44210
44211         selinux-at: fix typo in a comment
44212         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44213         Spotted by Paolo Bonzini.
44214
44215         selinux-at: remove redundant m4 code, add documentation
44216         * modules/selinux-at (configure.ac): Remove redundant code.
44217         LIB_SELINUX is already set via the dependent module, selinux-h.
44218         (Include): Add quotes around selinux-at.h.
44219         * lib/selinux-at.h: Add documentation.
44220         Reported by Bruno Haible in
44221         http://marc.info/?l=gnulib-bug&m=124958988300749
44222
44223 2009-08-07  Bruno Haible  <bruno@clisp.org>
44224
44225         Avoid link error on MacOS X 10.3 and 10.4.
44226         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44227         on non-ELF systems.
44228         * lib/argp-pv.c (argp_program_version): Likewise.
44229         Reported by Simon Josefsson.
44230
44231 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44232
44233         * tests/test-version-etc.sh: Use $EXEEXT.
44234
44235 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44236
44237         update-copyright: update documentation to point to maint.mk
44238         * build-aux/update-copyright: Here.
44239
44240 2009-08-06  Jim Meyering  <meyering@redhat.com>
44241
44242         maint.mk: support update-copyright-local
44243         * top/maint.mk (update-copyright-local): Define place-holder.
44244         (update-copyright): Depend on $(update-copyright-local).
44245
44246 2009-08-06  Jim Meyering  <meyering@redhat.com>
44247
44248         selinux-at: new module
44249         Initially written for coreutils, this module will soon be
44250         used by findutils, too.
44251         * MODULES.html.sh [Misc]: Add selinux-at.
44252         * lib/selinux-at.h: New file, from coreutils.
44253         * lib/selinux-at.c: Likewise.
44254         * modules/selinux-at: Likewise.
44255         (License): Change from LGPL to GPL, since it depends
44256         on the GPL'd openat module.
44257
44258         doc: update README
44259         * README: Remove references to cogito.
44260         Remove cvs-repo-updating instructions from 2007.
44261         Don't imply that CVS is better if you have limited disk space.
44262
44263 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44264
44265         update-copyright: support C-style comments
44266         * build-aux/update-copyright: Implement and document.
44267         * tests/test-update-copyright.sh: Test.
44268
44269 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44270
44271         update-copyright: support omitted "(C)"
44272         * build-aux/update-copyright: Implement and document.  Also,
44273         allow variable whitespace before "(C)".
44274         * tests/test-update-copyright.sh: Test.
44275
44276 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44277
44278         update-copyright: don't trip on non-FSF copyright statements
44279         * build-aux/update-copyright: Fix so that the first correctly
44280         formatted FSF copyright statement is recognized no matter what
44281         appears before it.  Update documentation.
44282         * tests/test-update-copyright.sh: Test that.
44283
44284 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44285
44286         update-copyright: clean up code a little
44287         * build-aux/update-copyright: Append "_re" to the name of any
44288         variable holding a regular expression.
44289         Replace "old" and "new" with "stmt" in variable names.
44290         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44291         handled correctly.
44292         Format code more consistently.
44293
44294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44295
44296         update-copyright-tests: improve portability
44297         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44298         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44299
44300 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44301
44302         update-copyright: support @copyright{} and &copy;
44303         * build-aux/update-copyright: Implement and document.
44304         * tests/test-update-copyright.sh: Test.
44305
44306 2009-08-04  Jim Meyering  <meyering@redhat.com>
44307
44308         update-copyright-tests: correctly test EOL=\r\n handling
44309         * tests/test-update-copyright.sh: Put \r at the end of some lines
44310         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44311
44312         maint.mk: make update-copyright exclusion list more configurable
44313         * top/maint.mk (update-copyright): Default to excluding COPYING,
44314         but allow an override, in case someone does want to update that file.
44315
44316         maint.mk: don't update copyright date in COPYING
44317         * top/maint.mk (update-copyright): Exclude COPYING.
44318
44319         maint.mk: add a copyright-updating rule
44320         * top/maint.mk (update-copyright): New rule.
44321         Derived from coreutils/Makefile.am.
44322
44323         update-copyright: rename some variables
44324         * build-aux/update-copyright: Rename a few variables for clarity.
44325         Tweak syntax.  List Joel E. Denny as coauthor.
44326
44327 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44328
44329         update-copyright: fix bug for 2-digit last year and add tests
44330         * build-aux/update-copyright: Fix bug.
44331         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44332         specified.
44333         * modules/update-copyright-tests: New
44334         * tests/test-update-copyright.sh: New.
44335
44336 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44337
44338         update-copyright: handle leading tabs in line prefix
44339         * build-aux/update-copyright: Count leading tabs as 8 spaces
44340         when computing margin.  This helps with the formatting of
44341         ChangeLogs, for example.
44342         Fix documentation a little.
44343
44344 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44345
44346         update-copyright: support EOL=\r\n
44347         * build-aux/update-copyright: Implement that.
44348
44349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44350
44351         update-copyright: automatically format copyright statements
44352         * build-aux/update-copyright: Implement that.
44353         Also, be a little more predictable and safer by always failing
44354         when the full copyright format is not perfectly recognized as an
44355         unbroken whole.  Discussed at
44356         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44357         Rewrite documentation.
44358
44359 2009-08-03  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44362
44363 2009-08-02  Bruno Haible  <bruno@clisp.org>
44364
44365         Tests for module 'uname'.
44366         * modules/uname-tests: New file.
44367         * tests/test-uname.c: New file.
44368
44369         New module 'uname'.
44370         * lib/uname.c: New file.
44371         * m4/uname.m4: New file.
44372         * modules/uname: New file.
44373         * doc/posix-functions/uname.texi: Mention the new module.
44374
44375 2009-08-02  Bruno Haible  <bruno@clisp.org>
44376
44377         Tests for module 'sys_utsname'.
44378         * modules/sys_utsname-tests: New file.
44379         * tests/test-sys_utsname.c: New file.
44380
44381         New module 'sys_utsname'.
44382         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44383         * m4/sys_utsname_h.m4: New file.
44384         * modules/sys_utsname: New file.
44385         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44386
44387 2009-08-02  Bruno Haible  <bruno@clisp.org>
44388
44389         Implicitly initialize the sockets library.
44390         * lib/gethostname.c: Include sockets.h.
44391         (rpl_gethostname): Invoke gl_sockets_startup.
44392         * lib/socket.c: Include sockets.h.
44393         (rpl_socket): Invoke gl_sockets_startup.
44394         * modules/gethostname (Depends-on): Add sockets.
44395         * modules/socket (Depends-on): Likewise.
44396         * tests/test-poll.c: Don't include sockets.h.
44397         (main): Don't invoke gl_sockets_startup.
44398         * tests/test-select.c: Don't include sockets.h.
44399         (main): Don't invoke gl_sockets_startup.
44400
44401 2009-08-02  Bruno Haible  <bruno@clisp.org>
44402
44403         Allow multiple calls to gl_sockets_startup.
44404         * lib/sockets.c (initialized_sockets_version): New variable.
44405         (gl_sockets_startup): Do nothing if already called for this or a higher
44406         version.
44407         (gl_sockets_cleanup): Reset initialized_sockets_version.
44408
44409 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44410
44411         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44412         different project/version.
44413
44414 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44415             Bruno Haible  <bruno@clisp.org>
44416
44417         Tests for module 'pipe-filter-gi'.
44418         * modules/pipe-filter-gi-tests: New file.
44419         * tests/test-pipe-filter-gi1.sh: New file.
44420         * tests/test-pipe-filter-gi1.c: New file.
44421         * tests/test-pipe-filter-gi2.sh: New file.
44422         * tests/test-pipe-filter-gi2-main.c: New file.
44423         * tests/test-pipe-filter-gi2-child.c: New file.
44424
44425         New module 'pipe-filter-gi'.
44426         * lib/pipe-filter-gi.c: New file.
44427         * modules/pipe-filter-gi: New file.
44428
44429 2009-08-02  Bruno Haible  <bruno@clisp.org>
44430             Paolo Bonzini  <bonzini@gnu.org>
44431
44432         Tests for module 'pipe-filter-ii'.
44433         * modules/pipe-filter-ii-tests: New file.
44434         * tests/test-pipe-filter-ii1.sh: New file.
44435         * tests/test-pipe-filter-ii1.c: New file.
44436         * tests/test-pipe-filter-ii2.sh: New file.
44437         * tests/test-pipe-filter-ii2-main.c: New file.
44438         * tests/test-pipe-filter-ii2-child.c: New file.
44439
44440         New module 'pipe-filter-ii'.
44441         * lib/pipe-filter.h: New file.
44442         * lib/pipe-filter-ii.c: New file.
44443         * lib/pipe-filter-aux.h: New file.
44444         * modules/pipe-filter-ii: New file.
44445
44446 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44447
44448         * lib/gc-libgcrypt.c: Change copyright to FSF.
44449         * lib/gc-gnulib.c: Likewise.
44450
44451 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44452
44453         * lib/gethostname.c: Include limits.h.
44454
44455 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44456             Bruno Haible  <bruno@clisp.org>
44457
44458         Ensure HOST_NAME_MAX as part of the gethostname module.
44459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44460         define also HOST_NAME_MAX.
44461         * tests/test-gethostname.c: Include <limits.h>.
44462         (main): Check also HOST_NAME_MAX.
44463         * doc/posix-headers/limits.texi: Document the mingw problem.
44464
44465 2009-08-02  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44468         Add comments.
44469
44470 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44471
44472         * lib/gethostname.c: Add Windows wrapper.
44473         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44474         * modules/gethostname: Depend on sys_socket & errno, for also
44475         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44476         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44477
44478 2009-07-31  Jim Meyering  <meyering@redhat.com>
44479
44480         getloadavg: fix symbol name in comment
44481         * lib/getloadavg.c: Correct a typo I introduced when adding
44482         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44483         Matt Kraai spotted the problem.
44484
44485 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44486
44487         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44488         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44489         code also if ! defined N_NAME_POINTER.
44490         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44491         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44492         but the n_name member is a 12-byte array.
44493
44494 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44495
44496         update-copyright: generalize comment handling
44497         * build-aux/update-copyright: Handle copyright statements
44498         within more comment styles.
44499         Document usage.
44500         Report any file with an external copyright holder or parse failure.
44501
44502 2009-07-29  Jim Meyering  <meyering@redhat.com>
44503
44504         mktime: correct setting of REPLACE_MKTIME
44505         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44506
44507         update-copyright: new module
44508         * modules/update-copyright: New file.
44509         * build-aux/update-copyright: New file.
44510         * MODULES.html.sh (maint+release support): Add update-copyright.
44511
44512 2009-07-27  Bruno Haible  <bruno@clisp.org>
44513
44514         Fix compilation error when <ctime> is used and mktime is replaced.
44515         * lib/time.in.h (mktime): New declaration.
44516         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44517         REPLACE_MKTIME instead of defining mktime in config.h.
44518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44519         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44520         Reported by Ross McFarland <rwmcfa1@neces.com>.
44521
44522 2009-07-27  Bruno Haible  <bruno@clisp.org>
44523
44524         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44525         Reported by Matt Kraai <mkraai@beckman.com>.
44526
44527 2009-07-25  Jim Meyering  <meyering@redhat.com>
44528
44529         maint.mk: avoid warnings about missing files
44530         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44531         diagnostic when .prev-version does not exist.
44532         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44533         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44534         nonexistent cfg.mk.
44535         Suggestions from Simon Josefsson.
44536
44537 2009-07-25  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44540         defined as macros. Needed on QNX 6.4.1.
44541         Reported by Matt Kraai <mkraai@beckman.com>.
44542
44543 2009-07-23  Jim Meyering  <meyering@redhat.com>
44544
44545         maint.mk: invoke "make dist" with a working value of XZ_OPT
44546         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44547
44548 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44549
44550         Make fseeko.c compile on QNX.
44551         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44552
44553 2009-07-22  Peter Simons  <simons@cryp.to>
44554
44555         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44556         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44557         * lib/md4.h: Likewise.
44558         * lib/md5.h: Likewise.
44559         * lib/sha1.h: Likewise.
44560         * lib/sha256.h: Likewise.
44561         * lib/sha512.h: Likewise.
44562
44563         tests-sha1: don't assign literal string to 'char *' variable
44564         * tests/test-sha1.c (main): Declare locals with "const" to match
44565         attributes of the right hand side.
44566
44567 2009-07-21  Eric Blake  <ebb9@byu.net>
44568
44569         dup2: fix more mingw problems
44570         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44571         fd to itself.
44572         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44573         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44574         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44575         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44576         care of mingw bugs.
44577
44578 2009-07-21  Jim Meyering  <meyering@redhat.com>
44579
44580         vc-list-files: avoid failure when /bin/sh is dash
44581         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44582         On some Debian based systems, /bin/sh is a symlink to dash, and running
44583         this command would omit the "/" following each 'tests' prefix:
44584           dash -x build-aux/vc-list-files -C . tests
44585         That is because bash and dash work differently:
44586           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44587           bash ok
44588           dash odd
44589
44590 2009-07-21  Eric Blake  <ebb9@byu.net>
44591
44592         dup2-tests: test previous patch
44593         * modules/dup2-tests: New file.
44594         * tests/test-dup2.c: Likewise.
44595         * tests/test-open.c (main): Avoid unspecified behavior.
44596         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44597         test.
44598
44599         dup2: work around mingw and cygwin 1.5 bug
44600         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44602         * modules/unistd (Makefile.am): Substitute it.
44603         * lib/unistd.in.h (dup2): Declare the replacement.
44604         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44605         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44606         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44607         * modules/execute (Depends-on): Add dup2.
44608         * modules/fseterr (Depends-on): Likewise.
44609         * modules/pipe (Depends-on): Likewise.
44610         * modules/posix_spawn-internal (Depends-on): Likewise.
44611
44612 2009-07-21  Bruno Haible  <bruno@clisp.org>
44613
44614         * modules/.gitattributes: New file.
44615
44616 2009-07-20  Bruno Haible  <bruno@clisp.org>
44617
44618         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44619         (main): Use it.
44620
44621 2009-07-20  Eric Blake  <ebb9@byu.net>
44622
44623         test-pipe: make a bit more robust.
44624         * tests/test-pipe.c (myerr): Allow error messages regardless of
44625         what we do to stderr.
44626         (test_pipe): Rearrange to avoid deadlock.
44627         (child_main): Try a larger read, to ensure we avoided deadlock.
44628         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44629         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44630         if misused.
44631
44632 2009-07-19  Jim Meyering  <meyering@redhat.com>
44633
44634         fts: avoid false-positive cycle-detection
44635         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44636         for each new command line argument.
44637
44638 2009-07-19  Bruno Haible  <bruno@clisp.org>
44639
44640         Fix build error on mingw with the modules sys_select and unistd.
44641         * modules/acl-tests (Depends-on): Add close.
44642         * modules/binary-io-tests (Depends-on): Likewise.
44643         * modules/closein-tests (Depends-on): Likewise.
44644         * modules/flock-tests (Depends-on): Likewise.
44645         * modules/fsync-tests (Depends-on): Likewise.
44646         * modules/lseek-tests (Depends-on): Likewise.
44647         * modules/pipe-tests (Depends-on): Likewise.
44648         * modules/posix_spawn-tests (Depends-on): Likewise.
44649         * modules/posix_spawnp-tests (Depends-on): Likewise.
44650         * modules/stat-time-tests (Depends-on): Likewise.
44651         * modules/yesno-tests (Depends-on): Likewise.
44652
44653 2009-07-19  Bruno Haible  <bruno@clisp.org>
44654
44655         Unify conditionals.
44656         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44657         macros, not at the compiler macros.
44658         * lib/pipe.c: Likewise.
44659         * lib/execute.c: Likewise.
44660         * lib/spawni.c: Likewise.
44661
44662 2009-07-19  Bruno Haible  <bruno@clisp.org>
44663
44664         Fix handling of closed stdin/stdout/stderr on mingw.
44665         * lib/w32spawn.h: Include unistd.h.
44666         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44667         file descriptor with O_NOINHERIT flag.
44668         (fd_safer_noinherit): New function, based on fd-safer.c.
44669         (dup_safer_noinherit): New function, based on dup-safer.c.
44670         (undup_safer_noinherit): New function.
44671         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44672         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44673         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44674         instead of fd_safer.
44675         * tests/test-pipe.c: Include <windows.h>.
44676         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44677         result.
44678
44679         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44680         from main.
44681         (test_pipe): Pass an extra argument for disambiguation.
44682         (main): Invoke parent_main or child_main.
44683
44684         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44685         consistently.
44686
44687 2009-07-18  Eric Blake  <ebb9@byu.net>
44688
44689         test-pipe: fix mingw build
44690         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44691
44692 2009-07-18  Bruno Haible  <bruno@clisp.org>
44693
44694         * modules/pipe-tests (Makefile.am): Fix typo.
44695
44696 2009-07-18  Eric Blake  <ebb9@byu.net>
44697
44698         error: fix mingw build
44699         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44700         Reported by Bruno Haible.
44701
44702         error: avoid undefined use of stdout
44703         * lib/error.c (error, error_at_line): Check that fd 1 is open
44704         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44705         is handling faults and the close_stdout module wants to report the
44706         detection of closed stdout as an error.
44707
44708 2009-07-17  Eric Blake  <ebb9@byu.net>
44709
44710         pipe: be robust in face of closed fds
44711         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44712         should cause child to misbehave.
44713         * modules/pipe-tests: New module.
44714         * tests/test-pipe.c: New file.
44715         * tests/test-pipe.sh: New file.
44716         Reported by Akim Demaille.
44717
44718 2009-07-14  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44721         Reported by anonymous kc.
44722
44723 2009-07-07  Jim Meyering  <meyering@redhat.com>
44724
44725         maint.mk: don't look for translatable strings in *.m4 or *.mk
44726         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44727         when searching for translatable strings.
44728
44729 2009-07-05  Jim Meyering  <meyering@redhat.com>
44730
44731         remove superfluous parentheses in STREQ definition
44732         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44733         * lib/getugroups.c (STREQ): Likewise.
44734         * lib/fnmatch.c (STREQ): Likewise.
44735         Spotted by Bruno Haible.
44736
44737 2009-07-04  Jim Meyering  <meyering@redhat.com>
44738
44739         argv-iter: new module
44740         * MODULES.html.sh: Add argv-iter.
44741         * lib/argv-iter.c, lib/argv-iter.h: New files.
44742         * modules/argv-iter: New file.
44743         * modules/argv-iter-tests: New file.
44744         * tests/test-argv-iter.c: Test it.
44745
44746 2009-07-04  Bruno Haible  <bruno@clisp.org>
44747
44748         Fix assertion.
44749         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44750         contains more exact copies of a given entry than file2, leave the extra
44751         copies unpaired rather than aborting.
44752         Reported by Eric Blake.
44753
44754 2009-07-02  Bruno Haible  <bruno@clisp.org>
44755
44756         Speedup git-merge-changelog for git cherry-pick.
44757         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44758         (entries_mapping_get): New function, extracted from compute_mapping.
44759         (entries_mapping_reverse_get): New function.
44760         (compute_mapping): Add a 'full' argument. Return the result in a
44761         'struct entries_mapping'.
44762         (main): Update. Access the mappings through entries_mapping_get.
44763         Reported by Eric Blake.
44764
44765 2009-07-02  Bruno Haible  <bruno@clisp.org>
44766
44767         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44768         best_i.
44769
44770 2009-07-02  Bruno Haible  <bruno@clisp.org>
44771
44772         Speed up approximate search for matching ChangeLog entries.
44773         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44774         argument. Call fstrcmp_bounded instead of fstrcmp.
44775         (compute_mapping, try_split_merged_entry, main): Update callers.
44776
44777 2009-07-02  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44780
44781 2009-06-30  Bruno Haible  <bruno@clisp.org>
44782
44783         Reduce the number of uc_is_cased calls.
44784         * lib/unicase.h (casing_suffix_context_t): Add
44785         'first_char_except_ignorable' field.
44786         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44787         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44788         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44789         Update initializer.
44790         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44791         case-ignorable characters.
44792         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44793         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44794         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44795         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44796         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44797
44798 2009-06-30  Bruno Haible  <bruno@clisp.org>
44799
44800         Tests for module 'unicase/ignorable'.
44801         * modules/unicase/ignorable-tests: New file.
44802         * tests/unicase/test-ignorable.c: New file, generated by
44803         gen-uni-tables.
44804
44805         Tests for module 'unicase/cased'.
44806         * modules/unicase/cased-tests: New file.
44807         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44808         * tests/unicase/test-predicate-part1.h: New file, derived from
44809         tests/unictype/test-predicate-part1.h.
44810         * tests/unicase/test-predicate-part2.h: New file, same as
44811         tests/unictype/test-predicate-part2.h.
44812
44813         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44814         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44815         (output_casing_properties): New function.
44816         (main): Call it.
44817         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44818         * lib/unicase/cased.c: Include unictype/bitmap.h.
44819         (uc_is_cased): Define through a bitmap lookup.
44820         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44821         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44822         (uc_is_case_ignorable): Define through a bitmap lookup.
44823         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44824         lib/unictype/bitmap.h.
44825         (Depends-on): Add inline. Clean up.
44826         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44827         lib/unictype/bitmap.h.
44828         (Depends-on): Add inline. Clean up.
44829         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44830         recognition.
44831         * tests/unicase/test-u16-tolower.c (main): Likewise.
44832         * tests/unicase/test-u32-tolower.c (main): Likewise.
44833
44834 2009-06-30  Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44837         * lib/unicase/u16-casemap.c: Likewise.
44838         * lib/unicase/u32-casemap.c: Likewise.
44839
44840 2009-06-29  Bruno Haible  <bruno@clisp.org>
44841
44842         Define u32_casefold as a wrapper around u32_ct_casefold.
44843         * lib/unicase/u32-casefold.c: Update.
44844         * modules/unicase/u32-casefold (Depends-on): Add
44845         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44846         unicase/empty-suffix-context. Clean up.
44847
44848         Define u16_casefold as a wrapper around u16_ct_casefold.
44849         * lib/unicase/u16-casefold.c: Update.
44850         * modules/unicase/u16-casefold (Depends-on): Add
44851         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44852         unicase/empty-suffix-context. Clean up.
44853
44854         Define u8_casefold as a wrapper around u8_ct_casefold.
44855         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44856         * lib/unicase/u8-casefold.c: Update.
44857         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44858         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44859
44860         Define u32_totitle as a wrapper around u32_ct_totitle.
44861         * lib/unicase/u32-totitle.c: Update.
44862         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44863         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44864
44865         Define u16_totitle as a wrapper around u16_ct_totitle.
44866         * lib/unicase/u16-totitle.c: Update.
44867         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44869
44870         Define u8_totitle as a wrapper around u8_ct_totitle.
44871         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44872         functions.
44873         (FUNC): Delegate to U_CT_TOTITLE.
44874         * lib/unicase/u8-totitle.c: Update.
44875         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44876         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44877
44878         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44879         invocation.
44880         * modules/unicase/u32-tolower (Depends-on): Add
44881         unicase/empty-prefix-context, unicase/empty-suffix-context.
44882
44883         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44884         invocation.
44885         * modules/unicase/u16-tolower (Depends-on): Add
44886         unicase/empty-prefix-context, unicase/empty-suffix-context.
44887
44888         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44889         * modules/unicase/u8-tolower (Depends-on): Add
44890         unicase/empty-prefix-context, unicase/empty-suffix-context.
44891
44892         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44893         invocation.
44894         * modules/unicase/u32-toupper (Depends-on): Add
44895         unicase/empty-prefix-context, unicase/empty-suffix-context.
44896
44897         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44898         invocation.
44899         * modules/unicase/u16-toupper (Depends-on): Add
44900         unicase/empty-prefix-context, unicase/empty-suffix-context.
44901
44902         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44903         * modules/unicase/u8-toupper (Depends-on): Add
44904         unicase/empty-prefix-context, unicase/empty-suffix-context.
44905
44906         New module 'unicase/u32-ct-casefold'.
44907         * lib/unicase/u32-ct-casefold.c: New file.
44908         * modules/unicase/u32-ct-casefold: New file.
44909
44910         New module 'unicase/u16-ct-casefold'.
44911         * lib/unicase/u16-ct-casefold.c: New file.
44912         * modules/unicase/u16-ct-casefold: New file.
44913
44914         New module 'unicase/u8-ct-casefold'.
44915         * lib/unicase/u8-ct-casefold.c: New file.
44916         * lib/unicase/u-ct-casefold.h: New file, derived from
44917         lib/unicase/u-casefold.h.
44918         * modules/unicase/u8-ct-casefold: New file.
44919
44920         New module 'unicase/u32-ct-totitle'.
44921         * lib/unicase/u32-ct-totitle.c: New file.
44922         * modules/unicase/u32-ct-totitle: New file.
44923
44924         New module 'unicase/u16-ct-totitle'.
44925         * lib/unicase/u16-ct-totitle.c: New file.
44926         * modules/unicase/u16-ct-totitle: New file.
44927
44928         New module 'unicase/u8-ct-totitle'.
44929         * lib/unicase/u8-ct-totitle.c: New file.
44930         * lib/unicase/u-ct-totitle.h: New file, derived from
44931         lib/unicase/u-totitle.h.
44932         * modules/unicase/u8-ct-totitle: New file.
44933
44934         New module 'unicase/u32-ct-tolower'.
44935         * lib/unicase/u32-ct-tolower.c: New file.
44936         * modules/unicase/u32-ct-tolower: New file.
44937
44938         New module 'unicase/u16-ct-tolower'.
44939         * lib/unicase/u16-ct-tolower.c: New file.
44940         * modules/unicase/u16-ct-tolower: New file.
44941
44942         New module 'unicase/u8-ct-tolower'.
44943         * lib/unicase/u8-ct-tolower.c: New file.
44944         * modules/unicase/u8-ct-tolower: New file.
44945
44946         New module 'unicase/u32-ct-toupper'.
44947         * lib/unicase/u32-ct-toupper.c: New file.
44948         * modules/unicase/u32-ct-toupper: New file.
44949
44950         New module 'unicase/u16-ct-toupper'.
44951         * lib/unicase/u16-ct-toupper.c: New file.
44952         * modules/unicase/u16-ct-toupper: New file.
44953
44954         New module 'unicase/u8-ct-toupper'.
44955         * lib/unicase/u8-ct-toupper.c: New file.
44956         * modules/unicase/u8-ct-toupper: New file.
44957
44958         Add context arguments to u*_casemap functions.
44959         * lib/unicase/unicasemap.h: Include unicase.h.
44960         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44961         suffix_context arguments.
44962         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44963         functions.
44964         (FUNC): Add prefix_context and suffix_context arguments. Use
44965         uc_is_cased and uc_is_case_ignorable.
44966         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44967         * lib/unicase/u16-casemap.c: Likewise.
44968         * lib/unicase/u32-casemap.c: Likewise.
44969         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44970         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44971         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44972         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44973         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44974         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44975
44976         New module 'unicase/u32-suffix-context'.
44977         * lib/unicase/u32-suffix-context.c: New file.
44978         * modules/unicase/u32-suffix-context: New file.
44979
44980         New module 'unicase/u16-suffix-context'.
44981         * lib/unicase/u16-suffix-context.c: New file.
44982         * modules/unicase/u16-suffix-context: New file.
44983
44984         New module 'unicase/u8-suffix-context'.
44985         * lib/unicase/u8-suffix-context.c: New file.
44986         * lib/unicase/u-suffix-context.h: New file.
44987         * modules/unicase/u8-suffix-context: New file.
44988
44989         New module 'unicase/empty-suffix-context'.
44990         * lib/unicase/empty-suffix-context.c: New file.
44991         * modules/unicase/empty-suffix-context: New file.
44992
44993         New module 'unicase/u32-prefix-context'.
44994         * lib/unicase/u32-prefix-context.c: New file.
44995         * modules/unicase/u32-prefix-context: New file.
44996
44997         New module 'unicase/u16-prefix-context'.
44998         * lib/unicase/u16-prefix-context.c: New file.
44999         * modules/unicase/u16-prefix-context: New file.
45000
45001         New module 'unicase/u8-prefix-context'.
45002         * lib/unicase/u8-prefix-context.c: New file.
45003         * lib/unicase/u-prefix-context.h: New file.
45004         * lib/unicase/context.h: New file.
45005         * modules/unicase/u8-prefix-context: New file.
45006
45007         New module 'unicase/empty-prefix-context'.
45008         * lib/unicase/empty-prefix-context.c: New file.
45009         * modules/unicase/empty-prefix-context: New file.
45010
45011         New module 'unicase/ignorable'.
45012         * lib/unicase/ignorable.c: New file.
45013         * modules/unicase/ignorable: New file.
45014
45015         New module 'unicase/cased'.
45016         * lib/unicase/caseprop.h: New file.
45017         * lib/unicase/cased.c: New file.
45018         * modules/unicase/cased: New file.
45019
45020         New functions for case mapping of substrings.
45021         * lib/unicase.h (casing_prefix_context_t): New type.
45022         (unicase_empty_prefix_context): New variable.
45023         (u8_casing_prefix_context, u16_casing_prefix_context,
45024         u32_casing_prefix_context, u8_casing_prefixes_context,
45025         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45026         declarations.
45027         (casing_suffix_context_t): New type.
45028         (unicase_empty_suffix_context): New variable.
45029         (u8_casing_suffix_context, u16_casing_suffix_context,
45030         u32_casing_suffix_context, u8_casing_suffixes_context,
45031         u16_casing_suffixes_context, u32_casing_suffixes_context,
45032         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45033         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45034         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45035         declarations.
45036
45037 2009-06-28  Jim Meyering  <meyering@redhat.com>
45038
45039         boostrap: indent only with spaces
45040         * build-aux/bootstrap: Indent only with spaces, never TABs.
45041
45042         bootstrap: split long lines
45043         * build-aux/bootstrap: Keep line length < 80.
45044
45045         bootstrap: sync from coreutils
45046         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45047         just as autoreconf does.  Verify a list of prerequisite
45048         package-name,version-number pairs if defined in bootstrap.conf.
45049         Refer to README-prereq, if prerequisites are not satisfied.
45050
45051 2009-06-27  Eric Blake  <ebb9@byu.net>
45052
45053         tests: add test for bogus NULL definition
45054         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45055         * tests/test-stdlib.c: Likewise.
45056         * tests/test-string.c: Likewise.
45057         * tests/test-locale.c: Likewise.
45058         * tests/test-unistd.c: Likewise.
45059         * modules/stdio-tests (Depends-on): Add verify.
45060         * modules/stdlib-tests (Depends-on): Likewise.
45061         * modules/string-tests (Depends-on): Likewise.
45062         * modules/locale-tests (Depends-on): Likewise.
45063         * modules/unistd-tests (Depends-on): Likewise.
45064
45065 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45066
45067         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45068         self-explaining comment.
45069         * m4/selinux-selinux-h: Update serial.
45070         (gl_LIBSELINUX): New macro, adding a warning for missing development
45071         packages to code extracted from...
45072         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45073         Add warning for missing development packages here, too.
45074
45075 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45076
45077         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45078
45079 2009-06-25  Eric Blake  <ebb9@byu.net>
45080
45081         version-etc: fix regression
45082         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45083         gcc.
45084         (version_etc): Use it, to catch bugs with trailing NULL.
45085         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45086         (version_etc_va): Fix logic bug.
45087         * modules/version-etc-tests: Add test.
45088         * tests/test-version-etc.c: New file.
45089         * tests/test-version-etc.sh: Likewise.
45090
45091 2009-06-25  Sam Steingold  <sds@gnu.org>
45092
45093         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45094         mbtowc declaration.
45095
45096 2009-06-25  Eric Blake  <ebb9@byu.net>
45097
45098         fpurge: migrate into <stdio.h>
45099         * lib/fpurge.h: Delete...
45100         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45101         * lib/fpurge.c (fpurge): Change declaring header.
45102         * modules/fpurge (Files): Drop deleted file.
45103         (Depends-on): Add stdio.
45104         (configure.ac): Set witness.
45105         * modules/stdio (Makefile.am): Support fpurge macros.
45106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45107         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45108         * lib/fflush.c: Update client.
45109         * tests/test-fpurge.c: Likewise.
45110         * NEWS: Mention the change.
45111
45112 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45113
45114         * lib/argp-version-etc.c (program_authors): Add const
45115         qualifier.
45116         * lib/version-etc.c: Fix typos in the comments.
45117         * modules/argp-version-etc: Depends on version-etc.
45118
45119 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45120
45121         argp-version-etc: new module.
45122
45123         * lib/argp-version-etc.c: New file.
45124         * lib/argp-version-etc.h: New file.
45125         * modules/argp-version-etc: New file.
45126         * modules/argp-version-etc-tests: New file.
45127         * tests/test-argp-version-etc.c: New test.
45128         * tests/test-argp-version-etc-1.sh: New test.
45129
45130 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45131
45132         Provide additional interfaces and documentation for version-etc
45133         module.
45134
45135         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45136         interfaces.
45137         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45138         prototypes.
45139
45140 2009-06-24  Bruno Haible  <bruno@clisp.org>
45141
45142         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45143         HAVE_LIB${NAME} macro.
45144         Reported by Sam Steingold <sds@gnu.org>.
45145
45146 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45147
45148         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45149         needed.
45150
45151 2009-06-21  Bruno Haible  <bruno@clisp.org>
45152
45153         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45154         work.
45155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45156         together with LIB${NAME}, LTLIB${NAME}.
45157         Reported by Sam Steingold <sds@gnu.org>.
45158
45159 2009-06-20  Jim Meyering  <meyering@redhat.com>
45160
45161         tests: make sc_require_test_exit_idiom more generic
45162         * top/maint.mk (Exit_witness_file): New overridable variable.
45163         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45164         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45165
45166 2009-06-19  Jim Meyering  <meyering@redhat.com>
45167
45168         hash: reverse order of src/dst parameters in an internal interface
45169         * lib/hash.c (transfer_entries): Reverse order of parameters to
45170         put DST before SRC.  Adjust callers.
45171
45172         tests: test-hash: avoid wholesale duplication
45173         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45174         Instead, use a loop and add a single conditional.
45175
45176         tests: test-hash: allow seed selection via a command line argument
45177         * tests/test-hash.c (get_seed): New function.
45178         (main): Use it.
45179
45180 2009-06-19  Eric Blake  <ebb9@byu.net>
45181
45182         hash: avoid memory leak on allocation failure
45183         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45184         failure.  Factor repeated algorithm...
45185         (transfer_entries): ...into new helper routine.
45186         (hash_delete): React to hash_rehash return value.
45187
45188         hash: reduce memory pressure in hash_rehash no-op case
45189         * lib/hash.c (next_prime): Avoid overflow.
45190         (hash_initialize): Factor bucket size computation...
45191         (compute_bucket_size): ...into new helper function.
45192         (hash_rehash): Use new function and open coding to reduce memory
45193         pressure, and avoid a memory leak in USE_OBSTACK code.
45194         Reported by Jim Meyering.
45195
45196 2009-06-18  Eric Blake  <ebb9@byu.net>
45197
45198         hash: make rotation more obvious
45199         * modules/hash (Depends-on): Add bitrotate and stdint.
45200         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45201         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45202         (SIZE_MAX): Rely on headers for definition.
45203         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45204         (raw_hasher): Use rotr_sz.
45205         Suggested by Jim Meyering.
45206
45207         hash: fix memory leak in last patch
45208         * lib/hash.c (hash_rehash): Avoid memory leak.
45209
45210         hash: avoid no-op rehashing
45211         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45212
45213         hash: provide default callback functions
45214         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45215         (hash_initialize): Use them as defaults.
45216         * tests/test-hash.c (main): Test this.
45217
45218         hash: minor optimization
45219         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45220         when possible.
45221         (hash_initialize): Document this promise.
45222         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45223         * tests/test-hash.c (hash_compare_strings): Test this.
45224
45225 2009-06-18  Bruno Haible  <bruno@clisp.org>
45226
45227         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45228         going to be replaced anyway.
45229
45230 2009-06-18  Bruno Haible  <bruno@clisp.org>
45231
45232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45233         in one place.
45234         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45235         be replaced anyway.
45236
45237 2009-06-18  Eric Blake  <ebb9@byu.net>
45238
45239         hash: check for resize before insertion
45240         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45241         threshold before insertion, so that a pathological hash_rehash
45242         that fills every bucket can still trigger another rehash.
45243
45244 2009-06-18  Jim Meyering  <meyering@redhat.com>
45245
45246         hash-tests: add a loop around the small tests
45247         * tests/test-hash.c (main): Repeat small tests with selected
45248         small initial table sizes.
45249
45250 2009-06-17  Eric Blake  <ebb9@byu.net>
45251
45252         hash: minor cleanups
45253         * lib/hash.h (hash_entry): Make opaque, by moving...
45254         * lib/hash.c (hash_entry): ...here.
45255         (hash_insert): Clarify restrictions on what can be inserted.
45256         (hash_get_next): Clarify when it is safe to remove an element
45257         during traversal.
45258         (check_tuning): Skip verification when tuning is known safe.
45259         (hash_initialize): Clarify restrictions on tuning.
45260
45261 2009-06-17  Jim Meyering  <jim@meyering.net>
45262         and Eric Blake  <ebb9@byu.net>
45263
45264         hash-tests: new module
45265         * modules/hash-tests: New file.
45266         * tests/test-hash.c: New file.
45267
45268 2009-06-17  Eric Blake  <ebb9@byu.net>
45269
45270         strstr-simple: document new module
45271         * MODULES.html.sh: Document new module.
45272
45273         strstr, strcasestr: replace on platforms with broken memchr
45274         * modules/strstr: Split into...
45275         * modules/strstr-simple: ...new module that does not care about
45276         performance, but does care about glibc bug.
45277         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45278         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45279         if platform memchr is broken, per Debian bug 521737.
45280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45281         memchr.
45282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45283         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45284         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45285         * modules/mountlist (Depends-on): Add strstr-simple.
45286         * modules/gen-uni-tables (Depends-on): Likewise.
45287         * modules/argz (Depends-on): Add strstr.
45288
45289 2009-06-17  Bruno Haible  <bruno@clisp.org>
45290
45291         * modules/posix_spawn-internal (Depends-on): Add errno.
45292
45293 2009-06-17  Bruno Haible  <bruno@clisp.org>
45294
45295         Define missing ESTALE on Interix 3.5.
45296         * lib/errno.in.h (ESTALE): Assign a value if missing.
45297         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45299         missing.
45300         * doc/posix-headers/errno.texi: Mention the Interix bug.
45301         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45302
45303 2009-06-15  Eric Blake  <ebb9@byu.net>
45304
45305         memchr, memchr2: add valgrind exception
45306         * lib/memchr.valgrind: New file.
45307         * lib/memchr2.valgrind: New file.
45308         * modules/memchr (Files): Distribute valgrind file.
45309         * modules/memchr2 (Files): Likewise.
45310
45311         docs: memchr is no longer obsolete
45312         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45313         * lib/string.in.h (memchr): Simplify logic.
45314
45315 2009-06-14  Jim Meyering  <meyering@redhat.com>
45316
45317         link-follow: fix the "checking..." message to not mention trailing slash
45318         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45319         never considered trailing slashes.
45320
45321 2009-06-14  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/memchr.m4: Mention also the bug on IA-64.
45324         * doc/posix-functions/memchr.texi: Likewise.
45325
45326 2009-06-12  Eric Blake  <ebb9@byu.net>
45327
45328         memchr: detect broken x86_64 and alpha implementations
45329         * modules/memchr-tests (Depends-on): Move mmap detection...
45330         * modules/memchr (Depends-on): ...here.
45331         (configure.ac): Set indicator.
45332         * lib/string.in.h (memchr): Declare replacement.
45333         * modules/string (Makefile.am): Trigger replacement.
45334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45335         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45336         bugs.
45337         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45338         * modules/getpagesize (License): Relax license.
45339
45340 2009-06-11  Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/idpriv.h: Add more references.
45343
45344 2009-06-08  Bruno Haible  <bruno@clisp.org>
45345
45346         Tests for module 'idpriv-droptemp'.
45347         * modules/idpriv-droptemp-tests: New file.
45348         * tests/test-idpriv-droptemp.sh: New file.
45349         * tests/test-idpriv-droptemp.su.sh: New file.
45350         * tests/test-idpriv-droptemp.c: New file.
45351
45352         New module 'idpriv-droptemp'.
45353         * lib/idpriv-droptemp.c: New file.
45354         * modules/idpriv-droptemp: New file.
45355
45356 2009-06-08  Bruno Haible  <bruno@clisp.org>
45357
45358         Tests for module 'idpriv-drop'.
45359         * modules/idpriv-drop-tests: New file.
45360         * tests/test-idpriv-drop.sh: New file.
45361         * tests/test-idpriv-drop.su.sh: New file.
45362         * tests/test-idpriv-drop.c: New file.
45363
45364         New module 'idpriv-drop'.
45365         * lib/idpriv.h: New file.
45366         * lib-idpriv-drop.c: New file.
45367         * m4/idpriv.m4: New file.
45368         * modules/idpriv-drop: New file.
45369
45370 2009-06-08  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45379
45380 2009-06-08  Eric Blake  <ebb9@byu.net>
45381
45382         test-strstr: use memory fence, when possible
45383         * tests/test-strstr.c (main): Use memory fence, in order to be
45384         more likely to trigger Debian bug 521737.
45385         * modules/strstr-tests (Files): Pull in additional files.
45386
45387         memchr: no longer obsolete, for wider field testing
45388         * modules/memchr (Status, Notice): Delete, this module is no
45389         longer obsolete.
45390         * modules/vasnprintf (Depends-on): Add memchr.
45391
45392 2009-06-07  Jim Meyering  <meyering@redhat.com>
45393
45394         hash: declare some functions with the warn_unused_result attribute
45395         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45396
45397 2009-06-07  Bruno Haible  <bruno@clisp.org>
45398
45399         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45400         Reported by Eric Blake.
45401
45402 2009-06-06  Eric Blake  <ebb9@byu.net>
45403
45404         test-alignof: fix typo with long double
45405         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45406         compiler error.
45407
45408 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45409
45410         Escape non-texinfo { and }s.
45411         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45412         markup error.
45413
45414 2009-06-04  Jim Meyering  <meyering@redhat.com>
45415
45416         gitlog-to-changelog: don't infloop on an empty commit log
45417         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45418         Reported by Boris Petersen <transacid@centerim.org>.
45419
45420 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45421
45422         version-etc: extend for packagers
45423         Add three new configure options, intended for packagers:
45424           --with-packager="packager name"
45425           --with-packager-version="packager-specific version"
45426           --with-packager-bug-reports="packager bug reporting"
45427         An example with coreutils:
45428           $ ./configure \
45429             --with-packager=Gentoo \
45430             --with-packager-bug-report=http://bugs.gentoo.org/ \
45431             --with-packager-version="patchset 1.6"
45432           $ ./src/ls --version | head -n2
45433           ls (GNU coreutils) 7.1-dirty
45434           Packaged by Gentoo (patchset 1.6)
45435         Note that the bug reporting info via --help doesn't show up because
45436         coreutils uses its own custom emit_bug_reporting_address() implementation
45437         in src/system.h.  If it didn't, it'd look like:
45438           $ ./src/ls --help | tail -n4
45439           Report bugs to <bug-coreutils@gnu.org>.
45440           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45441           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45442           General help using GNU software: <http://www.gnu.org/gethelp/>.
45443         * lib/version-etc.c: Print new information, if provided.
45444         * m4/version-etc.m4: New file.
45445         * modules/version-etc (Files): Add m4/version-etc.m4.
45446         (configure.ac): Add gl_VERSION_ETC.
45447
45448 2009-05-31  Bruno Haible  <bruno@clisp.org>
45449
45450         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45451         and 'int64_t'.
45452         * modules/alignof-tests (Dependencies): Add stdint.
45453         Reported by Eric Blake.
45454
45455 2009-05-31  Bruno Haible  <bruno@clisp.org>
45456
45457         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45458         restriction due to compiler bugs.
45459         Reported by Eric Blake.
45460
45461 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45462             Bruno Haible  <bruno@clisp.org>
45463
45464         Fix test-alignof failure.
45465         * lib/alignof.h (alignof_slot): New macro.
45466         (alignof_type): New macro, with the same semantics as the previous
45467         'alignof'.
45468         (alignof): Alias to alignof_slot.
45469         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45470         check that the results are usable as constant expressions.
45471
45472 2009-05-31  Bruno Haible  <bruno@clisp.org>
45473
45474         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45475         * tests/test-memchr.c (main): Check that memchr does not read past the
45476         first occurrence of the byte.
45477         * tests/test-strstr.c (main): Update comment.
45478         Suggested by Eric Blake.
45479
45480 2009-05-30  Bruno Haible  <bruno@clisp.org>
45481
45482         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45483         detail how to use dumpbin.
45484         Reported by David Byron <dbyron@dbyron.com>.
45485
45486 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45487
45488         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45489
45490 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45491
45492         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45493
45494 2009-05-28  Bruno Haible  <bruno@clisp.org>
45495
45496         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45497         build-aux/ files.
45498
45499 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45500
45501         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45502
45503 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45504
45505         * gnulib-tool (sed_transform_main_lib_file)
45506         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45507         regexps.
45508
45509 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45510
45511         * tests/test-strstr.c: Add another self-test.
45512         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45513         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45514
45515 2009-05-23  Bruno Haible  <bruno@clisp.org>
45516
45517         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45518         change.
45519
45520 2009-05-21  Bruno Haible  <bruno@clisp.org>
45521
45522         Simplify use of mode_t varargs.
45523         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45524         uses 'mode_t' or 'int'.
45525         * lib/openat.c (openat): Likewise.
45526         * lib/open-safer.c (open_safer): Likewise.
45527         * m4/mode_t.m4: New file.
45528         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45529         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45531         * modules/open (Files): Add m4/mode_t.m4.
45532         * modules/openat (Files): Likewise.
45533         * modules/fcntl-safer (Files): Likewise.
45534         Suggested by Eric Blake.
45535
45536 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45537
45538         * doc/glibc-functions/fallocate.texi: New file.
45539         * doc/gnulib.texi: Include it.
45540
45541 2009-05-21  Eric Blake  <ebb9@byu.net>
45542             Bruno Haible  <bruno@clisp.org>
45543
45544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45545         invocations.
45546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45547
45548 2009-05-21  Eric Blake  <ebb9@byu.net>
45549             Bruno Haible  <bruno@clisp.org>
45550
45551         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45552         include_next. Fix of 2008-11-20 commit.
45553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45554         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45555         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45556         NEXT_MATH_H.
45557         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45558         instead of NEXT_MATH_H.
45559
45560 2009-05-21  Bruno Haible  <bruno@clisp.org>
45561
45562         Avoid redefinition warnings for SIZE_MAX.
45563         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45564         Reported by Simon Josefsson.
45565
45566 2009-05-21  Bruno Haible  <bruno@clisp.org>
45567
45568         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45569         AC_CACHE_VAL.
45570
45571 2009-05-20  Bruno Haible  <bruno@clisp.org>
45572
45573         Make zeroptr.h work on mingw.
45574         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45575         mprotect.
45576         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45577         * modules/memchr2-tests (configure.ac): Likewise.
45578         * modules/memcmp-tests (configure.ac): Likewise.
45579         * modules/memmem-tests (configure.ac): Likewise.
45580         * modules/memrchr-tests (configure.ac): Likewise.
45581         Reported by Simon Josefsson.
45582
45583 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45584
45585         * tests/test-glob.c: Include string.h for strcmp prototype.
45586
45587 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45588
45589         * modules/getdelim (Depends-on): Add explicit stdint, although it
45590         was implicitly already pulled in via realloc-posix.
45591         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45592
45593 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45594
45595         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45596         G. Christensen" <tgc@jupiterrise.com>.
45597         * m4/sys_socket_h.m4: Check for sa_family_t.
45598         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45599         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45600         * tests/test-sys_socket.c: Check that sa_family_t works.
45601
45602 2009-05-18  Eric Blake  <ebb9@byu.net>
45603
45604         maint.mk: allow gnulib_dir in VPATH build
45605         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45606
45607 2009-05-15  Jim Meyering  <meyering@redhat.com>
45608
45609         maint.mk: Give gnulib_dir a default definition.
45610         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45611         Thus, most packages no longer need to specify this variable in cfg.mk
45612
45613 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45614
45615         rename.m4: fix typos that would make non-mingw cross-configure fail
45616         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45617
45618 2009-05-13  Eric Blake  <ebb9@byu.net>
45619
45620         mmap-anon: avoid out-of-order autoconf expansion
45621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45622         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45623         * modules/memchr-tests (Depends-on): Add extensions.
45624         * modules/memchr2-tests (Depends-on): Add extensions.
45625         * modules/memcmp-tests (Depends-on): Add extensions.
45626         * modules/memmem-tests (Depends-on): Add extensions.
45627         * modules/memrchr-tests (Depends-on): Add extensions.
45628
45629 2009-05-13  Bruno Haible  <bruno@clisp.org>
45630
45631         Make some tests ISO C 99 compliant.
45632         * tests/zerosize-ptr.h: New file.
45633         * tests/test-memchr.c: Include zerosize-ptr.h.
45634         (main): Use a zero-size object pointer instead of NULL.
45635         * tests/test-memchr2.c: Include zerosize-ptr.h.
45636         (main): Use a zero-size object pointer instead of NULL.
45637         * tests/test-memcmp.c: Include zerosize-ptr.h.
45638         (main): Use a zero-size object pointer instead of NULL.
45639         * tests/test-memmem.c: Include zerosize-ptr.h.
45640         (main): Use a zero-size object pointer instead of NULL.
45641         * tests/test-memrchr.c: Include zerosize-ptr.h.
45642         (main): Use a zero-size object pointer instead of NULL.
45643         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45644         m4/mmap-anon.m4.
45645         (Depends-on): Add getpagesize.
45646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45647         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45648         m4/mmap-anon.m4.
45649         (Depends-on): Add getpagesize.
45650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45651         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45652         m4/mmap-anon.m4.
45653         (Depends-on): Add getpagesize.
45654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45655         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45656         m4/mmap-anon.m4.
45657         (Depends-on): Add getpagesize.
45658         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45659         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45660         m4/mmap-anon.m4.
45661         (Depends-on): Add getpagesize.
45662         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45663
45664 2009-05-12  Bruno Haible  <bruno@clisp.org>
45665
45666         Tests for module 'alignof'.
45667         * modules/alignof-tests: New file.
45668         * tests/test-alignof.c: New file.
45669
45670 2009-05-12  Bruno Haible  <bruno@clisp.org>
45671
45672         Fix alignof macro.
45673         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45674         vendor compilers that are always correct.
45675
45676 2009-05-12  Bruno Haible  <bruno@clisp.org>
45677
45678         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45680         not whether its fully works.
45681
45682 2009-05-12  Bruno Haible  <bruno@clisp.org>
45683
45684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45685
45686 2009-05-12  Jim Meyering  <meyering@redhat.com>
45687
45688         * top/maint.mk: Adjust backslash alignment.
45689
45690 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45691
45692         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45693
45694 2009-05-11  Eric Blake  <ebb9@byu.net>
45695
45696         argp: avoid undefined behavior
45697         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45698         macros.
45699
45700 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45701
45702         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45703         user.name to prevent git commit from complaining.
45704
45705 2009-05-10  Bruno Haible  <bruno@clisp.org>
45706
45707         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45708         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45709         it rewrites every file name only once.
45710         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45711
45712 2009-05-08  Bruno Haible  <bruno@clisp.org>
45713
45714         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45715         instead of 'max'.
45716
45717 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45718
45719         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45720         sockaddr_storage test.
45721
45722 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45723
45724         * modules/sys_socket (Makefile.am): Substitute
45725         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45726         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45727         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45728         * tests/test-sys_socket.c: Check sockaddr_storage.
45729
45730 2009-05-08  Bruno Haible  <bruno@clisp.org>
45731
45732         New module 'alignof'.
45733         * lib/alignof.h: New file.
45734         * modules/alignof: New file.
45735
45736 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45737             Bruno Haible  <bruno@clisp.org>
45738
45739         Fix test-file-has-acl on FreeBSD.
45740         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45741         mask is implicitly added.
45742         * tests/test-file-has-acl.c: Include <signal.h>.
45743         (main): Terminate the test after 5 seconds.
45744         * modules/acl-tests (configure.ac): Check for alarm function.
45745
45746 2009-05-04  Bruno Haible  <bruno@clisp.org>
45747
45748         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45749         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45750         * modules/errno (configure.ac): Drop AC_REQUIRE.
45751         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45752         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45753
45754 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45755
45756         * modules/glob-tests: New module.
45757         * tests/test-glob.c: Add.
45758
45759 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45760
45761         * modules/fnmatch-tests: New module.
45762         * tests/test-fnmatch.c: Add.
45763
45764 2009-05-04  Eric Blake  <ebb9@byu.net>
45765
45766         maint: make the new no-submodule-changes rule VPATH-safe
45767         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45768
45769 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45770             Bruno Haible  <bruno@clisp.org>
45771
45772         acl: Fix infinite loop on FreeBSD.
45773         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45774         of return value from acl_get_entry.
45775         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45776         Likewise.
45777
45778 2009-05-03  Bruno Haible  <bruno@clisp.org>
45779
45780         * lib/acl-internal.h (acl_entries): Clarify return value.
45781         * lib/acl_entries.c (acl_entries): Likewise.
45782
45783 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45784
45785         Bug fix in acl module.
45786         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45787
45788 2009-05-03  Bruno Haible  <bruno@clisp.org>
45789
45790         Create gperf-generated file in the source dir, not in the build dir.
45791         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45792         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45793         * modules/unicase/locale-language (unicase/locale-languages.h):
45794         Likewise.
45795         * modules/unicase/special-casing (unicase/special-casing-table.h):
45796         Likewise.
45797         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45798         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45799         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45800         Reported by Ralf Wildenhues.
45801
45802 2009-05-03  Bruno Haible  <bruno@clisp.org>
45803
45804         * modules/fnmatch (Description, configure.ac): Taken from
45805         fnmatch-posix.
45806         * modules/fnmatch-posix: Turn into a symbolic reference to the
45807         'fnmatch' module, and deprecate.
45808         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45809
45810 2009-05-03  Bruno Haible  <bruno@clisp.org>
45811
45812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45813         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45814         Reported by Ralf Wildenhues.
45815
45816 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45817
45818         * m4/fnmatch.m4: Fix fnmatch re-define.
45819
45820 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45821
45822         priv-set: new module and tests; adapt write-any-file
45823         * lib/priv-set.c: New file.
45824         * lib/priv-set.h: New file.
45825         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45826         * lib/write-any-file.c: Simplify by using priv-set module.
45827         * m4/priv-set.m4: New file.
45828         * modules/priv-set: New file.
45829         * modules/unlinkdir: Add dependency on priv-set module.
45830         * modules/write-any-file: Likewise.
45831
45832         Tests for module 'priv-set'.
45833         * modules/priv-set-tests: New file.
45834         * tests/test-priv-set.c: New file.
45835
45836 2009-05-03  Jim Meyering  <meyering@redhat.com>
45837             Bruno Haible  <bruno@clisp.org>
45838
45839         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45840         use the converted UTF-8 variant of the name instead.
45841
45842 2009-05-03  Jim Meyering  <meyering@redhat.com>
45843
45844         tests: tighten some getdate tests
45845         * tests/test-getdate.c (main): Tighten tests: require equality,
45846         not just greater than.  Set TZ envvar to UTC0.
45847
45848 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45849
45850         getdate: correctly interpret "next monday" when run on a Monday
45851         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45852         that e.g., "next tues" (when run on a tuesday) results in a date
45853         that is one week in the future, and not today's date.
45854         I.e., add a week when the wday is the same as the current one.
45855         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45856         and earlier by Martin Bernreuther and Jan Minář.
45857         * tests/test-getdate.c (main): Check that "next DAY" is always in
45858         the future and that "last DAY" is always in the past.
45859
45860 2009-05-02  Jim Meyering  <meyering@redhat.com>
45861
45862         build: ensure that a release build fails when a submodule is unclean
45863         * top/maint.mk (no-submodule-changes): New rule.
45864         (alpha beta major): Depend on it.
45865
45866 2009-05-02  Bruno Haible  <bruno@clisp.org>
45867
45868         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45869         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45870         shell variable gl_fnmatch_required to detect which variant is
45871         requested.
45872         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45873         gl_FUNC_FNMATCH_POSIX.
45874         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45875         exclude fnmatch-posix.
45876
45877 2009-05-02  Bruno Haible  <bruno@clisp.org>
45878
45879         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45880         * modules/mbsrtowcs (License): Change to LGPLv2+.
45881         * modules/strnlen1 (License): Likewise.
45882         Reported by Simon Josefsson.
45883
45884 2009-05-02  Bruno Haible  <bruno@clisp.org>
45885
45886         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45887         "cross".
45888         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45889         gnulib-tool was called with option --source-base=lib.
45890
45891 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45892
45893         Use automake *-local hooks without commands, for extensibility.
45894         * modules/localcharset (Makefile.am): Rename install-exec-local
45895         rule to install-exec-localcharset, and make it a prerequisite of
45896         install-exec-local.  Likewise, rename the uninstall-local rule to
45897         uninstall-localcharset, and make it a prerequisite of the former.
45898
45899 2009-05-01  Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45902         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45903         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45905         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45906         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45907         m4/locale-zh.m4, m4/codeset.m4.
45908
45909         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45910         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45911         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45912         m4/locale-zh.m4.
45913
45914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45915         REPLACE_WCRTOMB if mbstate_t must be replaced.
45916         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45917         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45918
45919 2009-05-01  Bruno Haible  <bruno@clisp.org>
45920
45921         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45922         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45923         dngettext, dcngettext, textdomain, bindtextdomain,
45924         bind_textdomain_codeset): Undefine before redefining.
45925
45926 2009-04-30  Bruno Haible  <bruno@clisp.org>
45927
45928         Fix bug introduced on 2009-04-25.
45929         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45930         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45931         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45932         is defined.
45933         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45934         is defined.
45935         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45936         is defined.
45937         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45938
45939 2009-04-28  Bruno Haible  <bruno@clisp.org>
45940
45941         Comment tweaks.
45942         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45943         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45944         * lib/unicase.h (u*_casexfrm): Likewise.
45945         Reported by Paolo Bonzini.
45946
45947 2009-04-28  Bruno Haible  <bruno@clisp.org>
45948
45949         Fix a compilation error.
45950         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45951         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45952         Reported by Jim Meyering.
45953
45954 2009-04-27  Bruno Haible  <bruno@clisp.org>
45955
45956         New module 'libunistring'.
45957         * modules/libunistring: New file.
45958         * m4/libunistring.m4: New file.
45959         * MODULES.html.sh (Unicode string functions): Add it.
45960
45961 2009-04-27  Eric Blake  <ebb9@byu.net>
45962
45963         maint.mk: allow package-specific header to provide <config.h>
45964         * top/maint.mk (sc_require_config_h): New variable.
45965         (sc_require_config_h, sc_require_config_h_first): Use it.
45966
45967 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45968
45969         * top/maint.mk (sc_avoid_if_before_free): Except
45970         useless-if-before-free script.
45971
45972 2009-04-27  Eric Blake  <ebb9@byu.net>
45973
45974         maintainer-makefile: depend on all required helper scripts
45975         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45976         useless-if-before-free.
45977         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45978         version, rather than assuming gnulib checkout is available.
45979         Reported by Simen Josefsson.
45980
45981 2009-04-26  Bruno Haible  <bruno@clisp.org>
45982
45983         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45984         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45985         "../" or "..".
45986
45987 2009-04-26  Bruno Haible  <bruno@clisp.org>
45988
45989         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45990         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45991         AC_LIB_HAVE_LINKFLAGS.
45992
45993 2009-04-26  Bruno Haible  <bruno@clisp.org>
45994
45995         Simplify calling convention of u*_conv_from_encoding.
45996         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45997         u32_conv_from_encoding): Expect a resultbuf argument and return the
45998         result directly as a pointer.
45999         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46000         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46001         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46002         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46003         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46004         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46005         Update.
46006         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46007         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46008         * lib/vasnprintf.c (VASNPRINTF): Update.
46009         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46010         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46011         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46012         * NEWS: Mention the change.
46013
46014 2009-04-26  Bruno Haible  <bruno@clisp.org>
46015
46016         Simplify calling convention of u*_conv_to_encoding.
46017         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46018         u32_conv_to_encoding): Expect a resultbuf argument and return the
46019         result directly as a pointer.
46020         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46021         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46022         freeing scaled_offsets if mem_iconveha failed.
46023         * lib/unicase/u-casexfrm.h (FUNC): Update.
46024         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46025         * lib/vasnprintf.c (VASNPRINTF): Update.
46026         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46027         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46028         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46029         * NEWS: Mention the change.
46030
46031 2009-04-26  Bruno Haible  <bruno@clisp.org>
46032
46033         Avoid test failures on AIX and OSF/1.
46034         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46035         malloc(0).
46036         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46037         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46038         Likewise.
46039         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46040         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46041         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46042         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46043         * doc/posix-functions/malloc.texi: Document the portability problem
46044         related to malloc(0).
46045
46046 2009-04-26  Bruno Haible  <bruno@clisp.org>
46047
46048         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46049         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46050         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46051
46052 2009-04-25  Bruno Haible  <bruno@clisp.org>
46053
46054         Avoid link error when creating a namespace clean library.
46055         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46056         as macro with arguments if already defined as an alias.
46057         * lib/signbitf.c (gl_signbitf): Don't undefine.
46058         * lib/signbitd.c (gl_signbitd): Don't undefine.
46059         * lib/signbitl.c (gl_signbitl): Don't undefine.
46060
46061 2009-04-25  Jim Meyering  <meyering@redhat.com>
46062
46063         vc-list-files: fix another quoting bug
46064         * build-aux/vc-list-files: Avoid sed backslash expansion
46065         of pathological directory names.
46066
46067 2009-04-25  Eric Blake  <ebb9@byu.net>
46068
46069         vc-list-files: fix shell quoting error
46070         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46071         timestamp.
46072
46073 2009-04-25  Jim Meyering  <meyering@redhat.com>
46074
46075         vc-list-files: restore lost functionality with subdir argument
46076         * build-aux/vc-list-files: When given a non-"." sub-directory
46077         argument, substitute the $dir/ prefix back onto each resulting name.
46078         Otherwise, coreutils' root_tests check would fail.
46079
46080 2009-04-24  Eric Blake  <ebb9@byu.net>
46081
46082         vc-list-files: ignore git symlinks
46083         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46084         than ls-files, to ignore git symlinks.
46085
46086         maint.mk: import improvements from m4
46087         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46088         (move_if_change): Delete unused macro.
46089         (news-date-check, vc-diff-check): Support VPATH builds.
46090         (announcement): Likewise.  Split --bootstrap-tools list...
46091         (boostrap-tools): ...into separate list, which can be overridden
46092         in cfg.mk.
46093         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46094         requiring dependency on useless-if-before-free module.
46095         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46096         Support VPATH builds.
46097
46098 2009-04-24  Jim Meyering  <meyering@redhat.com>
46099
46100         maint.mk: remove coreutils-specific rules and variables
46101         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46102         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46103         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46104
46105         maint.mk: remove obsolete rule
46106         * top/maint.mk (rel-check): Remove rule.
46107         (WGET, WGETFLAGS): Remove now-unused variables.
46108
46109 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46110
46111         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46112         consistency.
46113
46114         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46115         '$(PATH_SEPARATOR)' instead of ':'.
46116
46117 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46118
46119         * lib/getopt1.c (main): Use 'const' for static array.
46120
46121 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46122
46123         * top/maint.mk: Sync with coreutils.
46124         * NEWS: Explain incompatibilities.
46125
46126 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46127             Bruno Haible  <bruno@clisp.org>
46128
46129         Fix cross-compilation results.
46130         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46131         statement, as third argument of AC_TRY_RUN.
46132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46134         Likewise.
46135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46136         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46137         Likewise.
46138         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46140         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46141
46142 2009-04-20  Bruno Haible  <bruno@clisp.org>
46143
46144         Avoid test failure on mingw.
46145         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46146
46147 2009-04-20  Bruno Haible  <bruno@clisp.org>
46148
46149         Avoid compilation error on mingw.
46150         * modules/localename-tests (Depends-on): Add locale.
46151
46152 2009-04-19  Bruno Haible  <bruno@clisp.org>
46153
46154         Support for building a shared library on Windows platforms.
46155         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46156         (main): Test the presence of UNINORM_NFC here.
46157         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46158         (main): Test the presence of UNINORM_NFD here.
46159         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46160         (main): Test the presence of UNINORM_NFKC here.
46161         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46162         (main): Test the presence of UNINORM_NFKD here.
46163
46164 2009-04-19  Bruno Haible  <bruno@clisp.org>
46165
46166         Avoid a compiler warning.
46167         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46168         Change type of variable 'sequence'.
46169
46170 2009-04-19  Bruno Haible  <bruno@clisp.org>
46171
46172         * modules/configmake (Makefile.am): When the contents of configmake.h
46173         does not change, arrange to preserve its modification time.
46174
46175 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46176
46177         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46178         gettext domain.
46179
46180 2009-04-16  Jim Meyering  <meyering@redhat.com>
46181
46182         useless-if-before-free: improve conversion code
46183         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46184         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46185
46186 2009-04-14  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/fcntl (Depends-on): Add extensions.
46189         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46190
46191 2009-04-12  Ben Pfaff  <blp@gnu.org>
46192
46193         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46194         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46195
46196 2009-03-20  Ben Pfaff  <blp@gnu.org>
46197
46198         Make rename replace existing destinations on Windows.
46199         * m4/rename.m4: Add test for Mingw.
46200         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46201         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46202         * doc/posix-functions/rename.texi: Document.
46203
46204 2009-04-10  Bruno Haible  <bruno@clisp.org>
46205
46206         New include file "iconveh.h".
46207         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46208         * lib/striconveh.h: Include it.
46209         (enum iconv_ilseq_handler): Remove definition.
46210         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46211         striconveh.h.
46212         * lib/striconveha.c: Include striconveh.h.
46213         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46214         * modules/striconveh (Files): Add lib/iconveh.h.
46215         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46216         lib/striconveh.h.
46217
46218 2009-04-10  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/uniconv.h: Update comment.
46221
46222 2009-04-10  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46225         always.
46226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46227         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46228         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46229         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46230         "unistring-notinline.h", so that the function gets defined always.
46231         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46232         * lib/unistr/u8-uctomb.c: Likewise.
46233         * lib/unistr/u16-mbtouc.c: Likewise.
46234         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46235         * lib/unistr/u16-uctomb.c: Likewise.
46236         * lib/unistr/u32-mbtouc.c: Likewise.
46237         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46238         * lib/unistr/u32-uctomb.c: Likewise.
46239
46240 2009-04-10  Bruno Haible  <bruno@clisp.org>
46241
46242         Mark 'utime' obsolete.
46243         * modules/utime (Status, Notice): New sections.
46244         Suggested by Jim Meyering.
46245
46246         Fix cross-compile guess for utime test.
46247         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46248         autoconf.
46249         * doc/posix-functions/utime.texi: Give more precisions.
46250         Reported by Jan <ipif@ymail.com>.
46251
46252 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46253
46254         filevercmp: correct today's change
46255         * lib/filevercmp.c: Also handle coreutils' test inputs.
46256         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46257
46258         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46259         for reporting it.
46260         * lib/filevercmp.c: Special handle for "", "." and "..".
46261         * tests/test-filevercmp.c: Enlarge the set suite.
46262
46263 2009-04-07  Jim Meyering  <meyering@redhat.com>
46264
46265         useless-if-before-free: show how to remove braced useless free, too
46266         * build-aux/useless-if-before-free: still only in a comment, though.
46267
46268 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46269
46270         maint.mk: import changes to syntax-check macros from coreutils
46271         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46272         Use them in the relevant macros.
46273
46274 2009-04-06  Bruno Haible  <bruno@clisp.org>
46275
46276         Fix unportable use of bit-fields.
46277         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46278         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46279         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46280
46281 2009-04-06  Bruno Haible  <bruno@clisp.org>
46282
46283         Avoid test failures on AIX and OSF/1.
46284         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46285         that malloc(0) = NULL.
46286         * tests/unicase/test-u8-tolower.c (check): Likewise.
46287         * tests/unicase/test-u8-totitle.c (check): Likewise.
46288         * tests/unicase/test-u8-toupper.c (check): Likewise.
46289         * tests/unicase/test-u16-casefold.c (check): Likewise.
46290         * tests/unicase/test-u16-tolower.c (check): Likewise.
46291         * tests/unicase/test-u16-totitle.c (check): Likewise.
46292         * tests/unicase/test-u16-toupper.c (check): Likewise.
46293         * tests/unicase/test-u32-casefold.c (check): Likewise.
46294         * tests/unicase/test-u32-tolower.c (check): Likewise.
46295         * tests/unicase/test-u32-totitle.c (check): Likewise.
46296         * tests/unicase/test-u32-toupper.c (check): Likewise.
46297         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46298         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46299         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46300         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46301         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46302         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46303         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46304         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46305         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46306         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46307         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46308         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46309
46310 2009-04-05  Bruno Haible  <bruno@clisp.org>
46311
46312         Work around an autoconf limitation.
46313         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46314         comment line if it would be longer than 3 KB.
46315
46316 2009-04-05  Bruno Haible  <bruno@clisp.org>
46317
46318         Avoid test failure with libiconv-1.13.
46319         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46320         of the expected test results.
46321
46322 2009-04-05  Bruno Haible  <bruno@clisp.org>
46323
46324         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46325         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46326         that it should be installed.
46327
46328 2009-04-05  Bruno Haible  <bruno@clisp.org>
46329
46330         * gnulib-tool: New option --copy-file.
46331         (func_usage): Document it.
46332         (func_dest_tmpfilename): Moved out of func_import.
46333         (func_add_file, func_update_file): New functions, extracted from
46334         func_import.
46335         (func_import): Update.
46336
46337 2009-04-05  Karl Berry  <karl@gnu.org>
46338
46339         * README: prominently mention gnulib-tool.
46340         Rearrange sections so getting the code is near the top.
46341
46342 2009-04-05  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/unicase.h: Mention u*_cmp2.
46345         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46346         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46347         * lib/unicase/ulc-casecmp.c: Likewise.
46348         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46349         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46350         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46351         unistr/u8-cmp.
46352         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46353         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46354         unistr/u16-cmp.
46355         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46356         unistr/u32-cmp.
46357
46358         * lib/uninorm.h: Mention u*_cmp2.
46359         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46360         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46361         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46362         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46363         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46364         unistr/u8-cmp.
46365         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46366         unistr/u16-cmp.
46367         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46368         unistr/u32-cmp.
46369
46370         New module 'unistr/u32-cmp2'.
46371         * lib/unistr/u32-cmp2.c: New file.
46372         * modules/unistr/u32-cmp2: New file.
46373
46374         New module 'unistr/u16-cmp2'.
46375         * lib/unistr/u16-cmp2.c: New file.
46376         * modules/unistr/u16-cmp2: New file.
46377
46378         New module 'unistr/u8-cmp2'.
46379         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46380         * lib/unistr/u8-cmp2.c: New file.
46381         * lib/unistr/u-cmp2.h: New file.
46382         * modules/unistr/u8-cmp2: New file.
46383
46384 2009-04-05  Bruno Haible  <bruno@clisp.org>
46385
46386         * lib/unictype.h (uc_property_is_valid): New macro.
46387         * tests/unictype/test-pr_byname.c (main): Use it.
46388
46389         * lib/unistr.h: Doc fixes.
46390         * lib/uniconv.h: Doc fixes.
46391         * lib/unictype.h: Doc fixes.
46392
46393 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         Port coreutils 7.2 to Solaris 8.
46396
46397         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46398         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46399         for Solaris 8.  This is a bit of a hack, as it means it's the
46400         caller's responsibility to add -lnsl if needed, but most likely it
46401         won't be needed since only getaddrinfo uses this and getaddrinfo
46402         isn't needed on Solaris 8.
46403
46404         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46405         problem to Solaris 8 encountered with coreutils 7.2, which
46406         resulted in a message "fnmatch.c:292: warning: passing argument 4
46407         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46408         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46409
46410 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46411
46412         * m4/ld-version-script.m4: Add FIXME comment.
46413
46414 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46415
46416         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46417         SOVERSION variable.
46418
46419 2009-04-02  Bruno Haible  <bruno@clisp.org>
46420
46421         * Makefile (info, html, dvi, pdf): Combine the rules.
46422         Suggested by Jim Meyering.
46423
46424 2009-04-01  Bruno Haible  <bruno@clisp.org>
46425
46426         * Makefile (info, html, dvi, pdf): New targets.
46427         Reported by Reuben Thomas <rrt@sc3d.org>.
46428
46429 2009-04-01  Bruno Haible  <bruno@clisp.org>
46430
46431         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46432         can be put into PATH.
46433         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46434
46435 2009-04-01  Bruno Haible  <bruno@clisp.org>
46436
46437         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46438
46439 2009-04-01  Bruno Haible  <bruno@clisp.org>
46440
46441         Rename module 'visibility'.
46442         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46443         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46444         * doc/gnulib.texi: Update.
46445         * MODULES.html.sh (Misc): Update.
46446         * NEWS: Mention the change.
46447
46448 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46449
46450         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46451         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46452         Eric Blake <ebb9@byu.net> for review.
46453         * MODULES.html.sh: Add lib-msvc-compat.
46454         * doc/gnulib.texi: Link to new section.
46455         * m4/ld-output-def.m4: New file.
46456         * doc/ld-output-def.texi: New file.
46457
46458 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46459
46460         Rename ld-version-script to lib-symbol-versions.  Suggested by
46461         Bruno Haible <bruno@clisp.org>.
46462         * modules/ld-version-script: Renamed to lib-symbol-versions.
46463         * doc/ld-version-script.texi: Fix module name.
46464         * MODULES.html.sh: Add lib-symbol-versions.
46465
46466 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46467
46468         * modules/u64-tests: New file.
46469         * tests/test-u64.c: New file.
46470
46471 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46472
46473         * MODULES.html.sh: Mention u64.
46474         * modules/u64: New module.
46475         * modules/crypto/sha512: Depend on u64 module instead of providing
46476         u64.h.
46477
46478 2009-03-27  Eric Blake  <ebb9@byu.net>
46479
46480         test-strerror: make debugging EAI_SYSTEM easier
46481         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46482         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46483         failure was EAI_SYSTEM.
46484
46485 2009-03-25  Bruno Haible  <bruno@clisp.org>
46486
46487         Fix a problem with --enable-relocatable on Solaris 7.
46488         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46489         since 2008-02-24.
46490
46491 2009-03-25  Eric Blake  <ebb9@byu.net>
46492
46493         test-sockets: avoid gcc warning
46494         * tests/test-sockets.c (main): Silence compiler warning.
46495
46496 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46497
46498         New modules nproc, pthread, contributed by Glen Lenker.
46499
46500         * MODULES.html.sh: Add pthread, nproc.
46501         * lib/nproc.c: New file.
46502         * lib/nproc.h: New file.
46503         * lib/pthread.in.h: New file.
46504         * m4/pthread.m4: New file.
46505         * modules/nproc: New file.
46506         * modules/pthread: New file.
46507
46508 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46509
46510         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46511         New variable.
46512
46513 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46514
46515         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46516         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46517         * tests/test-filevercmp.c: Add tests for backup suffixes.
46518
46519 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46520
46521         * modules/stdlib (Depends-on): Add stdint, needed when defining
46522         struct random_data on, for example, HP-UX 10.20.  Reported by
46523         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46524
46525 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46526
46527         * lib/readline.c (readline): Call fflush on stdout after printing
46528         prompt.
46529
46530 2009-03-20  Bruno Haible  <bruno@clisp.org>
46531
46532         Remove dependency from 'close' module to -lws2_32 on native Windows.
46533         * lib/close-hook.h: New file.
46534         * lib/close-hook.c: New file.
46535         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46536         w32sock.h.
46537         (_gl_close_fd_maybe_socket): Remove function.
46538         (rpl_close): Invoke execute_all_close_hooks instead of
46539         _gl_close_fd_maybe_socket.
46540         * lib/sockets.c: Include close-hook.h, w32sock.h.
46541         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46542         (close_sockets_hook): New variable.
46543         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46544         (gl_sockets_cleanup): Unregister it.
46545         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46546         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46547         * modules/close-hook: New file.
46548         * modules/close (Files): Remove lib/w32sock.h.
46549         (Depends-on): Add close-hook.
46550         (Link): Remove section.
46551         * modules/sockets (Files): Add lib/w32sock.h.
46552         (Depends-on): Add close-hook.
46553         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46554         invocation.
46555         * NEWS: Mention that LIB_CLOSE is gone.
46556
46557 2009-03-23  Eric Blake  <ebb9@byu.net>
46558
46559         signal-tests: test previous patch
46560         * tests/test-signal.c: New file.
46561         * modules/signal-tests: Likewise.
46562
46563         signal.h: always support 'volatile sig_atomic_t'
46564         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46565         (gl_SIGNAL_H_DEFAULTS): Add a default.
46566         * modules/signal (Makefile.am): Substitute if needed.
46567         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46568         users can blindly add volatile.
46569         * doc/posix-headers/signal.texi (signal.h): Document it.
46570         Reported by Matthew Woehlke.
46571
46572 2009-03-23  Jim Meyering  <meyering@redhat.com>
46573
46574         pathmax: PATH_MAX: use pathconf only when available
46575         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46576         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46577         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46578         This avoids a link failure in a PSP cross-compilation environment
46579         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46580
46581         * lib/vasnprintf.c (divide): Fix typo in comment.
46582
46583 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46584
46585         * gnulib-tool (func_filter_filelist): Fix comment.
46586
46587 2009-03-20  Bruno Haible  <bruno@clisp.org>
46588
46589         Make sockets.h self-contained.
46590         * lib/sockets.c: Include sockets.h first.
46591         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46592
46593 2009-03-19  Eric Blake  <ebb9@byu.net>
46594
46595         doc: mention more functions added in cygwin 1.7.0
46596         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46597         addition.
46598         * doc/posix-functions/log2f.texi: Likewise.
46599
46600 2009-03-19  Jim Meyering  <meyering@redhat.com>
46601
46602         fsusage: avoid syntax error due to statement-before-declaration
46603         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46604         after all declarations.  Reported by Matthew Woehlke in
46605         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46606
46607 2009-03-18  Eric Blake  <ebb9@byu.net>
46608
46609         build-aux/compile: sync from automake
46610         * build-aux/compile: New file, from automake.
46611         * config/srclist.txt: Mention build-aux/compile.
46612
46613 2009-03-17  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/git-merge-changelog.c: Fix typo in comment.
46616         Reported by Reuben Thomas <rrt@sc3d.org>.
46617
46618 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46619
46620         * m4/regex.m4: update and improve help for
46621         --without-included-regex.
46622
46623 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46624
46625         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46626         failure on missing include files.
46627
46628 2009-03-17  Eric Blake  <ebb9@byu.net>
46629
46630         doc: mention more functions added in cygwin 1.7.0
46631         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46632         addition.
46633         * doc/posix-functions/fwscanf.texi: Likewise.
46634         * doc/posix-functions/swprintf.texi: Likewise.
46635         * doc/posix-functions/swscanf.texi: Likewise.
46636         * doc/posix-functions/vfwprintf.texi: Likewise.
46637         * doc/posix-functions/vfwscanf.texi: Likewise.
46638         * doc/posix-functions/vswprintf.texi: Likewise.
46639         * doc/posix-functions/vswscanf.texi: Likewise.
46640         * doc/posix-functions/vwprintf.texi: Likewise.
46641         * doc/posix-functions/vwscanf.texi: Likewise.
46642         * doc/posix-functions/wcscasecmp.texi: Likewise.
46643         * doc/posix-functions/wcsdup.texi: Likewise.
46644         * doc/posix-functions/wcsftime.texi: Likewise.
46645         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46646         * doc/posix-functions/wprintf.texi: Likewise.
46647         * doc/posix-functions/wscanf.texi: Likewise.
46648         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46649
46650 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46651
46652         maint.mk: really add $(AM_MAKEFLAGS)
46653         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46654         was inadvertently omitted in the last commit.
46655         Spotted by Bruno Haible.
46656
46657         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46658         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46659         $(AM_MAKEFLAGS)' rather than plain `make'.
46660
46661         gnulib-tool: execute $MAKE not make
46662         * gnulib-tool: Default $MAKE to 'make'.
46663         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46664         than make.  Initialize $MAKE in the do-autobuild script.
46665
46666         gnulib-tool: use $MAKE not make in generated files
46667         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46668         make, in generated files.  Initialize $MAKE in the do-autobuild
46669         script.
46670
46671         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46672
46673         GNUmakefile: disable parallelism only for multiple, recursive targets
46674         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46675         additions in the Makefile.
46676         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46677         by Automake.
46678         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46679         are listed on the command line and at least one of them is
46680         listed in $(ALL_RECURSIVE_TARGETS).
46681
46682 2009-03-14  Bruno Haible  <bruno@clisp.org>
46683
46684         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46685         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46686         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46687         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46688         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46689         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46690         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46691         unistr/u8-uctomb.
46692         * modules/unistr/u8-strchr (Depends-on): Likewise.
46693         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46694         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46695         unistr/u16-uctomb.
46696         * modules/unistr/u16-strchr (Depends-on): Likewise.
46697         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46698
46699 2009-03-12  Bruno Haible  <bruno@clisp.org>
46700
46701         Work around select() bug on Interix 3.5.
46702         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46703         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46704         * m4/select.m4: New file.
46705         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46706         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46707         * modules/select (Files): Add m4/select.m4.
46708         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46709         * modules/nanosleep (Depends-on): Add select.
46710         * modules/poll (Depends-on): Likewise.
46711         * doc/posix-functions/select.texi: Mention the Interix bug.
46712         Reported by Markus Duft <mduft@gentoo.org>.
46713
46714         * lib/select.c: Renamed from lib/winsock-select.c.
46715         * modules/select (Files): Add lib/select.c, remove
46716         lib/winsock-select.c.
46717         (configure.ac): Update.
46718
46719 2009-03-12  Jim Meyering  <meyering@redhat.com>
46720
46721         avoid gcc warnings about unused macro definitions
46722         * lib/readtokens.c (STREQ): Remove unused definition.
46723         * lib/xmalloc.c (SIZE_MAX): Likewise.
46724         * lib/openat-die.c (N_): Likewise.
46725         * lib/mountlist.c (SIZE_MAX): Remove definition.
46726         Instead, include <stdint.h>.
46727         * lib/readutmp.c: Likewise.
46728         * modules/readutmp (Depends-on): Add stdint.
46729         * modules/mountlist (Depends-on): Add stdint.
46730         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46731
46732 2009-03-10  Bruno Haible  <bruno@clisp.org>
46733
46734         Tests for module 'mbmemcasecoll'.
46735         * modules/mbmemcasecoll-tests: New file.
46736         * tests/test-mbmemcasecoll1.sh: New file.
46737         * tests/test-mbmemcasecoll2.sh: New file.
46738         * tests/test-mbmemcasecoll3.sh: New file.
46739         * tests/test-mbmemcasecoll.c: New file.
46740
46741         New module 'mbmemcasecoll'.
46742         * lib/mbmemcasecoll.h: New file.
46743         * lib/mbmemcasecoll.c: New file.
46744         * modules/mbmemcasecoll: New file.
46745
46746         * tests/test-mbmemcasecmp.h: New file, extracted from
46747         tests/test-mbmemcasecmp.c.
46748         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46749         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46750         (main): Update.
46751         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46752
46753 2009-03-09  Bruno Haible  <bruno@clisp.org>
46754
46755         Tests for module 'mbmemcasecmp'.
46756         * modules/mbmemcasecmp-tests: New file.
46757         * tests/test-mbmemcasecmp1.sh: New file.
46758         * tests/test-mbmemcasecmp2.sh: New file.
46759         * tests/test-mbmemcasecmp3.sh: New file.
46760         * tests/test-mbmemcasecmp.c: New file.
46761
46762         New module 'mbmemcasecmp'.
46763         * lib/mbmemcasecmp.h: New file.
46764         * lib/mbmemcasecmp.c: New file.
46765         * modules/mbmemcasecmp: New file.
46766
46767 2009-03-09  Bruno Haible  <bruno@clisp.org>
46768
46769         Tests for module 'unicase/ulc-casecoll'.
46770         * modules/unicase/ulc-casecoll-tests: New file.
46771         * tests/unicase/test-ulc-casecoll1.sh: New file.
46772         * tests/unicase/test-ulc-casecoll2.sh: New file.
46773         * tests/unicase/test-ulc-casecoll.c: New file.
46774
46775         New module 'unicase/ulc-casecoll'.
46776         * lib/unicase.h (ulc_casecoll): New declaration.
46777         * lib/unicase/ulc-casecoll.c: New file.
46778         * modules/unicase/ulc-casecoll: New file.
46779
46780         New module 'unicase/ulc-casexfrm'.
46781         * lib/unicase.h (ulc_casexfrm): New declaration.
46782         * lib/unicase/ulc-casexfrm.c: New file.
46783         * modules/unicase/ulc-casexfrm: New file.
46784
46785 2009-03-09  Bruno Haible  <bruno@clisp.org>
46786
46787         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46788         invocations.
46789
46790         * m4/mbscasecmp.m4: Remove file.
46791         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46792         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46793
46794         * m4/mbscasestr.m4: Remove file.
46795         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46796         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46797
46798         * m4/mbschr.m4: Remove file.
46799         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46800         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46801
46802         * m4/mbscspn.m4: Remove file.
46803         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46804         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46805
46806         * m4/mbslen.m4: Remove file.
46807         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46808         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46809
46810         * m4/mbsncasecmp.m4: Remove file.
46811         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46812         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46813
46814         * m4/mbsnlen.m4: Remove file.
46815         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46816         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46817
46818         * m4/mbspbrk.m4: Remove file.
46819         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46820         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46821
46822         * m4/mbspcasecmp.m4: Remove file.
46823         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46824         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46825
46826         * m4/mbsrchr.m4: Remove file.
46827         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46828         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46829
46830         * m4/mbssep.m4: Remove file.
46831         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46832         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46833
46834         * m4/mbsspn.m4: Remove file.
46835         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46836         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46837
46838         * m4/mbsstr.m4: Remove file.
46839         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46840         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46841
46842         * m4/mbstok_r.m4: Remove file.
46843         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46844         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46845
46846         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46847
46848         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46849         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46850
46851         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46852
46853 2009-03-08  Bruno Haible  <bruno@clisp.org>
46854
46855         Tests for module 'unicase/ulc-casecmp'.
46856         * modules/unicase/ulc-casecmp-tests: New file.
46857         * tests/unicase/test-ulc-casecmp1.sh: New file.
46858         * tests/unicase/test-ulc-casecmp2.sh: New file.
46859         * tests/unicase/test-ulc-casecmp.c: New file.
46860
46861         New module 'unicase/ulc-casecmp'.
46862         * lib/unicase.h (ulc_casecmp): New declaration.
46863         * lib/unicase/ulc-casecmp.c: New file.
46864         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46865         'const SRC_UNIT *'.
46866         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46867         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46868         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46869         * modules/unicase/ulc-casecmp: New file.
46870
46871         Tests for module 'unicase/u32-is-cased'.
46872         * modules/unicase/u32-is-cased-tests: New file.
46873         * tests/unicase/test-u32-is-cased.c: New file.
46874
46875         Tests for module 'unicase/u16-is-cased'.
46876         * modules/unicase/u16-is-cased-tests: New file.
46877         * tests/unicase/test-u16-is-cased.c: New file.
46878
46879         Tests for module 'unicase/u8-is-cased'.
46880         * modules/unicase/u8-is-cased-tests: New file.
46881         * tests/unicase/test-u8-is-cased.c: New file.
46882         * tests/unicase/test-is-cased.h: New file.
46883
46884         New module 'unicase/u32-is-cased'.
46885         * lib/unicase/u32-is-cased.c: New file.
46886         * modules/unicase/u32-is-cased: New file.
46887
46888         New module 'unicase/u16-is-cased'.
46889         * lib/unicase/u16-is-cased.c: New file.
46890         * modules/unicase/u16-is-cased: New file.
46891
46892         New module 'unicase/u8-is-cased'.
46893         * lib/unicase/u8-is-cased.c: New file.
46894         * lib/unicase/u-is-cased.h: New file.
46895         * modules/unicase/u8-is-cased: New file.
46896
46897         Tests for module 'unicase/u32-is-casefolded'.
46898         * modules/unicase/u32-is-casefolded-tests: New file.
46899         * tests/unicase/test-u32-is-casefolded.c: New file.
46900
46901         Tests for module 'unicase/u16-is-casefolded'.
46902         * modules/unicase/u16-is-casefolded-tests: New file.
46903         * tests/unicase/test-u16-is-casefolded.c: New file.
46904
46905         Tests for module 'unicase/u8-is-casefolded'.
46906         * modules/unicase/u8-is-casefolded-tests: New file.
46907         * tests/unicase/test-u8-is-casefolded.c: New file.
46908         * tests/unicase/test-is-casefolded.h: New file.
46909
46910         New module 'unicase/u32-is-casefolded'.
46911         * lib/unicase/u32-is-casefolded.c: New file.
46912         * modules/unicase/u32-is-casefolded: New file.
46913
46914         New module 'unicase/u16-is-casefolded'.
46915         * lib/unicase/u16-is-casefolded.c: New file.
46916         * modules/unicase/u16-is-casefolded: New file.
46917
46918         New module 'unicase/u8-is-casefolded'.
46919         * lib/unicase/u8-is-casefolded.c: New file.
46920         * modules/unicase/u8-is-casefolded: New file.
46921
46922         Tests for module 'unicase/u32-is-titlecase'.
46923         * modules/unicase/u32-is-titlecase-tests: New file.
46924         * tests/unicase/test-u32-is-titlecase.c: New file.
46925
46926         Tests for module 'unicase/u16-is-titlecase'.
46927         * modules/unicase/u16-is-titlecase-tests: New file.
46928         * tests/unicase/test-u16-is-titlecase.c: New file.
46929
46930         Tests for module 'unicase/u8-is-titlecase'.
46931         * modules/unicase/u8-is-titlecase-tests: New file.
46932         * tests/unicase/test-u8-is-titlecase.c: New file.
46933         * tests/unicase/test-is-titlecase.h: New file.
46934
46935         New module 'unicase/u32-is-titlecase'.
46936         * lib/unicase/u32-is-titlecase.c: New file.
46937         * modules/unicase/u32-is-titlecase: New file.
46938
46939         New module 'unicase/u16-is-titlecase'.
46940         * lib/unicase/u16-is-titlecase.c: New file.
46941         * modules/unicase/u16-is-titlecase: New file.
46942
46943         New module 'unicase/u8-is-titlecase'.
46944         * lib/unicase/u8-is-titlecase.c: New file.
46945         * modules/unicase/u8-is-titlecase: New file.
46946
46947         Tests for module 'unicase/u32-is-lowercase'.
46948         * modules/unicase/u32-is-lowercase-tests: New file.
46949         * tests/unicase/test-u32-is-lowercase.c: New file.
46950
46951         Tests for module 'unicase/u16-is-lowercase'.
46952         * modules/unicase/u16-is-lowercase-tests: New file.
46953         * tests/unicase/test-u16-is-lowercase.c: New file.
46954
46955         Tests for module 'unicase/u8-is-lowercase'.
46956         * modules/unicase/u8-is-lowercase-tests: New file.
46957         * tests/unicase/test-u8-is-lowercase.c: New file.
46958         * tests/unicase/test-is-lowercase.h: New file.
46959
46960         New module 'unicase/u32-is-lowercase'.
46961         * lib/unicase/u32-is-lowercase.c: New file.
46962         * modules/unicase/u32-is-lowercase: New file.
46963
46964         New module 'unicase/u16-is-lowercase'.
46965         * lib/unicase/u16-is-lowercase.c: New file.
46966         * modules/unicase/u16-is-lowercase: New file.
46967
46968         New module 'unicase/u8-is-lowercase'.
46969         * lib/unicase/u8-is-lowercase.c: New file.
46970         * modules/unicase/u8-is-lowercase: New file.
46971
46972         Tests for module 'unicase/u32-is-uppercase'.
46973         * modules/unicase/u32-is-uppercase-tests: New file.
46974         * tests/unicase/test-u32-is-uppercase.c: New file.
46975
46976         Tests for module 'unicase/u16-is-uppercase'.
46977         * modules/unicase/u16-is-uppercase-tests: New file.
46978         * tests/unicase/test-u16-is-uppercase.c: New file.
46979
46980         Tests for module 'unicase/u8-is-uppercase'.
46981         * modules/unicase/u8-is-uppercase-tests: New file.
46982         * tests/unicase/test-u8-is-uppercase.c: New file.
46983         * tests/unicase/test-is-uppercase.h: New file.
46984
46985         New module 'unicase/u32-is-uppercase'.
46986         * lib/unicase/u32-is-uppercase.c: New file.
46987         * modules/unicase/u32-is-uppercase: New file.
46988
46989         New module 'unicase/u16-is-uppercase'.
46990         * lib/unicase/u16-is-uppercase.c: New file.
46991         * modules/unicase/u16-is-uppercase: New file.
46992
46993         New module 'unicase/u8-is-uppercase'.
46994         * lib/unicase/u8-is-uppercase.c: New file.
46995         * modules/unicase/u8-is-uppercase: New file.
46996
46997         New module 'unicase/u32-is-invariant'.
46998         * lib/unicase/u32-is-invariant.c: New file.
46999         * modules/unicase/u32-is-invariant: New file.
47000
47001         New module 'unicase/u16-is-invariant'.
47002         * lib/unicase/u16-is-invariant.c: New file.
47003         * modules/unicase/u16-is-invariant: New file.
47004
47005         New module 'unicase/u8-is-invariant'.
47006         * lib/unicase/u8-is-invariant.c: New file.
47007         * lib/unicase/invariant.h: New file.
47008         * lib/unicase/u-is-invariant.h: New file.
47009         * modules/unicase/u8-is-invariant: New file.
47010
47011         Tests for module 'unicase/u32-casecoll'.
47012         * modules/unicase/u32-casecoll-tests: New file.
47013         * tests/unicase/test-u32-casecoll.c: New file.
47014
47015         Tests for module 'unicase/u16-casecoll'.
47016         * modules/unicase/u16-casecoll-tests: New file.
47017         * tests/unicase/test-u16-casecoll.c: New file.
47018
47019         Tests for module 'unicase/u8-casecoll'.
47020         * modules/unicase/u8-casecoll-tests: New file.
47021         * tests/unicase/test-u8-casecoll.c: New file.
47022
47023         New module 'unicase/u32-casecoll'.
47024         * lib/unicase/u32-casecoll.c: New file.
47025         * modules/unicase/u32-casecoll: New file.
47026
47027         New module 'unicase/u16-casecoll'.
47028         * lib/unicase/u16-casecoll.c: New file.
47029         * modules/unicase/u16-casecoll: New file.
47030
47031         New module 'unicase/u8-casecoll'.
47032         * lib/unicase/u8-casecoll.c: New file.
47033         * lib/unicase/u-casecoll.h: New file.
47034         * modules/unicase/u8-casecoll: New file.
47035
47036         New module 'unicase/u32-casexfrm'.
47037         * lib/unicase/u32-casexfrm.c: New file.
47038         * modules/unicase/u32-casexfrm: New file.
47039
47040         New module 'unicase/u16-casexfrm'.
47041         * lib/unicase/u16-casexfrm.c: New file.
47042         * modules/unicase/u16-casexfrm: New file.
47043
47044         New module 'unicase/u8-casexfrm'.
47045         * lib/unicase/u8-casexfrm.c: New file.
47046         * lib/unicase/u-casexfrm.h: New file.
47047         * modules/unicase/u8-casexfrm: New file.
47048
47049         Tests for module 'unicase/u32-casecmp'.
47050         * modules/unicase/u32-casecmp-tests: New file.
47051         * tests/unicase/test-u32-casecmp.c: New file.
47052
47053         Tests for module 'unicase/u16-casecmp'.
47054         * modules/unicase/u16-casecmp-tests: New file.
47055         * tests/unicase/test-u16-casecmp.c: New file.
47056
47057         Tests for module 'unicase/u8-casecmp'.
47058         * modules/unicase/u8-casecmp-tests: New file.
47059         * tests/unicase/test-u8-casecmp.c: New file.
47060         * tests/unicase/test-casecmp.h: New file.
47061
47062         New module 'unicase/u32-casecmp'.
47063         * lib/unicase/u32-casecmp.c: New file.
47064         * modules/unicase/u32-casecmp: New file.
47065
47066         New module 'unicase/u16-casecmp'.
47067         * lib/unicase/u16-casecmp.c: New file.
47068         * modules/unicase/u16-casecmp: New file.
47069
47070         New module 'unicase/u8-casecmp'.
47071         * lib/unicase/u8-casecmp.c: New file.
47072         * lib/unicase/u-casecmp.h: New file.
47073         * modules/unicase/u8-casecmp: New file.
47074
47075         Tests for module 'unicase/u32-casefold'.
47076         * modules/unicase/u32-casefold-tests: New file.
47077         * tests/unicase/test-u32-casefold.c: New file.
47078
47079         Tests for module 'unicase/u16-casefold'.
47080         * modules/unicase/u16-casefold-tests: New file.
47081         * tests/unicase/test-u16-casefold.c: New file.
47082
47083         Tests for module 'unicase/u8-casefold'.
47084         * modules/unicase/u8-casefold-tests: New file.
47085         * tests/unicase/test-u8-casefold.c: New file.
47086
47087         New module 'unicase/u32-casefold'.
47088         * lib/unicase/u32-casefold.c: New file.
47089         * modules/unicase/u32-casefold: New file.
47090
47091         New module 'unicase/u16-casefold'.
47092         * lib/unicase/u16-casefold.c: New file.
47093         * modules/unicase/u16-casefold: New file.
47094
47095         New module 'unicase/u8-casefold'.
47096         * lib/unicase/u8-casefold.c: New file.
47097         * lib/unicase/u-casefold.h: New file.
47098         * modules/unicase/u8-casefold: New file.
47099
47100         New module 'unicase/tocasefold'.
47101         * lib/unicase/casefold.h: New file.
47102         * lib/unicase/tocasefold.c: New file.
47103         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47104         * modules/unicase/tocasefold: New file.
47105
47106         Tests for module 'unicase/u32-totitle'.
47107         * modules/unicase/u32-totitle-tests: New file.
47108         * tests/unicase/test-u32-totitle.c: New file.
47109
47110         Tests for module 'unicase/u16-totitle'.
47111         * modules/unicase/u16-totitle-tests: New file.
47112         * tests/unicase/test-u16-totitle.c: New file.
47113
47114         Tests for module 'unicase/u8-totitle'.
47115         * modules/unicase/u8-totitle-tests: New file.
47116         * tests/unicase/test-u8-totitle.c: New file.
47117
47118         New module 'unicase/u32-totitle'.
47119         * lib/unicase/u32-totitle.c: New file.
47120         * modules/unicase/u32-totitle: New file.
47121
47122         New module 'unicase/u16-totitle'.
47123         * lib/unicase/u16-totitle.c: New file.
47124         * modules/unicase/u16-totitle: New file.
47125
47126         New module 'unicase/u8-totitle'.
47127         * lib/unicase/u8-totitle.c: New file.
47128         * lib/unicase/u-totitle.h: New file.
47129         * modules/unicase/u8-totitle: New file.
47130
47131         Tests for module 'unicase/u32-tolower'.
47132         * modules/unicase/u32-tolower-tests: New file.
47133         * tests/unicase/test-u32-tolower.c: New file.
47134
47135         Tests for module 'unicase/u16-tolower'.
47136         * modules/unicase/u16-tolower-tests: New file.
47137         * tests/unicase/test-u16-tolower.c: New file.
47138
47139         Tests for module 'unicase/u8-tolower'.
47140         * modules/unicase/u8-tolower-tests: New file.
47141         * tests/unicase/test-u8-tolower.c: New file.
47142
47143         New module 'unicase/u32-tolower'.
47144         * lib/unicase/u32-tolower.c: New file.
47145         * modules/unicase/u32-tolower: New file.
47146
47147         New module 'unicase/u16-tolower'.
47148         * lib/unicase/u16-tolower.c: New file.
47149         * modules/unicase/u16-tolower: New file.
47150
47151         New module 'unicase/u8-tolower'.
47152         * lib/unicase/u8-tolower.c: New file.
47153         * modules/unicase/u8-tolower: New file.
47154
47155         Tests for module 'unicase/u32-toupper'.
47156         * modules/unicase/u32-toupper-tests: New file.
47157         * tests/unicase/test-u32-toupper.c: New file.
47158
47159         Tests for module 'unicase/u16-toupper'.
47160         * modules/unicase/u16-toupper-tests: New file.
47161         * tests/unicase/test-u16-toupper.c: New file.
47162
47163         Tests for module 'unicase/u8-toupper'.
47164         * modules/unicase/u8-toupper-tests: New file.
47165         * tests/unicase/test-u8-toupper.c: New file.
47166
47167         New module 'unicase/u32-toupper'.
47168         * lib/unicase/u32-toupper.c: New file.
47169         * modules/unicase/u32-toupper: New file.
47170
47171         New module 'unicase/u16-toupper'.
47172         * lib/unicase/u16-toupper.c: New file.
47173         * modules/unicase/u16-toupper: New file.
47174
47175         New module 'unicase/u8-toupper'.
47176         * lib/unicase/u8-toupper.c: New file.
47177         * modules/unicase/u8-toupper: New file.
47178
47179         New module 'unicase/u32-casemap'.
47180         * lib/unicase/u32-casemap.c: New file.
47181         * modules/unicase/u32-casemap: New file.
47182
47183         New module 'unicase/u16-casemap'.
47184         * lib/unicase/u16-casemap.c: New file.
47185         * modules/unicase/u16-casemap: New file.
47186
47187         New module 'unicase/u8-casemap'.
47188         * lib/unicase/unicasemap.h: New file.
47189         * lib/unicase/u8-casemap.c: New file.
47190         * lib/unicase/u-casemap.h: New file.
47191         * modules/unicase/u8-casemap: New file.
47192
47193         New module 'unicase/special-casing'.
47194         * lib/unicase/special-casing.h: New file.
47195         * lib/unicase/special-casing.c: New file.
47196         * lib/unicase/special-casing-table.gperf: New file, generated by
47197         gen-uni-tables.c.
47198         * modules/unicase/special-casing: New file.
47199
47200         Tests for module 'unicase/locale-language'.
47201         * modules/unicase/locale-language-tests: New file.
47202         * tests/unicase/test-locale-language.sh: New file.
47203         * tests/unicase/test-locale-language.c: New file.
47204
47205         New module 'unicase/locale-language'.
47206         * lib/unicase/locale-language.c: New file.
47207         * lib/unicase/locale-languages.gperf: New file.
47208         * modules/unicase/locale-language: New file.
47209
47210         Generate more tables for case conversion and case folding.
47211         * lib/gen-uni-tables.c (SCC_*): New enum items.
47212         (struct special_casing_rule): New type.
47213         (casing_rules, num_casing_rules, allocated_casing_rules): New
47214         variables.
47215         (add_casing_rule, fill_casing_rules): New functions.
47216         (struct casefold_rule): New type.
47217         (casefolding_rules, num_casefolding_rules,
47218         allocated_casefolding_rules): New variables.
47219         (fill_casefolding_rules): New function.
47220         (unicode_casefold): New variable.
47221         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47222         sort_casing_rules, output_casing_rules): New functions.
47223         (main): Accept to more arguments: SpecialCasing.txt and
47224         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47225         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47226         Output mapping for casefolding.
47227
47228         * lib/unicase.h: Include stdbool.h, uninorm.h.
47229         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47230         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47231         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47232         arguments.
47233         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47234         resultp arguments.
47235         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47236         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47237         resultp arguments.
47238         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47239         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47240         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47241         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47242         declarations.
47243         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47244
47245 2009-03-08  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47248         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47249         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47250         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47251
47252 2009-03-07  Bruno Haible  <bruno@clisp.org>
47253
47254         Adjust u*_normcmp, u*_normcoll API.
47255         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47256         u16_normcoll, u32_normcoll): Change failure conventions.
47257         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47258         errno and return -1.
47259         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47260
47261 2009-03-07  Bruno Haible  <bruno@clisp.org>
47262
47263         Tests for module 'uninorm/u32-normcoll'.
47264         * modules/uninorm/u32-normcoll-tests: New file.
47265         * tests/uninorm/test-u32-normcoll.c: New file.
47266
47267         Tests for module 'uninorm/u16-normcoll'.
47268         * modules/uninorm/u16-normcoll-tests: New file.
47269         * tests/uninorm/test-u16-normcoll.c: New file.
47270
47271         Tests for module 'uninorm/u8-normcoll'.
47272         * modules/uninorm/u8-normcoll-tests: New file.
47273         * tests/uninorm/test-u8-normcoll.c: New file.
47274
47275 2009-03-07  Bruno Haible  <bruno@clisp.org>
47276
47277         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47278         tests/uninorm/test-u32-normcmp.c.
47279         * tests/uninorm/test-u32-normcmp.c: Include it.
47280         (test_nonascii): New function, extracted from main. Add some more
47281         tests.
47282         (main): Invoke test_ascii and test_nonascii.
47283         * modules/uninorm/u32-normcmp-tests (Files): Add
47284         tests/uninorm/test-u32-normcmp.h.
47285         (Depends-on): Remove uninorm/u32-normcmp.
47286
47287         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47288         tests/uninorm/test-u16-normcmp.c.
47289         * tests/uninorm/test-u16-normcmp.c: Include it.
47290         (test_nonascii): New function, extracted from main. Add some more
47291         tests.
47292         (main): Invoke test_ascii and test_nonascii.
47293         * modules/uninorm/u16-normcmp-tests (Files): Add
47294         tests/uninorm/test-u16-normcmp.h.
47295         (Depends-on): Remove uninorm/u16-normcmp.
47296
47297         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47298         tests/uninorm/test-u8-normcmp.c.
47299         * tests/uninorm/test-u8-normcmp.c: Include it.
47300         (test_nonascii): New function, extracted from main. Add some more
47301         tests.
47302         (main): Invoke test_ascii and test_nonascii.
47303         * modules/uninorm/u8-normcmp-tests (Files): Add
47304         tests/uninorm/test-u8-normcmp.h.
47305         (Depends-on): Remove uninorm/u8-normcmp.
47306
47307 2009-03-07  Bruno Haible  <bruno@clisp.org>
47308
47309         New module 'uninorm/u32-normcoll'.
47310         * lib/uninorm/u32-normcoll.c: New file.
47311         * modules/uninorm/u32-normcoll: New file.
47312
47313         New module 'uninorm/u16-normcoll'.
47314         * lib/uninorm/u16-normcoll.c: New file.
47315         * modules/uninorm/u16-normcoll: New file.
47316
47317         New module 'uninorm/u8-normcoll'.
47318         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47319         declarations.
47320         * lib/uninorm/u8-normcoll.c: New file.
47321         * lib/uninorm/u-normcoll.h: New file.
47322         * modules/uninorm/u8-normcoll: New file.
47323
47324         New module 'uninorm/u32-normxfrm'.
47325         * lib/uninorm/u32-normxfrm.c: New file.
47326         * modules/uninorm/u32-normxfrm: New file.
47327
47328         New module 'uninorm/u16-normxfrm'.
47329         * lib/uninorm/u16-normxfrm.c: New file.
47330         * modules/uninorm/u16-normxfrm: New file.
47331
47332         New module 'uninorm/u8-normxfrm'.
47333         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47334         declarations.
47335         * lib/uninorm/u8-normxfrm.c: New file.
47336         * lib/uninorm/u-normxfrm.h: New file.
47337         * modules/uninorm/u8-normxfrm: New file.
47338
47339 2009-03-07  Bruno Haible  <bruno@clisp.org>
47340
47341         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47342         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47343         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47344
47345 2009-03-07  Bruno Haible  <bruno@clisp.org>
47346
47347         New module 'memxfrm'.
47348         * lib/memxfrm.h: New file.
47349         * lib/memxfrm.c: New file.
47350         * modules/memxfrm: New file.
47351
47352 2009-03-07  Bruno Haible  <bruno@clisp.org>
47353
47354         New module 'memcmp2'.
47355         * lib/memcmp2.h: New file.
47356         * lib/memcmp2.c: New file.
47357         * modules/memcmp2: New file.
47358
47359 2009-03-07  Bruno Haible  <bruno@clisp.org>
47360
47361         Tests for module 'uninorm/decomposing-form'.
47362         * modules/uninorm/decomposing-form-tests: New file.
47363         * tests/uninorm/test-decomposing-form.c: New file.
47364
47365         New module 'uninorm/decomposing-form'.
47366         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47367         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47368         Add 'decomposing_variant' field.
47369         * lib/uninorm/decomposing-form.c: New file.
47370         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47371         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47372         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47373         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47374         * modules/uninorm/decomposing-form: New file.
47375         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47376         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47377
47378 2009-03-07  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47381         strings.
47382
47383 2009-03-06  Bruno Haible  <bruno@clisp.org>
47384
47385         Tests for module 'uninorm/u32-normcmp'.
47386         * tests/uninorm/test-u32-normcmp.c: New file.
47387         * modules/uninorm/u32-normcmp-tests: New file.
47388
47389         Tests for module 'uninorm/u16-normcmp'.
47390         * tests/uninorm/test-u16-normcmp.c: New file.
47391         * modules/uninorm/u16-normcmp-tests: New file.
47392
47393         Tests for module 'uninorm/u8-normcmp'.
47394         * tests/uninorm/test-u8-normcmp.c: New file.
47395         * modules/uninorm/u8-normcmp-tests: New file.
47396
47397         New module 'uninorm/u32-normcmp'.
47398         * lib/uninorm/u32-normcmp.c: New file.
47399         * modules/uninorm/u32-normcmp: New file.
47400
47401         New module 'uninorm/u16-normcmp'.
47402         * lib/uninorm/u16-normcmp.c: New file.
47403         * modules/uninorm/u16-normcmp: New file.
47404
47405         New module 'uninorm/u8-normcmp'.
47406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47407         declarations.
47408         * lib/uninorm/u8-normcmp.c: New file.
47409         * lib/uninorm/u-normcmp.h: New file.
47410         * modules/uninorm/u8-normcmp: New file.
47411
47412 2009-03-06  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47415         Reported by Eric Blake.
47416
47417 2009-03-06  Eric Blake  <ebb9@byu.net>
47418             Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47421         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47422         condition.
47423         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47424         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47425         condition.
47426         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47427
47428 2009-03-06  Eric Blake  <ebb9@byu.net>
47429
47430         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47431         to avoid compiler warnings.
47432         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47433
47434 2009-03-05  Bruno Haible  <bruno@clisp.org>
47435
47436         * tests/test-ftell.c (main): Disable test beyond end of file on
47437         FreeMiNT.
47438         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47439
47440 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47441
47442         * lib/filevercmp.c: Move hidden files up in ordering.
47443         * tests/test-filevercmp.c: Add tests for hidden files.
47444
47445 2009-03-04  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47448         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47449         AM_CFLAGS.
47450         Reported by Simon Josefsson.
47451
47452 2009-03-03  Bruno Haible  <bruno@clisp.org>
47453
47454         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47455         Reported by Simon Josefsson.
47456
47457         * doc/ld-version-script.texi: Update node reference.
47458
47459 2009-03-03  Bruno Haible  <bruno@clisp.org>
47460
47461         * modules/visibility (License): Change to 'unlimited'.
47462         Suggested by Simon Josefsson.
47463
47464 2009-03-03  Jim Meyering  <meyering@redhat.com>
47465
47466         unlinkdir: cannot_unlink_dir may modify process state
47467         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47468         it's neither thread-safe nor appropriate for use in a library.
47469
47470 2009-03-03  Eric Blake  <ebb9@byu.net>
47471
47472         test-closein: silence test under Darwin
47473         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47474         care if it dies from EPIPE or EBADF.
47475
47476 2009-03-03  Bruno Haible  <bruno@clisp.org>
47477
47478         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47479         earlier.
47480         * doc/visibility.texi: Fix @node and @section.
47481
47482 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47483
47484         * doc/gnulib.texi: Link to sections for ld version script and
47485         visibility.
47486         * doc/visibility.texi: Add @node and @section.
47487         * modules/ld-version-script: New module.
47488         * m4/ld-version-script.m4: New file.
47489         * doc/ld-version-script.texi: New file.
47490
47491 2009-03-02  David Lutterkort  <lutter@redhat.com>
47492
47493         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47495
47496 2009-03-02  Bruno Haible  <bruno@clisp.org>
47497
47498         * doc/visibility.texi: Mention libtool's -export-symbols option.
47499
47500 2009-03-02  Jim Meyering  <meyering@redhat.com>
47501
47502         announce-gen: new option: --no-print-checksums
47503         * build-aux/announce-gen (usage): Describe it.
47504         (print_checksums): Print a newline here, not in the [*] footnote.
47505         (main): Honor it.
47506
47507 2009-03-01  Bruno Haible  <bruno@clisp.org>
47508
47509         Use socklen_t in the native Windows replacements prototypes.
47510         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47511         instead of 'int'.
47512         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47513         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47514         * modules/getsockopt (Depends-on): Add socklen.
47515         * modules/setsockopt (Depends-on): Add socklen.
47516
47517 2009-03-01  Bruno Haible  <bruno@clisp.org>
47518
47519         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47520         least 4.2.
47521
47522 2009-03-01  Eric Blake  <ebb9@byu.net>
47523             Bruno Haible  <bruno@clisp.org>
47524
47525         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47526         error messages.
47527         * lib/wait-process.c (wait_subprocess): Omit error message about
47528         deadly signal sent to the child of termsigp != NULL.
47529
47530 2009-03-01  Eric Blake  <ebb9@byu.net>
47531
47532         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47533
47534 2009-03-01  Bruno Haible  <bruno@clisp.org>
47535
47536         Avoid a gcc warning.
47537         * tests/test-sched.c (b): Make global.
47538         Reported by Eric Blake.
47539
47540 2009-01-19  Martin Lambers  <marlam@marlam.de>
47541
47542         Provide POSIX semantics for socket timeout options on W32.
47543         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47544         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47545         * modules/setsockopt: Depend on sys_time module for struct timeval.
47546         * modules/getsockopt: Depend on sys_time module for struct timeval.
47547
47548 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47549
47550         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47551         __USE_GNU, for consistency with netdb.in.h.
47552         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47553
47554 2009-03-01  Bruno Haible  <bruno@clisp.org>
47555
47556         More support for FreeMiNT.
47557         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47558         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47559
47560 2009-03-01  Bruno Haible  <bruno@clisp.org>
47561
47562         More support for FreeMiNT.
47563         * lib/fpurge.c (fpurge): Correct last commit.
47564         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47565
47566 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47567
47568         Fix unportable awk script in vc-list-files.
47569         * build-aux/vc-list-files: In the replacement awk script, use
47570         substr with a second argument of 1, not zero.
47571         Report by Simon Josefsson.
47572
47573 2009-02-28  Bruno Haible  <bruno@clisp.org>
47574
47575         More support for FreeMiNT.
47576         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47577         to FreeMiNT today.
47578         * lib/fwriting.c (fwriting): Likewise.
47579         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47580
47581 2009-02-28  Bruno Haible  <bruno@clisp.org>
47582
47583         * tests/test-freadseek.c (main): Disable test beyond end of file on
47584         FreeMiNT.
47585         * tests/test-ftello.c (main): Likewise.
47586         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47587
47588 2009-02-28  Bruno Haible  <bruno@clisp.org>
47589
47590         Add tentative support for FreeMiNT.
47591         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47592         * lib/fpurge.c (fpurge): Likewise.
47593         * lib/freadable.c (freadable): Likewise.
47594         * lib/freading.c (freading): Likewise.
47595         * lib/freadptr.c (freadptr): Likewise.
47596         * lib/freadseek.c (freadptrinc): Likewise.
47597         * lib/fseeko.c (rpl_fseeko): Likewise.
47598         * lib/fseterr.c (fseterr): Likewise.
47599         * lib/fwritable.c (fwritable): Likewise.
47600         * lib/fwriting.c (fwriting): Likewise.
47601         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47602         Hourihane.
47603         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47604
47605 2009-02-28  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47608         SIGCHLD.
47609         Reported by Jim Meyering.
47610
47611 2009-02-28  Bruno Haible  <bruno@clisp.org>
47612
47613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47614         Mention the results of these tests on various platforms.
47615         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47616         order.
47617         * doc/posix-functions/printf.texi: Likewise.
47618         * doc/posix-functions/snprintf.texi: Likewise.
47619         * doc/posix-functions/sprintf.texi: Likewise.
47620         * doc/posix-functions/vfprintf.texi: Likewise.
47621         * doc/posix-functions/vprintf.texi: Likewise.
47622         * doc/posix-functions/vsnprintf.texi: Likewise.
47623         * doc/posix-functions/vsprintf.texi: Likewise.
47624         * doc/glibc-functions/obstack_printf.texi: Likewise.
47625         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47626
47627 2009-02-28  Bruno Haible  <bruno@clisp.org>
47628
47629         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47630         Reported by Loïc Minier <lool@dooz.org>.
47631
47632 2009-02-27  Bruno Haible  <bruno@clisp.org>
47633
47634         * gnulib-tool (func_import): Make the sed expression used to create the
47635         sed script for updating the .gitignore file POSIX compliant.
47636         Reported by Eric Blake.
47637
47638 2009-02-27  Bruno Haible  <bruno@clisp.org>
47639
47640         * gnulib-tool (sed): Don't alias as "sed --posix".
47641         Reported by Eric Blake.
47642
47643 2009-02-27  Bruno Haible  <bruno@clisp.org>
47644
47645         Avoid test link errors.
47646         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47647         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47648         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47649         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47651
47652 2009-02-27  Bruno Haible  <bruno@clisp.org>
47653
47654         Avoid spurious "(cached)" in configure output.
47655         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47656         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47657         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47658         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47659         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47660         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47661         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47662         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47663         Reported by Eric Blake.
47664
47665 2009-02-27  Eric Blake  <ebb9@byu.net>
47666
47667         printf: fix regression in previous patch
47668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47669
47670 2009-02-27  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47673         value.
47674         * lib/stdint.in.h: Likewise.
47675         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47676
47677 2009-02-27  Eric Blake  <ebb9@byu.net>
47678
47679         doc: mention more functions added in cygwin 1.7.0
47680         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47681         addition.
47682         * doc/posix-functions/open_wmemstream.texi: Likewise.
47683         * doc/posix-functions/wcsnlen.texi: Likewise.
47684         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47685         * doc/posix-functions/wcstod.texi: Likewise.
47686         * doc/posix-functions/wcstof.texi: Likewise.
47687         * doc/posix-functions/wcstoimax.texi: Likewise.
47688         * doc/posix-functions/wcstok.texi: Likewise.
47689         * doc/posix-functions/wcstoumax.texi: Likewise.
47690
47691         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47693         * doc/posix-functions/fprintf.texi: Update.
47694         * doc/posix-functions/printf.texi: Update.
47695         * doc/posix-functions/snprintf.texi: Update.
47696         * doc/posix-functions/sprintf.texi: Update.
47697         * doc/posix-functions/vfprintf.texi: Update.
47698         * doc/posix-functions/vprintf.texi: Update.
47699         * doc/posix-functions/vsnprintf.texi: Update.
47700         * doc/posix-functions/vsprintf.texi: Update.
47701         * doc/glibc-functions/obstack_printf.texi: Update.
47702         * doc/glibc-functions/obstack_vprintf.texi: Update.
47703
47704 2009-02-26  Eric Blake  <ebb9@byu.net>
47705
47706         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47707         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47708         compilation bug by using runtime conversion.
47709         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47710         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47711         * modules/ceill-tests (Files): Use nan.h.
47712         * modules/floorl-tests (Files): Likewise.
47713         * modules/frexpl-tests (Files): Likewise.
47714         * modules/isnanl-tests (Files): Likewise.
47715         * modules/ldexpl-tests (Files): Likewise.
47716         * modules/roundl-tests (Files): Likewise.
47717         * modules/truncl-tests (Files): Likewise.
47718         * tests/test-ceill.c (main): Use a working NaN.
47719         * tests/test-floorl.c (main): Likewise.
47720         * tests/test-frexpl.c (main): Likewise.
47721         * tests/test-isnan.c (test_long_double): Likewise.
47722         * tests/test-isnanl.h (main): Likewise.
47723         * tests/test-ldexpl.h (main): Likewise.
47724         * tests/test-roundl.h (main): Likewise.
47725         * tests/test-truncl.h (main): Likewise.
47726         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47727
47728 2009-02-26  Eric Blake  <ebb9@byu.net>
47729             Bruno Haible  <bruno@clisp.org>
47730
47731         Work around a *printf bug with %ls on Solaris.
47732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47733         precision is specified, sprintf stops converting the wide string
47734         argument when the number of bytes that have been produced by this
47735         conversion equals or exceeds the precision.
47736         * doc/posix-functions/fprintf.texi: Update.
47737         * doc/posix-functions/printf.texi: Update.
47738         * doc/posix-functions/snprintf.texi: Update.
47739         * doc/posix-functions/sprintf.texi: Update.
47740         * doc/posix-functions/vfprintf.texi: Update.
47741         * doc/posix-functions/vprintf.texi: Update.
47742         * doc/posix-functions/vsnprintf.texi: Update.
47743         * doc/posix-functions/vsprintf.texi: Update.
47744         * doc/glibc-functions/obstack_printf.texi: Update.
47745         * doc/glibc-functions/obstack_vprintf.texi: Update.
47746
47747 2009-02-26  Eric Blake  <ebb9@byu.net>
47748
47749         stdlib: favor compiler check of random.h
47750         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47751         to avoid an ObjC random.h installed by Swarm.
47752
47753 2009-02-26  Bruno Haible  <bruno@clisp.org>
47754
47755         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47756         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47757         Reported by Gary V. Vaughan <gary@gnu.org>.
47758
47759 2009-02-26  Bruno Haible  <bruno@clisp.org>
47760
47761         Fix *printf behaviour regarding the %ls directive.
47762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47763         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47764         NEED_PRINTF_DIRECTIVE_LS.
47765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47766         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47768         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47769         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47770         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47771         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47776         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47780         * doc/posix-functions/fprintf.texi: Update.
47781         * doc/posix-functions/printf.texi: Update.
47782         * doc/posix-functions/snprintf.texi: Update.
47783         * doc/posix-functions/sprintf.texi: Update.
47784         * doc/posix-functions/vfprintf.texi: Update.
47785         * doc/posix-functions/vprintf.texi: Update.
47786         * doc/posix-functions/vsnprintf.texi: Update.
47787         * doc/posix-functions/vsprintf.texi: Update.
47788         * doc/glibc-functions/obstack_printf.texi: Update.
47789         * doc/glibc-functions/obstack_vprintf.texi: Update.
47790         Reported by Eric Blake.
47791
47792 2009-02-25  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47795         with known value.
47796         Reported by Gary V. Vaughan <gary@gnu.org>.
47797
47798 2009-02-25  Bruno Haible  <bruno@clisp.org>
47799
47800         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47801         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47802         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47803         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47804         Reported by Gary V. Vaughan <gary@gnu.org>.
47805
47806 2009-02-25  Bruno Haible  <bruno@clisp.org>
47807
47808         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47809         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47810         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47811         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47812         Reported by Gary V. Vaughan <gary@gnu.org>.
47813
47814 2009-02-25  Eric Blake  <ebb9@byu.net>
47815
47816         tests: skip fseek/ftell tests if ungetc is broken
47817         * m4/ungetc.m4: New file.
47818         * modules/fseek-tests: Split test, so ungetc dependency is
47819         separate from rest of test.
47820         * modules/fseeko-tests: Likewise.
47821         * modules/ftell-tests: Likewise.
47822         * modules/ftello-tests: Likewise.
47823         * tests/test-fseek.c (main): Isolate ungetc dependency.
47824         * tests/test-fseeko.c (main): Likewise.
47825         * tests/test-ftell.c (main): Likewise.
47826         * tests/test-ftello.c (main): Likewise.
47827         * tests/test-fseek2.sh: New file.
47828         * tests/test-fseeko2.sh: Likewise.
47829         * tests/test-ftell2.sh: Likewise.
47830         * tests/test-ftello2.sh: Likewise.
47831
47832 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47833
47834         test-getaddrinfo: fix usage of skip return code 77
47835         * tests/test-gettaddrinfo.c: Return skip code 77 only
47836         for first occurrence of skip (4x77 is not 77)
47837
47838 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47839
47840         strtod: avoid C99 decl-after-statement
47841         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47842
47843 2009-02-24  Eric Blake  <ebb9@byu.net>
47844
47845         strtod: detect HP-UX 11.31 bug
47846         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47847         Reported by Gary V. Vaughan.
47848
47849 2009-02-23  Bruno Haible  <bruno@clisp.org>
47850
47851         Fix invalid read past end of memory block.
47852         * lib/vasnprintf.c (DCHAR_SET): Define.
47853         (local_wcslen): Define only when needed.
47854         (local_strnlen, local_wcsnlen): New functions.
47855         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47856         directives that involve a conversion ourselves.
47857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47858         wcsnlen, mbrtowc, wcrtomb.
47859         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47860         * tests/test-vasprintf-posix.c (test_function): Likewise.
47861         * tests/test-snprintf-posix.h (test_function): Likewise.
47862         * tests/test-sprintf-posix.h (test_function): Likewise.
47863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47864
47865 2009-02-22  Bruno Haible  <bruno@clisp.org>
47866
47867         Implement new clarified decomposition of Hangul syllables.
47868         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47869         of type LTV, return only a pairwise decomposition.
47870         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47871         Likewise.
47872         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47873         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47874         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47875
47876 2009-02-22  Bruno Haible  <bruno@clisp.org>
47877
47878         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47879         zero-length results and shrink excess allocated memory.
47880         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47881         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47882         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47883         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47884         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47885         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47886         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47887         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47888         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47889         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47890         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47891         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47892
47893 2009-02-21  Bruno Haible  <bruno@clisp.org>
47894
47895         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47896         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47897         spaces after a period. Put a space between a macro name and its
47898         argument list. Trivial rewordings.
47899         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47900         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47901         (main): Return 0 explicitly.
47902
47903 2009-02-21  Bruno Haible  <bruno@clisp.org>
47904
47905         Tests for module 'uninorm/filter'.
47906         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47907         * modules/uninorm/filter-tests: New file.
47908
47909         New module 'uninorm/filter'.
47910         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47911         uninorm_filter_flush, uninorm_filter_free): New declarations.
47912         * lib/uninorm/uninorm-filter.c: New file.
47913         * modules/uninorm/filter: New file.
47914
47915 2009-02-21  Bruno Haible  <bruno@clisp.org>
47916
47917         Tests for module 'uninorm/nfkc'.
47918         * tests/uninorm/test-nfkc.c: New file.
47919         * tests/uninorm/test-u8-nfkc.c: New file.
47920         * tests/uninorm/test-u16-nfkc.c: New file.
47921         * tests/uninorm/test-u32-nfkc.c: New file.
47922         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47923         * tests/uninorm/test-u32-nfkc-big.c: New file.
47924         * modules/uninorm/nfkc-tests: New file.
47925
47926         New module 'uninorm/nfkc'.
47927         * lib/uninorm/nfkc.c: New file.
47928         * modules/uninorm/nfkc: New file.
47929
47930         Tests for module 'uninorm/nfkd'.
47931         * tests/uninorm/test-nfkd.c: New file.
47932         * tests/uninorm/test-u8-nfkd.c: New file.
47933         * tests/uninorm/test-u16-nfkd.c: New file.
47934         * tests/uninorm/test-u32-nfkd.c: New file.
47935         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47936         * tests/uninorm/test-u32-nfkd-big.c: New file.
47937         * modules/uninorm/nfkd-tests: New file.
47938
47939         New module 'uninorm/nfkd'.
47940         * lib/uninorm/nfkd.c: New file.
47941         * modules/uninorm/nfkd: New file.
47942
47943         Tests for module 'uninorm/nfc'.
47944         * tests/uninorm/test-nfc.c: New file.
47945         * tests/uninorm/test-u8-nfc.c: New file.
47946         * tests/uninorm/test-u16-nfc.c: New file.
47947         * tests/uninorm/test-u32-nfc.c: New file.
47948         * tests/uninorm/test-u32-nfc-big.sh: New file.
47949         * tests/uninorm/test-u32-nfc-big.c: New file.
47950         * modules/uninorm/nfc-tests: New file.
47951
47952         New module 'uninorm/nfc'.
47953         * lib/uninorm/nfc.c: New file.
47954         * modules/uninorm/nfc: New file.
47955
47956         Tests for module 'uninorm/nfd'.
47957         * tests/uninorm/test-nfd.c: New file.
47958         * tests/uninorm/test-u8-nfd.c: New file.
47959         * tests/uninorm/test-u16-nfd.c: New file.
47960         * tests/uninorm/test-u32-nfd.c: New file.
47961         * tests/uninorm/test-u32-nfd-big.sh: New file.
47962         * tests/uninorm/test-u32-nfd-big.c: New file.
47963         * tests/uninorm/test-u32-normalize-big.h: New file.
47964         * tests/uninorm/test-u32-normalize-big.c: New file.
47965         * tests/uninorm/NormalizationTest.txt: New file, created from
47966         Unicode 5.1.0 NormalizationTest.txt.
47967         * modules/uninorm/nfd-tests: New file.
47968
47969         New module 'uninorm/nfd'.
47970         * lib/uninorm/nfd.c: New file.
47971         * modules/uninorm/nfd: New file.
47972
47973         New module 'uninorm/u32-normalize'.
47974         * lib/uninorm/u32-normalize.c: New file.
47975         * modules/uninorm/u32-normalize: New file.
47976
47977         New module 'uninorm/u16-normalize'.
47978         * lib/uninorm/u16-normalize.c: New file.
47979         * modules/uninorm/u16-normalize: New file.
47980
47981         New module 'uninorm/u8-normalize'.
47982         * lib/uninorm/u8-normalize.c: New file.
47983         * lib/uninorm/normalize-internal.h: New file.
47984         * lib/uninorm/u-normalize-internal.h: New file.
47985         * modules/uninorm/u8-normalize: New file.
47986
47987         New module 'uninorm/decompose-internal'.
47988         * lib/uninorm/decompose-internal.c: New file.
47989         * modules/uninorm/decompose-internal: New file.
47990
47991         Tests for module 'uninorm/composition'.
47992         * tests/uninorm/test-composition.c: New file.
47993         * modules/uninorm/composition-tests: New file.
47994
47995         New module 'uninorm/composition'.
47996         * lib/uninorm/composition.c: New file.
47997         * lib/uninorm/composition-table.gperf: New file, generated by
47998         gen-uni-tables.
47999         * modules/uninorm/composition: New file.
48000
48001         Tests for module 'uninorm/compat-decomposition'.
48002         * tests/uninorm/test-compat-decomposition.c: New file.
48003         * modules/uninorm/compat-decomposition-tests: New file.
48004
48005         New module 'uninorm/compat-decomposition'.
48006         * lib/uninorm/decompose-internal.h: New file.
48007         * lib/uninorm/compat-decomposition.c: New file.
48008         * modules/uninorm/compat-decomposition: New file.
48009
48010         Tests for module 'uninorm/canonical-decomposition'.
48011         * tests/uninorm/test-canonical-decomposition.c: New file.
48012         * modules/uninorm/canonical-decomposition-tests: New file.
48013
48014         New module 'uninorm/canonical-decomposition'.
48015         * lib/uninorm/canonical-decomposition.c: New file.
48016         * modules/uninorm/canonical-decomposition: New file.
48017
48018         Tests for module 'uninorm/decomposition'.
48019         * tests/uninorm/test-decomposition.c: New file.
48020         * modules/uninorm/decomposition-tests: New file.
48021
48022         New module 'uninorm/decomposition'.
48023         * lib/uninorm/decomposition.c: New file.
48024         * modules/uninorm/decomposition: New file.
48025
48026         New module 'uninorm/decomposition-table'.
48027         * lib/uninorm/decomposition-table.h: New file.
48028         * lib/uninorm/decomposition-table.c: New file.
48029         * lib/uninorm/decomposition-table1.h: New file, generated by
48030         gen-uni-tables.
48031         * lib/uninorm/decomposition-table2.h: New file, generated by
48032         gen-uni-tables.
48033         * modules/uninorm/decomposition-table: New file.
48034
48035         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48036         (UC_DECOMP_*): New enumeration items.
48037         (get_decomposition): New function.
48038         (struct decomp_table): New type.
48039         (output_decomposition, output_decomposition_tables): New functions.
48040         (unicode_composition_exclusions): New variable.
48041         (fill_composition_exclusions, debug_output_composition_tables): New
48042         functions.
48043         (main): Accept one more argument. Invoke fill_composition_exclusions.
48044         Output decomposition and composition tables.
48045
48046         New module 'uninorm/base'.
48047         * lib/uninorm.h: New file.
48048         * lib/unictype.h: Update comment.
48049         * modules/uninorm/base: New file.
48050
48051 2009-02-21  David Lutterkort  <lutter@redhat.com>
48052
48053         Tests for module 'safe-alloc'.
48054         * tests/test-safe-alloc.c: New file.
48055         * modules/safe-alloc-tests: New file.
48056
48057         New module 'safe-alloc'.
48058         * lib/safe-alloc.h: New file.
48059         * lib/safe-alloc.c: New file.
48060         * m4/safe-alloc.m4: New file.
48061         * modules/safe-alloc: New file.
48062         * doc/safe-alloc.texi: New file.
48063         * doc/gnulib.texi: Include it.
48064         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48065         safe-alloc.
48066
48067 2009-02-18  Bruno Haible  <bruno@clisp.org>
48068
48069         Fix link error on non-glibc systems.
48070         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48071         variable.
48072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48073
48074 2009-02-18  Jim Meyering  <meyering@redhat.com>
48075
48076         fts: avoid used-uninitialized error due to recent change
48077         * lib/fts.c (fts_read): Guard uses of the new member,
48078         parent->fts_n_dirs_remaining, since it's not relevant for
48079         the parent of a directory specified on the command-line.
48080
48081 2009-02-17  James Youngman  <jay@gnu.org>
48082             Bruno Haible  <bruno@clisp.org>
48083
48084         * m4/include_next.m4: Reformulate comment.
48085
48086 2009-02-16  Jim Meyering  <meyering@redhat.com>
48087
48088         fts: add #if guards so that the fts_lgpl module still builds
48089         * lib/fts.c: Guard just-added hash-table-using parts with
48090         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48091         Reported by Simon Josefsson.
48092
48093 2009-02-15  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/array-mergesort-tests: New file.
48096         * tests/test-array-mergesort.c: New file.
48097
48098         New module 'array-mergesort'.
48099         * modules/array-mergesort: New file.
48100         * lib/array-mergesort.h: New file.
48101
48102 2009-02-15  Bruno Haible  <bruno@clisp.org>
48103
48104         Fix 2009-02-07 commit.
48105         * lib/gen-uni-tables.c (output_predicate, output_category,
48106         output_combclass, output_bidi_category, output_decimal_digit,
48107         output_digit, output_numeric, output_mirror, output_scripts,
48108         output_ident_category, output_simple_mapping): Fix format directives.
48109         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48110
48111 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48112
48113         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48114         fixes are available from IBM.
48115
48116 2009-02-13  Jim Meyering  <meyering@redhat.com>
48117
48118         fts: arrange not to stat non-directories in more cases
48119         This makes GNU find (when it doesn't need to stat each file)
48120         *much* more efficient at traversing reiserfs file systems.
48121         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48122         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48123         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48124         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48125         (leaf_optimization_applies): New function.
48126         (LCO_hash, LCO_compare): New helper functions.
48127         (link_count_optimize_ok): New function.
48128         (fts_stat): Initialize new member (if dir).
48129         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48130         we've just stat'ed a directory.  Skip the stat call when possible.
48131         ---
48132         Note this AFS-related exchange:
48133         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48134         and note find's pioctl call in find/fstype.c.
48135         But that is necessary only if you want to enable the
48136         optimization for AFS, and for now, I don't.
48137
48138         fts: move a function definition "up" (no semantic change)
48139         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48140         "up" to precede upcoming use of a related function.
48141
48142 2009-02-11  Jim Meyering  <meyering@redhat.com>
48143
48144         fts: correct internal computation of nlinks (optimization-related)
48145         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48146         whether the current entry is a directory, so don't test it.
48147
48148 2009-02-10  Bruno Haible  <bruno@clisp.org>
48149
48150         Tests for module 'uniwbrk/ulc-wordbreaks'.
48151         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48152         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48153         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48154
48155         Tests for module 'uniwbrk/u32-wordbreaks'.
48156         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48157         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48158
48159         Tests for module 'uniwbrk/u16-wordbreaks'.
48160         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48161         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48162
48163         Tests for module 'uniwbrk/u8-wordbreaks'.
48164         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48165         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48166
48167 2009-02-10  Bruno Haible  <bruno@clisp.org>
48168
48169         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48170         property.
48171         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48172         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48173         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48174
48175 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48176
48177         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48178         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48179
48180 2009-02-10  Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48183         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48184         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48185         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48186         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48187         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48188
48189 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48190
48191         * lib/sockets.h (gl_fd_to_handle): New function.
48192
48193         * tests/test-sockets.c: Call gl_fd_to_handle.
48194
48195 2009-02-09  Bruno Haible  <bruno@clisp.org>
48196
48197         * doc/havelib.texi: Document the conventions on bi-arch systems.
48198
48199 2009-02-08  Bruno Haible  <bruno@clisp.org>
48200
48201         Document the AC_LIB_LINKFLAGS macro.
48202         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48203         * doc/gnulib.texi: Include it.
48204
48205 2009-02-08  Bruno Haible  <bruno@clisp.org>
48206
48207         Fix wrong order of sections, compared to TOC.
48208         * doc/gnulib.texi: Include relocatable-maint.texi after the
48209         "Regular expressions" node, not before.
48210
48211 2009-02-08  Bruno Haible  <bruno@clisp.org>
48212
48213         Tests for module 'unicase/totitle'.
48214         * modules/unicase/totitle-tests: New file.
48215
48216         Tests for module 'unicase/tolower'.
48217         * modules/unicase/tolower-tests: New file.
48218
48219         Tests for module 'unicase/toupper'.
48220         * modules/unicase/toupper-tests: New file.
48221         * tests/unicase/test-mapping-part1.h: New file.
48222         * tests/unicase/test-mapping-part2.h: New file.
48223
48224         New module 'unicase/totitle'.
48225         * modules/unicase/totitle: New file.
48226         * lib/unicase/totitle.c: New file.
48227
48228         New module 'unicase/tolower'.
48229         * modules/unicase/tolower: New file.
48230         * lib/unicase/tolower.c: New file.
48231
48232         New module 'unicase/toupper'.
48233         * modules/unicase/toupper: New file.
48234         * lib/unicase/toupper.c: New file.
48235         * lib/unicase/simple-mapping.h: New file.
48236
48237         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48238         (mapping_table): New structure.
48239         (output_simple_mapping): New function.
48240         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48241         * modules/gen-uni-tables (Description): Update.
48242         * lib/unicase/toupper.h: New file, automatically generated by
48243         gen-uni-tables.
48244         * lib/unicase/tolower.h: New file, automatically generated by
48245         gen-uni-tables.
48246         * lib/unicase/totitle.h: New file, automatically generated by
48247         gen-uni-tables.
48248         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48249         gen-uni-tables.
48250         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48251         gen-uni-tables.
48252         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48253         gen-uni-tables.
48254
48255         New module 'unicase/base'.
48256         * modules/unicase/base: New file.
48257         * lib/unicase.h: New file.
48258
48259 2009-02-08  Bruno Haible  <bruno@clisp.org>
48260
48261         New module 'uniwbrk/ulc-wordbreaks'.
48262         * modules/uniwbrk/ulc-wordbreaks: New file.
48263         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48264
48265         New module 'uniwbrk/u32-wordbreaks'.
48266         * modules/uniwbrk/u32-wordbreaks: New file.
48267         * lib/uniwbrk/u32-wordbreaks.c: New file.
48268
48269         New module 'uniwbrk/u16-wordbreaks'.
48270         * modules/uniwbrk/u16-wordbreaks: New file.
48271         * lib/uniwbrk/u16-wordbreaks.c: New file.
48272
48273         New module 'uniwbrk/u8-wordbreaks'.
48274         * modules/uniwbrk/u8-wordbreaks: New file.
48275         * lib/uniwbrk/u8-wordbreaks.c: New file.
48276         * lib/uniwbrk/u-wordbreaks.h: New file.
48277
48278         New module 'uniwbrk/table'.
48279         * modules/uniwbrk/table: New file.
48280         * lib/uniwbrk/wbrktable.h: New file.
48281         * lib/uniwbrk/wbrktable.c: New file.
48282
48283         New module 'uniwbrk/wordbreak-property'.
48284         * modules/uniwbrk/wordbreak-property: New file.
48285         * lib/uniwbrk/wordbreak-property.c: New file.
48286
48287         * lib/gen-uni-tables.c (WBP_*): New enum items.
48288         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48289         (unicode_org_wbp): New variable.
48290         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48291         New functions.
48292         (wbp_table): New structure.
48293         (output_wbp, output_wbrk_tables): New functions.
48294         (main): Accept additional argument. Invoke fill_org_wbp,
48295         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48296         output_wbrk_tables.
48297         * modules/gen-uni-tables (Description): Update.
48298         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48299         gen-uni-tables.
48300
48301         New module 'uniwbrk/base'.
48302         * modules/uniwbrk/base: New file.
48303         * lib/uniwbrk.h: New file.
48304
48305 2009-02-08  Bruno Haible  <bruno@clisp.org>
48306
48307         Update to Unicode 5.1.0.
48308         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48309         U+2185..U+2188.
48310         (is_property_default_ignorable_code_point): Don't include characters
48311         of category Cc or Cs and not-a-characters.
48312         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48313         U+0D79, U+109E, U+109F, U+A60C.
48314         * lib/unictype/bidi_of.h: Regenerated.
48315         * lib/unictype/blocks.h: Regenerated.
48316         * lib/unictype/categ_C.h: Regenerated.
48317         * lib/unictype/categ_Cf.h: Regenerated.
48318         * lib/unictype/categ_Cn.h: Regenerated.
48319         * lib/unictype/categ_L.h: Regenerated.
48320         * lib/unictype/categ_Ll.h: Regenerated.
48321         * lib/unictype/categ_Lm.h: Regenerated.
48322         * lib/unictype/categ_Lo.h: Regenerated.
48323         * lib/unictype/categ_Lu.h: Regenerated.
48324         * lib/unictype/categ_M.h: Regenerated.
48325         * lib/unictype/categ_Mc.h: Regenerated.
48326         * lib/unictype/categ_Me.h: Regenerated.
48327         * lib/unictype/categ_Mn.h: Regenerated.
48328         * lib/unictype/categ_N.h: Regenerated.
48329         * lib/unictype/categ_Nd.h: Regenerated.
48330         * lib/unictype/categ_Nl.h: Regenerated.
48331         * lib/unictype/categ_No.h: Regenerated.
48332         * lib/unictype/categ_P.h: Regenerated.
48333         * lib/unictype/categ_Pd.h: Regenerated.
48334         * lib/unictype/categ_Pe.h: Regenerated.
48335         * lib/unictype/categ_Pf.h: Regenerated.
48336         * lib/unictype/categ_Pi.h: Regenerated.
48337         * lib/unictype/categ_Po.h: Regenerated.
48338         * lib/unictype/categ_Ps.h: Regenerated.
48339         * lib/unictype/categ_S.h: Regenerated.
48340         * lib/unictype/categ_Sk.h: Regenerated.
48341         * lib/unictype/categ_Sm.h: Regenerated.
48342         * lib/unictype/categ_So.h: Regenerated.
48343         * lib/unictype/categ_of.h: Regenerated.
48344         * lib/unictype/combining.h: Regenerated.
48345         * lib/unictype/ctype_alnum.h: Regenerated.
48346         * lib/unictype/ctype_alpha.h: Regenerated.
48347         * lib/unictype/ctype_graph.h: Regenerated.
48348         * lib/unictype/ctype_lower.h: Regenerated.
48349         * lib/unictype/ctype_print.h: Regenerated.
48350         * lib/unictype/ctype_punct.h: Regenerated.
48351         * lib/unictype/ctype_upper.h: Regenerated.
48352         * lib/unictype/decdigit.h: Regenerated.
48353         * lib/unictype/digit.h: Regenerated.
48354         * lib/unictype/mirror.h: Regenerated.
48355         * lib/unictype/numeric.h: Regenerated.
48356         * lib/unictype/pr_alphabetic.h: Regenerated.
48357         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48358         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48359         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48360         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48361         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48362         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48363         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48364         * lib/unictype/pr_combining.h: Regenerated.
48365         * lib/unictype/pr_dash.h: Regenerated.
48366         * lib/unictype/pr_decimal_digit.h: Regenerated.
48367         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48368         * lib/unictype/pr_deprecated.h: Regenerated.
48369         * lib/unictype/pr_diacritic.h: Regenerated.
48370         * lib/unictype/pr_extender.h: Regenerated.
48371         * lib/unictype/pr_format_control.h: Regenerated.
48372         * lib/unictype/pr_grapheme_base.h: Regenerated.
48373         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48374         * lib/unictype/pr_grapheme_link.h: Regenerated.
48375         * lib/unictype/pr_id_continue.h: Regenerated.
48376         * lib/unictype/pr_id_start.h: Regenerated.
48377         * lib/unictype/pr_ideographic.h: Regenerated.
48378         * lib/unictype/pr_ignorable_control.h: Regenerated.
48379         * lib/unictype/pr_lowercase.h: Regenerated.
48380         * lib/unictype/pr_math.h: Regenerated.
48381         * lib/unictype/pr_numeric.h: Regenerated.
48382         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48383         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48384         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48385         * lib/unictype/pr_other_id_continue.h: Regenerated.
48386         * lib/unictype/pr_other_lowercase.h: Regenerated.
48387         * lib/unictype/pr_other_math.h: Regenerated.
48388         * lib/unictype/pr_punctuation.h: Regenerated.
48389         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48390         * lib/unictype/pr_soft_dotted.h: Regenerated.
48391         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48392         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48393         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48394         * lib/unictype/pr_uppercase.h: Regenerated.
48395         * lib/unictype/pr_xid_continue.h: Regenerated.
48396         * lib/unictype/pr_xid_start.h: Regenerated.
48397         * lib/unictype/pr_zero_width.h: Regenerated.
48398         * lib/unictype/scripts.h: Regenerated.
48399         * lib/unictype/scripts_byname.gperf: Regenerated.
48400         * lib/unictype/sy_java_ident.h: Regenerated.
48401         * lib/unilbrk/lbrkprop1.h: Regenerated.
48402         * lib/unilbrk/lbrkprop2.h: Regenerated.
48403         * tests/unictype/test-categ_C.c: Regenerated.
48404         * tests/unictype/test-categ_Cf.c: Regenerated.
48405         * tests/unictype/test-categ_Cn.c: Regenerated.
48406         * tests/unictype/test-categ_L.c: Regenerated.
48407         * tests/unictype/test-categ_Ll.c: Regenerated.
48408         * tests/unictype/test-categ_Lm.c: Regenerated.
48409         * tests/unictype/test-categ_Lo.c: Regenerated.
48410         * tests/unictype/test-categ_Lu.c: Regenerated.
48411         * tests/unictype/test-categ_M.c: Regenerated.
48412         * tests/unictype/test-categ_Mc.c: Regenerated.
48413         * tests/unictype/test-categ_Me.c: Regenerated.
48414         * tests/unictype/test-categ_Mn.c: Regenerated.
48415         * tests/unictype/test-categ_N.c: Regenerated.
48416         * tests/unictype/test-categ_Nd.c: Regenerated.
48417         * tests/unictype/test-categ_Nl.c: Regenerated.
48418         * tests/unictype/test-categ_No.c: Regenerated.
48419         * tests/unictype/test-categ_P.c: Regenerated.
48420         * tests/unictype/test-categ_Pd.c: Regenerated.
48421         * tests/unictype/test-categ_Pe.c: Regenerated.
48422         * tests/unictype/test-categ_Pf.c: Regenerated.
48423         * tests/unictype/test-categ_Pi.c: Regenerated.
48424         * tests/unictype/test-categ_Po.c: Regenerated.
48425         * tests/unictype/test-categ_Ps.c: Regenerated.
48426         * tests/unictype/test-categ_S.c: Regenerated.
48427         * tests/unictype/test-categ_Sk.c: Regenerated.
48428         * tests/unictype/test-categ_Sm.c: Regenerated.
48429         * tests/unictype/test-categ_So.c: Regenerated.
48430         * tests/unictype/test-ctype_alnum.c: Regenerated.
48431         * tests/unictype/test-ctype_alpha.c: Regenerated.
48432         * tests/unictype/test-ctype_graph.c: Regenerated.
48433         * tests/unictype/test-ctype_lower.c: Regenerated.
48434         * tests/unictype/test-ctype_print.c: Regenerated.
48435         * tests/unictype/test-ctype_punct.c: Regenerated.
48436         * tests/unictype/test-ctype_upper.c: Regenerated.
48437         * tests/unictype/test-decdigit.h: Regenerated.
48438         * tests/unictype/test-digit.h: Regenerated.
48439         * tests/unictype/test-numeric.h: Regenerated.
48440         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48441         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48442         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48443         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48444         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48445         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48446         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48447         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48448         * tests/unictype/test-pr_combining.c: Regenerated.
48449         * tests/unictype/test-pr_dash.c: Regenerated.
48450         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48451         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48452         * tests/unictype/test-pr_deprecated.c: Regenerated.
48453         * tests/unictype/test-pr_diacritic.c: Regenerated.
48454         * tests/unictype/test-pr_extender.c: Regenerated.
48455         * tests/unictype/test-pr_format_control.c: Regenerated.
48456         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48457         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48458         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48459         * tests/unictype/test-pr_id_continue.c: Regenerated.
48460         * tests/unictype/test-pr_id_start.c: Regenerated.
48461         * tests/unictype/test-pr_ideographic.c: Regenerated.
48462         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48463         * tests/unictype/test-pr_lowercase.c: Regenerated.
48464         * tests/unictype/test-pr_math.c: Regenerated.
48465         * tests/unictype/test-pr_numeric.c: Regenerated.
48466         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48467         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48468         Regenerated.
48469         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48470         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48471         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48472         * tests/unictype/test-pr_other_math.c: Regenerated.
48473         * tests/unictype/test-pr_punctuation.c: Regenerated.
48474         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48475         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48476         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48477         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48478         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48479         * tests/unictype/test-pr_uppercase.c: Regenerated.
48480         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48481         * tests/unictype/test-pr_xid_start.c: Regenerated.
48482         * tests/unictype/test-pr_zero_width.c: Regenerated.
48483
48484         Update to Unicode 5.1.0.
48485         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48486         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48487         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48488         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48489         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48490         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48491         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48492         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48493         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48494         (nonspacing_table_ind): Update.
48495         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48496
48497         Update to Unicode 5.1.0.
48498         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48499         code transform.
48500         * lib/uniname/uniname.c (unicode_character_name,
48501         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48502         * lib/uniname/uninames.h: Regenerated.
48503         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48504
48505 2009-02-07  Bruno Haible  <bruno@clisp.org>
48506
48507         Merge gen-ctype and gen-lbrk into a single program.
48508         * lib/gen-uni-tables.c: New file, incorporating
48509         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48510         Add directory prefixes to the names of the generated files.
48511         * lib/unictype/gen-ctype.c: Remove file.
48512         * lib/unilbrk/gen-lbrk.c: Remove file.
48513         * modules/gen-uni-tables: New file.
48514         * modules/unictype/gen-ctype: Remove file.
48515         * modules/unilbrk/gen-lbrk: Remove file.
48516
48517 2009-02-07  Bruno Haible  <bruno@clisp.org>
48518
48519         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48520
48521         New module 'unistr/u32-strcoll'.
48522         * modules/unistr/u32-strcoll: New file.
48523         * lib/unistr/u32-strcoll.c: New file.
48524
48525         New module 'unistr/u16-strcoll'.
48526         * modules/unistr/u16-strcoll: New file.
48527         * lib/unistr/u16-strcoll.c: New file.
48528
48529         New module 'unistr/u8-strcoll'.
48530         * modules/unistr/u8-strcoll: New file.
48531         * lib/unistr/u8-strcoll.c: New file.
48532         * lib/unistr/u-strcoll.h: New file.
48533
48534 2009-02-07  Bruno Haible  <bruno@clisp.org>
48535
48536         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48537         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48538         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48539         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48540         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48541         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48542
48543 2009-02-07  Bruno Haible  <bruno@clisp.org>
48544
48545         Make 64-bit clean.
48546         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48547         output_combclass, output_bidi_category, output_decimal_digit,
48548         output_digit, output_numeric, output_mirror, output_scripts,
48549         output_ident_category): Use proper width specifier in format strings.
48550
48551 2009-02-07  Bruno Haible  <bruno@clisp.org>
48552
48553         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48554         failure behaviour.
48555
48556 2009-02-07  Jim Meyering  <meyering@redhat.com>
48557
48558         regex: avoid compilation failure with upcoming gcc-4.4
48559         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48560         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48561         "... error: integer overflow in preprocessor expression".
48562
48563 2009-02-05  Ben Pfaff  <blp@gnu.org>
48564
48565         Fix link errors on Windows when close module is used.
48566         * modules/close: Add $(LIB_CLOSE) to Link section.
48567         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48568         $(LIB_CLOSE) on Windows.
48569
48570 2009-02-05  Jim Meyering  <meyering@redhat.com>
48571
48572         still avoid unused-parameter warnings, but do it cleanly
48573         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48574         (get_fs_usage): Cast to void instead.
48575         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48576         (dev_from_mount_options, read_file_system_list): Cast to void.
48577         Prompted by Bruno Haible.
48578
48579 2009-02-04  Jim Meyering  <meyering@redhat.com>
48580
48581         fsusage.c: correct copyright year
48582         * lib/fsusage.c: Reflect year in which the change is pushed into
48583
48584         avoid misc. warnings
48585         * lib/fsusage.c (UNUSED_PARAM): Define.
48586         (get_fs_usage): Mark parameter "disk" as unused.
48587         * lib/getugroups.c (getgrent): Use "void" in prototype.
48588         * lib/mountlist.c: Mark unused parameters.
48589         (read_file_system_list): Declare a local with "const".
48590         * lib/nanosleep.c (getnow): Declare static.
48591         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48592
48593         dirfd: set errno upon failure
48594         * lib/dirfd.c: Include <errno.h>.
48595         Set errno to ENOTSUP when returning -1.
48596         * modules/dirfd (Depends-on): Add errno.
48597         Suggested by John Kodis <kodis@comcast.net>.
48598
48599 2009-02-01  Bruno Haible  <bruno@clisp.org>
48600
48601         Don't assume sizeof (long) >= sizeof (void *).
48602         * lib/memcmp.c: Include stdint.h.
48603         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48604         srcp2 to 'const byte *'.
48605         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48606         types to uintptr_t.
48607         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48608         * modules/memcmp (Depends-on): Add stdint.
48609         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48610
48611 2009-01-30  Eric Blake  <ebb9@byu.net>
48612
48613         fix more require-before-expand issues
48614         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48615         expand, AC_PROG_AWK.
48616         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48617
48618 2009-01-28  Eric Blake  <ebb9@byu.net>
48619
48620         version-etc: use consistent URL formatting
48621         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48622         Improve formatting.  Use fputs for string without %.
48623
48624 2009-01-28  Jim Meyering  <meyering@redhat.com>
48625
48626         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48627         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48628         "underquoted definition of NAME" from autoconf-2.59.
48629
48630 2009-01-28  Bruno Haible  <bruno@clisp.org>
48631
48632         * doc/gnulib.texi: Add "Obsolete modules" to index.
48633
48634 2009-01-28  Jim Meyering  <meyering@redhat.com>
48635
48636         useless-if-before-free: recognize more variants
48637         * build-aux/useless-if-before-free: Also recognize e.g.,
48638         if (NULL != p) free (p);
48639
48640 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48641
48642         test-getaddrinfo: skip (don't fail) this test when there's no network
48643         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48644         on the presumption that it means you lack network access.
48645
48646 2009-01-26  Jim Meyering  <meyering@redhat.com>
48647
48648         fflush: avoid warnings on modern systems
48649         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48650         pos and result, into scopes where they're used.
48651
48652 2009-01-26  Eric Blake  <ebb9@byu.net>
48653
48654         Silence warning reintroduced by recent extensions patch.
48655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48656         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48657         autoconf.
48658
48659         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48660         * m4/00gnulib.m4: New file.
48661         * gnulib-tool (func_get_filelist): Always use it.
48662         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48663         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48664
48665 2009-01-25  Bruno Haible  <bruno@clisp.org>
48666
48667         Make test-quotearg work on MacOS X and AIX.
48668         * tests/test-quotearg.sh: New file.
48669         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48670         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48671         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48672         include <libintl.h>.
48673         (fake_locale): Remove variable.
48674         (gettext, dgettext, dcgettext): Remove functions.
48675         (main): Instead of setting a fake locale, set a real locale. Call
48676         textdomain and bindtextdomain.
48677         * modules/quotearg-tests (Files): Add the new files.
48678         (Depends-on): Add gettext, setenv, unsetenv.
48679         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48680         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48681         Augment TESTS_ENVIRONMENT.
48682
48683 2009-01-25  Bruno Haible  <bruno@clisp.org>
48684
48685         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48686         fr_FR.ISO8859-1 locale on MacOS X.
48687         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48688         ja_JP.eucJP locale on MacOS X.
48689         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48690         zh_CN.GB18030 locale on MacOS X.
48691
48692 2009-01-25  Bruno Haible  <bruno@clisp.org>
48693
48694         Avoid link errors on MacOS X 10.3.
48695         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48696         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48697
48698 2009-01-25  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48701         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48702         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48703         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48704         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48705         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48706         posix_spawnattr_init, posix_spawnattr_setsigmask,
48707         posix_spawnattr_setflags, posix_spawnattr_destroy.
48708
48709         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48710         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48711         * modules/execute (Files): Remove m4/posix_spawn.m4.
48712         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48713         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48714         posix_spawnattr_init, posix_spawnattr_setsigmask,
48715         posix_spawnattr_setflags, posix_spawnattr_destroy.
48716
48717 2009-01-25  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/glthread/threadlib.c: Include <stdlib.h>.
48720
48721 2009-01-25  Bruno Haible  <bruno@clisp.org>
48722
48723         * lib/glthread/threadlib.c (dummy): New declaration.
48724
48725 2009-01-25  Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48728         multibyte characters also for the GB18030 encoding. Don't crash when
48729         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48730
48731 2009-01-25  Bruno Haible  <bruno@clisp.org>
48732
48733         Avoid redefining 'struct random_data' on OSF/1 5.1.
48734         * lib/stdlib.in.h: Include <random.h> if it exists.
48735         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48736         HAVE_RANDOM_H. Include <random.h> when testing whether
48737         'struct random_data' exists.
48738         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48739
48740 2009-01-25  Bruno Haible  <bruno@clisp.org>
48741
48742         Don't install charset.alias on MacOS X >= 10.3.
48743         * lib/localcharset.c (DARWIN7): New macro.
48744         (get_charset_aliases): Hardcode the result for Darwin7.
48745         * modules/localcharset (install-exec-local): Don't install
48746         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48747
48748 2009-01-25  Bruno Haible  <bruno@clisp.org>
48749
48750         Don't install charset.alias on mingw and Cygwin.
48751         * modules/localcharset (install-exec-local): Don't install
48752         charset.alias on mingw and Cygwin, if the file does not yet exist.
48753         The result for these platforms is hardcoded in localcharset.c.
48754
48755 2009-01-25  Bruno Haible  <bruno@clisp.org>
48756
48757         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48759         before requiring AC_USE_SYSTEM_EXTENSIONS.
48760
48761 2009-01-25  Jim Meyering  <meyering@redhat.com>
48762
48763         c-strtod: avoid warnings
48764         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48765         "assignment discards qualifiers from pointer target type" warnings.
48766
48767 2009-01-24  Bruno Haible  <bruno@clisp.org>
48768
48769         Add support for non-UTF-8 locales on MacOS X.
48770         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48771         canonical encodings. For Darwin 7 and newer, don't map traditional
48772         encodings to UTF-8.
48773         Reported by Vincent Lefevre <vincent@vinc17.org>
48774         at <http://savannah.gnu.org/bugs/?25235>.
48775
48776 2009-01-24  Bruno Haible  <bruno@clisp.org>
48777
48778         * doc/gnulib.texi (Obsolete modules): New section.
48779         Reported by Mike Frysinger <vapier@gentoo.org>.
48780
48781 2009-01-24  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48784         (%.dvi): New rule.
48785
48786 2009-01-24  Bruno Haible  <bruno@clisp.org>
48787
48788         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48789         Reported by Eric Blake.
48790
48791 2009-01-24  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48794         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48795         Reported by Gary V. Vaughan <gary@gnu.org>.
48796
48797 2009-01-24  Bruno Haible  <bruno@clisp.org>
48798
48799         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48800
48801 2009-01-23  Bruno Haible  <bruno@clisp.org>
48802
48803         Make c-strtod, c-strtold usable in libraries.
48804         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48805         (C_STRTOD): Call strdup instead of xstrdup.
48806         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48807         * modules/c-strtold (Depends-on): Likewise.
48808         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48809         * NEWS: Mention the change.
48810         Reported by Michael Gold <mgold@ncf.ca>.
48811
48812 2009-01-23  Jim Meyering  <meyering@redhat.com>
48813
48814         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48815         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48816         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48817
48818 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48819
48820         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48821         GNU CoreUtils.
48822         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48823         * modules/version-etc (Description): Update.
48824
48825 2009-01-22  Bruno Haible  <bruno@clisp.org>
48826
48827         Cache the C locale object.
48828         * lib/c-strtod.c (c_locale_cache): New variable.
48829         (c_locale): New function.
48830         (C_STRTOD): Use it, and don't call freelocale.
48831         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48832         Suggested by Paolo Bonzini.
48833
48834 2009-01-21  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48837         conditions other than overflow.
48838
48839 2009-01-21  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/c-strtod.c: Include errno.h.
48842         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48843         value from STRTOD_L and STRTOD.
48844
48845 2009-01-21  Bruno Haible  <bruno@clisp.org>
48846         and Jim Meyering  <meyering@redhat.com>
48847
48848         nanosleep: skip configure test (fail it) for apple universal builds
48849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48850         universal builds, assume that nanosleep does not work.
48851         * modules/nanosleep (Depends-on): Add multiarch.
48852
48853         mktime: skip configure test (fail it) for apple universal builds
48854         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48855         universal builds, assume that mktime does not work.
48856         * modules/mktime (Depends-on): Add multiarch.
48857
48858 2009-01-21  Eric Blake  <ebb9@byu.net>
48859
48860         multiarch: avoid expand-before-require warning
48861         * modules/multiarch (configure.ac): Require, rather than expand,
48862         gl_MULTIARCH.
48863         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48864         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48865         enforce that all clients require it.  Partial reversion of
48866         2008-12-29 patch.
48867
48868         error: avoid expand-before-require warning
48869         * modules/errno (configure.ac): Require, rather than expand,
48870         gl_HEADER_ERRNO_H.
48871         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48872         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48873         enforce that all clients require it.
48874
48875         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48876         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48877         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48878         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48879
48880 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48881
48882         Revert:
48883         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48884
48885         regex: do not depend on obsolete modules.
48886         * modules/regex: Remove memcmp and memmove.
48887
48888 2009-01-20  Bruno Haible  <bruno@clisp.org>
48889
48890         Make the 'link' module link on Windows NT 4.
48891         * lib/link.c (_WIN32_WINNT): Don't define.
48892         (CreateHardLinkFuncType): New type.
48893         (CreateHardLinkFunc, initialized): New variables.
48894         (initialize): New function.
48895         (link): Invoke CreateHardLink indirectly through the function pointer.
48896
48897 2009-01-20  Bruno Haible  <bruno@clisp.org>
48898
48899         Fix compilation failure on mingw.
48900         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48901
48902 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48903
48904         * doc/c-strtod.texi: Mention a couple of restrictions.
48905
48906 2009-01-20  Jim Meyering  <meyering@redhat.com>
48907
48908         gettimeofday: move more declarations out of functions
48909         * lib/gettimeofday.c: Move extern declarations of tzset and
48910         gmtime out of containing functions.  Prompted by Bruno Haible.
48911
48912 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48913
48914         regex: do not depend on obsolete modules.
48915         * modules/regex: Remove memcmp and memmove.
48916
48917 2009-01-19  Bruno Haible  <bruno@clisp.org>
48918
48919         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48920         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48921         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48922         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48923         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48924
48925 2009-01-19  Bruno Haible  <bruno@clisp.org>
48926
48927         * tests/test-link.c: Include <errno.h>.
48928         (main): Exit with code 77 when a hard link cannot be created due to
48929         the file system.
48930         * tests/test-link.sh: Skip test when a hard link cannot be created due
48931         to the file system.
48932         Suggested by Eric Blake.
48933
48934 2009-01-19  Martin Lambers  <marlam@marlam.de>
48935
48936         * modules/link-tests: New file.
48937         * tests/test-link.sh: New file.
48938         * tests/test-link.c: New file.
48939
48940 2009-01-19  Eric Blake  <ebb9@byu.net>
48941
48942         doc: mention another function added in cygwin 1.7.0
48943         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48944         Another new function in cygwin 1.7.
48945
48946 2009-01-19  Bruno Haible  <bruno@clisp.org>
48947
48948         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48949         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48950         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48951         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48952         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48953         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48954         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48955         * m4/md4.m4 (gl_MD4): Likewise.
48956         * m4/md5.m4 (gl_MD5): Likewise.
48957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48958         * m4/sha1.m4 (gl_SHA1): Likewise.
48959         * m4/sha256.m4 (gl_SHA256): Likewise.
48960         * m4/sha512.m4 (gl_SHA512): Likewise.
48961
48962 2009-01-19  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/uniname/uniname-tests (Depends-on): Add progname.
48965         * tests/uniname/test-uninames.c: Include progname.h.
48966         (main): Call set_program_name.
48967
48968         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48969         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48970         (main): Call set_program_name.
48971
48972         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48973         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48974         (main): Call set_program_name.
48975
48976         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48977         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48978         (main): Call set_program_name.
48979
48980         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48981         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48982         (main): Call set_program_name.
48983
48984         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48985         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48986         (main): Call set_program_name.
48987
48988         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48989         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48990         (main): Call set_program_name.
48991
48992         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48993         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48994         (main): Call set_program_name.
48995
48996         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48997         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48998         (main): Call set_program_name.
48999
49000 2009-01-19  Eric Blake  <ebb9@byu.net>
49001
49002         test-unistd: test previous patch
49003         * tests/test-unistd.c: Test *_FILENO macros.
49004
49005         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49006         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49007         Guarantee a definition.
49008         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49009         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49010         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49011         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49012         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49013         Likewise.
49014         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49015         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49016         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49017         Likewise.
49018         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49019         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49020         (STDERR_FILENO): Likewise.
49021         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49022         (STDERR_FILENO): Likewise.
49023         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49024         (STDERR_FILENO): Likewise.
49025         Reported by Elbert Pol.
49026
49027 2009-01-19  Eric Blake  <ebb9@byu.net>
49028
49029         doc: mention more functions added in cygwin 1.7.0
49030         * doc/posix-functions/abort.texi (abort): Update wording related
49031         to cygwin.
49032         * doc/posix-functions/daylight.texi (daylight): Likewise.
49033         * doc/posix-functions/optarg.texi (optarg): Likewise.
49034         * doc/posix-functions/optarg.texi (opterr): Likewise.
49035         * doc/posix-functions/optarg.texi (optind): Likewise.
49036         * doc/posix-functions/optarg.texi (optopt): Likewise.
49037         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49038         worked in 1.5.x, and was withdrawn in 1.7.
49039         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49040         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49041         cygwin versions.
49042         * doc/posix-functions/perror.texi (perror): Likewise.
49043         * doc/posix-functions/printf.texi (printf): Likewise.
49044         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49045         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49046         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49047         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49048         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49049         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49050         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49051         Likewise.
49052         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49053         Likewise.
49054         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49055         this function.
49056         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49057         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49058         Likewise.
49059         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49060         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49061         * doc/posix-functions/confstr.texi (confstr): Likewise.
49062         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49063         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49064         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49065         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49066         * doc/posix-functions/fputws.texi (fputws): Likewise.
49067         * doc/posix-functions/fwide.texi (fwide): Likewise.
49068         * doc/posix-functions/getwc.texi (getwc): Likewise.
49069         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49070         * doc/posix-functions/putwc.texi (putwc): Likewise.
49071         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49072         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49073         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49074         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49075         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49076         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49077         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49078         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49079         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49080         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49081         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49082
49083 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49084
49085         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49086         * lib/ioctl.c: Include <sys/ioctl.h>.
49087
49088 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49089
49090         * modules/getdate-tests (Depends-on): Add progname.
49091         * tests/test-getdate.c: Use progname module, to avoid link errors
49092         on non-glibc systems.
49093
49094 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49095
49096         * modules/filenamecat-tests (Depends-on): Add progname.
49097         * modules/fstrcmp-tests (Depends-on): Likewise.
49098
49099         * tests/test-filenamecat.c: Use progname module, to avoid link
49100         errors on non-glibc systems.
49101         * tests/test-fstrcmp.c: Likewise.
49102
49103 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49104
49105         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49106         * lib/gettimeofday.c: Move extern declaration out of function.
49107
49108 2009-01-18  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49111         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49112         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49113
49114 2009-01-18  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/strftime.c (MEMPCPY): Remove unused macro.
49117         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49118
49119 2009-01-18  Martin Lambers  <marlam@marlam.de>
49120
49121         New module 'link'.
49122         * lib/unistd.in.h (link): New declaration.
49123         * lib/link.c: New file.
49124         * m4/link.m4: New file.
49125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49126         HAVE_LINK.
49127         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49128         * modules/link: New file.
49129         * doc/posix-functions/link.texi: Mention the new module.
49130
49131 2009-01-18  Bruno Haible  <bruno@clisp.org>
49132
49133         * tests/test-avltree_list.c (main): Call set_program_name.
49134         * tests/test-avltree_oset.c (main): Likewise.
49135         * tests/test-obstack-printf.c: Include progname.h.
49136         (main): Call set_program_name.
49137         * tests/test-quotearg.c: Include progname.h.
49138         (main): Call set_program_name.
49139         * tests/test-xmemdup0.c: Include progname.h.
49140         (main): Call set_program_name.
49141
49142 2009-01-18  Bruno Haible  <bruno@clisp.org>
49143
49144         New module 'alphasort'.
49145         * lib/dirent.in.h (alphasort): New declaration.
49146         * lib/alphasort.c: New file, from glibc with modifications.
49147         * m4/alphasort.m4: New file.
49148         * modules/alphasort: New file.
49149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49150         HAVE_ALPHASORT.
49151         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49152         HAVE_ALPHASORT.
49153         * doc/posix-functions/alphasort.texi: Mention the new module and the
49154         portability problems.
49155
49156 2009-01-18  Bruno Haible  <bruno@clisp.org>
49157
49158         New module 'scandir'.
49159         * lib/dirent.in.h (scandir): New declaration.
49160         * lib/scandir.c: New file, from glibc with modifications.
49161         * m4/scandir.m4: New file.
49162         * modules/scandir: New file.
49163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49164         HAVE_SCANDIR.
49165         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49166         HAVE_SCANDIR.
49167         * doc/posix-functions/scandir.texi: Mention the new module and the
49168         portability problems.
49169
49170 2009-01-17  Bruno Haible  <bruno@clisp.org>
49171
49172         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49173         Update documentation.
49174         (func_remove_suffix): Escape all dots in the suffix. Update
49175         documentation.
49176         (func_filter_filelist): Update documentation.
49177         Reported by Ralf Wildenhues.
49178
49179 2009-01-17  Bruno Haible  <bruno@clisp.org>
49180
49181         * modules/dprintf-posix-tests: New file.
49182         * tests/test-dprintf-posix.sh: New file.
49183         * tests/test-dprintf-posix.c: New file.
49184
49185         New modules 'dprintf', 'dprintf-posix'.
49186         * lib/stdio.in.h (dprintf): New declaration.
49187         * lib/dprintf.c: New file.
49188         * m4/dprintf.m4: New file.
49189         * m4/dprintf-posix.m4: New file.
49190         * modules/dprintf: New file.
49191         * modules/dprintf-posix: New file.
49192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49193         HAVE_DPRINTF, REPLACE_DPRINTF.
49194         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49195         HAVE_DPRINTF, REPLACE_DPRINTF.
49196         * doc/posix-functions/dprintf.texi: Mention the new modules.
49197
49198 2009-01-17  Bruno Haible  <bruno@clisp.org>
49199
49200         * modules/vdprintf-posix-tests: New file.
49201         * tests/test-vdprintf-posix.sh: New file.
49202         * tests/test-vdprintf-posix.c: New file.
49203
49204         New modules 'vdprintf', 'vdprintf-posix'.
49205         * lib/stdio.in.h (vdprintf): New declaration.
49206         * lib/vdprintf.c: New file.
49207         * m4/vdprintf.m4: New file.
49208         * m4/vdprintf-posix.m4: New file.
49209         * modules/vdprintf: New file.
49210         * modules/vdprintf-posix: New file.
49211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49212         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49213         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49214         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49215         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49216
49217 2009-01-17  Bruno Haible  <bruno@clisp.org>
49218
49219         Fix replacement of fopen on mingw.
49220         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49221         mingw.
49222
49223 2009-01-17  Bruno Haible  <bruno@clisp.org>
49224
49225         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49226         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49227
49228 2009-01-17  Bruno Haible  <bruno@clisp.org>
49229
49230         Avoid test-fflush2.sh failure on mingw.
49231         * tests/test-fflush2.c: Include binary-io.h.
49232         (main): Put standard input into binary mode.
49233         * modules/fflush-tests (Depends-on): Add binary-io.
49234
49235 2009-01-17  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/wchar.in.h: In another particular situation, include only the
49238         system's <wchar.h> file.
49239         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49240         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49241         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49242
49243 2009-01-17  Bruno Haible  <bruno@clisp.org>
49244
49245         Support for stripping executables in --enable-relocatable.
49246         * build-aux/install-reloc: Expect one more argument, or an environment
49247         variable RELOC_STRIP_PROG. If set, strip the destination program and
49248         its wrapper.
49249         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49250         RELOC_STRIP_PROG.
49251         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49252         to set RELOCATABLE_STRIP.
49253         * NEWS: Mention the new Makefile requirement.
49254
49255 2009-01-17  Bruno Haible  <bruno@clisp.org>
49256
49257         * build-aux/install-reloc: Remove debugging information left over by
49258         C compiler on MacOS X.
49259
49260 2009-01-17  Bruno Haible  <bruno@clisp.org>
49261
49262         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49263         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49264         _NSGetExecutablePath.
49265
49266 2009-01-16  Jim Meyering  <meyering@redhat.com>
49267
49268         strerror: avoid warnings about discarding "const"
49269         * lib/strerror.c (rpl_strerror): Instead of returning a const
49270         string from each and every "case", use a variable, and add a single
49271         cast after the switch.
49272
49273 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49274
49275         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49276
49277 2009-01-16  Bruno Haible  <bruno@clisp.org>
49278
49279         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49280         array initializer syntax that also works in C++ mode.
49281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49282
49283 2009-01-16  Jim Meyering  <meyering@redhat.com>
49284
49285         poll: suppress a warning
49286         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49287         to ignore "...unsigned expression < 0 is always false" warnings.
49288
49289 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49290
49291         poll: remove declarations of unused variables
49292         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49293         sockbuf and optlen.
49294
49295 2009-01-15  Bruno Haible  <bruno@clisp.org>
49296
49297         Make fflush-after-ungetc POSIX compliant on BSD systems.
49298         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49299         (clear_ungetc_buffer): Implement also for other systems.
49300         (rpl_fflush): On glibc systems, invoke
49301         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49302         clear_ungetc_buffer after fetching the stream's position, not before.
49303
49304 2009-01-15  Bruno Haible  <bruno@clisp.org>
49305
49306         Make fflush-after-ungetc POSIX compliant on glibc systems.
49307         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49308         after ungetc.
49309         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49310         (rpl_fflush): On glibc systems, simply call the system's fflush
49311         function after clearing the ungetc buffer.
49312         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49313         Instead, lseek only to the end of file, then use the system's fseeko
49314         for the rest. On glibc systems, reset the EOF indicator bit.
49315
49316 2009-01-15  Jim Meyering  <meyering@redhat.com>
49317
49318         openmp.m4: revert quote-adding change, for portability to older autoconf
49319         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49320         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49321         Simon Josefsson noticed the problem when using autoconf-2.61.
49322
49323 2009-01-15  Bruno Haible  <bruno@clisp.org>
49324
49325         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49326         * tests/test-fflush2.c (ASSERT): Always fail.
49327         (main): Add two tests for fflush() after ungetc(), taking into account
49328         the Austin Group's clarification.
49329         Suggested by Eric Blake.
49330
49331 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49332
49333         mktime.m4: remove K&R-style function prototypes
49334         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49335         for the Sun C++ compiler.
49336
49337 2009-01-14  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49340         while including <wchar.h>.
49341         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49342         the system's <wchar.h> file.
49343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49344
49345 2009-01-14  Bruno Haible  <bruno@clisp.org>
49346
49347         * m4/csharp.m4: Don't mention gettext on the serial number line.
49348         * m4/csharpexec.m4: Likewise.
49349         * m4/eaccess.m4: Likewise.
49350         * m4/javaexec.m4: Likewise.
49351         * m4/sig_atomic_t.m4: Likewise.
49352         * m4/tmpdir.m4: Likewise.
49353         * m4/intldir.m4: Bump gettext version.
49354         * m4/lib-ld.m4: Likewise.
49355
49356 2009-01-14  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/progname.c (set_program_name): Add more comments.
49359         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49360
49361 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49362
49363         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49364         were sys/stat.h does not define it.
49365
49366 2009-01-14  Jim Meyering  <meyering@redhat.com>
49367
49368         many *.m4 files: improve m4 quoting
49369         99% of this change was performed by running the following commands:
49370         git ls-files | grep '\.m4$' | xargs perl -pi \
49371           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49372           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49373           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49374           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49375         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49376         The remainder were to add Copyright dates, increment serial numbers,
49377         undo some changes in comments, exclude m4/intl.m4, and add quotes
49378         around the "1" in ",1" where the unusual spacing prohibited the
49379         above regexps from doing the job.  For more details, see
49380         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49381         * m4/acl.m4: Modified.
49382         * m4/afs.m4: Likewise.
49383         * m4/alloca.m4: Likewise.
49384         * m4/argp.m4: Likewise.
49385         * m4/argz.m4: Likewise.
49386         * m4/atexit.m4: Likewise.
49387         * m4/bison-i18n.m4: Likewise.
49388         * m4/bison.m4: Likewise.
49389         * m4/byteswap.m4: Likewise.
49390         * m4/c-stack.m4: Likewise.
49391         * m4/c-strtod.m4: Likewise.
49392         * m4/calloc.m4: Likewise.
49393         * m4/canonicalize-lgpl.m4: Likewise.
49394         * m4/chown.m4: Likewise.
49395         * m4/clock_time.m4: Likewise.
49396         * m4/codeset.m4: Likewise.
49397         * m4/copy-file.m4: Likewise.
49398         * m4/csharp.m4: Likewise.
49399         * m4/csharpcomp.m4: Likewise.
49400         * m4/csharpexec.m4: Likewise.
49401         * m4/d-ino.m4: Likewise.
49402         * m4/d-type.m4: Likewise.
49403         * m4/dirfd.m4: Likewise.
49404         * m4/double-slash-root.m4: Likewise.
49405         * m4/eaccess.m4: Likewise.
49406         * m4/eealloc.m4: Likewise.
49407         * m4/environ.m4: Likewise.
49408         * m4/errno_h.m4: Likewise.
49409         * m4/euidaccess.m4: Likewise.
49410         * m4/execute.m4: Likewise.
49411         * m4/fatal-signal.m4: Likewise.
49412         * m4/fchdir.m4: Likewise.
49413         * m4/fcntl_h.m4: Likewise.
49414         * m4/fileblocks.m4: Likewise.
49415         * m4/filenamecat.m4: Likewise.
49416         * m4/findprog.m4: Likewise.
49417         * m4/flexmember.m4: Likewise.
49418         * m4/fnmatch.m4: Likewise.
49419         * m4/fopen.m4: Likewise.
49420         * m4/fpending.m4: Likewise.
49421         * m4/fprintf-posix.m4: Likewise.
49422         * m4/free.m4: Likewise.
49423         * m4/frexp.m4: Likewise.
49424         * m4/frexpl.m4: Likewise.
49425         * m4/fsusage.m4: Likewise.
49426         * m4/ftruncate.m4: Likewise.
49427         * m4/gc-camellia.m4: Likewise.
49428         * m4/gc-random.m4: Likewise.
49429         * m4/gc.m4: Likewise.
49430         * m4/getaddrinfo.m4: Likewise.
49431         * m4/getcwd-abort-bug.m4: Likewise.
49432         * m4/getcwd-path-max.m4: Likewise.
49433         * m4/getdate.m4: Likewise.
49434         * m4/getdomainname.m4: Likewise.
49435         * m4/getgroups.m4: Likewise.
49436         * m4/gethostname.m4: Likewise.
49437         * m4/gethrxtime.m4: Likewise.
49438         * m4/getline.m4: Likewise.
49439         * m4/getloadavg.m4: Likewise.
49440         * m4/getndelim2.m4: Likewise.
49441         * m4/getpass.m4: Likewise.
49442         * m4/gettext.m4: Likewise.
49443         * m4/gettime.m4: Likewise.
49444         * m4/gettimeofday.m4: Likewise.
49445         * m4/gnulib-common.m4: Likewise.
49446         * m4/group-member.m4: Likewise.
49447         * m4/host-os.m4: Likewise.
49448         * m4/iconv.m4: Likewise.
49449         * m4/iconv_open.m4: Likewise.
49450         * m4/inet_ntop.m4: Likewise.
49451         * m4/inet_pton.m4: Likewise.
49452         * m4/inline.m4: Likewise.
49453         * m4/intldir.m4: Likewise.
49454         * m4/intlmacosx.m4: Likewise.
49455         * m4/intmax.m4: Likewise.
49456         * m4/intmax_t.m4: Likewise.
49457         * m4/inttypes.m4: Likewise.
49458         * m4/inttypes_h.m4: Likewise.
49459         * m4/inttypes-pri.m4: Likewise.
49460         * m4/isapipe.m4: Likewise.
49461         * m4/isnand.m4: Likewise.
49462         * m4/isnanf.m4: Likewise.
49463         * m4/isnanl.m4: Likewise.
49464         * m4/javacomp.m4: Likewise.
49465         * m4/javaexec.m4: Likewise.
49466         * m4/jm-winsz1.m4: Likewise.
49467         * m4/jm-winsz2.m4: Likewise.
49468         * m4/lchown.m4: Likewise.
49469         * m4/lcmessage.m4: Likewise.
49470         * m4/ldexpl.m4: Likewise.
49471         * m4/lib-ld.m4: Likewise.
49472         * m4/lib-link.m4: Likewise.
49473         * m4/libsigsegv.m4: Likewise.
49474         * m4/link-follow.m4: Likewise.
49475         * m4/localcharset.m4: Likewise.
49476         * m4/locale-fr.m4: Likewise.
49477         * m4/locale-ja.m4: Likewise.
49478         * m4/locale-tr.m4: Likewise.
49479         * m4/locale-zh.m4: Likewise.
49480         * m4/lock.m4: Likewise.
49481         * m4/longlong.m4: Likewise.
49482         * m4/ls-mntd-fs.m4: Likewise.
49483         * m4/lstat.m4: Likewise.
49484         * m4/malloc.m4: Likewise.
49485         * m4/mathl.m4: Likewise.
49486         * m4/mbrtowc.m4: Likewise.
49487         * m4/mbstate_t.m4: Likewise.
49488         * m4/mbswidth.m4: Likewise.
49489         * m4/memchr.m4: Likewise.
49490         * m4/memcmp.m4: Likewise.
49491         * m4/memcpy.m4: Likewise.
49492         * m4/memmem.m4: Likewise.
49493         * m4/memmove.m4: Likewise.
49494         * m4/mempcpy.m4: Likewise.
49495         * m4/memrchr.m4: Likewise.
49496         * m4/memset.m4: Likewise.
49497         * m4/minmax.m4: Likewise.
49498         * m4/mkdir-slash.m4: Likewise.
49499         * m4/mkdtemp.m4: Likewise.
49500         * m4/mktime.m4: Likewise.
49501         * m4/mmap-anon.m4: Likewise.
49502         * m4/mountlist.m4: Likewise.
49503         * m4/nanosleep.m4: Likewise.
49504         * m4/nls.m4: Likewise.
49505         * m4/nocrash.m4: Likewise.
49506         * m4/open.m4: Likewise.
49507         * m4/openat.m4: Likewise.
49508         * m4/openmp.m4: Likewise.
49509         * m4/pathmax.m4: Likewise.
49510         * m4/perl.m4: Likewise.
49511         * m4/physmem.m4: Likewise.
49512         * m4/pipe.m4: Likewise.
49513         * m4/po.m4: Likewise.
49514         * m4/poll.m4: Likewise.
49515         * m4/posixtm.m4: Likewise.
49516         * m4/posixver.m4: Likewise.
49517         * m4/printf-frexp.m4: Likewise.
49518         * m4/printf-frexpl.m4: Likewise.
49519         * m4/printf-posix.m4: Likewise.
49520         * m4/printf-posix-rpl.m4: Likewise.
49521         * m4/printf.m4: Likewise.
49522         * m4/progtest.m4: Likewise.
49523         * m4/putenv.m4: Likewise.
49524         * m4/readline.m4: Likewise.
49525         * m4/readlink.m4: Likewise.
49526         * m4/readutmp.m4: Likewise.
49527         * m4/realloc.m4: Likewise.
49528         * m4/regex.m4: Likewise.
49529         * m4/relocatable.m4: Likewise.
49530         * m4/relocatable-lib.m4: Likewise.
49531         * m4/rename-dest-slash.m4: Likewise.
49532         * m4/rename.m4: Likewise.
49533         * m4/rmdir-errno.m4: Likewise.
49534         * m4/rmdir.m4: Likewise.
49535         * m4/roundf.m4: Likewise.
49536         * m4/roundl.m4: Likewise.
49537         * m4/rpmatch.m4: Likewise.
49538         * m4/save-cwd.m4: Likewise.
49539         * m4/selinux-selinux-h.m4: Likewise.
49540         * m4/setenv.m4: Likewise.
49541         * m4/settime.m4: Likewise.
49542         * m4/sig2str.m4: Likewise.
49543         * m4/sig_atomic_t.m4: Likewise.
49544         * m4/signalblocking.m4: Likewise.
49545         * m4/signbit.m4: Likewise.
49546         * m4/sigpipe.m4: Likewise.
49547         * m4/sockets.m4: Likewise.
49548         * m4/sockpfaf.m4: Likewise.
49549         * m4/st_dm_mode.m4: Likewise.
49550         * m4/stat-time.m4: Likewise.
49551         * m4/stdbool.m4: Likewise.
49552         * m4/stdint.m4: Likewise.
49553         * m4/stdint_h.m4: Likewise.
49554         * m4/stpcpy.m4: Likewise.
49555         * m4/stpncpy.m4: Likewise.
49556         * m4/strcase.m4: Likewise.
49557         * m4/strchrnul.m4: Likewise.
49558         * m4/strcspn.m4: Likewise.
49559         * m4/strdup.m4: Likewise.
49560         * m4/strftime.m4: Likewise.
49561         * m4/strndup.m4: Likewise.
49562         * m4/strnlen.m4: Likewise.
49563         * m4/strpbrk.m4: Likewise.
49564         * m4/strptime.m4: Likewise.
49565         * m4/strsep.m4: Likewise.
49566         * m4/strtod.m4: Likewise.
49567         * m4/strtoimax.m4: Likewise.
49568         * m4/strtok_r.m4: Likewise.
49569         * m4/strtol.m4: Likewise.
49570         * m4/strtoll.m4: Likewise.
49571         * m4/strtoul.m4: Likewise.
49572         * m4/strtoull.m4: Likewise.
49573         * m4/strtoumax.m4: Likewise.
49574         * m4/strverscmp.m4: Likewise.
49575         * m4/threadlib.m4: Likewise.
49576         * m4/timegm.m4: Likewise.
49577         * m4/tm_gmtoff.m4: Likewise.
49578         * m4/tmpdir.m4: Likewise.
49579         * m4/tmpfile.m4: Likewise.
49580         * m4/tzset.m4: Likewise.
49581         * m4/uintmax_t.m4: Likewise.
49582         * m4/unlinkdir.m4: Likewise.
49583         * m4/unlocked-io.m4: Likewise.
49584         * m4/uptime.m4: Likewise.
49585         * m4/userspec.m4: Likewise.
49586         * m4/utimbuf.m4: Likewise.
49587         * m4/utime.m4: Likewise.
49588         * m4/utimes-null.m4: Likewise.
49589         * m4/utimes.m4: Likewise.
49590         * m4/vararrays.m4: Likewise.
49591         * m4/vasnprintf.m4: Likewise.
49592         * m4/vfprintf-posix.m4: Likewise.
49593         * m4/vprintf-posix.m4: Likewise.
49594         * m4/wait-process.m4: Likewise.
49595         * m4/wchar_t.m4: Likewise.
49596         * m4/wint_t.m4: Likewise.
49597         * m4/write-any-file.m4: Likewise.
49598         * m4/yield.m4: Likewise.
49599
49600 2009-01-13  Bruno Haible  <bruno@clisp.org>
49601
49602         Avoid test-copy-file.sh failures when ACL support insufficient.
49603         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49604         TESTS_ENVIRONMENT.
49605         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49606         Reported by Jim Meyering.
49607
49608 2009-01-13  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49611         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49612         * modules/unistdio/u8-printf-parse (Files): Likewise.
49613         * modules/unistdio/u32-printf-parse (Files): Likewise.
49614         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49615
49616 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49617
49618         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49619         and m4/inttypes_h.m4 too.
49620
49621 2009-01-12  Eric Blake  <ebb9@byu.net>
49622
49623         tests: IRIX 6.2 cc can't compile -0.0 into .data
49624         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49625         rather than at compile-time.
49626         * tests/test-floorl.c (minus_zero): Likewise.
49627         * tests/test-frexpl.c (minus_zero): Likewise.
49628         * tests/test-isnan.c (minus_zerol): Likewise.
49629         * tests/test-isnanl.h (minus_zero): Likewise.
49630         * tests/test-ldexpl.c (minus_zero): Likewise.
49631         * tests/test-roundl.c (minus_zero): Likewise.
49632         * tests/test-signbit.c (minus_zerol): Likewise.
49633         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49634         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49635         * tests/test-truncl.c (minus_zero): Likewise.
49636         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49637         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49638         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49639
49640 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49641
49642         regex: fix glibc bug 9697
49643         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49644         handling.
49645
49646 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49647
49648         regex: fix glibc bug 697
49649         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49650         being NULL also if there are no backreferences.
49651
49652 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49653
49654         regex: merge glibc changes
49655         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49656         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49657         re_string_skip_chars, re_string_reconstruct): Likewise.
49658         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49659
49660 2009-01-07  Jim Meyering  <meyering@redhat.com>
49661
49662         poll: filter through cppi
49663         * lib/poll.c: Indent cpp directives to reflect nesting.
49664
49665 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49666
49667         poll: don't return uninitialized
49668         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49669
49670 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49671
49672         avoid compile failure on AIX 6.1
49673         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49674         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49675
49676 2009-01-04  Jim Meyering  <meyering@redhat.com>
49677
49678         remove duplicate inclusion of <stdio.h>
49679         * tests/test-fprintf-posix.c: Likewise.
49680         * tests/test-printf-posix.c: Likewise.
49681         * tests/test-snprintf-posix.c: Likewise.
49682         * tests/test-sprintf-posix.c: Likewise.
49683         * tests/test-vasprintf-posix.c: Likewise.
49684         * tests/test-vfprintf-posix.c: Likewise.
49685         * tests/test-vprintf-posix.c: Likewise.
49686         * tests/test-vsnprintf-posix.c: Likewise.
49687         * tests/test-vsprintf-posix.c: Likewise.
49688
49689 2009-01-03  Jim Meyering  <meyering@redhat.com>
49690
49691         gnulib-tool: fix sed-based filtering
49692         * gnulib-tool (func_filter_filelist): Remove extra backslash
49693         in sed_fff_filter definition.
49694
49695 2009-01-02  Jim Meyering  <meyering@redhat.com>
49696
49697         strftime: avoid compilation failure on Solaris 2.6
49698         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49699         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49700         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49701         be available.  Reported by Tom G. Christensen.  Details in
49702         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49703
49704 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49705             Bruno Haible  <bruno@clisp.org>
49706
49707         Speed up gnulib-tool by doing more string processing through shell
49708         built-ins.
49709         * gnulib-tool (fast_func_append): New variable.
49710         (func_remove_prefix, func_remove_suffix): New functions.
49711         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49712         (func_filter_filelist): New function.
49713         (func_get_dependencies): Use func_remove_suffix instead of sed.
49714         (func_get_automake_snippet): Use func_filter_filelist instead of a
49715         subshell and sed invocation.
49716
49717 2009-01-01  Bruno Haible  <bruno@clisp.org>
49718
49719         Fix a security bug.
49720         * gnulib-tool (func_import, import, update): Don't allow the characters
49721         '"', '$', '`', '\' in macro arguments that become part of commands that
49722         are evaluated.
49723
49724 2009-01-01  Bruno Haible  <bruno@clisp.org>
49725
49726         * gnulib-tool (func_reset_sigpipe): Add more comments.
49727
49728 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49729
49730         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49731         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49732         already know the answer.
49733
49734 2009-01-01  Jim Meyering  <meyering@redhat.com>
49735
49736         * lib/version-etc.c (version_etc_va): Update copyright year.
49737
49738 2008-12-30  Bruno Haible  <bruno@clisp.org>
49739
49740         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49741         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49742         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49743
49744 2008-12-29  Eric Blake  <ebb9@byu.net>
49745
49746         multiarch: avoid autoconf AC_REQUIRE bug
49747         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49748         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49749         2.63 and older.
49750         Reported by Bruno Haible, and analyzed in
49751         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49752
49753 2008-12-29  Bruno Haible  <bruno@clisp.org>
49754
49755         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49756         files in subdirectories correctly.
49757         Reported by Ralf Wildenhues.
49758
49759 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49760
49761         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49762         rather than 'join FILE -', for Solaris join.
49763
49764 2008-12-29  Bruno Haible  <bruno@clisp.org>
49765
49766         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49767         quoting.
49768         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49769         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49770         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49771         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49772         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49773         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49774         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49775         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49776         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49777         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49778         * m4/nls.m4 (AM_NLS): Likewise.
49779         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49780         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49781         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49782         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49783         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49784         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49785         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49786         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49787         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49788         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49789         * m4/xsize.m4 (gl_XSIZE): Likewise.
49790         Suggested by Jim Meyering.
49791
49792 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49793
49794         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49795         * lib/parse-duration.c: use a switch instead of cascading if's.
49796
49797 2008-12-29  Eric Blake  <ebb9@byu.net>
49798
49799         wchar.h: supply WEOF on Irix 5.3
49800         * lib/wchar.in.h (wint_t): Also supply WEOF.
49801         * lib/wctype.in.h (wint_t): Likewise.
49802         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49803         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49804         Reported by Tom G. Christensen.
49805
49806 2008-12-26  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49809         i486, i586, i686.
49810
49811 2008-12-26  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49814
49815 2008-12-26  Bruno Haible  <bruno@clisp.org>
49816
49817         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49818         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49819         not __STDC_CONSTANT_MACROS.
49820         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49821
49822 2008-12-25  Bruno Haible  <bruno@clisp.org>
49823
49824         Add support for universal builds to vasnprintf.
49825         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49826         universal builds, guess no.
49827         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49828         * modules/vasprintf-posix (Depends-on): Likewise.
49829         * modules/fprintf-posix (Depends-on): Likewise.
49830         * modules/vfprintf-posix (Depends-on): Likewise.
49831         * modules/snprintf-posix (Depends-on): Likewise.
49832         * modules/vsnprintf-posix (Depends-on): Likewise.
49833         * modules/sprintf-posix (Depends-on): Likewise.
49834         * modules/vsprintf-posix (Depends-on): Likewise.
49835         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49836         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49837         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49838         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49839         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49840         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49841         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49842
49843         Add support for universal builds to <inttypes.h>.
49844         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49845         _SCNu64_PREFIX): In Apple
49846         universal builds, define directly, using _LP64.
49847         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49848         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49849         * modules/inttypes (Depends-on): Add multiarch.
49850         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49851
49852         Add support for universal builds to <stdint.h>.
49853         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49854         universal builds, define directly, using _LP64.
49855         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49856         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49857         and size_t.
49858         * modules/stdint (Depends-on): Add multiarch.
49859         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49860
49861         New module 'multiarch'.
49862         * modules/multiarch: New file.
49863         * m4/multiarch.m4: New file.
49864
49865 2008-12-25  Bruno Haible  <bruno@clisp.org>
49866
49867         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49868
49869 2008-12-25  Bruno Haible  <bruno@clisp.org>
49870
49871         * modules/btowc (License): Relicense under LGPLv2+.
49872         * modules/mbsinit (License): Likewise.
49873         * modules/mbrtowc (License): Likewise.
49874         * modules/wcrtomb (License): Likewise.
49875         * modules/streq (License): Likewise.
49876         Reported by David Lutterkort <lutter@redhat.com>.
49877
49878 2008-12-23  Bruno Haible  <bruno@clisp.org>
49879
49880         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49881
49882 2008-12-23  Bruno Haible  <bruno@clisp.org>
49883
49884         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49886         GETADDRINFO_LIB, not in LIBS.
49887         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49888         * modules/canon-host (Link): Likewise.
49889         * NEWS: Mention the change.
49890         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49891         GETADDRINFO_LIB.
49892
49893 2008-12-22  Bruno Haible  <bruno@clisp.org>
49894
49895         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49896         * doc/posix-functions/iswalpha_l.texi: Likewise.
49897         * doc/posix-functions/iswblank_l.texi: Likewise.
49898         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49899         * doc/posix-functions/iswctype_l.texi: Likewise.
49900         * doc/posix-functions/iswdigit_l.texi: Likewise.
49901         * doc/posix-functions/iswgraph_l.texi: Likewise.
49902         * doc/posix-functions/iswlower_l.texi: Likewise.
49903         * doc/posix-functions/iswprint_l.texi: Likewise.
49904         * doc/posix-functions/iswpunct_l.texi: Likewise.
49905         * doc/posix-functions/iswspace_l.texi: Likewise.
49906         * doc/posix-functions/iswupper_l.texi: Likewise.
49907         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49908         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49909         * doc/posix-functions/open_wmemstream.texi: Likewise.
49910         * doc/posix-functions/swscanf.texi: Likewise.
49911         * doc/posix-functions/towctrans_l.texi: Likewise.
49912         * doc/posix-functions/towlower.texi: Likewise.
49913         * doc/posix-functions/towlower_l.texi: Likewise.
49914         * doc/posix-functions/towupper.texi: Likewise.
49915         * doc/posix-functions/towupper_l.texi: Likewise.
49916         * doc/posix-functions/vfwprintf.texi: Likewise.
49917         * doc/posix-functions/vfwscanf.texi: Likewise.
49918         * doc/posix-functions/vswscanf.texi: Likewise.
49919         * doc/posix-functions/vwprintf.texi: Likewise.
49920         * doc/posix-functions/vwscanf.texi: Likewise.
49921         * doc/posix-functions/wcpcpy.texi: Likewise.
49922         * doc/posix-functions/wcpncpy.texi: Likewise.
49923         * doc/posix-functions/wcscasecmp.texi: Likewise.
49924         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49925         * doc/posix-functions/wcscoll_l.texi: Likewise.
49926         * doc/posix-functions/wcsdup.texi: Likewise.
49927         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49928         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49929         * doc/posix-functions/wcsnlen.texi: Likewise.
49930         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49931         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49932         * doc/posix-functions/wctrans_l.texi: Likewise.
49933         * doc/posix-functions/wctype_l.texi: Likewise.
49934         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49935         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49936         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49937         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49938         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49939         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49940         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49941         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49942         * doc/glibc-functions/wcschrnul.texi: Likewise.
49943         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49944         * doc/glibc-functions/wcstod_l.texi: Likewise.
49945         * doc/glibc-functions/wcstof_l.texi: Likewise.
49946         * doc/glibc-functions/wcstol_l.texi: Likewise.
49947         * doc/glibc-functions/wcstold_l.texi: Likewise.
49948         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49949         * doc/glibc-functions/wcstoq.texi: Likewise.
49950         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49951         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49952         * doc/glibc-functions/wcstouq.texi: Likewise.
49953         * doc/glibc-functions/wmempcpy.texi: Likewise.
49954
49955 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49956             Eric Blake  <ebb9@byu.net>
49957             Paolo Bonzini  <bonzini@gnu.org>
49958             Bruno Haible  <bruno@clisp.org>
49959
49960         Make c-stack work on Haiku.
49961         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49962         (c_stack_action): Use SA_ONSTACK flag.
49963
49964 2008-12-22  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49967
49968 2008-12-22  Bruno Haible  <bruno@clisp.org>
49969
49970         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49971         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49972         being overridden.
49973         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49974         New macros.
49975         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49977         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49978         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49979
49980 2008-12-22  Bruno Haible  <bruno@clisp.org>
49981
49982         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49983         from test code.
49984
49985 2008-12-22  Eric Blake  <ebb9@byu.net>
49986
49987         Avoid gcc warnings on cygwin.
49988         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49989         Avoid unused variable.
49990         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49991         Likewise.
49992
49993 2008-12-22  Bruno Haible  <bruno@clisp.org>
49994
49995         Remove HAVE_MBRTOWC conditionals.
49996         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49997         (mbscasecmp): Assume mbrtowc function.
49998         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49999         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50000         * lib/mbschr.c: Include mbuiter.h unconditionally.
50001         (mbschr): Assume mbrtowc function.
50002         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50003         (mbscspn): Assume mbrtowc function.
50004         * lib/mbslen.c: Include mbuiter.h unconditionally.
50005         (mbslen): Assume mbrtowc function.
50006         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50007         (mbsncasecmp): Assume mbrtowc function.
50008         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50009         (mbsnlen): Assume mbrtowc function.
50010         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50011         (mbspbrk): Assume mbrtowc function.
50012         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50013         (mbspcasecmp): Assume mbrtowc function.
50014         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50015         (mbsrchr): Assume mbrtowc function.
50016         * lib/mbssep.c: Include mbuiter.h unconditionally.
50017         (mbssep): Assume mbrtowc function.
50018         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50019         (mbsspn): Assume mbrtowc function.
50020         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50021         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50022         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50023         (mbstok_r): Assume mbrtowc function.
50024         * lib/propername.c: Include mbuiter.h unconditionally.
50025         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50026         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50027         (trim2): Assume mbrtowc function.
50028         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50029         (mbsnwidth): Assume mbrtowc function.
50030         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50031         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50032         fallback definitions.
50033         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50034
50035 2008-12-22  Bruno Haible  <bruno@clisp.org>
50036
50037         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50038
50039 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50040
50041         * modules/regex: Request emulations for the mb*/wc* functions we need.
50042         * m4/regex.m4: Don't look for those functions here.
50043         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50044
50045 2008-12-22  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50048
50049 2008-12-21  Bruno Haible  <bruno@clisp.org>
50050
50051         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50052         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50053         (Include): Remove conditionalization.
50054         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50055         (Include): Remove conditionalization.
50056         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50057         (Include): Remove conditionalization.
50058         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50059         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50060         * NEWS: Mention the change.
50061         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50062         via Sergey Poznyakoff <gray@gnu.org.ua>.
50063
50064 2008-12-21  Bruno Haible  <bruno@clisp.org>
50065
50066         * MODULES.html.sh (Extended multibyte and wide character utilities
50067         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50068         wcrtomb, wcsrtombs.
50069         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50070         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50071         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50072         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50073
50074 2008-12-21  Bruno Haible  <bruno@clisp.org>
50075
50076         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50077
50078 2008-12-21  Bruno Haible  <bruno@clisp.org>
50079
50080         * modules/wcsnrtombs-tests: New file.
50081         * tests/test-wcsnrtombs1.sh: New file.
50082         * tests/test-wcsnrtombs2.sh: New file.
50083         * tests/test-wcsnrtombs3.sh: New file.
50084         * tests/test-wcsnrtombs4.sh: New file.
50085         * tests/test-wcsnrtombs.c: New file.
50086
50087         New module 'wcsnrtombs'.
50088         * lib/wchar.in.h (wcsnrtombs): New declaration.
50089         * lib/wcsnrtombs.c: New file.
50090         * lib/wcsrtombs-state.c: New file.
50091         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50092         (internal_state): Remove variable.
50093         * m4/wcsnrtombs.m4: New file.
50094         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50095         compilation units.
50096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50097         HAVE_WCSNRTOMBS.
50098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50099         HAVE_WCSNRTOMBS.
50100         * modules/wcsnrtombs: New file.
50101         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50102         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50103
50104 2008-12-21  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/wcsrtombs-tests: New file.
50107         * tests/test-wcsrtombs1.sh: New file.
50108         * tests/test-wcsrtombs2.sh: New file.
50109         * tests/test-wcsrtombs3.sh: New file.
50110         * tests/test-wcsrtombs4.sh: New file.
50111         * tests/test-wcsrtombs.c: New file.
50112
50113         New module 'wcsrtombs'.
50114         * lib/wchar.in.h (wcsrtombs): New declaration.
50115         * lib/wcsrtombs.c: New file.
50116         * m4/wcsrtombs.m4: New file.
50117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50118         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50120         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50121         * modules/wcsrtombs: New file.
50122         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50123         bugs.
50124
50125 2008-12-21  Bruno Haible  <bruno@clisp.org>
50126
50127         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50128         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50130         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50131         if not correct.
50132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50133         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50134         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50135         m4/locale-zh.m4, m4/codeset.m4.
50136         * doc/posix-functions/wcrtomb.texi: Document the bug.
50137
50138 2008-12-21  Bruno Haible  <bruno@clisp.org>
50139
50140         Work around a btowc() bug on IRIX 6.5.
50141         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50142         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50143         REPLACE_WTOBC if not.
50144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50145         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50146         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50147
50148 2008-12-21  Bruno Haible  <bruno@clisp.org>
50149
50150         * modules/wcrtomb-tests: New file.
50151         * tests/test-wcrtomb.sh: New file.
50152         * tests/test-wcrtomb.c: New file.
50153
50154         New module 'wcrtomb'.
50155         * lib/wchar.in.h (wcrtomb): New declaration.
50156         * lib/wcrtomb.c: New file.
50157         * m4/wcrtomb.m4: New file.
50158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50159         HAVE_WCRTOMB.
50160         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50161         HAVE_WCRTOMB.
50162         * modules/wcrtomb: New file.
50163         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50164
50165 2008-12-21  Bruno Haible  <bruno@clisp.org>
50166
50167         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50168         * modules/mbsrtowcs (Files): Likewise.
50169         * modules/wctob (Files): Likewise.
50170         * modules/c-strcase-tests (Files): Likewise.
50171         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50172         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50173         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50174         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50175         * modules/vasnprintf-posix-tests (Files): Likewise.
50176
50177 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50178
50179         gitlog-to-changelog: pass all command-line arguments to git-log
50180         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50181         it is sometimes convenient to filter the commits in various ways.
50182         gitlog-to-changelog only allows --since to specify a start date,
50183         but git-log itself supports many other filtering mechanisms.
50184         At the moment, I want to filter by branch name.  Rather than
50185         adding a --branch option to gitlog-to-changelog, it seems more
50186         flexible to simply pass all options directly to git-log and let
50187         git do the work.  Notice that this effectively makes --since a
50188         redundant option for gitlog-to-changelog, but removing it would
50189         require current usage to change since calls would then require
50190         an additional '--'.
50191
50192 2008-12-21  Bruno Haible  <bruno@clisp.org>
50193
50194         * modules/mbsnrtowcs-tests: New file.
50195         * tests/test-mbsnrtowcs1.sh: New file.
50196         * tests/test-mbsnrtowcs2.sh: New file.
50197         * tests/test-mbsnrtowcs3.sh: New file.
50198         * tests/test-mbsnrtowcs4.sh: New file.
50199         * tests/test-mbsnrtowcs.c: New file.
50200
50201         New module 'mbsnrtowcs'.
50202         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50203         * lib/mbsnrtowcs.c: New file.
50204         * lib/mbsrtowcs-state.c: New file.
50205         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50206         (internal_state): Remove variable.
50207         * m4/mbsnrtowcs.m4: New file.
50208         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50209         compilation units.
50210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50211         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50212         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50213         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50214         * modules/mbsnrtowcs: New file.
50215         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50216         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50217         portability problem.
50218
50219 2008-12-21  Bruno Haible  <bruno@clisp.org>
50220
50221         Work around mbsrtowcs bug.
50222         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50223         (gl_FUNC_MBSRTOWCS): Invoke it.
50224         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50225         m4/locale-zh.m4.
50226         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50227
50228 2008-12-21  Bruno Haible  <bruno@clisp.org>
50229
50230         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50231
50232 2008-12-21  Bruno Haible  <bruno@clisp.org>
50233
50234         Update doc for AIX.
50235         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50236         16-bit wchar_t type.
50237         * doc/posix-functions/btowc.texi: Likewise.
50238         * doc/posix-functions/fgetwc.texi: Likewise.
50239         * doc/posix-functions/fgetws.texi: Likewise.
50240         * doc/posix-functions/fputwc.texi: Likewise.
50241         * doc/posix-functions/fputws.texi: Likewise.
50242         * doc/posix-functions/fwide.texi: Likewise.
50243         * doc/posix-functions/fwprintf.texi: Likewise.
50244         * doc/posix-functions/fwscanf.texi: Likewise.
50245         * doc/posix-functions/getwchar.texi: Likewise.
50246         * doc/posix-functions/getwc.texi: Likewise.
50247         * doc/posix-functions/iswalnum.texi: Likewise.
50248         * doc/posix-functions/iswalpha.texi: Likewise.
50249         * doc/posix-functions/iswblank.texi: Likewise.
50250         * doc/posix-functions/iswcntrl.texi: Likewise.
50251         * doc/posix-functions/iswctype.texi: Likewise.
50252         * doc/posix-functions/iswdigit.texi: Likewise.
50253         * doc/posix-functions/iswgraph.texi: Likewise.
50254         * doc/posix-functions/iswlower.texi: Likewise.
50255         * doc/posix-functions/iswprint.texi: Likewise.
50256         * doc/posix-functions/iswpunct.texi: Likewise.
50257         * doc/posix-functions/iswspace.texi: Likewise.
50258         * doc/posix-functions/iswupper.texi: Likewise.
50259         * doc/posix-functions/iswxdigit.texi: Likewise.
50260         * doc/posix-functions/mbrtowc.texi: Likewise.
50261         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50262         * doc/posix-functions/mbstowcs.texi: Likewise.
50263         * doc/posix-functions/mbtowc.texi: Likewise.
50264         * doc/posix-functions/putwchar.texi: Likewise.
50265         * doc/posix-functions/putwc.texi: Likewise.
50266         * doc/posix-functions/swprintf.texi: Likewise.
50267         * doc/posix-functions/tolower.texi: Likewise.
50268         * doc/posix-functions/toupper.texi: Likewise.
50269         * doc/posix-functions/towctrans.texi: Likewise.
50270         * doc/posix-functions/ungetwc.texi: Likewise.
50271         * doc/posix-functions/vswprintf.texi: Likewise.
50272         * doc/posix-functions/wcrtomb.texi: Likewise.
50273         * doc/posix-functions/wcscat.texi: Likewise.
50274         * doc/posix-functions/wcschr.texi: Likewise.
50275         * doc/posix-functions/wcscmp.texi: Likewise.
50276         * doc/posix-functions/wcscoll.texi: Likewise.
50277         * doc/posix-functions/wcscpy.texi: Likewise.
50278         * doc/posix-functions/wcscspn.texi: Likewise.
50279         * doc/posix-functions/wcsftime.texi: Likewise.
50280         * doc/posix-functions/wcslen.texi: Likewise.
50281         * doc/posix-functions/wcsncat.texi: Likewise.
50282         * doc/posix-functions/wcsncmp.texi: Likewise.
50283         * doc/posix-functions/wcsncpy.texi: Likewise.
50284         * doc/posix-functions/wcspbrk.texi: Likewise.
50285         * doc/posix-functions/wcsrchr.texi: Likewise.
50286         * doc/posix-functions/wcsrtombs.texi: Likewise.
50287         * doc/posix-functions/wcsspn.texi: Likewise.
50288         * doc/posix-functions/wcsstr.texi: Likewise.
50289         * doc/posix-functions/wcstod.texi: Likewise.
50290         * doc/posix-functions/wcstof.texi: Likewise.
50291         * doc/posix-functions/wcstoimax.texi: Likewise.
50292         * doc/posix-functions/wcstok.texi: Likewise.
50293         * doc/posix-functions/wcstold.texi: Likewise.
50294         * doc/posix-functions/wcstoll.texi: Likewise.
50295         * doc/posix-functions/wcstol.texi: Likewise.
50296         * doc/posix-functions/wcstombs.texi: Likewise.
50297         * doc/posix-functions/wcstoull.texi: Likewise.
50298         * doc/posix-functions/wcstoul.texi: Likewise.
50299         * doc/posix-functions/wcstoumax.texi: Likewise.
50300         * doc/posix-functions/wcswidth.texi: Likewise.
50301         * doc/posix-functions/wcsxfrm.texi: Likewise.
50302         * doc/posix-functions/wctob.texi: Likewise.
50303         * doc/posix-functions/wctomb.texi: Likewise.
50304         * doc/posix-functions/wctrans.texi: Likewise.
50305         * doc/posix-functions/wctype.texi: Likewise.
50306         * doc/posix-functions/wcwidth.texi: Likewise.
50307         * doc/posix-functions/wmemchr.texi: Likewise.
50308         * doc/posix-functions/wmemcmp.texi: Likewise.
50309         * doc/posix-functions/wmemcpy.texi: Likewise.
50310         * doc/posix-functions/wmemmove.texi: Likewise.
50311         * doc/posix-functions/wmemset.texi: Likewise.
50312         * doc/posix-functions/wprintf.texi: Likewise.
50313         * doc/posix-functions/wscanf.texi: Likewise.
50314
50315 2008-12-21  Bruno Haible  <bruno@clisp.org>
50316
50317         Update doc for HP-UX 11.11.
50318         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50319         in HP-UX version 11.00, not in all versions of HP-UX 11.
50320         * doc/posix-functions/fwide.texi: Likewise.
50321         * doc/posix-functions/fwprintf.texi: Likewise.
50322         * doc/posix-functions/fwscanf.texi: Likewise.
50323         * doc/posix-functions/inet_ntop.texi: Likewise.
50324         * doc/posix-functions/inet_pton.texi: Likewise.
50325         * doc/posix-functions/mbrlen.texi: Likewise.
50326         * doc/posix-functions/mbrtowc.texi: Likewise.
50327         * doc/posix-functions/mbsinit.texi: Likewise.
50328         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50329         * doc/posix-functions/swprintf.texi: Likewise.
50330         * doc/posix-functions/swscanf.texi: Likewise.
50331         * doc/posix-functions/towctrans.texi: Likewise.
50332         * doc/posix-functions/vfwprintf.texi: Likewise.
50333         * doc/posix-functions/vswprintf.texi: Likewise.
50334         * doc/posix-functions/vwprintf.texi: Likewise.
50335         * doc/posix-functions/wcrtomb.texi: Likewise.
50336         * doc/posix-functions/wcsrtombs.texi: Likewise.
50337         * doc/posix-functions/wcsstr.texi: Likewise.
50338         * doc/posix-functions/wctob.texi: Likewise.
50339         * doc/posix-functions/wctrans.texi: Likewise.
50340         * doc/posix-functions/wmemchr.texi: Likewise.
50341         * doc/posix-functions/wmemcmp.texi: Likewise.
50342         * doc/posix-functions/wmemcpy.texi: Likewise.
50343         * doc/posix-functions/wmemmove.texi: Likewise.
50344         * doc/posix-functions/wmemset.texi: Likewise.
50345         * doc/posix-functions/wprintf.texi: Likewise.
50346         * doc/posix-functions/wscanf.texi: Likewise.
50347
50348 2008-12-21  Bruno Haible  <bruno@clisp.org>
50349
50350         Work around a portability problem.
50351         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50352         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50353
50354 2008-12-20  Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50357         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50358         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50360         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50361
50362         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50363         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50364         set.
50365         (GNULIB_defined_mbstate_t): New macro.
50366         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50367         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50368         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50369         reuses the system's mbrtowc function but works around the bugs.
50370         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50371         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50372         macros.
50373         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50374         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50375         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50376         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50377         REPLACE_MBSINIT if mbsinit needs to be overridden.
50378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50379         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50380         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50381         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50382         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50383         m4/locale-zh.m4.
50384         (Depends): Add mbsinit.
50385         * modules/mbsinit (Depends): Add mbrtowc.
50386         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50387
50388 2008-12-20  Bruno Haible  <bruno@clisp.org>
50389
50390         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50391         so that there are no conversion errors on AIX.
50392         * tests/test-mbsrtowcs.c (main): LIkewise.
50393
50394 2008-12-20  Bruno Haible  <bruno@clisp.org>
50395
50396         Work around wctob bug on Solaris <= 9.
50397         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50398         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50400         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50401         * modules/wctob (Files): Add m4/locale-fr.m4.
50402         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50403
50404 2008-12-20  Bruno Haible  <bruno@clisp.org>
50405
50406         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50407         /dev/null.
50408         * tests/test-select-in.sh: Likewise.
50409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50410
50411 2008-12-20  Bruno Haible  <bruno@clisp.org>
50412
50413         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50414         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50415         Cygwin 1.5.x.
50416
50417 2008-12-20  Bruno Haible  <bruno@clisp.org>
50418
50419         Ensure mbstate_t is defined on HP-UX 11.11.
50420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50421         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50422         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50423         AC_USE_SYSTEM_EXTENSIONS.
50424         * modules/fnmatch (Depends-on): Add extensions.
50425         * modules/mbrlen (Depends-on): Likewise.
50426         * modules/mbrtowc (Depends-on): Likewise.
50427         * modules/mbsinit (Depends-on): Likewise.
50428         * modules/mbsrtowcs (Depends-on): Likewise.
50429         * modules/mbswidth (Depends-on): Likewise.
50430         * modules/quotearg (Depends-on): Likewise.
50431         * modules/strftime (Depends-on): Likewise.
50432
50433 2008-12-20  Bruno Haible  <bruno@clisp.org>
50434
50435         Ensure wctob is declared on IRIX 6.5.
50436         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50437         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50438         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50440         of HAVE_WCTOB.
50441         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50442         HAVE_WCTOB.
50443         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50444
50445 2008-12-19  Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/mbsrtowcs-tests: New file.
50448         * tests/test-mbsrtowcs1.sh: New file.
50449         * tests/test-mbsrtowcs2.sh: New file.
50450         * tests/test-mbsrtowcs3.sh: New file.
50451         * tests/test-mbsrtowcs4.sh: New file.
50452         * tests/test-mbsrtowcs.c: New file.
50453
50454         New module 'mbsrtowcs'.
50455         * lib/wchar.in.h (mbsrtowcs): New declaration.
50456         * lib/mbsrtowcs.c: New file.
50457         * m4/mbsrtowcs.m4: New file.
50458         * modules/mbsrtowcs: New file.
50459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50460         HAVE_MBSRTOWCS.
50461         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50462         HAVE_MBSRTOWCS.
50463         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50464
50465 2008-12-19  Bruno Haible  <bruno@clisp.org>
50466
50467         New module 'mbrlen'.
50468         * lib/wchar.in.h (mbrlen): New declaration.
50469         * lib/mbrlen.c: New file.
50470         * m4/mbrlen.m4: New file.
50471         * modules/mbrlen: New file.
50472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50473         HAVE_MBRLEN.
50474         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50475         HAVE_MBRLEN.
50476         * doc/posix-functions/mbrlen.texi: Document the new module.
50477
50478 2008-12-19  Bruno Haible  <bruno@clisp.org>
50479
50480         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50481         * modules/mbrtowc (Depends-on): Add verify.
50482         Suggested by Paul Eggert.
50483
50484 2008-12-18  Bruno Haible  <bruno@clisp.org>
50485
50486         * modules/mbsinit-tests: New file.
50487         * tests/test-mbsinit.sh: New file.
50488         * tests/test-mbsinit.c: New file.
50489
50490 2008-12-18  Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/mbrtowc-tests: New file.
50493         * tests/test-mbrtowc1.sh: New file.
50494         * tests/test-mbrtowc2.sh: New file.
50495         * tests/test-mbrtowc3.sh: New file.
50496         * tests/test-mbrtowc4.sh: New file.
50497         * tests/test-mbrtowc.c: New file.
50498
50499         New module 'mbrtowc'.
50500         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50501         mbsinit and mbrtowc.
50502         (mbrtowc): New declaration.
50503         * lib/mbrtowc.c: New file.
50504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50505         * modules/mbrtowc: New file.
50506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50507         HAVE_MBRTOWC.
50508         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50509         HAVE_MBRTOWC.
50510         * doc/posix-functions/mbrtowc.texi: Document the new module.
50511
50512 2008-12-18  Bruno Haible  <bruno@clisp.org>
50513
50514         New module 'wctob'.
50515         * lib/wchar.in.h (wctob): New declaration.
50516         * lib/wctob.c: New file.
50517         * m4/wctob.m4: New file.
50518         * modules/wctob: New file.
50519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50520         HAVE_WCTOB.
50521         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50522         * doc/posix-functions/wctob.texi: Document the new module.
50523
50524 2008-12-18  Bruno Haible  <bruno@clisp.org>
50525
50526         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50527         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50528
50529 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50530
50531         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50532         G. Christensen" <tgc@jupiterrise.com>.
50533
50534         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50535         G. Christensen" <tgc@jupiterrise.com>.
50536
50537         * lib/flock.c: Need to include string.h.  Reported by "Tom
50538         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50539         <ebb9@byu.net>.
50540
50541 2008-12-18  Bruno Haible  <bruno@clisp.org>
50542
50543         * m4/locale-ja.m4: New file, from GNU gettext.
50544
50545 2008-12-17  Bruno Haible  <bruno@clisp.org>
50546
50547         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50548         Suggested by Eric Blake.
50549
50550 2008-12-17  Bruno Haible  <bruno@clisp.org>
50551
50552         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50553
50554 2008-12-17  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50557         * modules/mbsinit (Depends-on): Add verify.
50558         Suggested by Paul Eggert.
50559
50560 2008-12-17  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50563         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50564         gl_FUNC_MBRTOWC.
50565         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50566         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50567         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50568         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50569         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50570         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50571         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50572         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50573         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50574         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50575         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50576         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50577         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50578         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50579         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50580         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50581         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50582         * modules/trim (configure.ac): Likewise.
50583
50584 2008-12-17  Bruno Haible  <bruno@clisp.org>
50585
50586         * modules/btowc-tests: New file.
50587         * tests/test-btowc1.sh: New file.
50588         * tests/test-btowc2.sh: New file.
50589         * tests/test-btowc.c: New file.
50590
50591         New module 'btowc'.
50592         * lib/wchar.in.h (btowc): New declaration.
50593         * lib/btowc.c: New file.
50594         * m4/btowc.m4: New file.
50595         * modules/btowc: New file.
50596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50597         HAVE_BTOWC.
50598         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50599         * doc/posix-functions/btowc.texi: Document the new module.
50600
50601 2008-12-17  Bruno Haible  <bruno@clisp.org>
50602
50603         New module 'mbsinit'.
50604         * lib/wchar.in.h (mbsinit): New declaration.
50605         * lib/mbsinit.c: New file.
50606         * m4/mbsinit.m4: New file.
50607         * modules/mbsinit: New file.
50608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50609         HAVE_MBSINIT.
50610         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50611         HAVE_MBSINIT.
50612         * doc/posix-functions/mbsinit.texi: Document the new module.
50613
50614 2008-12-16  Bruno Haible  <bruno@clisp.org>
50615
50616         * lib/unistd.in.h: Add comment.
50617         * tests/test-environ.c: Don't include <stdlib.h>.
50618
50619 2008-12-16  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/parse-duration.h (parse_duration): Document return value
50622         convention.
50623         * lib/parse-duration.c: Include specification header first. Add
50624         comments.
50625         (_): Remove macro.
50626         (parse_year_month_day, parse_hour_minute_second): Move side effects
50627         outside of strchr call.
50628         (parse_non_iso8601): Move side effects outside of isspace call.
50629         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50630         call.
50631
50632 2008-12-16  Bruno Haible  <bruno@clisp.org>
50633
50634         * tests/test-parse-duration.sh: Produce no output when the test
50635         succeeds.
50636
50637 2008-12-16  Bruno Haible  <bruno@clisp.org>
50638
50639         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50640         expressions.
50641
50642 2008-12-15  Bruno Haible  <bruno@clisp.org>
50643
50644         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50645         * doc/glibc-functions/flistxattr.texi: Likewise.
50646         * doc/glibc-functions/fopencookie.texi: Likewise.
50647         * doc/glibc-functions/fremovexattr.texi: Likewise.
50648         * doc/glibc-functions/fsetxattr.texi: Likewise.
50649         * doc/glibc-functions/getxattr.texi: Likewise.
50650         * doc/glibc-functions/lgetxattr.texi: Likewise.
50651         * doc/glibc-functions/listxattr.texi: Likewise.
50652         * doc/glibc-functions/llistxattr.texi: Likewise.
50653         * doc/glibc-functions/lremovexattr.texi: Likewise.
50654         * doc/glibc-functions/lsetxattr.texi: Likewise.
50655         * doc/glibc-functions/removexattr.texi: Likewise.
50656         * doc/glibc-functions/setxattr.texi: Likewise.
50657         * doc/posix-functions/open_memstream.texi: Likewise.
50658
50659 2008-12-15  Eric Blake  <ebb9@byu.net>
50660
50661         Update doc for cygwin 1.7.
50662         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50663         functions.
50664         * doc/posix-functions/fchmodat.texi: Likewise.
50665         * doc/posix-functions/fchownat.texi: Likewise.
50666         * doc/posix-functions/fdopendir.texi: Likewise.
50667         * doc/posix-functions/fmemopen.texi: Likewise.
50668         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50669         * doc/posix-functions/fstatat.texi: Likewise.
50670         * doc/posix-functions/futimens.texi: Likewise.
50671         * doc/posix-functions/gai_strerror.texi: Likewise.
50672         * doc/posix-functions/getaddrinfo.texi: Likewise.
50673         * doc/posix-functions/getnameinfo.texi: Likewise.
50674         * doc/posix-functions/if_freenameindex.texi: Likewise.
50675         * doc/posix-functions/if_indextoname.texi: Likewise.
50676         * doc/posix-functions/if_nameindex.texi: Likewise.
50677         * doc/posix-functions/if_nametoindex.texi: Likewise.
50678         * doc/posix-functions/insque.texi: Likewise.
50679         * doc/posix-functions/linkat.texi: Likewise.
50680         * doc/posix-functions/llrint.texi: Likewise.
50681         * doc/posix-functions/llrintf.texi: Likewise.
50682         * doc/posix-functions/llrintl.texi: Likewise.
50683         * doc/posix-functions/lockf.texi: Likewise.
50684         * doc/posix-functions/lrintl.texi: Likewise.
50685         * doc/posix-functions/mkdirat.texi: Likewise.
50686         * doc/posix-functions/mkfifoat.texi: Likewise.
50687         * doc/posix-functions/mknodat.texi: Likewise.
50688         * doc/posix-functions/mq_close.texi: Likewise.
50689         * doc/posix-functions/mq_getattr.texi: Likewise.
50690         * doc/posix-functions/mq_notify.texi: Likewise.
50691         * doc/posix-functions/mq_open.texi: Likewise.
50692         * doc/posix-functions/mq_receive.texi: Likewise.
50693         * doc/posix-functions/mq_send.texi: Likewise.
50694         * doc/posix-functions/mq_setattr.texi: Likewise.
50695         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50696         * doc/posix-functions/mq_timedsend.texi: Likewise.
50697         * doc/posix-functions/mq_unlink.texi: Likewise.
50698         * doc/posix-functions/open_memstream.texi: Likewise.
50699         * doc/posix-functions/openat.texi: Likewise.
50700         * doc/posix-functions/posix_fadvise.texi: Likewise.
50701         * doc/posix-functions/posix_fallocate.texi: Likewise.
50702         * doc/posix-functions/posix_madvise.texi: Likewise.
50703         * doc/posix-functions/posix_memalign.texi: Likewise.
50704         * doc/posix-functions/posix_openpt.texi: Likewise.
50705         * doc/posix-functions/readlinkat.texi: Likewise.
50706         * doc/posix-functions/remque.texi: Likewise.
50707         * doc/posix-functions/renameat.texi: Likewise.
50708         * doc/posix-functions/rintl.texi: Likewise.
50709         * doc/posix-functions/sem_unlink.texi: Likewise.
50710         * doc/posix-functions/shm_open.texi: Likewise.
50711         * doc/posix-functions/shm_unlink.texi: Likewise.
50712         * doc/posix-functions/signgam.texi: Likewise.
50713         * doc/posix-functions/sigset.texi: Likewise.
50714         * doc/posix-functions/stpcpy.texi: Likewise.
50715         * doc/posix-functions/stpncpy.texi: Likewise.
50716         * doc/posix-functions/strerror.texi: Likewise.
50717         * doc/posix-functions/strtod.texi: Likewise.
50718         * doc/posix-functions/symlinkat.texi: Likewise.
50719         * doc/posix-functions/unlinkat.texi: Likewise.
50720         * doc/posix-functions/utimensat.texi: Likewise.
50721         * doc/glibc-functions/bindresvport.texi: Likewise.
50722         * doc/glibc-functions/dn_expand.texi: Likewise.
50723         * doc/glibc-functions/exp10.texi: Likewise.
50724         * doc/glibc-functions/exp10f.texi: Likewise.
50725         * doc/glibc-functions/fgetxattr.texi: Likewise.
50726         * doc/glibc-functions/flistxattr.texi: Likewise.
50727         * doc/glibc-functions/fopencookie.texi: Likewise.
50728         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50729         * doc/glibc-functions/fremovexattr.texi: Likewise.
50730         * doc/glibc-functions/fsetxattr.texi: Likewise.
50731         * doc/glibc-functions/getifaddrs.texi: Likewise.
50732         * doc/glibc-functions/getxattr.texi: Likewise.
50733         * doc/glibc-functions/lgetxattr.texi: Likewise.
50734         * doc/glibc-functions/listxattr.texi: Likewise.
50735         * doc/glibc-functions/llistxattr.texi: Likewise.
50736         * doc/glibc-functions/lremovexattr.texi: Likewise.
50737         * doc/glibc-functions/lsetxattr.texi: Likewise.
50738         * doc/glibc-functions/pow10.texi: Likewise.
50739         * doc/glibc-functions/pow10f.texi: Likewise.
50740         * doc/glibc-functions/rcmd_af.texi: Likewise.
50741         * doc/glibc-functions/removexattr.texi: Likewise.
50742         * doc/glibc-functions/res_init.texi: Likewise.
50743         * doc/glibc-functions/res_mkquery.texi: Likewise.
50744         * doc/glibc-functions/res_query.texi: Likewise.
50745         * doc/glibc-functions/res_querydomain.texi: Likewise.
50746         * doc/glibc-functions/res_send.texi: Likewise.
50747         * doc/glibc-functions/rresvport_af.texi: Likewise.
50748         * doc/glibc-functions/setxattr.texi: Likewise.
50749         * doc/glibc-functions/strcasestr.texi: Likewise.
50750
50751 2008-12-15  Bruno Haible  <bruno@clisp.org>
50752
50753         Fix compilation error on OSF/1 4.0.
50754         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50755         <sys/time.h>, simply delegate to the system header.
50756         Reported by Daniel Richard G. <oss@teragram.com>.
50757
50758 2008-12-15  Bruno Haible  <bruno@clisp.org>
50759
50760         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50761         * doc/posix-functions/fchmodat.texi: Likewise.
50762         * doc/posix-functions/fchownat.texi: Likewise.
50763         * doc/posix-functions/fdopendir.texi: Likewise.
50764         * doc/posix-functions/fstatat.texi: Likewise.
50765         * doc/posix-functions/mkdirat.texi: Likewise.
50766         * doc/posix-functions/unlinkat.texi: Likewise.
50767
50768 2008-12-14  Bruno Haible  <bruno@clisp.org>
50769
50770         Update doc for POSIX:2008.
50771         * doc/posix-functions/faccessat.texi: New file.
50772         * doc/posix-functions/fchmodat.texi: New file.
50773         * doc/posix-functions/fchownat.texi: New file.
50774         * doc/posix-functions/fdopendir.texi: New file.
50775         * doc/posix-functions/fstatat.texi: New file.
50776         * doc/posix-functions/futimens.texi: New file.
50777         * doc/posix-functions/linkat.texi: New file.
50778         * doc/posix-functions/mkdirat.texi: New file.
50779         * doc/posix-functions/mkfifoat.texi: New file.
50780         * doc/posix-functions/mknodat.texi: New file.
50781         * doc/posix-functions/open_wmemstream.texi: New file.
50782         * doc/posix-functions/openat.texi: New file.
50783         * doc/posix-functions/psiginfo.texi: New file.
50784         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50785         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50786         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50787         * doc/posix-functions/readlinkat.texi: New file.
50788         * doc/posix-functions/renameat.texi: New file.
50789         * doc/posix-functions/strerror_l.texi: New file.
50790         * doc/posix-functions/symlinkat.texi: New file.
50791         * doc/posix-functions/unlinkat.texi: New file.
50792         * doc/posix-functions/utimensat.texi: New file.
50793         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50794
50795 2008-12-14  Bruno Haible  <bruno@clisp.org>
50796
50797         Update doc for POSIX:2008.
50798         * doc/posix-functions/alphasort.texi: Renamed from
50799         doc/glibc-functions/alphasort.texi.
50800         * doc/posix-functions/dirfd.texi: Renamed from
50801         doc/glibc-functions/dirfd.texi.
50802         * doc/posix-functions/dprintf.texi: Renamed from
50803         doc/glibc-functions/dprintf.texi.
50804         * doc/posix-functions/duplocale.texi: Renamed from
50805         doc/glibc-functions/duplocale.texi.
50806         * doc/posix-functions/fexecve.texi: Renamed from
50807         doc/glibc-functions/fexecve.texi.
50808         * doc/posix-functions/fmemopen.texi: Renamed from
50809         doc/glibc-functions/fmemopen.texi.
50810         * doc/posix-functions/freelocale.texi: Renamed from
50811         doc/glibc-functions/freelocale.texi.
50812         * doc/posix-functions/getdate_err.texi: Renamed from
50813         doc/glibc-functions/getdate_err.texi.
50814         * doc/posix-functions/isalnum_l.texi: Renamed from
50815         doc/glibc-functions/isalnum_l.texi.
50816         * doc/posix-functions/isalpha_l.texi: Renamed from
50817         doc/glibc-functions/isalpha_l.texi.
50818         * doc/posix-functions/isblank_l.texi: Renamed from
50819         doc/glibc-functions/isblank_l.texi.
50820         * doc/posix-functions/iscntrl_l.texi: Renamed from
50821         doc/glibc-functions/iscntrl_l.texi.
50822         * doc/posix-functions/isdigit_l.texi: Renamed from
50823         doc/glibc-functions/isdigit_l.texi.
50824         * doc/posix-functions/isgraph_l.texi: Renamed from
50825         doc/glibc-functions/isgraph_l.texi.
50826         * doc/posix-functions/islower_l.texi: Renamed from
50827         doc/glibc-functions/islower_l.texi.
50828         * doc/posix-functions/isprint_l.texi: Renamed from
50829         doc/glibc-functions/isprint_l.texi.
50830         * doc/posix-functions/ispunct_l.texi: Renamed from
50831         doc/glibc-functions/ispunct_l.texi.
50832         * doc/posix-functions/isspace_l.texi: Renamed from
50833         doc/glibc-functions/isspace_l.texi.
50834         * doc/posix-functions/isupper_l.texi: Renamed from
50835         doc/glibc-functions/isupper_l.texi.
50836         * doc/posix-functions/iswalnum_l.texi: Renamed from
50837         doc/glibc-functions/iswalnum_l.texi.
50838         * doc/posix-functions/iswalpha_l.texi: Renamed from
50839         doc/glibc-functions/iswalpha_l.texi.
50840         * doc/posix-functions/iswblank_l.texi: Renamed from
50841         doc/glibc-functions/iswblank_l.texi.
50842         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50843         doc/glibc-functions/iswcntrl_l.texi.
50844         * doc/posix-functions/iswctype_l.texi: Renamed from
50845         doc/glibc-functions/iswctype_l.texi.
50846         * doc/posix-functions/iswdigit_l.texi: Renamed from
50847         doc/glibc-functions/iswdigit_l.texi.
50848         * doc/posix-functions/iswgraph_l.texi: Renamed from
50849         doc/glibc-functions/iswgraph_l.texi.
50850         * doc/posix-functions/iswlower_l.texi: Renamed from
50851         doc/glibc-functions/iswlower_l.texi.
50852         * doc/posix-functions/iswprint_l.texi: Renamed from
50853         doc/glibc-functions/iswprint_l.texi.
50854         * doc/posix-functions/iswpunct_l.texi: Renamed from
50855         doc/glibc-functions/iswpunct_l.texi.
50856         * doc/posix-functions/iswspace_l.texi: Renamed from
50857         doc/glibc-functions/iswspace_l.texi.
50858         * doc/posix-functions/iswupper_l.texi: Renamed from
50859         doc/glibc-functions/iswupper_l.texi.
50860         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50861         doc/glibc-functions/iswxdigit_l.texi.
50862         * doc/posix-functions/isxdigit_l.texi: Renamed from
50863         doc/glibc-functions/isxdigit_l.texi.
50864         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50865         doc/glibc-functions/mbsnrtowcs.texi.
50866         * doc/posix-functions/mkdtemp.texi: Renamed from
50867         doc/glibc-functions/mkdtemp.texi.
50868         * doc/posix-functions/newlocale.texi: Renamed from
50869         doc/glibc-functions/newlocale.texi.
50870         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50871         doc/glibc-functions/nl_langinfo_l.texi.
50872         * doc/posix-functions/open_memstream.texi: Renamed from
50873         doc/glibc-functions/open_memstream.texi.
50874         * doc/posix-functions/opterr.texi: Renamed from
50875         doc/glibc-functions/opterr.texi.
50876         * doc/posix-functions/optind.texi: Renamed from
50877         doc/glibc-functions/optind.texi.
50878         * doc/posix-functions/optopt.texi: Renamed from
50879         doc/glibc-functions/optopt.texi.
50880         * doc/posix-functions/psignal.texi: Renamed from
50881         doc/glibc-functions/psignal.texi.
50882         * doc/posix-functions/scandir.texi: Renamed from
50883         doc/glibc-functions/scandir.texi.
50884         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50885         doc/glibc-functions/sched_get_priority_min.texi.
50886         * doc/posix-functions/signgam.texi: Renamed from
50887         doc/glibc-functions/signgam.texi.
50888         * doc/posix-functions/stpcpy.texi: Renamed from
50889         doc/glibc-functions/stpcpy.texi.
50890         * doc/posix-functions/stpncpy.texi: Renamed from
50891         doc/glibc-functions/stpncpy.texi.
50892         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50893         doc/glibc-functions/strcasecmp_l.texi.
50894         * doc/posix-functions/strcoll_l.texi: Renamed from
50895         doc/glibc-functions/strcoll_l.texi.
50896         * doc/posix-functions/strfmon_l.texi: Renamed from
50897         doc/glibc-functions/strfmon_l.texi.
50898         * doc/posix-functions/strftime_l.texi: Renamed from
50899         doc/glibc-functions/strftime_l.texi.
50900         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50901         doc/glibc-functions/strncasecmp_l.texi.
50902         * doc/posix-functions/strndup.texi: Renamed from
50903         doc/glibc-functions/strndup.texi.
50904         * doc/posix-functions/strnlen.texi: Renamed from
50905         doc/glibc-functions/strnlen.texi.
50906         * doc/posix-functions/strsignal.texi: Renamed from
50907         doc/glibc-functions/strsignal.texi.
50908         * doc/posix-functions/strxfrm_l.texi: Renamed from
50909         doc/glibc-functions/strxfrm_l.texi.
50910         * doc/posix-functions/timer_gettime.texi: Renamed from
50911         doc/glibc-functions/timer_gettime.texi.
50912         * doc/posix-functions/tolower_l.texi: Renamed from
50913         doc/glibc-functions/tolower_l.texi.
50914         * doc/posix-functions/toupper_l.texi: Renamed from
50915         doc/glibc-functions/toupper_l.texi.
50916         * doc/posix-functions/towctrans_l.texi: Renamed from
50917         doc/glibc-functions/towctrans_l.texi.
50918         * doc/posix-functions/towlower_l.texi: Renamed from
50919         doc/glibc-functions/towlower_l.texi.
50920         * doc/posix-functions/towupper_l.texi: Renamed from
50921         doc/glibc-functions/towupper_l.texi.
50922         * doc/posix-functions/uselocale.texi: Renamed from
50923         doc/glibc-functions/uselocale.texi.
50924         * doc/posix-functions/vdprintf.texi: Renamed from
50925         doc/glibc-functions/vdprintf.texi.
50926         * doc/posix-functions/wcpcpy.texi:
50927         Renamed from doc/glibc-functions/wcpcpy.texi.
50928         * doc/posix-functions/wcpncpy.texi: Renamed from
50929         doc/glibc-functions/wcpncpy.texi.
50930         * doc/posix-functions/wcscasecmp.texi: Renamed from
50931         doc/glibc-functions/wcscasecmp.texi.
50932         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50933         doc/glibc-functions/wcscasecmp_l.texi.
50934         * doc/posix-functions/wcscoll_l.texi: Renamed from
50935         doc/glibc-functions/wcscoll_l.texi.
50936         * doc/posix-functions/wcsdup.texi: Renamed from
50937         doc/glibc-functions/wcsdup.texi.
50938         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50939         doc/glibc-functions/wcsncasecmp.texi.
50940         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50941         doc/glibc-functions/wcsncasecmp_l.texi.
50942         * doc/posix-functions/wcsnlen.texi: Renamed from
50943         doc/glibc-functions/wcsnlen.texi.
50944         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50945         doc/glibc-functions/wcsnrtombs.texi.
50946         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50947         doc/glibc-functions/wcsxfrm_l.texi.
50948         * doc/posix-functions/wctrans_l.texi: Renamed from
50949         doc/glibc-functions/wctrans_l.texi.
50950         * doc/posix-functions/wctype_l.texi: Renamed from
50951         doc/glibc-functions/wctype_l.texi.
50952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50953         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50954         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50955         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50956         these subsections.
50957         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50958         Remove sections.
50959
50960 2008-12-14  Bruno Haible  <bruno@clisp.org>
50961
50962         Update doc for POSIX:2008.
50963         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50964
50965 2008-12-14  Bruno Haible  <bruno@clisp.org>
50966
50967         Update doc for POSIX:2008.
50968         * doc/pastposix-functions/bcmp.texi: Renamed from
50969         doc/posix-functions/bcmp.texi.
50970         * doc/pastposix-functions/bcopy.texi: Renamed from
50971         doc/posix-functions/bcopy.texi.
50972         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50973         doc/posix-functions/bsd_signal.texi.
50974         * doc/pastposix-functions/bzero.texi: Renamed from
50975         doc/posix-functions/bzero.texi.
50976         * doc/pastposix-functions/ecvt.texi: Renamed from
50977         doc/posix-functions/ecvt.texi.
50978         * doc/pastposix-functions/fcvt.texi: Renamed from
50979         doc/posix-functions/fcvt.texi.
50980         * doc/pastposix-functions/ftime.texi: Renamed from
50981         doc/posix-functions/ftime.texi.
50982         * doc/pastposix-functions/gcvt.texi: Renamed from
50983         doc/posix-functions/gcvt.texi.
50984         * doc/pastposix-functions/getcontext.texi: Renamed from
50985         doc/posix-functions/getcontext.texi.
50986         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50987         doc/posix-functions/gethostbyaddr.texi.
50988         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50989         doc/posix-functions/gethostbyname.texi.
50990         * doc/pastposix-functions/getwd.texi: Renamed from
50991         doc/posix-functions/getwd.texi.
50992         * doc/pastposix-functions/h_errno.texi: Renamed from
50993         doc/posix-functions/h_errno.texi.
50994         * doc/pastposix-functions/index.texi: Renamed from
50995         doc/posix-functions/index.texi.
50996         * doc/pastposix-functions/makecontext.texi: Renamed from
50997         doc/posix-functions/makecontext.texi.
50998         * doc/pastposix-functions/mktemp.texi: Renamed from
50999         doc/posix-functions/mktemp.texi.
51000         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51001         doc/posix-functions/pthread_attr_getstackaddr.texi.
51002         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51003         doc/posix-functions/pthread_attr_setstackaddr.texi.
51004         * doc/pastposix-functions/rindex.texi: Renamed from
51005         doc/posix-functions/rindex.texi.
51006         * doc/pastposix-functions/scalb.texi: Renamed from
51007         doc/posix-functions/scalb.texi.
51008         * doc/pastposix-functions/setcontext.texi: Renamed from
51009         doc/posix-functions/setcontext.texi.
51010         * doc/pastposix-functions/swapcontext.texi: Renamed from
51011         doc/posix-functions/swapcontext.texi.
51012         * doc/pastposix-functions/ualarm.texi: Renamed from
51013         doc/posix-functions/ualarm.texi.
51014         * doc/pastposix-functions/usleep.texi: Renamed from
51015         doc/posix-functions/usleep.texi.
51016         * doc/pastposix-functions/vfork.texi: Renamed from
51017         doc/posix-functions/vfork.texi.
51018         * doc/pastposix-functions/wcswcs.texi: Renamed from
51019         doc/posix-functions/wcswcs.texi.
51020         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51021         (Function Substitutes): Update.
51022
51023 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51024
51025         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51026         m4/strerror.m4.
51027
51028 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51029             Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51032
51033 2008-12-13  Bruno Haible  <bruno@clisp.org>
51034
51035         * modules/strtoull (Depends-on): Remove unistd.
51036
51037 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51038
51039         * modules/strtoull (Depends-on): Add stdlib.
51040
51041 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51042
51043         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51044
51045 2008-12-10  Jim Meyering  <meyering@redhat.com>
51046
51047         gl_ASSERT: don't say assertions are disabled when they're not
51048         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51049         "checking whether to enable assertions... no", when they are in
51050         fact enabled.  This is solely a bug in the output of configure.
51051         In spite of saying "no", NDEBUG was not defined in that case.
51052         Also, as noted by Eric Blake, leave assertions enabled upon
51053         --enable-assert=INVALID.
51054
51055 2008-12-10  Bruno Haible  <bruno@clisp.org>
51056
51057         Change MODULES.html to refer to POSIX:2008 where possible.
51058         * MODULES.html.sh (POSIX2008_URL): New variable.
51059         (posix_headers): Remove sys/timeb, ucontext.
51060         (posix2001_headers): New variable.
51061         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51062         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51063         index, makecontext, mktemp, pthread_attr_getstackaddr,
51064         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51065         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51066         (posix2001_functions): New variable.
51067         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51068         otherwise.
51069
51070 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51071
51072         add missing include to parse-duration.c
51073         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51074         * modules/parse-duration (Depends-on): Add xalloc.
51075
51076         fix sed script reading maint.mk
51077         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51078         (syntax-check-rules): Use it.
51079
51080 2008-12-09  Bruno Haible  <bruno@clisp.org>
51081
51082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51083         MacOS X 10.4/PowerPC.
51084         Reported by Simon Josefsson.
51085
51086 2008-12-08  Jim Meyering  <meyering@redhat.com>
51087
51088         work around mingw's lack of some S_IF definitions
51089         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51090         Reported by Simon Josefsson.
51091
51092 2008-12-08  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51095         applied to variables. Needed on MacOS X 10.4/PowerPC.
51096         Reported by Simon Josefsson.
51097
51098 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51099         and Eric Blake  <ebb9@byu.net>
51100
51101         assert: honor --enable-assert
51102         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51103         order to honor --enable-assert, rather than treating it as a
51104         synonym for --disable-assert.
51105
51106 2008-12-08  Jim Meyering  <meyering@redhat.com>
51107
51108         * lib/posixtm.c: Remove now-useless declaration of mktime.
51109
51110         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51111
51112 2008-12-07  Bruno Haible  <bruno@clisp.org>
51113
51114         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51115         test_once): Mark functions as static.
51116         * tests/test-tls.c (test_tls): Likewise.
51117
51118 2008-12-07  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51121         iconv_register_autodetect.
51122
51123 2008-12-07  Jim Meyering  <meyering@redhat.com>
51124
51125         posixtm.c: avoid a warning
51126         * lib/posixtm.c (posixtime): Don't initialize tm0.
51127         It's no longer needed to placate gcc4's -Wuninitialized,
51128         and the attempt to placate would elicit a new warning.
51129
51130         unicodeio.c: mark unused parameters
51131         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51132         (fallback_failure_callback): Likewise.
51133
51134 2008-12-07  Bruno Haible  <bruno@clisp.org>
51135
51136         * gnulib-tool (func_create_testdir): When building the tests
51137         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51138         Reported by Simon Josefsson.
51139
51140 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51141
51142         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51143
51144 2008-12-06  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51147         Suggested by Eric Blake.
51148
51149 2008-12-06  Bruno Haible  <bruno@clisp.org>
51150
51151         Fix a c-stack test failure on MacOS X.
51152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51153         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51154         handler for SIGBUS as well.
51155         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51156         install a signal handler for SIGBUS as well.
51157         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51158
51159 2008-12-06  Bruno Haible  <bruno@clisp.org>
51160
51161         Advocacy documentation.
51162         * doc/gnulib-intro.texi (Benefits): New section.
51163         * doc/gnulib.texi: Update.
51164
51165 2008-12-06  Bruno Haible  <bruno@clisp.org>
51166
51167         Document the 'manywarnings' module.
51168         * doc/manywarnings.texi: New file.
51169         * doc/gnulib.texi: Include it.
51170
51171 2008-12-05  Eric Blake  <ebb9@byu.net>
51172
51173         tests: silence some gcc warnings
51174         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51175         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51176         type mismatches.
51177
51178 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51179             Bruno Haible  <bruno@clisp.org>
51180
51181         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51182
51183 2008-11-29  Jim Meyering  <meyering@redhat.com>
51184
51185         unicodeio.c: mark unused parameters
51186         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51187         (fallback_failure_callback): Likewise.
51188
51189         fts: fix a thinko
51190         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51191         (set_stat_type): Return S_IF*-valued "type" directly.
51192         Prompted by James Youngman's spotting a related bug.
51193         Confirmed by further testing through find.
51194
51195         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51196         * lib/fts.c (D_TYPE): Define.
51197         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51198         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51199         (s_ifmt_shift_bits): New function.
51200         (set_stat_type): New function.
51201         (fts_build): When not calling fts_stat, call set_stat_type
51202         to propagate dirent.d_type info to fts_read caller.
51203         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51204         fts_statp->st_mode type information may be valid.
51205
51206 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51207
51208         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51209         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51210         <sds@gnu.org>.
51211
51212 2008-11-20  Bruno Haible  <bruno@clisp.org>
51213
51214         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51215         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51216         INCLUDE_NEXT.
51217         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51218         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51219         * modules/math (Makefile.am): Substitute
51220         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51222
51223 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51224             Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/stdint.in.h: Define all type macros so that their expansion is
51227         a single typedef'ed token. Fixes a compilation failure in Boost which
51228         does "using ::int8_t;".
51229
51230 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51231
51232         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51233         gl_MANYWARN_ALL_GCC.
51234         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51235         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51236         * modules/manywarnings: New file.
51237         * MODULES.html.sh: Mention manywarnings module.
51238
51239 2008-11-18  Bruno Haible  <bruno@clisp.org>
51240
51241         * doc/gnulib-tool.texi (Unit tests): New section.
51242
51243 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51244
51245         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51246         paths like 'lib/po/foo.po'.
51247
51248 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51249
51250         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51251         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51252
51253 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51254
51255         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51256         parameter works.
51257
51258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51259
51260         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51261
51262 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51263
51264         * modules/parse-duration-tests: New file.
51265         * tests/test-parse-duration.sh: New file.
51266         * tests/test-parse-duration.c: New file.
51267
51268         New module 'parse-duration'.
51269         * lib/parse-duration.h: New file.
51270         * lib/parse-duration.c: New file.
51271         * modules/parse-duration: New file.
51272
51273 2008-11-17  Bruno Haible  <bruno@clisp.org>
51274
51275         * tests/test-select-out.sh: Comment out the first pipe test.
51276         Reported by Simon Josefsson.
51277
51278 2008-11-17  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51282         gl_HOSTENT.
51283
51284 2008-11-17  Bruno Haible  <bruno@clisp.org>
51285
51286         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51287         -lnetwork and -lnet. Needed for Haiku and BeOS.
51288
51289 2008-11-16  Bruno Haible  <bruno@clisp.org>
51290
51291         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51292
51293 2008-11-16  Bruno Haible  <bruno@clisp.org>
51294
51295         Avoid test failure on Haiku.
51296         * tests/test-fsync.c: Include <errno.h>.
51297         (main): Don't require that fsync (0) fails.
51298
51299 2008-11-15  Bruno Haible  <bruno@clisp.org>
51300
51301         New module 'hostent'.
51302         * modules/hostent: New file.
51303         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51304
51305 2008-11-15  Bruno Haible  <bruno@clisp.org>
51306
51307         New module 'servent'.
51308         * modules/servent: New file.
51309         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51310
51311 2008-11-15  Bruno Haible  <bruno@clisp.org>
51312
51313         Avoid generating same test program with two different rules.
51314         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51315         test-frexp to test-frexp-nolibm.
51316         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51317         test-frexpl to test-frexpl-nolibm.
51318
51319 2008-11-15  Bruno Haible  <bruno@clisp.org>
51320
51321         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51322         $(FREXPL_LIBM).
51323
51324 2008-11-15  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/netdb.in.h: Activate the definitions also when the system's
51327         <netdb.h> has 'struct addrinfo'.
51328         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51329         EAI_OVERFLOW or AI_NUMERICSERV.
51330         * doc/posix-headers/netdb.texi: Document the problem.
51331
51332 2008-11-15  Bruno Haible  <bruno@clisp.org>
51333
51334         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51335
51336         Make the 'sched' module work on platforms where <sched.h> exists but
51337         is incomplete (such as Haiku).
51338         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51339         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51340         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51341         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51342         HAVE_STRUCT_SCHED_PARAM.
51343         * modules/sched (Depends-on): Add include_next.
51344         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51345         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51346         * doc/posix-headers/sched.texi: Document the issue.
51347
51348 2008-11-13  Jim Meyering  <meyering@redhat.com>
51349
51350         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51351         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51352         test would fail due to the difference in the Report bugs to ...
51353         line.  The expected address is empty, "<>", while the actual
51354         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51355
51356 2008-11-12  Bruno Haible  <bruno@clisp.org>
51357
51358         lstat: don't compile lstat.c on systems lacking lstat
51359         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51360         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51361         Reported by Daniel P. Berrange via Jim Meyering.
51362
51363 2008-11-12  Jim Meyering  <meyering@redhat.com>
51364
51365         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51366
51367 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51368
51369         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51370         instead.
51371
51372 2008-11-12  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/unicodeio.c: Include unistr.h.
51375         (utf8_wctomb): Remove function.
51376         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51377
51378 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51379
51380         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51381         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51382         <bruno@clisp.org>.
51383         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51384
51385 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51386
51387         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51388         * doc/gnulib.texi: Add section for warnings.
51389
51390 2008-11-11  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/sockets.h: Add a comment.
51393
51394 2008-11-11  Karl Berry  <karl@gnu.org>
51395
51396         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51397
51398 2008-11-11  Eric Blake  <ebb9@byu.net>
51399
51400         fdl.texi: avoid git symlinks
51401         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51402
51403 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51404
51405         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51406
51407 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51408
51409         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51410         (gl_WARN_ADD): Substitute $2 if literal.
51411
51412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51413
51414         * m4/warning.m4: Remove.
51415
51416 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51417
51418         * m4/warnings.m4: Almost complete rewrite. :-)
51419
51420 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51421
51422         * modules/warnings: New module.
51423         * m4/warnings.m4: New file.
51424         * MODULES.html.sh: Mention warnings module.
51425         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51426         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51427
51428 2008-11-10  Eric Blake  <ebb9@byu.net>
51429
51430         fdl.texi: make a symlink to the latest version
51431         * doc/standards.texi: Revert today's earlier change.
51432         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51433         * doc/fdl.texi: ...and replace this with a symlink to the newer
51434         fdl-1.3.texi.
51435
51436 2008-11-10  Bruno Haible  <bruno@clisp.org>
51437
51438         * tests/test-select-fd.c (main): Accept the result file name as fourth
51439         argument.
51440         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51441         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51442
51443 2008-11-10  Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51446         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51447         as autoconf-substituted macros.
51448         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51450         gl_NETDB_H_DEFAULTS. Set these variables.
51451         * modules/netdb (Makefile.am): Substitute these variables.
51452
51453 2008-11-10  Eric Blake  <ebb9@byu.net>
51454
51455         standards.texi: include correct file for FDL 1.3
51456         * doc/standards.texi (GNU Free Documentation License): Change
51457         include file to pull in FDL 1.3, not 1.2.
51458
51459         fdl.texi: revert accidental change to license
51460         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51461
51462 2008-11-10  Bruno Haible  <bruno@clisp.org>
51463
51464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51465         cross-compiling guesses also when the native compile gives no result.
51466
51467 2008-11-10  Bruno Haible  <bruno@clisp.org>
51468
51469         * lib/spawni.c (__spawni): Force variable into the stack.
51470
51471 2008-11-10  Bruno Haible  <bruno@clisp.org>
51472
51473         Add support for Haiku.
51474         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51475         glibc and BeOS, but also on Haiku.
51476         * lib/fpurge.c (fpurge): Likewise.
51477         * lib/freadable.c (freadable): Likewise.
51478         * lib/freadahead.c (freadahead): Likewise.
51479         * lib/freading.c (freading): Likewise.
51480         * lib/freadptr.c (freadptr): Likewise.
51481         * lib/freadseek.c (freadptrinc): Likewise.
51482         * lib/fseeko.c (rpl_fseeko): Likewise.
51483         * lib/fseterr.c (fseterr): Likewise.
51484         * lib/fwritable.c (fwritable): Likewise.
51485         * lib/fwriting.c (fwriting): Likewise.
51486         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51487
51488 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51489
51490         * lib/config.charset: Treat Haiku like BeOS.
51491
51492 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51493
51494         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51495         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51496
51497 2008-11-08  Bruno Haible  <bruno@clisp.org>
51498
51499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51500         AC_CACHE_CHECK.
51501
51502 2008-11-08  Bruno Haible  <bruno@clisp.org>
51503
51504         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51505
51506 2008-11-08  Bruno Haible  <bruno@clisp.org>
51507
51508         * tests/test-select-fd.c: New file.
51509         * tests/test-select-in.sh: New file.
51510         * tests/test-select-out.sh: New file.
51511         * tests/test-select-stdin.c: New file.
51512         * modules/select-tests (Files): Add the new files.
51513         (Depends-on): Add gettimeofday.
51514         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51515         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51516         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51517
51518 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51519             Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51522
51523 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51524
51525         * build-aux/pmccabe2html: Added support for C++ source files.
51526
51527 2008-11-05  Ben Pfaff  <blp@gnu.org>
51528
51529         Fix lib/close.c build on Windows.
51530         * modules/close (Files): Add lib/w32sock.h.
51531
51532 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51533
51534         Accept Bison's NEWS format.
51535         * build-aux/announce-gen (print_news_deltas): Tweak
51536         $re_prefix.
51537
51538 2008-11-04  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/random_r (Maintainer): Add glibc.
51541
51542 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51543
51544         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51545         by karl@freefriends.org (Karl Berry).
51546         * doc/alloca.texi: Likewise.
51547         * doc/c-ctype.texi: Likewise.
51548         * doc/c-strcase.texi: Likewise.
51549         * doc/c-strcaseeq.texi: Likewise.
51550         * doc/c-strcasestr.texi: Likewise.
51551         * doc/c-strstr.texi: Likewise.
51552         * doc/c-strtod.texi: Likewise.
51553         * doc/c-strtold.texi: Likewise.
51554         * doc/ctime.texi: Likewise.
51555         * doc/error.texi: Likewise.
51556         * doc/fdl.texi: Likewise.
51557         * doc/gcd.texi: Likewise.
51558         * doc/getdate.texi: Likewise.
51559         * doc/gnulib-intro.texi: Likewise.
51560         * doc/gnulib-tool.texi: Likewise.
51561         * doc/gnulib.texi: Likewise.
51562         * doc/inet_ntoa.texi: Likewise.
51563         * doc/maintain.texi: Likewise.
51564         * doc/make-stds.texi: Likewise.
51565         * doc/quote.texi: Likewise.
51566         * doc/regexprops-generic.texi: Likewise.
51567         * doc/standards.texi: Likewise.
51568         * doc/verify.texi: Likewise.
51569         * doc/visibility.texi: Likewise.
51570         * doc/gnulib.texi (GNU Free Documentation License): Include
51571         fdl-1.3.texi instead of fdl.texi.
51572
51573 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51574
51575         * doc/fdl-1.3.texi: New file, from
51576         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51577         * modules/fdl-1.3: Add.
51578         * MODULES.html.sh: Add fdl-1.3.
51579
51580 2008-11-03  Bruno Haible  <bruno@clisp.org>
51581
51582         Make determination of absolute name of header file work with AIX xlc.
51583         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51584         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51585         preprocessing.
51586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51587         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51588
51589 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51590
51591         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51592         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51593         <ludo@gnu.org>.
51594
51595 2008-11-02  Bruno Haible  <bruno@clisp.org>
51596
51597         Mark 'strpbrk' obsolete.
51598         * modules/strpbrk (Status, Notice): New sections.
51599         * modules/strtok_r (Depends-on): Add strpbrk.
51600
51601 2008-11-02  Bruno Haible  <bruno@clisp.org>
51602
51603         Mark 'strdup' obsolete.
51604         * modules/strdup (Status, Notice): New sections.
51605         * modules/findprog (Depends-on): Add strdup.
51606         * modules/getaddrinfo (Depends-on): Likewise.
51607         * modules/localename (Depends-on): Likewise.
51608         * modules/relocatable-lib (Depends-on): Likewise.
51609         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51610         * modules/relocatable-prog (Depends-on): Likewise.
51611         * modules/trim (Depends-on): Likewise.
51612         * modules/unictype/gen-ctype (Depends-on): Likewise.
51613         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51614
51615 2008-11-02  Bruno Haible  <bruno@clisp.org>
51616
51617         Mark 'strcspn' obsolete.
51618         * modules/strcspn (Status, Notice): New sections.
51619
51620 2008-11-02  Bruno Haible  <bruno@clisp.org>
51621
51622         Mark 'rmdir' obsolete.
51623         * modules/rmdir (Status, Notice): New sections.
51624         * modules/clean-temp (Depends-on): Add rmdir.
51625         * modules/openat (Depends-on): Likewise.
51626
51627 2008-11-02  Bruno Haible  <bruno@clisp.org>
51628
51629         Mark 'raise' obsolete.
51630         * modules/raise (Status, Notice): New sections.
51631         (Include): Specify <signal.h>.
51632         * modules/stdio (Depends-on): Add raise.
51633         * modules/write (Depends-on): Likewise.
51634
51635 2008-11-02  Bruno Haible  <bruno@clisp.org>
51636
51637         Mark 'memset' obsolete.
51638         * modules/memset (Status, Notice): New sections.
51639
51640 2008-11-02  Bruno Haible  <bruno@clisp.org>
51641
51642         Mark 'memmove' obsolete.
51643         * modules/memmove (Status, Notice): New sections.
51644         * modules/argp (Depends-on): Add memmove.
51645         * modules/argz (Depends-on): Likewise.
51646         * modules/canonicalize (Depends-on): Likewise.
51647         * modules/canonicalize-lgpl (Depends-on): Likewise.
51648         * modules/fts (Depends-on): Likewise.
51649         * modules/getcwd (Depends-on): Likewise.
51650         * modules/human (Depends-on): Likewise.
51651         * modules/regex (Depends-on): Likewise.
51652         * modules/striconveh (Depends-on): Likewise.
51653         * modules/trim (Depends-on): Likewise.
51654         * modules/unistr/u8-move (Depends-on): Likewise.
51655         * modules/unistr/u16-move (Depends-on): Likewise.
51656         * modules/unistr/u32-move (Depends-on): Likewise.
51657
51658 2008-11-02  Bruno Haible  <bruno@clisp.org>
51659
51660         Mark 'memcpy' obsolete.
51661         * modules/memcpy (Status, Notice): New sections.
51662
51663 2008-11-02  Bruno Haible  <bruno@clisp.org>
51664
51665         Mark 'memcmp' obsolete.
51666         * modules/memcmp (Status, Notice): New sections.
51667         * modules/argmatch (Depends-on): Add memchr.
51668         * modules/backupfile (Depends-on): Likewise.
51669         * modules/c-strcasestr (Depends-on): Likewise.
51670         * modules/crypto/des (Depends-on): Likewise.
51671         * modules/csharpcomp (Depends-on): Likewise.
51672         * modules/fnmatch (Depends-on): Likewise.
51673         * modules/git-merge-changelog (Depends-on): Likewise.
51674         * modules/isnand (Depends-on): Likewise.
51675         * modules/isnand-nolibm (Depends-on): Likewise.
51676         * modules/isnanf (Depends-on): Likewise.
51677         * modules/isnanf-nolibm (Depends-on): Likewise.
51678         * modules/isnanl (Depends-on): Likewise.
51679         * modules/isnanl-nolibm (Depends-on): Likewise.
51680         * modules/mbchar (Depends-on): Likewise.
51681         * modules/memcoll (Depends-on): Likewise.
51682         * modules/quotearg (Depends-on): Likewise.
51683         * modules/regex (Depends-on): Likewise.
51684         * modules/relocatable-prog (Depends-on): Likewise.
51685         * modules/same (Depends-on): Likewise.
51686         * modules/signbit (Depends-on): Likewise.
51687         * modules/strcasestr-simple (Depends-on): Likewise.
51688         * modules/unictype/gen-ctype (Depends-on): Likewise.
51689         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51690         * modules/uniname/uniname (Depends-on): Likewise.
51691         * modules/unistr/u8-cmp (Depends-on): Likewise.
51692
51693 2008-11-02  Bruno Haible  <bruno@clisp.org>
51694
51695         Mark 'memchr' obsolete.
51696         * modules/memchr (Status, Notice): New sections.
51697         * modules/argp (Depends-on): Add memchr.
51698         * modules/base64 (Depends-on): Likewise.
51699         * modules/c-strcasestr (Depends-on): Likewise.
51700         * modules/chdir-long (Depends-on): Likewise.
51701         * modules/fnmatch (Depends-on): Likewise.
51702         * modules/getsubopt (Depends-on): Likewise.
51703         * modules/git-merge-changelog (Depends-on): Likewise.
51704         * modules/glob (Depends-on): Likewise.
51705         * modules/strcasestr-simple (Depends-on): Likewise.
51706         * modules/strnlen (Depends-on): Likewise.
51707
51708 2008-11-02  Bruno Haible  <bruno@clisp.org>
51709
51710         Mark 'atexit' obsolete.
51711         * modules/atexit (Status, Notice): New sections.
51712         * modules/chdir-long (Depends-on): Add atexit.
51713         * modules/wait-process (Depends-on): Likewise.
51714
51715 2008-11-02  Bruno Haible  <bruno@clisp.org>
51716
51717         * gnulib-tool: New option --with-obsolete.
51718         (func_usage): Document it.
51719         (func_modules_transitive_closure): Drop obsolete dependencies if
51720         incobsolete is not true.
51721         (func_import): Read and save the incobsolete variable to the cache.
51722
51723 2008-11-02  Bruno Haible  <bruno@clisp.org>
51724
51725         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51726         * gnulib-tool: New option --extract-status.
51727         (func_usage): Document it.
51728         (sed_extract_prog): Recognize it.
51729         (func_get_status): New function.
51730
51731 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51732
51733         * modules/sockets (License): Change from LGPL to LGPLv2+.
51734
51735 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51736
51737         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51738
51739 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51740
51741         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51742         Mention times and sys_times.
51743         * modules/sys_times, modules/sys_times-tests: New modules.
51744         * modules/times, modules/times-tests: Likewise
51745         * m4/sys_times_h.m4: New file.
51746         * lib/sys_times.in.h: Likewise
51747         * lib/times.c: Likewise.
51748         * tests/test-sys_times.c: Likewise.
51749         * tests/test-times.c: Likewise.
51750         * doc/posix-headers/sys_times.texi: Update.
51751         * doc/posix-functions/times.texi: Update.
51752
51753 2008-10-28  Jim Meyering  <meyering@redhat.com>
51754
51755         * modules/tempname (Depends-on): Add lstat.
51756
51757         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51758
51759 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51760
51761         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51762         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51763         using idiom used elsewhere in gnulib.
51764
51765 2008-10-27  Jim Meyering  <meyering@redhat.com>
51766
51767         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51768
51769 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51770
51771         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51772         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51773         programs.
51774         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51775
51776 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51777
51778         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51779
51780 2008-10-27  Bruno Haible  <bruno@clisp.org>
51781
51782         * tests/test-lstat.c: Include <stdio.h>.
51783
51784 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51785
51786         * modules/lstat-tests: New module.
51787         * tests/test-lstat.c: New file.
51788
51789 2008-10-26  Jim Meyering  <meyering@redhat.com>
51790
51791         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51792
51793 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51794             Bruno Haible  <bruno@clisp.org>
51795
51796         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51797         * modules/configmake (Include): Add a note that the include must come
51798         after all system headers.
51799         * lib/javaversion.c: Include configmake.h after all other includes.
51800
51801 2008-10-26  Bruno Haible  <bruno@clisp.org>
51802
51803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51804         HAVE_STRUCT_RANDOM_DATA to 1.
51805         (gl_STDLIB_H): Simplify.
51806
51807 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51808
51809         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51810         substitute HAVE_STRUCT_RANDOM_DATA.
51811         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51812         random_data.
51813         * modules/stdlib (Makefile.am): Substitute
51814         HAVE_STRUCT_RANDOM_DATA.
51815
51816 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51817
51818         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51819         * doc/gnulib-intro.texi (Copyright): Likewise.
51820
51821 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51822
51823         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51824         findings.
51825
51826 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51827             Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/unistd.in.h: Include <winsock2.h>.
51830         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51831         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51832         Provide dummy declarations.
51833         (gethostname): Override.
51834         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51835         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51836         gl_PREREQ_SYS_H_WINSOCK2.
51837         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51838         * doc/posix-functions/gethostname.texi: More details.
51839
51840 2008-10-25  Bruno Haible  <bruno@clisp.org>
51841
51842         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51843         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51844         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51845
51846         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51847         here ...
51848         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51850         gl_UNISTD_H_DEFAULTS.
51851
51852 2008-10-25  Eric Blake  <ebb9@byu.net>
51853
51854         signbit: avoid spurious compiler failure
51855         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51856         declarations inside function.
51857
51858 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51859             Bruno Haible  <bruno@clisp.org>
51860
51861         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51862         * modules/random_r (Depends-on): Add stdint.
51863
51864 2008-10-24  Bruno Haible  <bruno@clisp.org>
51865
51866         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51867         Eggert.
51868         * modules/strerror (License): Likewise.
51869
51870 2008-10-24  Jim Meyering  <meyering@redhat.com>
51871
51872         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51873         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51874
51875 2008-10-24  Eric Blake  <ebb9@byu.net>
51876
51877         getgroups: fix compilation when getgroups is available
51878         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51879         but with <config.h> override of getgroups disabled.
51880
51881 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51882
51883         * doc/gnulib.texi (Header files): Add note about C++ problems.
51884         Explained by Bruno Haible <bruno@clisp.org>.
51885
51886 2008-10-23  Bruno Haible  <bruno@clisp.org>
51887
51888         Define a dummy SA_NODEFER macro on Interix.
51889         * lib/signal.in.h (SA_NODEFER): Define fallback.
51890         Reported by Aleksey Cheusov <cheusov@tut.by> via
51891         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51892
51893 2008-10-23  Bruno Haible  <bruno@clisp.org>
51894
51895         * modules/freadahead (License): Change to LGPLv2+.
51896         Suggested by Simon Josefsson.
51897
51898 2008-10-23  Jim Meyering  <meyering@redhat.com>
51899
51900         random_r: new module
51901         * modules/random_r: New file.
51902         * m4/random_r.m4: New file.
51903         * lib/random_r.c: New file, from glibc.
51904         * modules/random_r-tests: New file.
51905         * tests/test-random_r.c: New file.
51906         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51907          Declare.
51908         (RAND_MAX): Define.
51909         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51910         * modules/stdlib: Substitute them, too.
51911         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51912         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51913         * doc/glibc-functions/random_r.texi: Likewise.
51914         * doc/glibc-functions/setstate_r.texi: Likewise.
51915         * doc/glibc-functions/srandom_r.texi: Likewise.
51916         * config/srclist.txt: Mention it.
51917
51918 2008-10-23  David Lutterkort  <lutter@redhat.com>
51919
51920         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51921         link requirement
51922
51923 2008-10-23  Jim Meyering  <meyering@redhat.com>
51924
51925         selinux-h: mark parameters of stub functions as intentionally unused
51926         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51927         * lib/se-context.in.h: Likewise.
51928
51929 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51930
51931         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51932
51933 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51934
51935         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51936
51937 2008-10-22  Eric Blake  <ebb9@byu.net>
51938
51939         glthread/thread: avoid compiler warning
51940         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51941         Add unreachable abort to silence compiler.
51942
51943 2008-10-22  Eric Blake  <ebb9@byu.net>
51944
51945         netdb: also supply struct addrinfo for cygwin 1.5.x
51946         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51947         older cygwin.
51948         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51949         cygwin.
51950         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51951
51952 2008-10-22  Bruno Haible  <bruno@clisp.org>
51953
51954         * users.txt: Update entry about pspp.
51955
51956 2008-10-21  Bruno Haible  <bruno@clisp.org>
51957
51958         Simplification.
51959         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51960         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51961
51962         Simplification.
51963         * lib/ioctl.c (ioctl): Don't undefine.
51964         * lib/socket.c (socket): Don't undefine.
51965
51966         Remove unused module indicator macros.
51967         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51968         GNULIB_$1 as a C macro.
51969
51970         * doc/posix-functions/close.texi: Undo last change.
51971         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51972         Windows platforms.
51973
51974 2008-10-21  Bruno Haible  <bruno@clisp.org>
51975
51976         Add gethostname() declaration to <unistd.h>.
51977         * lib/unistd.in.h (gethostname): New declaration.
51978         * lib/gethostname.c: Include <unistd.h>.
51979         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51980         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51982         and HAVE_GETHOSTNAME.
51983         * modules/gethostname (Depends-on): Add unistd.
51984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51985         (Include): Specify <unistd.h>.
51986         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51987         HAVE_GETHOSTNAME.
51988         * tests/test-gethostname.c: Include <unistd.h> first.
51989
51990 2008-10-21  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51993         * modules/select-tests (Depends-on): Likewise.
51994         Reported by Simon Josefsson.
51995
51996 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51997
51998         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51999         * lib/accept.c: New file, based on winsock.c.
52000         * lib/bind.c: New file, based on winsock.c.
52001         * lib/connect.c: New file, based on winsock.c.
52002         * lib/getpeername.c: New file, based on winsock.c.
52003         * lib/getsockname.c: New file, based on winsock.c.
52004         * lib/getsockopt.c: New file, based on winsock.c.
52005         * lib/ioctl.c: New file, based on winsock.c.
52006         * lib/listen.c: New file, based on winsock.c.
52007         * lib/recv.c: New file, based on winsock.c.
52008         * lib/recvfrom.c: New file, based on winsock.c.
52009         * lib/send.c: New file, based on winsock.c.
52010         * lib/sendto.c: New file, based on winsock.c.
52011         * lib/setsockopt.c: New file, based on winsock.c.
52012         * lib/shutdown.c: New file, based on winsock.c.
52013         * lib/socket.c: New file, based on winsock.c.
52014         * lib/w32sock.h: New file, based on winsock.c.
52015         * lib/winsock.c: Remove file.
52016         * modules/accept: Likewise.
52017         * modules/bind: Likewise.
52018         * modules/connect: Likewise.
52019         * modules/getpeername: Likewise.
52020         * modules/getsockname: Likewise.
52021         * modules/getsockopt: Likewise.
52022         * modules/ioctl: Likewise.
52023         * modules/listen: Likewise.
52024         * modules/recv: Likewise.
52025         * modules/recvfrom: Likewise.
52026         * modules/send: Likewise.
52027         * modules/sendto: Likewise.
52028         * modules/setsockopt: Likewise.
52029         * modules/shutdown: Likewise.
52030         * modules/socket: Use socket.c instead of winsock.c.
52031         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52032         * doc/posix-functions/accept.texi: Doc fix.
52033         * doc/posix-functions/bind.texi: Doc fix.
52034         * doc/posix-functions/close.texi: Doc fix.
52035         * doc/posix-functions/connect.texi: Doc fix.
52036         * doc/posix-functions/getpeername.texi: Doc fix.
52037         * doc/posix-functions/getsockname.texi: Doc fix.
52038         * doc/posix-functions/getsockopt.texi: Doc fix.
52039         * doc/posix-functions/ioctl.texi: Doc fix.
52040         * doc/posix-functions/listen.texi: Doc fix.
52041         * doc/posix-functions/recv.texi: Doc fix.
52042         * doc/posix-functions/recvfrom.texi: Doc fix.
52043         * doc/posix-functions/send.texi: Doc fix.
52044         * doc/posix-functions/sendto.texi: Doc fix.
52045         * doc/posix-functions/setsockopt.texi: Doc fix.
52046         * doc/posix-functions/shutdown.texi: Doc fix.
52047         * doc/posix-functions/socket.texi: Doc fix.
52048
52049 2008-10-20  Bruno Haible  <bruno@clisp.org>
52050
52051         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52052         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52053         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52054         as an alias for SIGABRT.
52055         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52056         (sigaction): Map it to SIGABRT.
52057         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52058
52059 2008-10-20  Bruno Haible  <bruno@clisp.org>
52060
52061         * lib/fts.c: Don't include lstat.h.
52062         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52063
52064         Move the lstat() declaration to <sys/stat.h>.
52065         * lib/lstat.h: Remove file.
52066         * lib/sys_stat.in.h: Add special invocation convention.
52067         (lstat): New declaration.
52068         * lib/lstat.c (orig_lstat): New function.
52069         (rpl_lstat): Use orig_lstat instead of lstat.
52070         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52071         AC_C_INLINE. Set REPLACE_LSTAT.
52072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52073         and REPLACE_LSTAT.
52074         * modules/lstat (Files): Remove lib/lstat.h.
52075         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52076         (Include): Specify <sys/stat.h> instead of lstat.h.
52077         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52078         REPLACE_LSTAT.
52079         * NEWS: Mention the change.
52080
52081 2008-10-20  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/posix_spawn-tests: New file.
52084         * tests/test-posix_spawn3.c: New file.
52085
52086 2008-10-20  Bruno Haible  <bruno@clisp.org>
52087
52088         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52089         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52090         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52091         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52092         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52093
52094 2008-10-20  Bruno Haible  <bruno@clisp.org>
52095
52096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52097         of posix_spawn on AIX 5.3.
52098
52099 2008-10-20  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52102
52103 2008-10-20  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52106         of AC_LANG_PROGRAM.
52107
52108 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52109
52110         * lib/netdb.in.h: Don't define GNU specific constants until they
52111         are supported or needed.  Reported by Bruno Haible
52112         <bruno@clisp.org>.
52113
52114 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52115
52116         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52117
52118 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52119
52120         * lib/getaddrinfo.h: Remove file.
52121         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52122         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52123         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52124         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52125         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52126         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52127         * tests/test-getaddrinfo.c: Likewise.
52128         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52129         * NEWS: Mention change.
52130
52131 2008-10-19  Bruno Haible  <bruno@clisp.org>
52132
52133         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52134
52135 2008-10-19  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/wait-process.c: Include simply <sys/wait.h>.
52138         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52139         WIFSTOPPED): Remove fallback definitions.
52140         * modules/wait-process (Depends-on): Add sys_wait.
52141
52142         New module 'sys_wait'.
52143         * modules/sys_wait: New file.
52144         * lib/sys_wait.in.h: New file, partially copied from
52145         lib/wait-process.c.
52146         * m4/sys_wait_h.m4: New file.
52147         * doc/posix-headers/sys_wait.texi: Mention the new module.
52148
52149 2008-10-19  Bruno Haible  <bruno@clisp.org>
52150
52151         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52152
52153 2008-10-19  Bruno Haible  <bruno@clisp.org>
52154
52155         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52156         * lib/wait-process.c (WAIT_T): Remove type.
52157         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52158         (wait_subprocess): Update.
52159
52160 2008-10-19  Bruno Haible  <bruno@clisp.org>
52161
52162         New module 'atoll'.
52163         * modules/atoll: New file.
52164         * lib/stdlib.in.h (atoll): New declaration.
52165         * lib/atoll.c: New file, from glibc with modifications.
52166         * m4/atoll.m4: New file.
52167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52168         HAVE_ATOLL.
52169         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52170         * doc/posix-functions/atoll.texi: Mention the new module.
52171
52172 2008-10-19  Bruno Haible  <bruno@clisp.org>
52173
52174         Add strtoull() declaration to <stdlib.h>.
52175         * lib/stdlib.in.h (strtoull): New declaration.
52176         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52177         Set HAVE_STRTOULL.
52178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52179         HAVE_STRTOULL.
52180         * modules/strtoull (Depends-on): Add stdlib.
52181         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52182         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52183         HAVE_STRTOULL.
52184
52185 2008-10-19  Bruno Haible  <bruno@clisp.org>
52186
52187         Add strtoll() declaration to <stdlib.h>.
52188         * lib/stdlib.in.h (strtoll): New declaration.
52189         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52190         Set HAVE_STRTOLL.
52191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52192         HAVE_STRTOLL.
52193         * modules/strtoll (Depends-on): Add stdlib.
52194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52195         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52196
52197 2008-10-19  Bruno Haible  <bruno@clisp.org>
52198
52199         * modules/bcopy (Depends-on): Add strings.
52200         (Include): Specify <strings.h>.
52201
52202 2008-10-19  Bruno Haible  <bruno@clisp.org>
52203
52204         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52205
52206 2008-10-19  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52209         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52210         mingw.
52211
52212 2008-10-19  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/atanl.c: Don't include isnanl.h.
52215         * lib/cosl.c: Likewise.
52216         * lib/ldexpl.c: Likewise.
52217         * lib/logl.c: Likewise.
52218         * lib/sinl.c: Likewise.
52219         * lib/sqrtl.c: Likewise.
52220         * lib/tanl.c: Likewise.
52221
52222         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52223         * lib/isnanf.h: Remove file.
52224         * lib/isnand.h: Remove file.
52225         * lib/isnanl.h: Remove file.
52226         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52227         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52228         macros.
52229         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52230         HAVE_ISNANF, don't define it as a C macro.
52231         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52232         HAVE_ISNAND, don't define it as a C macro.
52233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52234         HAVE_ISNANL, don't define it as a C macro.
52235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52236         HAVE_ISNAN[FDL].
52237         * modules/isnanf (Files): Remove lib/isnanf.h.
52238         (Depends-on): Add math.
52239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52240         (Include): Specify <math.h> instead of isnanf.h.
52241         * modules/isnand (Files): Remove lib/isnand.h.
52242         (Depends-on): Add math.
52243         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52244         (Include): Specify <math.h> instead of isnand.h.
52245         * modules/isnanl (Files): Remove lib/isnanl.h.
52246         (Depends-on): Add math.
52247         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52248         (Include): Specify <math.h> instead of isnanl.h.
52249         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52250         HAVE_ISNAN[FDL].
52251         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52252         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52253         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52254         * NEWS: Mention the change.
52255
52256 2008-10-18  Bruno Haible  <bruno@clisp.org>
52257
52258         Add getusershell(), setusershell(), endusershell() declarations to
52259         <unistd.h>.
52260         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52261         declarations.
52262         * lib/getusershell.c: Include unistd.h.
52263         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52264         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52265         HAVE_GETUSERSHELL.
52266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52267         and HAVE_GETUSERSHELL.
52268         * modules/getusershell (Depends-on): Add unistd, extensions.
52269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52270         (Include): Specify <unistd.h>.
52271         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52272         HAVE_GETUSERSHELL.
52273
52274 2008-10-18  Bruno Haible  <bruno@clisp.org>
52275
52276         Add a getloadavg() declaration to <stdlib.h>.
52277         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52278         getloadavg declaration.
52279         (getloadavg): New declaration.
52280         * lib/getloadavg.c: Include <stdlib.h> first.
52281         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52282         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52283         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52285         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52286         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52288         (Include): Specify <stdlib.h>.
52289         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52290         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52291
52292 2008-10-18  Bruno Haible  <bruno@clisp.org>
52293
52294         * lib/dirchownmod.c: Don't include lchmod.h.
52295
52296         Move the lchmod() declaration to <sys/stat.h>.
52297         * lib/lchmod.h: Remove file.
52298         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52299         (lchmod): New declaration, moved here from lib/lchown.h.
52300         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52301         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52303         and HAVE_LCHMOD.
52304         * modules/lchmod (Files): Remove lib/lchmod.h.
52305         (Depends-on): Add sys_stat, extensions.
52306         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52307         (Include): Specify <sys/stat.h> instead of lchmod.h.
52308         * modules/sys_stat (Depends-on): Add link-warning.
52309         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52310         definition of GL_LINK_WARNING.
52311         * NEWS: Mention the change.
52312
52313 2008-10-18  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/fchdir.c: Don't include dirfd.h.
52316         * lib/fts.c: Likewise.
52317         * lib/getcwd.c: Likewise.
52318         * lib/glob.c: Likewise.
52319
52320         Move the dirfd() declaration to <dirent.h>.
52321         * lib/dirfd.h: Remove file.
52322         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52323         (dirfd): New declaration.
52324         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52326         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52327         HAVE_DECL_DIRFD.
52328         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52329         HAVE_DECL_DIRFD.
52330         * modules/dirfd (Files): Remove lib/dirfd.h.
52331         (Depends-on): Add dirent, extensions.
52332         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52333         (Include): Specify <dirent.h> instead of dirfd.h.
52334         * modules/dirent (Depends-on): Add link-warning.
52335         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52336         definition of GL_LINK_WARNING.
52337         * NEWS: Mention the change.
52338
52339 2008-10-18  Bruno Haible  <bruno@clisp.org>
52340
52341         Move the euidaccess() declaration to <unistd.h>.
52342         * lib/euidaccess.h: Remove file.
52343         * lib/unistd.in.h (euidaccess): New declaration.
52344         * lib/euidaccess.c: Don't include euidaccess.h.
52345         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52346         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52348         and HAVE_EUIDACCESS.
52349         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52350         (Depends-on): Add unistd.
52351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52352         (Include): Specify <unistd.h> instead of euidaccess.h.
52353         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52354         HAVE_EUIDACCESS.
52355         * NEWS: Mention the change.
52356
52357 2008-10-18  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52360
52361         Move the getdomainname() declaration to <unistd.h>.
52362         * lib/getdomainname.h: Remove file.
52363         * lib/unistd.in.h (getdomainname): New declaration.
52364         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52365         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52366         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52367         HAVE_GETDOMAINNAME.
52368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52369         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52370         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52371         (Depends-on): Add unistd, extensions.
52372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52373         (Includes): Specify <unistd.h> instead of getdomainname.h.
52374         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52375         HAVE_GETDOMAINNAME.
52376         * NEWS: Mention the change.
52377
52378 2008-10-18  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/dirent: New file.
52381         * m4/dirent_h.m4: New file.
52382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52383         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52384         * modules/fchdir (Files): Remove lib/dirent.in.h.
52385         (Depends-on): Add dirent.
52386         (Makefile.am): Move rules to modules/dirent.
52387         * doc/posix-headers/dirent.texi: Mention the new module.
52388
52389 2008-10-18  Bruno Haible  <bruno@clisp.org>
52390
52391         Avoid -Wunused-parameter warnings in public gnulib header files.
52392         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52393         macro.
52394         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52395
52396 2008-10-18  Bruno Haible  <bruno@clisp.org>
52397
52398         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52399         * doc/glibc-functions/error.texi: Mention the module 'error'.
52400         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52401         * doc/glibc-functions/getdomainname.texi: Mention the module
52402         'getdomainname'.
52403         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52404         * doc/glibc-functions/getpagesize.texi: Mention the module
52405         'getpagesize'.
52406         * doc/glibc-functions/getusershell.texi: Mention the module
52407         'getusershell'.
52408         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52409         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52410         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52411         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52412         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52413         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52414         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52415         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52416         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52417         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52418         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52419         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52420         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52421         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52422
52423 2008-10-17  Bruno Haible  <bruno@clisp.org>
52424
52425         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52426         HP-UX and IRIX, use -0.0L.
52427         * tests/test-ceill.c (minus_zero): Likewise.
52428         * tests/test-floorl.c (minus_zero): Likewise.
52429         * tests/test-frexpl.c (minus_zero): Likewise.
52430         * tests/test-isnan.c (minus_zerol): Likewise.
52431         * tests/test-isnanl.h (minus_zero): Likewise.
52432         * tests/test-ldexpl.c (minus_zero): Likewise.
52433         * tests/test-roundl.c (minus_zero): Likewise.
52434         * tests/test-signbit.c (minus_zerol): Likewise.
52435         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52436         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52437         * tests/test-truncl.c (minus_zero): Likewise.
52438         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52439         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52440         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52441         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52442
52443 2008-10-17  Bruno Haible  <bruno@clisp.org>
52444
52445         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52446         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52447         that it gets activated only for gcc >= 3.0.
52448         * lib/dirent.in.h: Likewise.
52449         * lib/errno.in.h: Likewise.
52450         * lib/fcntl.in.h: Likewise.
52451         * lib/float.in.h: Likewise.
52452         * lib/iconv.in.h: Likewise.
52453         * lib/inttypes.in.h: Likewise.
52454         * lib/locale.in.h: Likewise.
52455         * lib/math.in.h: Likewise.
52456         * lib/netdb.in.h: Likewise.
52457         * lib/netinet_in.in.h: Likewise.
52458         * lib/search.in.h: Likewise.
52459         * lib/signal.in.h: Likewise.
52460         * lib/spawn.in.h: Likewise.
52461         * lib/stdarg.in.h: Likewise.
52462         * lib/stdint.in.h: Likewise.
52463         * lib/stdio.in.h: Likewise.
52464         * lib/stdlib.in.h: Likewise.
52465         * lib/string.in.h: Likewise.
52466         * lib/strings.in.h: Likewise.
52467         * lib/sys_file.in.h: Likewise.
52468         * lib/sys_ioctl.in.h: Likewise.
52469         * lib/sys_select.in.h: Likewise.
52470         * lib/sys_socket.in.h: Likewise.
52471         * lib/sys_stat.in.h: Likewise.
52472         * lib/sys_time.in.h: Likewise.
52473         * lib/sysexits.in.h: Likewise.
52474         * lib/time.in.h: Likewise.
52475         * lib/unistd.in.h: Likewise.
52476         * lib/wchar.in.h: Likewise.
52477         * lib/wctype.in.h: Likewise.
52478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52479
52480 2008-10-17  Jim Meyering  <meyering@redhat.com>
52481
52482         ignore-value: don't depend on inline module
52483         * modules/ignore-value (Depends-on): Remove 'inline'.
52484         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52485         Suggestion from Bruno Haible.
52486
52487 2008-10-17  Bruno Haible  <bruno@clisp.org>
52488
52489         New implementation of condition variables for Win32.
52490         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52491         (gl_linked_waitqueue_t): New type.
52492         (gl_cond_t): Use it.
52493         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52494         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52495         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52496         (glthread_cond_init_func, glthread_cond_wait_func,
52497         glthread_cond_timedwait_func, glthread_cond_signal_func,
52498         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52499         Reimplemented on the basis of gl_linked_waitqueue_t.
52500         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52501         gl_waitqueue_t.
52502         (gl_rwlock_t): Update.
52503         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52504
52505 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52506
52507         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52508         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52509
52510 2008-10-17  Jim Meyering  <meyering@redhat.com>
52511
52512         ignore-value: new module
52513         * modules/ignore-value: New file.
52514         * lib/ignore-value.h: New file.
52515         * MODULES.html.sh (Compiler warning management): New section,
52516         just for this module.  More to come.
52517
52518 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52519
52520         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52521         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52522         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52523
52524 2008-10-16  Jim Meyering  <meyering@redhat.com>
52525
52526         openat-die.c: avoid 'no previous prototype' warning
52527         * lib/openat-die.c: Include "openat.h".
52528         Reported by Reuben Thomas <rrt@sc3d.org>.
52529
52530 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52531
52532         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52533         * lib/netdb.in.h: Fix typo.
52534         Reported by Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/netdb.in.h: Include sys/socket.h for platforms without
52537         netdb.h, to get structures like hostent on MinGW.
52538         * modules/netdb (Depends-on): Add sys_socket.
52539
52540 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52541
52542         * modules/netdb, modules/netdb-tests: New file.
52543         * m4/netdb_h.m4: New file.
52544         * lib/netdb.in.h: Add, currently just an empty file pending
52545         definitions.
52546         * tests/test-netdb.c: New file.
52547         * doc/posix-headers/netdb.texi: Mention that we replace it if
52548         needed.
52549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52550         netdb.
52551
52552 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52553
52554         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52555         with code.
52556
52557 2008-10-13  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/glthread/cond.c (glthread_cond_wait_func,
52560         glthread_cond_timedwait_func): Add a comment.
52561
52562 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52563
52564         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52565         * tests/test-select.c: Likewise,
52566
52567 2008-10-13  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/glthread/cond.c (glthread_cond_wait_func,
52570         glthread_cond_timedwait_func): Fix variable name.
52571         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52572
52573 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52574
52575         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52577         struct sockaddr.sa_len.
52578         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52579
52580 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52581
52582         * build-aux/pmccabe2html: Add css and css_url parameters.
52583
52584 2008-10-12  Bruno Haible  <bruno@clisp.org>
52585
52586         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52587         calling aclx_get.
52588         Reported by Rainer Tammer <tammer@tammer.net>.
52589
52590 2008-10-12  Bruno Haible  <bruno@clisp.org>
52591
52592         Use msvcrt aware primitives for creation/termination of Win32 threads.
52593         * lib/glthread/thread.c: Include <process.h>.
52594         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52595         (wrapper_func): Update signature.
52596         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52597
52598 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52599             Bruno Haible  <bruno@clisp.org>
52600
52601         Provide a Win32 implementation of the 'cond' module.
52602         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52603         * lib/glthread/cond.c (glthread_cond_init_func,
52604         glthread_cond_wait_func, glthread_cond_timedwait_func,
52605         glthread_cond_signal_func, glthread_cond_broadcast_func,
52606         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52607         * modules/cond (Dependencies): Add gettimeofday.
52608
52609 2008-10-11  Bruno Haible  <bruno@clisp.org>
52610
52611         Make sleep work on older versions of mingw.
52612         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52613         only whether it exists.
52614         * doc/posix-functions/sleep.texi: Mention the problem with older
52615         versions of mingw.
52616
52617 2008-10-11  Bruno Haible  <bruno@clisp.org>
52618
52619         New module 'shutdown'.
52620         * modules/shutdown: New file.
52621         * lib/sys_socket.in.h (shutdown): New declaration.
52622         * lib/winsock.c (shutdown): New function.
52623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52624         GNULIB_SHUTDOWN.
52625         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52626         * doc/posix-functions/shutdown.texi: Document the new module.
52627
52628 2008-10-11  Jim Meyering  <meyering@redhat.com>
52629
52630         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52631
52632 2008-10-11  Bruno Haible  <bruno@clisp.org>
52633
52634         New module 'fclose'.
52635         * modules/fclose: New file.
52636         * lib/stdio.in.h (fclose): New declaration.
52637         * lib/fclose.c: New file.
52638         * m4/fclose.m4: New file.
52639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52640         REPLACE_FCLOSE.
52641         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52642         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52643         REPLACE_FCLOSE.
52644         * modules/close (Depends-on): fclose.
52645         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52646
52647 2008-10-11  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52650         set errno and don't call _close.
52651
52652 2008-10-10  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52655         ACL, not afterwards. Fixes test failure on Cygwin.
52656
52657 2008-10-09  Ben Pfaff  <blp@gnu.org>
52658
52659         * build-aux/announce-gen: Fix gnulib version related part of usage
52660         message.  Die with a useful error message if no tarballs are
52661         found.
52662
52663 2008-10-10  Jim Meyering  <meyering@redhat.com>
52664
52665         bootstrap: use git's --depth=N option only if it's supported
52666         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52667         recognize the --depth option.  Reported by Pádraig Brady.
52668
52669 2008-10-09  Bruno Haible  <bruno@clisp.org>
52670
52671         New module 'ioctl'.
52672         * modules/ioctl: New file.
52673         * lib/sys_socket.in.h (ioctl): Remove declaration.
52674         * lib/winsock.c: Include <sys/ioctl.h>.
52675         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52676         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52677         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52678         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52679         * doc/posix-functions/ioctl.texi: Mention the new module.
52680
52681 2008-10-09  Bruno Haible  <bruno@clisp.org>
52682
52683         New module 'sys_ioctl'.
52684         * lib/sys_ioctl.in.h: New file.
52685         * m4/sys_ioctl_h.m4: New file.
52686         * modules/sys_ioctl: New file.
52687         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52688
52689 2008-10-09  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52692         * lib/winsock.c: Include <stdarg.h>.
52693         (rpl_ioctl): Change to second argument 'int' and then varargs.
52694
52695 2008-10-09  Bruno Haible  <bruno@clisp.org>
52696
52697         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52698         when the sys_socket module is present and the system has <winsock2.h>.
52699
52700 2008-10-09  Bruno Haible  <bruno@clisp.org>
52701
52702         * doc/posix-functions/close.texi: Mention module 'close' instead of
52703         module 'sys_socket'.
52704
52705 2008-10-09  Bruno Haible  <bruno@clisp.org>
52706
52707         * doc/glibc-headers/sys_ioctl.texi: New file.
52708         * doc/gnulib.texi: Include it.
52709
52710 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52711             Bruno Haible  <bruno@clisp.org>
52712
52713         Combine the two replacements of 'close'.
52714         * lib/sys_socket.in.h (close): Define to a reminder to include
52715         <unistd.h>.
52716         (_gl_close_fd_maybe_socket): New declaration.
52717         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52718         * lib/winsock.c (close): Remove undefinition.
52719         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52720         needed for the gnulib module 'close'.
52721         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52722         define to an error symbol or to a warning, if suitable.
52723         * lib/close.c: Include <sys/socket.h>.
52724         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52726         UNISTD_H_HAVE_WINSOCK2_H.
52727         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52729         UNISTD_H_HAVE_WINSOCK2_H.
52730         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52731         (configure.ac): Set a module indicator.
52732         (Makefile.am): Substitute GNULIB_CLOSE.
52733         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52734         * modules/poll-tests (Depends-on): Add close.
52735         * modules/select-tests (Depends-on): Likewise.
52736
52737 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52738             Bruno Haible  <bruno@clisp.org>
52739
52740         New module 'close'.
52741         * modules/close: New file.
52742         * lib/unistd.in.h (close): Move declaration out of the
52743         FCHDIR_REPLACEMENT scope.
52744         (_gl_unregister_fd): New declaration.
52745         * lib/close.c: New file.
52746         * lib/fchdir.c (rpl_close): Remove function.
52747         * m4/close.m4: New file.
52748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52749         close.
52750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52751         REPLACE_CLOSE.
52752         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52753         REPLACE_CLOSE.
52754         * modules/fchdir (Depends-on): Add close.
52755
52756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52757             Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/fcntl.in.h (open): Simplify conditionals.
52760         (_gl_register_fd): New declaration.
52761         * lib/fchdir.c (rpl_open): Remove function.
52762         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52763         also.
52764         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52766         open.
52767
52768 2008-10-09  Jim Meyering  <meyering@redhat.com>
52769
52770         GNUmakefile: use the more name-space-friendly "_version"
52771         * top/GNUmakefile (_dummy): Update.
52772         (_version): Rename from "version".
52773
52774 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52775             Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52778         rpl_close.
52779         (_gl_register_fd): New function, extracted from rpl_open.
52780         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52781         (rpl_open, rpl_opendir): Use _gl_register_fd.
52782
52783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52784
52785         Fix organization of 'open' replacement.
52786         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52787         (gl_FUNC_OPEN): Use it.
52788         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52789
52790 2008-10-08  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52793
52794 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52795
52796         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52797         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52798         listen).
52799
52800 2008-10-08  Eric Blake  <ebb9@byu.net>
52801
52802         GNUmakefile: add 'make version' target
52803         * top/GNUmakefile (_curr-ver): Split version update rules...
52804         (version): ...into a target.
52805
52806 2008-10-07  Bruno Haible  <bruno@clisp.org>
52807
52808         Use a more portable replacement expression for -0.0L.
52809         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52810         instead of -0.0L. Fix m4 quotation.
52811
52812         * tests/test-signbit.c: Include <float.h>.
52813         (minus_zero): New variable.
52814         (test_signbitl): Use minus_zero instead of -zero.
52815         * modules/signbit-tests (Depends-on): Add float.
52816
52817         * tests/test-ceill.c: Include <float.h>.
52818         (zero): Remove variable.
52819         (minus_zero): New variable.
52820         (main): Use minus_zero instead of -zero.
52821         * modules/ceill-tests (Depends-on): Add float.
52822
52823         * tests/test-floorl.c: Include <float.h>.
52824         (zero): Remove variable.
52825         (minus_zero): New variable.
52826         (main): Use minus_zero instead of -zero.
52827         * modules/floorl-tests (Depends-on): Add float.
52828
52829         * tests/test-roundl.c: Include <float.h>.
52830         (zero): Remove variable.
52831         (minus_zero): New variable.
52832         (main): Use minus_zero instead of -zero.
52833         * modules/roundl-tests (Depends-on): Add float.
52834
52835         * tests/test-truncl.c: Include <float.h>.
52836         (zero): Remove variable.
52837         (minus_zero): New variable.
52838         (main): Use minus_zero instead of -zero.
52839         * modules/truncl-tests (Depends-on): Add float.
52840
52841         * tests/test-frexpl.c (zero): Remove variable.
52842         (minus_zero): New variable.
52843         (main): Use minus_zero instead of -zero.
52844         * modules/frexpl-tests (Depends-on): Add float.
52845
52846         * tests/test-isnan.c (zerol): Remove variable.
52847         (minus_zerol): New variable.
52848         (test_long_double): Use minus_zerol instead of -zerol.
52849         * modules/isnan-tests (Depends-on): Add float.
52850
52851         * tests/test-isnanl.h (zero): Remove variable.
52852         (minus_zero): New variable.
52853         (main): Use minus_zero instead of -zero.
52854         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52855         * modules/isnanl-tests (Depends-on): Add float.
52856
52857         * tests/test-ldexpl.c (zero): Remove variable.
52858         (minus_zero): New variable.
52859         (main): Use minus_zero instead of -zero.
52860         * modules/ldexpl-tests (Depends-on): Add float.
52861
52862         * tests/test-snprintf-posix.h (zerol): Remove variable.
52863         (minus_zerol): New variable.
52864         (test_function): Use minus_zerol instead of -zerol.
52865         * modules/snprintf-posix-tests (Depends-on): Add float.
52866         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52867
52868         * tests/test-sprintf-posix.h (zerol): Remove variable.
52869         (minus_zerol): New variable.
52870         (test_function): Use minus_zerol instead of -zerol.
52871         * modules/sprintf-posix-tests (Depends-on): Add float.
52872         * modules/vsprintf-posix-tests (Depends-on): Add float.
52873
52874         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52875         (minus_zerol): New variable.
52876         (test_function): Use minus_zerol instead of -zerol.
52877         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52878
52879         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52880         (minus_zerol): New variable.
52881         (test_function): Use minus_zerol instead of -zerol.
52882         * modules/vasprintf-posix-tests (Depends-on): Add float.
52883
52884 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52885
52886         * MODULES.html.sh (Support for building documentation): Mention
52887         pmccabe2html.  Sort entries.
52888
52889         Add pmccabe2html module, from gnupdf.
52890         * build-aux/pmccabe.css: New file.
52891         * build-aux/pmccabe2html: New file.
52892         * m4/pmccabe2html.m4: New file.
52893         * modules/pmccabe2html: New file.
52894
52895 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52896
52897         flock: new module
52898         * MODULES.html.sh: Add to list of modules.
52899         * lib/flock.c: flock implementation for Windows and Unix systems
52900         which have fcntl.
52901         * doc/glibc-functions/flock.texi: Update documentation.
52902         * lib/sys_file.in.h: <sys/file.h> header file.
52903         * m4/flock.m4: M4 macros.
52904         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52905         * modules/flock: flock module.
52906         * modules/flock-tests: flock tests module.
52907         * modules/sys_file: sys/file.h module.
52908         * tests/test-flock.c: test suite for flock.
52909
52910 2008-10-06  Jim Meyering  <meyering@redhat.com>
52911
52912         bootstrap: check for LT_INIT more portably still ;-)
52913         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52914         Spotted by Bruno Haible.
52915
52916 2008-10-06  Eric Blake  <ebb9@byu.net>
52917
52918         test-signbit: avoid tripping Irix cc bug on -0.0L
52919         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52920         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52921         entire testsuite consistent and avoids an Irix 6.2 bug.
52922
52923 2008-10-05  Bruno Haible  <bruno@clisp.org>
52924             Jim Meyering  <jim@meyering.net>
52925
52926         Add an option for ignoring EPIPE during close_stdout.
52927         * lib/closeout.h: Include <stdbool.h>.
52928         (close_stdout_set_ignore_EPIPE): New declaration.
52929         * lib/closeout.c: Include <stdbool.h>.
52930         (ignore_EPIPE): New variable.
52931         (close_stdout_set_ignore_EPIPE): New function.
52932         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52933         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52934         failure.
52935         * modules/closeout (Depends-on): Add stdbool.
52936
52937 2008-10-05  Bruno Haible  <bruno@clisp.org>
52938
52939         * modules/accept: New file.
52940         * modules/bind: New file.
52941         * modules/connect: New file.
52942         * modules/getpeername: New file.
52943         * modules/getsockname: New file.
52944         * modules/getsockopt: New file.
52945         * modules/listen: New file.
52946         * modules/recv: New file.
52947         * modules/recvfrom: New file.
52948         * modules/send: New file.
52949         * modules/sendto: New file.
52950         * modules/setsockopt: New file.
52951         * modules/socket: New file.
52952         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52953         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52954         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52955         the particular module is requested. Add a link warning when the
52956         particular module is not requested.
52957         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52958         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52959         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52960         the particular module is requested.
52961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52962         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52963         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52964         * modules/sys_socket (Depends-on): Add link-warning.
52965         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52966         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52967         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52968         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52969         GL_LINK_WARNING.
52970         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52971         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52972         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52973         * doc/posix-functions/getpeername.texi: Mention the new module
52974         'getpeername'.
52975         * doc/posix-functions/getsockname.texi: Mention the new module
52976         'getsockname'.
52977         * doc/posix-functions/getsockopt.texi: Mention the new module
52978         'getsockopt'.
52979         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52980         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52981         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52982         * doc/posix-functions/send.texi: Mention the new module 'send'.
52983         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52984         * doc/posix-functions/setsockopt.texi: Mention the new module
52985         'setsockopt'.
52986         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52987         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52988         listen, connect, accept.
52989         * modules/select-tests (Depends-on): Likewise.
52990
52991 2008-10-05  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/winsock.c (strerror): Remove unused #undef.
52994         (rpl_close): Remove unused local variable.
52995
52996         * modules/sys_socket (Depends-on); Add errno.
52997
52998 2008-10-05  Bruno Haible  <bruno@clisp.org>
52999
53000         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53001         (select): Add a link warning when the 'select' module is not used.
53002         * modules/sys_select (Depends-on): Add link-warning.
53003         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53004         Suggested by Paolo Bonzini.
53005
53006 2008-10-05  Jim Meyering  <meyering@redhat.com>
53007
53008         bootstrap: check for LT_INIT more portably
53009         * build-aux/bootstrap: Avoid using grep -E, since it's not
53010         portable enough.  Suggestion from Bruno Haible.
53011
53012 2008-10-05  Bruno Haible  <bruno@clisp.org>
53013
53014         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53015         as being fixed by gnulib.
53016
53017 2008-10-05  Bruno Haible  <bruno@clisp.org>
53018
53019         * modules/select-tests: New file, mostly copied from
53020         modules/sys_select-tests.
53021         * tests/test-select.c: New file, mostly copied from
53022         tests/test-sys_select.c.
53023         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53024         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53025         (Makefile.am): Remove test_sys_select_LDADD.
53026
53027         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53028         to an undefined symbol, for an error message.
53029         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53030         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53031         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53032         winsock-select.c here.
53033         * modules/sys_select (Files): Remove lib/winsock-select.c.
53034         (Depends-on): Remove alloca.
53035         (Makefile.am): Substitute GNULIB_SELECT.
53036         * modules/select: New file.
53037         * doc/posix-functions/select.texi: Update.
53038
53039 2008-10-05  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53042         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53043         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53044         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53045         getdtablesize.
53046         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53047         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53048
53049 2008-10-05  Bruno Haible  <bruno@clisp.org>
53050
53051         * modules/getdtablesize-tests: New file.
53052         * tests/test-getdtablesize.c: New file.
53053
53054         New module 'getdtablesize'.
53055         * lib/unistd.in.h (getdtablesize): New declaration.
53056         * lib/getdtablesize.c: New file.
53057         * m4/getdtablesize.m4: New file.
53058         * modules/getdtablesize: New file.
53059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53060         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53061         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53062         HAVE_GETDTABLESIZE.
53063         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53064
53065 2008-10-05  Bruno Haible  <bruno@clisp.org>
53066
53067         * modules/sched (Makefile.am): Fix typo.
53068         Reported by Simon Josefsson.
53069
53070 2008-10-05  Jim Meyering  <meyering@redhat.com>
53071
53072         bootstrap: check for LT_INIT, too
53073         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53074         are deprecated.  Suggestion from Ralf Wildenhues.
53075
53076 2008-10-05  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53079         overriding them by ours.
53080         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53081
53082 2008-10-05  Jim Meyering  <meyering@redhat.com>
53083
53084         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53085         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53086         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53087
53088 2008-10-04  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/dup2 (License): Change to LGPLv2+.
53091         * modules/sleep (License): Likewise.
53092         * modules/perror (License): Likewise.
53093         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53094         Blake.
53095         * modules/signal (License): Likewise.
53096         * modules/sigprocmask (License): Likewise.
53097         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53098         Meyering.
53099
53100 2008-10-04  Bruno Haible  <bruno@clisp.org>
53101
53102         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53103         Reported by Rainer Tammer <tammer@tammer.net>.
53104
53105 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53106             Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53109         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53110         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53111
53112 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53113
53114         filevercmp: new module
53115         * lib/filevercmp.h: New function filevercmp comparing version strings.
53116         * lib/filevercmp.c: Implementation of filevercmp function.
53117         * modules/filevercmp: Module metadata.
53118         * tests/test-filevercmp.c: Unit test for new module.
53119         * modules/filevercmp-tests: Unit test metadata.
53120         * MODULES.html.sh: Add filevercmp module.
53121
53122 2008-10-03  Bruno Haible  <bruno@clisp.org>
53123
53124         * lib/c-ctype.h: Add comment.
53125         Reported by Jim Meyering.
53126
53127 2008-10-02  Bruno Haible  <bruno@clisp.org>
53128
53129         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53130
53131 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53132
53133         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53134         name of bootstrap.conf accordingly.
53135
53136 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53137
53138         * build-aux/bootstrap: Install git-merge-changelog configuration
53139         items into .gitconfig if needed.
53140
53141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53142
53143         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53144         git repository, and initialize/update it accordingly.
53145
53146 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53147
53148         * modules/fsync-tests: New file.
53149         * tests/test-fsync.c: New file.
53150
53151         New module 'fsync'.
53152         * lib/fsync.c: New file.
53153         * m4/fsync.m4: New file.
53154         * modules/fsync: New file.
53155         * lib/unistd.in.h (fsync): New declaration.
53156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53157         GNULIB_FSYNC and HAVE_FSYNC.
53158         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53159         * MODULES.html.sh (posix_functions): Add fsync.
53160         * doc/posix-functions/fsync.texi: Mention the new module.
53161
53162 2008-10-02  Jim Meyering  <meyering@redhat.com>
53163
53164         fts.c: sync with similar code from coreutils' remove.c
53165         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53166         Guard also with "#if defined __linux__", since for now at least,
53167         this code is Linux-kernel-specific.
53168
53169 2008-10-02  Jim Meyering  <meyering@redhat.com>
53170
53171         fts: bug fixes
53172         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53173         Include <sys/vfs.h>, not <sys/statfs.h>.
53174
53175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53176         Include <sys/vfs.h>, not <sys/statfs.h>.
53177
53178 2008-10-01  Bruno Haible  <bruno@clisp.org>
53179
53180         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53182         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53183         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53184         * doc/posix-functions/posix_spawnp.texi: Likewise.
53185         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53186         whether posix_spawn actually works.
53187         * m4/pipe.m4 (gl_PIPE): Likewise.
53188         * modules/execute (Files): Add m4/posix_spawn.m4.
53189         * modules/pipe (Files): Add m4/posix_spawn.m4.
53190         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53191
53192 2008-10-01  Jim Meyering  <meyering@redhat.com>
53193
53194         remove trailing spaces
53195         * NEWS: Likewise.
53196         * lib/poll.c (poll): Likewise.
53197         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53198         * lib/winsock.c (rpl_close): Likewise.
53199         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53200         * modules/yield: Likewise.
53201         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53202         * tests/test-sys_select.c (connect_to_socket): Likewise.
53203
53204         fts.c: adjust a new interface to be more generally useful
53205         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53206         (fts_build): Adjust caller.
53207
53208 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53209
53210         * modules/cond-tests: New file.
53211         * tests/test-cond.c: New file.
53212
53213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53214             Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/cond (Dependencies): Add errno, time.
53217         * lib/glthread/cond.h: Include <time.h>.
53218         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53219         across platforms.
53220
53221 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53222             Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53225
53226 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53227             Bruno Haible  <bruno@clisp.org>
53228
53229         * modules/tls-tests (Depends-on): Add thread, yield.
53230         (configure.ac): Remove all checks.
53231         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53232         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53233         gl_thread_self): Remove definitions. Include glthread/thread.h and
53234         glthread/yield.h instead.
53235         (test_tls): Pass an additional NULL argument to gl_thread_join.
53236
53237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53238             Bruno Haible  <bruno@clisp.org>
53239
53240         * modules/lock-tests (Depends-on): Add thread, yield.
53241         (configure.ac): Remove all checks.
53242         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53243         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53244         gl_thread_self): Remove definitions. Include glthread/thread.h and
53245         glthread/yield.h instead.
53246         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53247         additional NULL argument to gl_thread_join.
53248
53249 2008-09-30  Bruno Haible  <bruno@clisp.org>
53250
53251         Fix the Win32 implementation of the 'thread' module.
53252         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53253         pointer type.
53254         (gl_thread_self): Invoke gl_thread_self_func.
53255         (gl_thread_self_func): New declaration.
53256         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53257         (do_init_self_key, init_self_key): New functions.
53258         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53259         Remove some fields.
53260         (running_threads, running_lock): Remove variables.
53261         (get_current_thread_handle): New function.
53262         (gl_thread_self_func, wrapper_func, glthread_create_func,
53263         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53264         simplified.
53265
53266 2008-09-30  Bruno Haible  <bruno@clisp.org>
53267
53268         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53269         files.
53270
53271 2008-09-30  Jim Meyering  <meyering@redhat.com>
53272
53273         fts.m4: correct the test for statfs.f_type
53274         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53275         when checking for statfs.f_type.
53276
53277 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53278
53279         tests: avoid some compiler warnings
53280         * tests/test-memchr.c (main): Pass NULL indirectly.
53281         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53282
53283 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53284
53285         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53286         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53287         exactly specified dayshifts.
53288         (dayshift): New rule.
53289         (rel): Add dayshift.
53290         (relative_time_table) [tomorrow, yesterday, today, now]:
53291         Use tDAY_SHIFT in place of tDAY_UNIT.
53292         * tests/test-getdate.c: Add tests for now-disallowed countable
53293         dayshifts, e.g., "4 yesterday ago".
53294
53295 2008-09-29  Bruno Haible  <bruno@clisp.org>
53296
53297         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53298         * tests/test-posix_spawn1.in.sh: Renamed from
53299         tests/test-posix_spawn.in.sh.
53300         * tests/test-posix_spawn2.c: New file.
53301         * tests/test-posix_spawn2.in.sh: New file.
53302         * modules/posix_spawnp-tests (Files): Update.
53303         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53304
53305 2008-09-29  Bruno Haible  <bruno@clisp.org>
53306
53307         Propagate effects of putenv/setenv/unsetenv to child processes.
53308         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53309         * lib/pipe.c (create_pipe): Likewise.
53310
53311 2008-09-29  Bruno Haible  <bruno@clisp.org>
53312
53313         Enable use of shell scripts as executables in mingw.
53314         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53315         run the program as a shell script.
53316         * lib/pipe.c (create_pipe): Likewise.
53317         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53318         resulting array.
53319
53320 2008-09-29  Eric Blake  <ebb9@byu.net>
53321
53322         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53323
53324 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53325
53326         * doc/posix-functions/accept.texi: Update mingw problems.
53327         * doc/posix-functions/bind.texi: Update mingw problems.
53328         * doc/posix-functions/close.texi: Update mingw problems.
53329         * doc/posix-functions/connect.texi: Update mingw problems.
53330         * doc/posix-functions/getpeername.texi: Update mingw problems.
53331         * doc/posix-functions/getsockname.texi: Update mingw problems.
53332         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53333         * doc/posix-functions/ioctl.texi: Update mingw problems.
53334         * doc/posix-functions/listen.texi: Update mingw problems.
53335         * doc/posix-functions/recv.texi: Update mingw problems.
53336         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53337         * doc/posix-functions/select.texi: Update mingw problems.
53338         * doc/posix-functions/send.texi: Update mingw problems.
53339         * doc/posix-functions/sendto.texi: Update mingw problems.
53340         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53341         * doc/posix-functions/socket.texi: Update mingw problems.
53342
53343 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53344             Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/sys_select.in.h: Include sys/time.h.
53347         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53348         * modules/sys_select: Depend on sys_time.
53349         * tests/test-sys_select.c: Test that sys/select.h defines struct
53350         timeval fully.
53351
53352 2008-09-29  Bruno Haible  <bruno@clisp.org>
53353
53354         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53355         * lib/sys_select.in.h: Likewise.
53356
53357 2008-09-29  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53360
53361 2008-09-29  Bruno Haible  <bruno@clisp.org>
53362
53363         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53364         Set LIBSOCKET instead of augmenting LIBS.
53365         * modules/sockets (Link): New section.
53366         * modules/sockets-tests (test_sockets_LDADD): New variable.
53367         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53368         * modules/poll-tests (test_poll_LDADD): New variable.
53369         * NEWS: Document the change.
53370
53371 2008-09-29  Bruno Haible  <bruno@clisp.org>
53372
53373         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53374         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53375         ARPA_INET_H directly.
53376         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53377
53378 2008-09-28  Bruno Haible  <bruno@clisp.org>
53379
53380         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53381         from gl_HEADER_SYS_SOCKET.
53382         (gl_HEADER_SYS_SOCKET): Invoke it.
53383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53384
53385 2008-09-28  Bruno Haible  <bruno@clisp.org>
53386
53387         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53388         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53389         Needed on OSF/1 4.0.
53390
53391 2008-09-28  Bruno Haible  <bruno@clisp.org>
53392
53393         Override open more carefully.
53394         * lib/open.c (orig_open): New function.
53395         (rpl_open): Use orig_open instead of open.
53396         * lib/fcntl.in.h: Add special invocation convention.
53397         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53398         (gl_FUNC_OPEN): Invoke it.
53399
53400         Override freopen more carefully.
53401         * lib/freopen.c (orig_freopen): New function.
53402         (rpl_freopen): Use orig_freopen instead of freopen.
53403         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53404         (gl_FUNC_FREOPEN): Invoke it.
53405
53406         Override fopen more carefully.
53407         * lib/fopen.c (orig_fopen): New function.
53408         (rpl_fopen): Use orig_fopen instead of fopen.
53409         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53410         (gl_FUNC_FOPEN): Invoke it.
53411         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53412
53413 2008-09-28  Bruno Haible  <bruno@clisp.org>
53414
53415         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53416         SIGPIPE.
53417
53418 2008-09-28  Bruno Haible  <bruno@clisp.org>
53419
53420         * tests/test-sigaction.c (handler, main): Disable the check whether
53421         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53422         glibc systems with LinuxThreads.
53423
53424 2008-09-28  Bruno Haible  <bruno@clisp.org>
53425
53426         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53427
53428         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53429         with AIX xlc.
53430         * lib/fcntl.in.h (open): Likewise.
53431         Reported by Rainer Tammer <tammer@tammer.net>.
53432
53433 2008-09-28  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/posix_spawnp-tests: New file.
53436         * tests/test-posix_spawn.c: New file.
53437         * tests/test-posix_spawn.in.sh: New file.
53438
53439         New module 'posix_spawnp'.
53440         * modules/posix_spawnp: New file.
53441         * lib/spawnp.c: New file, from GNU libc with modifications.
53442         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53443
53444         New module 'posix_spawn'.
53445         * modules/posix_spawn: New file.
53446         * lib/spawn.c: New file, from GNU libc with modifications.
53447         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53448
53449         New module 'posix_spawnattr_destroy'.
53450         * modules/posix_spawnattr_destroy: New file.
53451         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53452         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53453         module.
53454
53455         New module 'posix_spawnattr_setsigmask'.
53456         * modules/posix_spawnattr_setsigmask: New file.
53457         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53458         modifications.
53459         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53460         new module.
53461
53462         New module 'posix_spawnattr_getsigmask'.
53463         * modules/posix_spawnattr_getsigmask: New file.
53464         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53465         modifications.
53466         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53467         new module.
53468
53469         New module 'posix_spawnattr_setsigdefault'.
53470         * modules/posix_spawnattr_setsigdefault: New file.
53471         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53472         modifications.
53473         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53474         new module.
53475
53476         New module 'posix_spawnattr_getsigdefault'.
53477         * modules/posix_spawnattr_getsigdefault: New file.
53478         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53479         modifications.
53480         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53481         new module.
53482
53483         New module 'posix_spawnattr_setschedpolicy'.
53484         * modules/posix_spawnattr_setschedpolicy: New file.
53485         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53486         modifications.
53487         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53488         new module.
53489
53490         New module 'posix_spawnattr_getschedpolicy'.
53491         * modules/posix_spawnattr_getschedpolicy: New file.
53492         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53493         modifications.
53494         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53495         new module.
53496
53497         New module 'posix_spawnattr_setschedparam'.
53498         * modules/posix_spawnattr_setschedparam: New file.
53499         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53500         modifications.
53501         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53502         new module.
53503
53504         New module 'posix_spawnattr_getschedparam'.
53505         * modules/posix_spawnattr_getschedparam: New file.
53506         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53507         modifications.
53508         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53509         new module.
53510
53511         New module 'posix_spawnattr_setpgroup'.
53512         * modules/posix_spawnattr_setpgroup: New file.
53513         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53514         modifications.
53515         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53516         module.
53517
53518         New module 'posix_spawnattr_getpgroup'.
53519         * modules/posix_spawnattr_getpgroup: New file.
53520         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53521         modifications.
53522         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53523         module.
53524
53525         New module 'posix_spawnattr_setflags'.
53526         * modules/posix_spawnattr_setflags: New file.
53527         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53528         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53529         module.
53530
53531         New module 'posix_spawnattr_getflags'.
53532         * modules/posix_spawnattr_getflags: New file.
53533         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53534         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53535         module.
53536
53537         New module 'posix_spawnattr_init'.
53538         * modules/posix_spawnattr_init: New file.
53539         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53540         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53541         module.
53542
53543         New module 'posix_spawn_file_actions_destroy'.
53544         * modules/posix_spawn_file_actions_destroy: New file.
53545         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53546         modifications.
53547         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53548         the new module.
53549
53550         New module 'posix_spawn_file_actions_addopen'.
53551         * modules/posix_spawn_file_actions_addopen: New file.
53552         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53553         modifications.
53554         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53555         the new module.
53556
53557         New module 'posix_spawn_file_actions_adddup2'.
53558         * modules/posix_spawn_file_actions_adddup2: New file.
53559         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53560         modifications.
53561         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53562         the new module.
53563
53564         New module 'posix_spawn_file_actions_addclose'.
53565         * modules/posix_spawn_file_actions_addclose: New file.
53566         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53567         modifications.
53568         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53569         the new module.
53570
53571         New module 'posix_spawn_file_actions_init'.
53572         * modules/posix_spawn_file_actions_init: New file.
53573         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53574         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53575         new module.
53576
53577         New module 'posix_spawn-internal'.
53578         * modules/posix_spawn-internal: New file.
53579         * lib/spawn_int.h: New file, from GNU libc with modifications.
53580         * lib/spawni.c: New file, from GNU libc with modifications.
53581         * m4/posix_spawn.m4: New file.
53582
53583         New module 'spawn'.
53584         * modules/spawn: New file.
53585         * lib/spawn.in.h: New file, from GNU libc with modifications.
53586         * m4/spawn_h.m4: New file.
53587         * doc/posix-headers/spawn.texi: Mention the new module.
53588
53589 2008-09-28  Bruno Haible  <bruno@clisp.org>
53590
53591         * modules/sched-tests: New file.
53592         * tests/test-sched.c: New file.
53593
53594         New module 'sched'.
53595         * modules/sched: New file.
53596         * lib/sched.in.h: New file.
53597         * m4/sched_h.m4: New file.
53598         * doc/posix-headers/sched.texi: Mention the new module.
53599
53600 2008-09-27  Eric Blake  <ebb9@byu.net>
53601
53602         Fix previous patch, and tweak references to $0.
53603         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53604         (func_version, func_gnulib_dir): Don't call this program
53605         gnulib-tool.
53606         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53607         with using $0 in function.
53608         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53609         (func_fatal_error): Reuse the name the user invoked us with.
53610
53611 2008-09-27  Bruno Haible  <bruno@clisp.org>
53612
53613         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53614         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53615         (gl_ICONV_H): Not here.
53616         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53617         instead of assigning ICONV_H directly.
53618
53619         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53621         WCHAR_H directly.
53622
53623 2008-09-27  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53626         * modules/arpa_inet (Depends-on): Add link-warning.
53627         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53628         * modules/unistd (Makefile.am): Likewise.
53629
53630 2008-09-26  Bruno Haible  <bruno@clisp.org>
53631
53632         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53633         variables.
53634         (func_version): Essentially copied from gnulib-tool.
53635         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53636         func_readlink): Copied from gnulib-tool.
53637
53638 2008-09-26  Bruno Haible  <bruno@clisp.org>
53639
53640         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53641         invoking git-version-gen.
53642
53643 2008-09-26  Bruno Haible  <bruno@clisp.org>
53644
53645         * posix-modules: Update to directory names changed on 2008-01-19.
53646         Remove commas in output before splitting into words. No more need to
53647         avoid 'ftruncate' since 2007-02-19.
53648
53649 2008-09-26  Bruno Haible  <bruno@clisp.org>
53650
53651         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53652
53653 2008-09-26  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53656         * modules/fwriteerror (Depends-on): Add errno.
53657
53658 2008-09-26  Bruno Haible  <bruno@clisp.org>
53659
53660         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53661         * tests/test-vc-list-files-cvs.sh: Likewise.
53662
53663 2008-09-26  Bruno Haible  <bruno@clisp.org>
53664
53665         * doc/posix-headers/sys_resource.texi: Reorder items.
53666
53667 2008-09-26  Jim Meyering  <meyering@redhat.com>
53668
53669         fts: tweak inode comparison function
53670         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53671         inode numbers, as documented.
53672
53673         fts: sort dirent entries on inode number before traversing
53674         This avoids a quadratic, seek-related performance penalty when
53675         operating on a directory containing many entries (measurable at 10k;
53676         3.5 hours at 2 million entries with a cold cache) on certain types
53677         of file systems, including ext3 and ext4, but not tmpfs.
53678         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53679         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53680         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53681         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53682         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53683         (fts_build): Set the stat.st_ino member from D_INO.
53684         If it is likely to be useful, sort dirent entries on inode number.
53685
53686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53687         and the struct statfs.f_type member.
53688         * modules/fts (Depends-on): Add d-ino.
53689
53690 2008-09-26  Bruno Haible  <bruno@clisp.org>
53691
53692         * modules/sigpipe-die (Depends-on): Add sigpipe.
53693
53694         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53695         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53696         and GNULIB_STDIO_H_SIGPIPE are set.
53697         * lib/stdio-write.c: New file.
53698         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53699         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53700         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53701         REPLACE_STDIO_WRITE_FUNCS.
53702         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53703         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53704         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53705         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53706         * modules/stdio (Files): Add lib/stdio-write.c.
53707         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53708         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53709         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53710         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53711         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53712         REPLACE_FPRINTF_POSIX.
53713         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53714         REPLACE_PRINTF_POSIX.
53715         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53716         REPLACE_VFPRINTF_POSIX.
53717         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53718         REPLACE_VPRINTF_POSIX.
53719         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53720         SIGPIPE issue.
53721         * doc/posix-functions/fputc.texi: Likewise.
53722         * doc/posix-functions/fputs.texi: Likewise.
53723         * doc/posix-functions/fwrite.texi: Likewise.
53724         * doc/posix-functions/printf.texi: Likewise.
53725         * doc/posix-functions/putc.texi: Likewise.
53726         * doc/posix-functions/putchar.texi: Likewise.
53727         * doc/posix-functions/puts.texi: Likewise.
53728         * doc/posix-functions/vfprintf.texi: Likewise.
53729         * doc/posix-functions/vprintf.texi: Likewise.
53730
53731         * modules/safe-write (Depends-on): Add write.
53732
53733         * modules/sigpipe-tests: New file.
53734         * tests/test-sigpipe.c: New file.
53735         * tests/test-sigpipe.sh: New file.
53736
53737         * modules/write: New file.
53738         * lib/unistd.in.h: Include <sys/types.h>.
53739         (write): New declaration.
53740         * lib/write.c: New file.
53741         * m4/write.m4: New file.
53742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53743         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53744         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53745         GNULIB_WRITE, REPLACE_WRITE.
53746         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53747         and the SIGPIPE issue.
53748
53749         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53750         (raise): New declaration.
53751         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53752         (ext_signal): New function.
53753         (rpl_raise): New function.
53754         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53755         GNULIB_SIGNAL_H_SIGPIPE.
53756         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53757         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53758
53759         * modules/sigpipe: New file.
53760         * m4/sigpipe.m4: New file.
53761
53762 2008-09-25  Derek Price  <derek@ximbiot.com>
53763             Bruno Haible  <bruno@clisp.org>
53764
53765         * gnulib-tool (func_import): Report all license incompatibilities, not
53766         just the first one.
53767
53768 2008-09-25  Bruno Haible  <bruno@clisp.org>
53769
53770         * gnulib-tool (func_import): When computing the edits, consider not
53771         only the Makefile.ams that exist but also those that will be generated.
53772
53773 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53774
53775         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53776         fixes gnulib-tool --test warning about duplicate dependency.
53777
53778 2008-09-25  Bruno Haible  <bruno@clisp.org>
53779
53780         * gnulib-tool: Don't ask the user to perform edits in the generated
53781         Makefile.ams.
53782         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53783         apply to the Makefile.am being generated.
53784         (func_emit_tests_Makefile_am): Execute edits that apply to the
53785         Makefile.am being generated.
53786         (func_import): Setup list of Makefile.am edits before emitting the
53787         Makefile.ams, not at the end.
53788         (func_create_testdir): Update.
53789         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53790
53791 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53792
53793         * gnulib-tool (func_import): Store the --tests-base option in the
53794         comment in gnulib-cache.m4.
53795
53796 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53797
53798         * NEWS: Document increased portability that sys_select now provides.
53799
53800         * lib/sys_select.in.h: Install select wrapper.
53801         * lib/sys_socket.in.h: Use more descriptive name when there is no
53802         select wrapper.
53803         * lib/winsock-select.c: New.
53804         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53805         Require gl_HEADER_SYS_SOCKET.
53806         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53807         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53808         * tests/test-sys_select.c: Add functional tests.
53809
53810 2008-09-24  Eric Blake  <ebb9@byu.net>
53811
53812         open, fopen: close fd leak in last patch
53813         * lib/open.c (rpl_open): Close fd before returning error.
53814         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53815         * doc/posix-functions/open.texi (open): Document that Irix also
53816         has the bug.
53817         * doc/posix-functions/fopen.texi (fopen): Likewise.
53818         Reported by Paolo Bonzini.
53819
53820 2008-09-24  Bruno Haible  <bruno@clisp.org>
53821
53822         Ensure that a filename ending in a slash cannot be used to access a
53823         non-directory.
53824         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53825         to check whether it's really a directory.
53826         * lib/fopen.c: Include fcntl.h, unistd.h.
53827         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53828         and fdopen().
53829         * modules/fopen (Depends-on): Add unistd.
53830         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53831         * tests/test-fopen.c (main): Likewise.
53832         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53833         * doc/posix-functions/fopen.texi: Likewise.
53834         Reported by Eric Blake.
53835
53836 2008-09-23  Eric Blake  <ebb9@byu.net>
53837
53838         c-stack: avoid compiler optimizations when provoking overflow
53839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53840         recursion harder to optimize, to ensure a stack overflow occurs.
53841         * tests/test-c-stack.c (recurse): Likewise.
53842         Borrowed from libsigsegv.
53843
53844         c-stack: work around Irix sigaltstack bug
53845         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53846         whether sigaltstack uses wrong end of stack_t (copied in part from
53847         libsigsegv).
53848         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53849         Irix bug, without requiring an over-allocation.
53850         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53851         bug.
53852
53853         fopen: document mingw bug on directories
53854         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53855         not allowing a stream visiting a directory, even though reading
53856         from such a stream is not portable.
53857
53858 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53859
53860         * lib/poll.c: Rewrite.
53861         * modules/poll: Depend on alloca.
53862
53863 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53864
53865         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53866         instead define prototypes for a full set of wrappers.  Ensure
53867         that Cygwin does not use the compatibility code, which is only
53868         for MinGW.
53869         * lib/winsock.c: New.
53870         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53871         * modules/sys_socket: Add lib/winsock.c.
53872
53873         * modules/poll-tests: Add errno and perror.
53874         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53875
53876 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53877
53878         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53879
53880 2008-09-23  Bruno Haible  <bruno@clisp.org>
53881
53882         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53883         * doc/glibc-functions/*: Likewise.
53884
53885 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53886
53887         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53888         success.
53889
53890 2008-09-22  Eric Blake  <ebb9@byu.net>
53891             Bruno Haible  <bruno@clisp.org>
53892
53893         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53894         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53895         supply %A but mishandle pseudo-NaN.
53896         Reported by Simon Josefsson.
53897
53898 2008-09-21  Bruno Haible  <bruno@clisp.org>
53899
53900         * tests/test-lock.c (main): Tweak skip message.
53901         * tests/test-tls.c (main): Likewise.
53902
53903 2008-09-21  Bruno Haible  <bruno@clisp.org>
53904
53905         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53906         whether 'struct sigaction' has sa_sigaction here...
53907         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53908         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53909
53910 2008-09-21  Bruno Haible  <bruno@clisp.org>
53911
53912         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53913         section.
53914         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53915         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53916         the new section.
53917         (Support for obsolete systems lacking POSIX:2001): New section.
53918         (String handling <string.h>): Move strdup to the new section.
53919         Suggested by Simon Josefsson and Paolo Bonzini.
53920
53921 2008-09-21  Bruno Haible  <bruno@clisp.org>
53922
53923         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53924         exponents in %e and %g results on 'long double'. Needed for mingw's
53925         improved *printf functions.
53926         * tests/test-vasprintf-posix.c (test_function): Likewise.
53927         * tests/test-snprintf-posix.h (test_function): Likewise.
53928         * tests/test-sprintf-posix.h (test_function): Likewise.
53929         Reported by Eric Blake.
53930
53931 2008-09-21  Bruno Haible  <bruno@clisp.org>
53932
53933         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53934         * tests/test-sprintf-posix.h (test_function): Likewise.
53935
53936 2008-09-21  Bruno Haible  <bruno@clisp.org>
53937
53938         * modules/getpass (Depends-on): Add strdup-posix.
53939
53940         New module 'strdup-posix'.
53941         * modules/strdup-posix: New file.
53942         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53943         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53945         REPLACE_STRDUP.
53946         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53947         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53949         strdup-posix.
53950
53951         * modules/strdup (Depends-on): Remove malloc-posix.
53952
53953 2008-09-20  Bruno Haible  <bruno@clisp.org>
53954
53955         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53956         Wildenhues.
53957
53958 2008-09-20  Bruno Haible  <bruno@clisp.org>
53959
53960         Ensure that wint_t gets defined on IRIX 5.3.
53961         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53962         * lib/wctype.in.h (wint_t): Likewise.
53963         (__wctype_wint_t): Remove type.
53964         (isw*): Use wint_t instead of __wctype_wint_t.
53965         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53966         * modules/wchar (Files): Add m4/wint_t.m4.
53967         (Makefile.am): Substitute HAVE_WINT_T.
53968         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53969         * tests/test-wctype.c: Check that wint_t is defined.
53970         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53971         * doc/posix-headers/wctype.texi: Likewise.
53972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53973
53974 2008-09-18  Bruno Haible  <bruno@clisp.org>
53975
53976         * gnulib-tool (func_exit): Update comment.
53977
53978 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53979
53980         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53981         assumes strdup exists and does not depend on strdup to return
53982         ENOMEM on out of memory conditions.
53983
53984 2008-09-18  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53987         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53988         digits for the exponent.
53989
53990 2008-09-18  Jim Meyering  <meyering@redhat.com>
53991             Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/vasnprintf.c (decimal_point_char): Define also if
53994         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53995
53996 2008-09-16  Bruno Haible  <bruno@clisp.org>
53997         and Eric Blake  <ebb9@byu.net>
53998
53999         vasnprintf: support Irix 5.3
54000         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54001         that mishandle long double infinity.
54002         Reported by Tom G. Christensen.
54003
54004 2008-09-16  Bruno Haible  <bruno@clisp.org>
54005
54006         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54007         Solaris 9.
54008         * doc/glibc-functions/alphasort.texi: Likewise.
54009         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54010
54011 2008-09-16  Jim Meyering  <meyering@redhat.com>
54012
54013         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54014         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54015         a umask modification leak out of a subshell.  Otherwise, the
54016         opensolaris /bin/sh would be accepted and thus cause unwarranted
54017         failures in the coreutils test suite.
54018
54019 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54020
54021         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54022         to succeed.
54023
54024 2008-09-16  Jim Meyering  <meyering@redhat.com>
54025
54026         avoid spurious test failure when library is built without ACL support
54027         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54028         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54029         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54030         * tests/test-copy-acl.sh: Likewise.
54031
54032 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54033
54034         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54035         based on character occurrence counts.
54036
54037 2008-09-15  Eric Blake  <ebb9@byu.net>
54038
54039         tests: avoid some compiler warnings
54040         * tests/test-memchr.c (main): Pass NULL indirectly.
54041         * tests/test-closein.c (main): Avoid unused variable.
54042
54043 2008-09-15  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54046         are missing on OpenBSD 4.0 individually.
54047         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54048
54049 2008-09-15  Bruno Haible  <bruno@clisp.org>
54050
54051         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54052         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54053         * doc/posix-functions/perror.texi: Likewise.
54054         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54055         is missing.
54056         Reported by Eric Blake.
54057
54058         * lib/errno.in.h: Use replacement values >= 2000.
54059         Reported by Eric Blake.
54060
54061 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54062
54063         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54064         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54065         limit.
54066         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54067         compareseq was aborted.
54068
54069 2008-09-14  Bruno Haible  <bruno@clisp.org>
54070
54071         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54072         yvec_edit_count.
54073         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54074         (fstrcmp_bounded): Simplify result computation accordingly.
54075
54076 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54077
54078         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54079         (fstrcmp): Define in terms of fstrcmp_bounded.
54080         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54081         lower_bound argument.
54082         Return quickly if the result is certainly < lower_bound.
54083         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54084
54085 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54086
54087         * lib/diffseq.h (EARLY_ABORT): New macro.
54088         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54089         evaluates to true.
54090
54091 2008-09-14  Bruno Haible  <bruno@clisp.org>
54092
54093         * modules/perror-tests: New file.
54094         * tests/test-perror.sh: New file.
54095         * tests/test-perror.c: New file.
54096
54097         New module 'perror'.
54098         * lib/stdio.in.h (perror): New declaration.
54099         * lib/perror.c: New file.
54100         * m4/perror.m4: New file.
54101         * modules/perror: New file.
54102         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54103         * doc/posix-functions/perror.texi: Mention the perror module.
54104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54105         REPLACE_PERROR.
54106         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54107         REPLACE_PERROR.
54108
54109 2008-09-14  Bruno Haible  <bruno@clisp.org>
54110
54111         * modules/stdio (Makefile.am): Reorder to match the order in
54112         lib/stdio.in.h.
54113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54114
54115 2008-09-13  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54118
54119 2008-09-13  Bruno Haible  <bruno@clisp.org>
54120
54121         Extend strerror to cover the added errno values.
54122         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54123         (rpl_strerror): Provide error messages for the added errno values and
54124         for the WSA* values.
54125         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54126         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54127         strerror.
54128         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54129         * modules/strerror (Depends-on): Add errno.
54130         * doc/posix-functions/strerror.texi: Document the change.
54131         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54132         and EOVERFLOW.
54133
54134 2008-09-13  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/EOVERFLOW: Remove file.
54137         * m4/eoverflow.m4: Remove file.
54138         * modules/EOVERFLOW-tests: Remove file.
54139         * tests/test-EOVERFLOW.c: Remove file.
54140         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54141         * modules/ftell (Depends-on): Likewise.
54142         * modules/getdelim (Depends-on): Likewise.
54143         * modules/getugroups (Depends-on): Likewise.
54144         * modules/poll (Depends-on): Likewise.
54145         * modules/snprintf (Depends-on): Likewise.
54146         * modules/sprintf-posix (Depends-on): Likewise.
54147         * modules/vasnprintf (Depends-on): Likewise.
54148         * modules/vasprintf (Depends-on): Likewise.
54149         * modules/vfprintf-posix (Depends-on): Likewise.
54150         * modules/vsnprintf (Depends-on): Likewise.
54151         * modules/vsprintf-posix (Depends-on): Likewise.
54152         * modules/xvasprintf (Depends-on): Likewise.
54153         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54154         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54155         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54156         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54157         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54158         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54159         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54160         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54162         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54163         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54164         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54165         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54166         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54167         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54168         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54169         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54170         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54171         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54172         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54173         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54174         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54175         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54176         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54177         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54179         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54180         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54181         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54182         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54183         * MODULES.html.sh: Remove EOVERFLOW.
54184         * NEWS: Mention the change.
54185
54186 2008-09-13  Bruno Haible  <bruno@clisp.org>
54187
54188         * modules/errno-tests: New file.
54189         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54190
54191         * lib/errno.in.h: New file.
54192         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54193         * modules/errno: New file.
54194         * doc/posix-headers/errno.texi: Update documentation.
54195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54196
54197 2008-09-13  Bruno Haible  <bruno@clisp.org>
54198
54199         * tests/test-poll.c: Use #if for native Windows, rather than testing
54200         __MSVCRT__.
54201
54202 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54203             Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/glob.c: Don't include <pwd.h> on native Windows.
54206         (WINDOWS32): New macro.
54207         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54208
54209 2008-09-13  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54212         (ETIMEDOUT): Remove macro.
54213         (glthread_cond_timedwait_multithreaded): New declaration.
54214         (glthread_cond_timedwait): Use it.
54215         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54216         (glthread_cond_timedwait_multithreaded): New function.
54217
54218 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54219
54220         * modules/poll-tests: Do not check for io.h.
54221         * tests/test-poll.c: Check for __MSVCRT__ instead.
54222
54223 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54224
54225         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54226         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54227         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54228
54229 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54230
54231         * modules/poll-tests: New.
54232         * tests/test-poll.c: New.
54233
54234 2008-09-12  Eric Blake  <ebb9@byu.net>
54235
54236         frexp: test for NetBSD failure on -0.0
54237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54238         not all, bugs from NetBSD 3.0 have been fixed.
54239         * doc/posix-functions/frexp.texi (frexp): Document bug.
54240         Reported by Thomas Klausner.
54241
54242         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54244         literal -0.0.
54245         Reported by Jonathan C. Patschke <jp@centtech.com>.
54246
54247 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54248
54249         * lib/glthread/cond.h: Use dummy implementation also if
54250         USE_WIN32_THREADS.
54251
54252 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54253
54254         * modules/fnmatch-posix (License): Change to LGPLv2+.
54255         * modules/fnmatch-gnu (License): Likewise.
54256
54257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54258
54259         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54260
54261 2008-09-11  Jim Meyering  <meyering@redhat.com>
54262
54263         * users.txt: Add gtk-vnc.
54264
54265 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54266
54267         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54268         rotate amounts.
54269
54270         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54271         required for 16-bit and 8-bit rotates.
54272         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54273         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54274         UINT8_MAX instead of hard-coded constants.
54275         Suggested by Paul Eggert.
54276
54277 2008-09-07  Bruno Haible  <bruno@clisp.org>
54278
54279         * tests/test-striconveh.c (main): Check behaviour when converting from
54280         UTF-7.
54281
54282         Make striconveh work better with stateful encodings.
54283         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54284         that iconv does not increment the inptr when returning -1/EINVAL.
54285
54286 2008-09-07  Bruno Haible  <bruno@clisp.org>
54287
54288         * build-aux/config.rpath: Update according to libtool-2.2.6.
54289         * build-aux/config.libpath: Likewise.
54290
54291 2008-09-06  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54294         * lib/freadptr.c (freadptr): Likewise.
54295         * lib/freadseek.c (freadptrinc): Likewise.
54296         Reported by Simon Josefsson.
54297
54298 2008-09-06  Bruno Haible  <bruno@clisp.org>
54299
54300         * modules/freadptr (License): Change to LGPLv2+.
54301         * modules/freadseek (License): Likewise.
54302         Suggested by Eric Blake.
54303
54304         * modules/memchr2 (License): Change to LGPLv2+.
54305         Approved by Eric Blake.
54306
54307 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54308             Bruno Haible  <bruno@clisp.org>
54309
54310         Make gnulib-tool work with native 'sed' on AIX.
54311         * gnulib-tool (sed_noop): New variable.
54312         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54313         func_add_or_update, func_create_testdir): Use it to initialize sed
54314         script variables.
54315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54316
54317 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54318             Bruno Haible  <bruno@clisp.org>
54319
54320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54321         also works after #include directives.
54322
54323 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54324
54325         getdate.y: reject an out-of-range timezone value
54326         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54327         the range [-24...+24].  When specified with only one or two digits,
54328         * tests/test-getdate.c: Tests for the fix.
54329         * doc/getdate.texi: Document this change.
54330
54331 2008-09-03  Bruno Haible  <bruno@clisp.org>
54332
54333         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54334
54335 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54336
54337         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54338         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54339         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54340         Blake <ebb9@byu.net>.
54341
54342         * tests/test-bitrotate.c: Add more test vectors.
54343
54344 2008-09-02  Eric Blake  <ebb9@byu.net>
54345
54346         vasnprintf-posix: handle large precision via %.*d
54347         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54348         when handling it ourselves.
54349         * tests/test-vasnprintf-posix.c (test_function): Add test.
54350         * tests/test-snprintf-posix.h (test_function): Likewise.
54351         * tests/test-sprintf-posix.h (test_function): Likewise.
54352         * tests/test-vasprintf-posix.c (test_function): Likewise.
54353         Reported by Alain Guibert.
54354
54355 2008-09-01  Eric Blake  <ebb9@byu.net>
54356
54357         c-stack: make configure-time check more robust
54358         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54359         successful sigaction call.
54360         Reported by Tom G. Christensen.
54361
54362 2008-09-01  Bruno Haible  <bruno@clisp.org>
54363
54364         New module 'findprog-lgpl'.
54365         * modules/findprog-lgpl: New file.
54366         * lib/findprog-lgpl.c: New file.
54367         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54368         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54369         to decide whether to use strdup or xstrdup, concatenated_filename or
54370         xconcatenated_filename.
54371
54372 2008-09-01  Bruno Haible  <bruno@clisp.org>
54373
54374         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54375         'xconcat-filename' (GPL).
54376         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54377         (License): Change to LGPLv2+.
54378         * modules/xconcat-filename: New file.
54379         * lib/concat-filename.h (concatenated_filename): Change specification.
54380         (xconcatenated_filename): New declaration.
54381         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54382         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54383         memory situations.
54384         * lib/xconcat-filename.c: New file.
54385         * NEWS: Mention the change.
54386         * lib/findprog.c: Include concat-filename.h, not filename.h.
54387         (find_in_path): Use xconcatenated_filename instead of
54388         concatenated_filename.
54389         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54390         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54391         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54392         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54393         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54394         instead of concatenated_filename.
54395         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54396         (execute_java_class): Use xconcatenated_filename instead of
54397         concatenated_filename.
54398         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54399         * modules/javacomp (Depends-on): Likewise.
54400         * modules/javaexec (Depends-on): Likewise.
54401
54402 2008-09-01  Bruno Haible  <bruno@clisp.org>
54403
54404         Split module 'filename' into 'filename' and 'concat-filename'.
54405         * modules/filename: Keep only lib/filename.h.
54406         (License): Change to LGPLv2+.
54407         * modules/concat-filename: New file, extracted from modules/filename.
54408         * lib/filename.h (concatenated_filename): Remove declaration.
54409         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54410         * lib/concat-filename.c: Include concat-filename.h.
54411         * NEWS: Mention the change.
54412
54413 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54414
54415         * lib/bitrotate.h (rotl8, rotr8): Add.
54416
54417         * modules/bitrotate (configure.ac): Need
54418         AC_REQUIRE([AC_C_INLINE]).
54419         (Description): Mention stdint.h.  Reported by Bruno Haible
54420         <bruno@clisp.org>.
54421
54422         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54423         Paolo Bonzini <bonzini@gnu.org>.
54424
54425 2008-08-31  Bruno Haible  <bruno@clisp.org>
54426
54427         Assume Solaris specific bi-arch conventions on Solaris systems.
54428         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54429         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54431         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54432         like acl_libdirstem.
54433         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54434         acl_libdirstem.
54435         * NEWS: Mention the change.
54436         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54437
54438 2008-08-31  Jim Meyering  <meyering@redhat.com>
54439
54440         * lib/strftime.h: Add comments describing the two added arguments.
54441
54442         remove duplicate #include directives
54443         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54444         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54445
54446 2008-08-31  Bruno Haible  <bruno@clisp.org>
54447
54448         New module 'sigpipe-die'.
54449         * modules/sigpipe-die: New file.
54450         * lib/sigpipe-die.h: New file.
54451         * lib/sigpipe-die.c: New file.
54452         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54453
54454 2008-08-31  Bruno Haible  <bruno@clisp.org>
54455
54456         Don't override previously installed signal handlers.
54457         * lib/fatal-signal.c (saved_sigactions): New variable.
54458         (uninstall_handlers): Reset the signal to the saved handler, not
54459         to SIG_DFL (except when ignored).
54460         (install_handlers): Save the previous handlers.
54461
54462 2008-08-30  Bruno Haible  <bruno@clisp.org>
54463
54464         * gnulib-tool (func_reset_sigpipe): New function.
54465         (func_get_automake_snippet, func_modules_transitive_closure,
54466         func_import): Invoke it before a join command that reads from stdin,
54467         to avoid "echo: write error: Broken pipe" error messages on stderr.
54468         Reported by Sam Steingold <sds@gnu.org>.
54469
54470 2008-08-30  Bruno Haible  <bruno@clisp.org>
54471
54472         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54473         Code copied from m4/open.m4.
54474         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54475         access and the filename ends in a slash. Code copied from lib/open.c.
54476         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54477         * tests/test-fopen.c (main): Check against bug with trailing slash.
54478
54479 2008-08-29  Bruno Haible  <bruno@clisp.org>
54480
54481         Avoid some "gcc -pedantic" warnings.
54482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54483         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54484         * lib/dirent.in.h: Likewise.
54485         * lib/fcntl.in.h: Likewise.
54486         * lib/float.in.h: Likewise.
54487         * lib/iconv.in.h: Likewise.
54488         * lib/inttypes.in.h: Likewise.
54489         * lib/locale.in.h: Likewise.
54490         * lib/math.in.h: Likewise.
54491         * lib/netinet_in.in.h: Likewise.
54492         * lib/search.in.h: Likewise.
54493         * lib/signal.in.h: Likewise.
54494         * lib/stdarg.in.h: Likewise.
54495         * lib/stdint.in.h: Likewise.
54496         * lib/stdio.in.h: Likewise.
54497         * lib/stdlib.in.h: Likewise.
54498         * lib/string.in.h: Likewise.
54499         * lib/strings.in.h: Likewise.
54500         * lib/sys_select.in.h: Likewise.
54501         * lib/sys_socket.in.h: Likewise.
54502         * lib/sys_stat.in.h: Likewise.
54503         * lib/sys_time.in.h: Likewise.
54504         * lib/sysexits.in.h: Likewise.
54505         * lib/time.in.h: Likewise.
54506         * lib/unistd.in.h: Likewise.
54507         * lib/wchar.in.h: Likewise.
54508         * lib/wctype.in.h: Likewise.
54509         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54510         * modules/fchdir (Makefile.am): Likewise.
54511         * modules/fcntl (Makefile.am): Likewise.
54512         * modules/float (Makefile.am): Likewise.
54513         * modules/iconv_open (Makefile.am): Likewise.
54514         * modules/inttypes (Makefile.am): Likewise.
54515         * modules/locale (Makefile.am): Likewise.
54516         * modules/math (Makefile.am): Likewise.
54517         * modules/netinet_in (Makefile.am): Likewise.
54518         * modules/search (Makefile.am): Likewise.
54519         * modules/signal (Makefile.am): Likewise.
54520         * modules/stdarg (Makefile.am): Likewise.
54521         * modules/stdint (Makefile.am): Likewise.
54522         * modules/stdio (Makefile.am): Likewise.
54523         * modules/stdlib (Makefile.am): Likewise.
54524         * modules/string (Makefile.am): Likewise.
54525         * modules/strings (Makefile.am): Likewise.
54526         * modules/sys_select (Makefile.am): Likewise.
54527         * modules/sys_socket (Makefile.am): Likewise.
54528         * modules/sys_stat (Makefile.am): Likewise.
54529         * modules/sys_time (Makefile.am): Likewise.
54530         * modules/sysexits (Makefile.am): Likewise.
54531         * modules/time (Makefile.am): Likewise.
54532         * modules/unistd (Makefile.am): Likewise.
54533         * modules/wchar (Makefile.am): Likewise.
54534         * modules/wctype (Makefile.am): Likewise.
54535         Reported by Reuben Thomas <rrt@sc3d.org>.
54536
54537 2008-08-29  Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54540         any more.
54541
54542 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54543
54544         * MODULES.html.sh (Misc): Add bitrotate.
54545
54546         * modules/bitrotate: New file.
54547
54548         * lib/bitrotate.h: New file.
54549
54550         * modules/bitrotate-tests: New file.
54551
54552         * tests/test-bitrotate.c: New file.
54553
54554         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54555         on the bitrotate module.
54556
54557         * lib/arctwo.c: Use new bitrotate module.
54558
54559 2008-08-29  Jim Meyering  <meyering@redhat.com>
54560
54561         bootstrap: merge changes from coreutils
54562         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54563         of copied files.  Remove a kludge, now that this is fixed.
54564         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54565         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54566         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54567
54568 2008-08-29  Bruno Haible  <bruno@clisp.org>
54569
54570         * MODULES.html.sh: Remove --cvs-urls option.
54571
54572 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54573
54574         maint.mk: adjust to file name change
54575         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54576
54577 2008-08-28  Jim Meyering  <meyering@redhat.com>
54578
54579         * modules/getndelim2 (License): Relicense to LGPLv2+.
54580         Approved by Richard Stallman for the version of 1995, and by
54581         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54582
54583 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54584
54585         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54586         dummy if one is not available.  Do not touch them if
54587         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54588         (getc_maybe_unlocked): New.
54589         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54590
54591 2008-08-26  Eric Blake  <ebb9@byu.net>
54592
54593         doc/INSTALL: resync from autoconf
54594         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54595         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54596         moving...
54597         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54598         * INSTALL: Regenerate.
54599         * INSTALL.ISO: New file.
54600         * INSTALL.UTF-8: Likewise.
54601
54602 2008-08-26  Jim Meyering  <meyering@redhat.com>
54603
54604         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54605         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54606         these definitions conditional, so that they may be overridden, too.
54607
54608 2008-08-26  Bruno Haible  <bruno@clisp.org>
54609
54610         Generate INSTALL file variants with prettier quotes.
54611         * doc/Makefile (INSTALL_PRELUDE): New macro.
54612         (INSTALL): Use it.
54613         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54614
54615 2008-08-26  Bruno Haible  <bruno@clisp.org>
54616
54617         Run makeinfo in an English locale.
54618         * doc/Makefile (MAKEINFO): New variable.
54619
54620 2008-08-26  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54623         Suggested by Eric Blake.
54624
54625 2008-08-25  Bruno Haible  <bruno@clisp.org>
54626
54627         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54628
54629 2008-08-25  Eric Blake  <ebb9@byu.net>
54630
54631         c-stack: test that stack overflow can be caught
54632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54633         that platform allows handling stack overflow; at least OS/2 EMX
54634         has sigaltstack, but crashes before transferring control to
54635         handler on stack overflow.
54636         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54637         check for HAVE_STACK_OVERFLOW_HANDLING.
54638         Reported by Elbert Pol.
54639
54640 2008-08-25  Bruno Haible  <bruno@clisp.org>
54641
54642         * doc/posix-functions/strftime.texi: Fix description of strftime
54643         module.
54644
54645 2008-08-24  Bruno Haible  <bruno@clisp.org>
54646
54647         * tests/uniwidth/test-uc_width2.c: New file.
54648         * tests/uniwidth/test-uc_width2.sh: New file.
54649         * modules/uniwidth/width-tests (Files): Add the new files.
54650         (TESTS): Add uniwidth/test-uc_width2.sh.
54651         (TESTS_ENVIRONMENT): New variable.
54652         (check_PROGRAMS): Add test-uc_width2.
54653         (test_uc_width2_SOURCES): New variable.
54654
54655         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54656         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54657         not 0x00AB.
54658         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54659
54660 2008-08-22  Eric Blake  <ebb9@byu.net>
54661
54662         test-lock, test-tls: mention why a test is skipped
54663         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54664         skipped.
54665         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54666
54667         count-one-bits: relax license
54668         * modules/count-one-bits (License): Relicense to LGPLv2+.
54669         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54670
54671 2008-08-22  Andreas Schwab  <schwab@suse.de>
54672
54673         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54674         Remove spurious space in assignment.
54675
54676 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54677
54678         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54679         Paul Eggert <eggert@CS.UCLA.EDU>.
54680
54681 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54682
54683         * modules/gettext: Add m4/threadlib.m4.
54684
54685 2008-08-19  Eric Blake  <ebb9@byu.net>
54686
54687         test-c-stack: fix compilation failure on FreeBSD 5.0
54688         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54689         headers before <sys/resource.h>.
54690         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54691         the bug.
54692         Reported by Nelson H. F. Beebe.
54693
54694         strverscmp: migrate from "strverscmp.h" to <string.h>
54695         * modules/string (Makefile.am): Add new hooks.
54696         * modules/strverscmp (Files): Remove strverscmp.h.
54697         (Depends-on): Add string.
54698         (configure.ac): Add indicator.
54699         (Include): Mention new header.
54700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54701         defaults.
54702         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54703         results.
54704         * lib/strverscmp.h: Delete.
54705         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54706         * tests/test-strverscmp.c (includes): Adjust client.
54707         * lib/check-version.c (includes): Likewise.
54708         * NEWS: Document the change.
54709
54710         strverscmp: add unit test
54711         * modules/strverscmp-tests: New file.
54712         * tests/test-strverscmp.c: Likewise.
54713
54714 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54715
54716         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54717         regarding Windows crypto stuff, from Mono.
54718
54719 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54720
54721         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54722         if present, for intel RND.  Return error on failures.
54723
54724 2008-08-18  Ben Pfaff  <blp@gnu.org>
54725
54726         gitlog-to-changelog: give better diagnostic for failed pipe-open
54727         * build-aux/gitlog-to-changelog: Improve error message: suggest
54728         that the version of Git may be too old.
54729
54730 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54731
54732         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54733         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54734
54735 2008-08-18  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54738         pthread_in_use().
54739
54740 2008-08-18  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/glthread/threadlib.c: Include <pthread.h>.
54743
54744 2008-08-18  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54747         glthread_recursive_lock_* macros.
54748         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54749         Fix syntax error.
54750
54751 2008-08-18  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/glthread/thread.c: Avoid forcing a context switch right after
54754         thread creation.
54755
54756 2008-08-17  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54759         * lib/glthread/thread.h: Provide Win32 specific implementation.
54760         * modules/thread (Files): Add lib/glthread/thread.c.
54761         (Depends-on): Add lock.
54762         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54763
54764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54765
54766         New module 'yield'.
54767         * modules/yield: New file.
54768         * lib/glthread/yield.h: New file.
54769         * m4/yield.m4: New file.
54770         * MODULES.html.sh (Multithreading): Add yield.
54771
54772 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54773
54774         New module 'thread'.
54775         * modules/thread: New file.
54776         * lib/glthread/thread.h: New file.
54777         * m4/thread.m4: New file.
54778         * MODULES.html.sh (Multithreading): Add thread.
54779
54780 2008-08-17  Bruno Haible  <bruno@clisp.org>
54781
54782         * lib/glthread/lock.h: Include <stdlib.h> always.
54783         * lib/glthread/tls.h: Likewise.
54784         * lib/glthread/cond.h: Likewise.
54785
54786 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54787
54788         New module 'cond'.
54789         * modules/cond: New file.
54790         * lib/glthread/cond.h: New file.
54791         * lib/glthread/cond.c: New file.
54792         * m4/cond.m4: New file.
54793         * MODULES.html.sh (Multithreading): Add cond.
54794
54795 2008-08-16  Eric Blake  <ebb9@byu.net>
54796
54797         c-stack: fix regression on Irix 5.3 from 2008-06-21
54798         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54799         sa_sigaction...
54800         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54801         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54802         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54803         * modules/signal (Makefile.am): Use the value.
54804         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54805         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54806         * doc/posix-headers/signal.texi (signal.h): Document this
54807         portability issue.
54808         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54809         Reported by Tom G. Christensen.
54810
54811 2008-08-17  Bruno Haible  <bruno@clisp.org>
54812
54813         New module 'threadlib'.
54814         * modules/threadlib: New file.
54815         * lib/glthread/threadlib.c: New file, extracted from
54816         lib/glthread/lock.c.
54817         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54818         functions.
54819         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54820         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54821         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54822         macros.
54823         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54824         (gl_DISABLE_THREADS): Remove macro.
54825         * modules/lock (Files): Remove build-aux/config.rpath.
54826         (Depends-on): Remove havelib. Add threadlib.
54827         (configure.ac-early): Remove section.
54828         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54829         * modules/tls (Depends-on): Remove lock. Add threadlib.
54830         (Link): New section, copied from threadlib.
54831         * MODULES.html.sh (Multithreading): Add threadlib.
54832
54833 2008-08-14  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54836         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54837         glthread_rwlock_unlock, glthread_rwlock_destroy,
54838         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54839         glthread_recursive_lock_destroy): Define as macros always.
54840         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54841         glthread_lock_lock.
54842         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54843         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54844         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54845         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54846         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54847         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54848         (glthread_recursive_lock_lock_func): Renamed from
54849         glthread_recursive_lock_lock.
54850         (glthread_recursive_lock_unlock_func): Renamed from
54851         glthread_recursive_lock_unlock.
54852         (glthread_recursive_lock_destroy_func): Renamed from
54853         glthread_recursive_lock_destroy.
54854
54855 2008-08-14  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/glthread/lock.h: Renamed from lib/lock.h.
54858         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54859         * lib/glthread/tls.h: Renamed from lib/tls.h.
54860         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54861         * lib/fstrcmp.c: Update includes.
54862         * lib/strsignal.c: Update includes.
54863         * modules/lock (Files, Makefile.am): Update.
54864         (Include): Change to "glthread/lock.h".
54865         * modules/tls (Files, Makefile.am): Update.
54866         (Include): Change to "glthread/tls.h".
54867         * tests/test-lock.c: Update includes.
54868         * tests/test-tls.c: Update includes.
54869         * NEWS: Mention the renamed header files.
54870
54871 2008-08-11  Jim Meyering  <meyering@redhat.com>
54872
54873         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54874
54875 2008-08-11  Eric Blake  <ebb9@byu.net>
54876
54877         test-c-stack: avoid C99-ism
54878         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54879         before statement.
54880         Reported by Alain Guibert.
54881
54882 2008-08-10  Jim Meyering  <meyering@redhat.com>
54883
54884         ensure that return value of uinttostr et al are not ignored
54885         * lib/inttostr.h (__GNUC_PREREQ): Define.
54886         (__attribute_warn_unused_result__): Define.
54887         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54888
54889 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54890
54891         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54892         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54893
54894 2008-08-07  Jim Meyering  <meyering@redhat.com>
54895
54896         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54897
54898         * modules/mkstemp (License): Relicense under LGPLv2+.
54899         * modules/tempname (License): Likewise.
54900
54901 2008-08-06  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/poll.c (poll): Further micro-optimization.
54904
54905 2008-08-06  Jim Meyering  <meyering@redhat.com>
54906
54907         inet_pton.c: use locale-independent tolower
54908         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54909         (inet_pton6): Use c_tolower rather than tolower.
54910         * modules/inet_pton (Depends-on): Add c-ctype.
54911
54912 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54913
54914         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54915         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54916
54917 2008-08-06  Jim Meyering  <meyering@redhat.com>
54918
54919         * modules/inet_pton (License): Relicense under LGPLv2+.
54920
54921 2008-08-03  Bruno Haible  <bruno@clisp.org>
54922
54923         Additional non-aborting API for lock and tls.
54924         * lib/lock.h: Include <errno.h>.
54925         (glthread_lock_init): New macro/function.
54926         (gl_lock_init): Define as wrapper around glthread_lock_init.
54927         (glthread_lock_lock): New macro/function.
54928         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54929         (glthread_lock_unlock): New macro/function.
54930         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54931         (glthread_lock_destroy): New macro/function.
54932         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54933         (glthread_rwlock_init): New macro/function.
54934         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54935         (glthread_rwlock_rdlock): New macro/function.
54936         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54937         (glthread_rwlock_wrlock): New macro/function.
54938         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54939         (glthread_rwlock_unlock): New macro/function.
54940         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54941         (glthread_rwlock_destroy): New macro/function.
54942         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54943         (glthread_recursive_lock_init): New macro/function.
54944         (gl_recursive_lock_init): Define as wrapper around
54945         glthread_recursive_lock_init.
54946         (glthread_recursive_lock_lock): New macro/function.
54947         (gl_recursive_lock_lock): Define as wrapper around
54948         glthread_recursive_lock_lock.
54949         (glthread_recursive_lock_unlock): New macro/function.
54950         (gl_recursive_lock_unlock): Define as wrapper around
54951         glthread_recursive_lock_unlock.
54952         (glthread_recursive_lock_destroy): New macro/function.
54953         (gl_recursive_lock_destroy): Define as wrapper around
54954         glthread_recursive_lock_destroy.
54955         (glthread_once): New macro/function.
54956         (gl_once): Define as wrapper around glthread_once.
54957         Update function declarations.
54958         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54959         glthread_rwlock_init. Return error code.
54960         (glthread_rwlock_rdlock_multithreaded): Renamed from
54961         glthread_rwlock_rdlock. Return error code.
54962         (glthread_rwlock_wrlock_multithreaded): Renamed from
54963         glthread_rwlock_wrlock. Return error code.
54964         (glthread_rwlock_unlock_multithreaded): Renamed from
54965         glthread_rwlock_unlock. Return error code.
54966         (glthread_rwlock_destroy_multithreaded): Renamed from
54967         glthread_rwlock_destroy. Return error code.
54968         (glthread_recursive_lock_init_multithreaded): Renamed from
54969         glthread_recursive_lock_init. Return error code.
54970         (glthread_recursive_lock_lock_multithreaded): Renamed from
54971         glthread_recursive_lock_lock. Return error code.
54972         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54973         glthread_recursive_lock_unlock. Return error code.
54974         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54975         glthread_recursive_lock_destroy. Return error code.
54976         (glthread_once_call): Make static.
54977         (glthread_once_multithreaded): Renamed from glthread_once.
54978         * lib/tls.h: Include <errno.h>.
54979         (glthread_tls_key_init): New macro/function.
54980         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54981         (glthread_tls_set): New macro/function.
54982         (gl_tls_set): Define as wrapper around glthread_tls_set.
54983         (glthread_tls_key_destroy): New macro/function.
54984         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54985         Update function declarations.
54986         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54987         glthread_tls_get.
54988         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54989
54990 2008-08-04  Eric Blake  <ebb9@byu.net>
54991
54992         gnumakefile: use space, not TAB, outside of targets
54993         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54994
54995 2008-08-02  Jim Meyering  <meyering@redhat.com>
54996
54997         getdate.y: avoid locale-dependent date parsing failure
54998         In Turkish locales, getdate would fail to recognize keywords
54999         containing a lowercase "i".  The solution is not to rely on
55000         locale-sensitive case-conversion.
55001         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55002         (lookup_word): Use c_toupper in place of toupper.
55003         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55004         Reported by Vefa Bicakci <bicave@superonline.com> in
55005         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55006         * modules/getdate (Depends-on): Add c-ctype.
55007
55008 2008-08-02  Bruno Haible  <bruno@clisp.org>
55009
55010         * gnulib-tool (func_import): When updating or creating a .gitignore
55011         file, prepend each added line with a slash, and ignore leading slashes
55012         from the existing lines.
55013         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55014
55015 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55016
55017         Portability fix for GNU make 3.79.1.
55018         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55019         versions do not understand.
55020
55021 2008-08-01  Bruno Haible  <bruno@clisp.org>
55022
55023         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55024         * tests/test-isnanf.h (zero): New variable.
55025         (main): Avoid literal -0.0f.
55026         * tests/test-isnand.h (zero): New variable.
55027         (main): Avoid literal -0.0.
55028         * tests/test-isnanl.h (zero): New variable.
55029         (main): Avoid literal -0.0L.
55030         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55031         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55032         -0.0, -0.0L.
55033         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55034         (test_signbitd): Avoid literal -0.0.
55035         (test_signbitl): Avoid literal -0.0L.
55036         * tests/test-ceilf1.c (zero): New variable.
55037         (main): Avoid literal -0.0f.
55038         * tests/test-ceill.c (zero): New variable.
55039         (main): Avoid literal -0.0L.
55040         * tests/test-floorf1.c (zero): New variable.
55041         (main): Avoid literal -0.0f.
55042         * tests/test-floorl.c (zero): New variable.
55043         (main): Avoid literal -0.0L.
55044         * tests/test-roundf1.c (zero): New variable.
55045         (main): Avoid literal -0.0f.
55046         * tests/test-round1.c (zero): New variable.
55047         (main): Avoid literal -0.0.
55048         * tests/test-roundl.c (zero): New variable.
55049         (main): Avoid literal -0.0L.
55050         * tests/test-truncf1.c (zero): New variable.
55051         (main): Avoid literal -0.0f.
55052         * tests/test-trunc1.c (zero): New variable.
55053         (main): Avoid literal -0.0.
55054         * tests/test-truncl.c (zero): New variable.
55055         (main): Avoid literal -0.0L.
55056         * tests/test-frexp.c (zero): New variable.
55057         (main): Avoid literal -0.0.
55058         * tests/test-frexpl.c (zero): New variable.
55059         (main): Avoid literal -0.0L.
55060         * tests/test-ldexpl.c (zero): New variable.
55061         (main): Avoid literal -0.0L.
55062         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55063         (zerod, zerol): New variables.
55064         (test_function): Avoid literals -0.0, -0.0L.
55065         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55066         (zerod, zerol): New variables.
55067         (test_function): Avoid literals -0.0, -0.0L.
55068         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55069         (zerod, zerol): New variables.
55070         (test_function): Avoid literals -0.0, -0.0L.
55071         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55072         (zerod, zerol): New variables.
55073         (test_function): Avoid literals -0.0, -0.0L.
55074         * tests/test-strtod.c (zero): New variable.
55075         (main): Avoid literal -0.0.
55076         Reported by Jonathan C. Patschke <jp@centtech.com>.
55077
55078 2008-07-31  Jim Meyering  <meyering@redhat.com>
55079
55080         sha256.h: correct definition of SHA224_DIGEST_SIZE
55081         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55082         Reported by Paulie Pena IV <paulie4@gmail.com>.
55083         Define as 224 / 8, rather than as a literal.
55084         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55085         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55086         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55087
55088 2008-07-31  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55091         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55092         Reported by Jonathan Patschke <jp@centtech.com>.
55093
55094 2008-07-31  Bruno Haible  <bruno@clisp.org>
55095
55096         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55097         Reported by Paolo Bonzini <bonzini@gnu.org>.
55098
55099 2008-07-30  Eric Blake  <ebb9@byu.net>
55100
55101         test-strtod: allow compilation without -lm
55102         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55103         Reported by Dennis Clarke <blastwave@gmail.com>.
55104
55105 2008-07-28  Jim Meyering  <meyering@redhat.com>
55106
55107         bootstrap: work also when there are no .po files in po/
55108         * build-aux/bootstrap (update_po_files): Complete the change
55109         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55110
55111 2008-07-27  Jim Meyering  <meyering@redhat.com>
55112
55113         * users.txt: Add zile.
55114
55115 2008-07-26  Ben Pfaff  <blp@gnu.org>
55116
55117         Add missing dependencies on new m4/exponent[fdl].m4 files.
55118         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55119         * modules/isnand-nolibm: Add m4/exponentd.m4.
55120         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55121         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55122         m4/isnan[fdl].m4, because the macros actually used moved.
55123         Reported by Jim Meyering.
55124
55125 2008-07-14  Ben Pfaff  <blp@gnu.org>
55126
55127         Add isinf module.
55128         * lib/isinf.c: New file.
55129         * lib/math.in.h: Define isinf macro if we have decided to replace
55130         it.
55131         * m4/isinf.m4: New file.
55132         * m4/math_h.m4: Initialize and substitute variables for isinf
55133         module.
55134         * modules/isinf: New file.
55135         * modules/isinf-tests: New file.
55136         * modules/math: Add substitutions for new module.
55137         * tests/test-isinf.c: New file.
55138         * doc/posix-functions/isinf.texi: Mention new module.
55139         * MODULES.html.sh: Mention new module.
55140
55141 2008-07-14  Ben Pfaff  <blp@gnu.org>
55142
55143         Factor out some macros for use by additional modules.
55144         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55145         exponentf.m4.
55146         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55147         exponentd.m4.
55148         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55149         file exponentl.m4.
55150         * m4/exponentf.m4: New file.
55151         * m4/exponentd.m4: New file.
55152         * m4/exponentl.m4: New file.
55153         * modules/isnanf: Use new file m4/exponentf.m4.
55154         * modules/isnand: Use new file m4/exponentd.m4.
55155         * modules/isnanl: Use new file m4/exponentl.m4.
55156
55157 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55158
55159         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55160         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55161         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55162         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55163
55164         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55165         readlink on platforms without PATH_MAX.
55166
55167 2008-07-21  Eric Blake  <ebb9@byu.net>
55168
55169         Warn, not fail, on stale version.
55170         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55171
55172         Don't allow installation with stale devel version number.
55173         * top/GNUmakefile (_is-install-target): New macro.
55174         (_curr-ver): Forbid installation with stale version number.
55175
55176 2008-07-20  Bruno Haible  <bruno@clisp.org>
55177
55178         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55179         TESTS_ENVIRONMENT.
55180         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55181
55182 2008-07-20  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/c-stack.h (c_stack_action): Add documentation.
55185         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55186
55187 2008-07-20  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55190         * modules/readlink (License): Likewise.
55191
55192 2008-07-17  Eric Blake  <ebb9@byu.net>
55193
55194         * modules/c-stack (Link): Fix typo.
55195
55196         Make c-stack use libsigsegv, when available.
55197         * modules/c-stack (Depends-on): Add libsigsegv.
55198         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55199         needed.
55200         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55201         (segv_handler, overflow_handler, c_stack_action)
55202         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55203         implementation when libsigsegv is available, but only when using
55204         the library is necessary.
55205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55206         comment, explaining why XSI check fails on Linux.
55207         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55208         * tests/test-c-stack2.sh: Tweak skip message.
55209         * NEWS: Document new link-time requirements.
55210
55211 2008-07-16  Eric Blake  <ebb9@byu.net>
55212
55213         c-stack: Expose false positives when not using libsigsegv.
55214         * modules/c-stack-tests (Files): Expand test.
55215         * tests/test-c-stack.c (main): Add means to conditionally trigger
55216         non-overflow SIGSEGV.
55217         * tests/test-c-stack2.sh: New file.
55218
55219 2008-07-14  Bruno Haible  <bruno@clisp.org>
55220
55221         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55222         Reported by Eric Blake.
55223
55224 2008-07-14  Sam Steingold  <sds@gnu.org>
55225             Bruno Haible  <bruno@clisp.org>
55226
55227         New module libsigsegv.
55228         * modules/libsigsegv: New file.
55229         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55230         modifications.
55231         * MODULES.html.sh (Signal handling): New section.
55232
55233 2008-07-14  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/unictype/ctype-* (Description): Add the word "function".
55236         Improves the resulting doc in MODULES.html.
55237
55238 2008-07-12  Ben Pfaff  <blp@gnu.org>
55239
55240         Add longlong module.
55241         * modules/longlong: New file.
55242
55243 2008-07-12  Bruno Haible  <bruno@clisp.org>
55244
55245         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55246         to empty.
55247
55248 2008-07-10  Ben Pfaff  <blp@gnu.org>
55249
55250         Add isnan module.
55251         * doc/posix-functions/isnan.texi: Mention new module.
55252         * lib/math.in.h: Define isnan macro if we have decided to replace
55253         it.
55254         * m4/isnan.m4: New file.
55255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55256         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55257         also.
55258         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55259         redundancy.
55260         * m4/math_h.m4: Initialize and substitute variables for isnan
55261         module.
55262         * modules/isnan: New file.
55263         * modules/isnan-tests: New file.
55264         * modules/math: Add substitutions for new module.
55265         * tests/test-isnan.c: New file.
55266         * MODULES.html.sh: Mention new module.
55267
55268 2008-07-10  Ben Pfaff  <blp@gnu.org>
55269
55270         Add isnanf module.
55271         * lib/isnanf.m4: New file.
55272         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55273         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55274         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55275         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55276         * modules/isnanf: New file.
55277         * modules/isnanf-tests: New file.
55278         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55279         files.
55280         * tests/test-isnanf-nolibm.c: factored most of its contents into
55281         new file tests/test-isnanf.h.
55282         * tests/test-isnanf.h: New file.
55283         * tests/test-isnanf.c: New file.
55284         * MODULES.html.sh: Mention new module.
55285         * doc/glibc-functions/isnanf.texi: Mention new module.
55286
55287 2008-07-10  Ben Pfaff  <blp@gnu.org>
55288
55289         Add isnand module.
55290         * lib/isnand.h: New file.
55291         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55292         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55293         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55294         functionality also.
55295         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55296         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55297         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55298         * modules/isnand: New file.
55299         * modules/isnand-tests: New file.
55300         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55301         files.
55302         * tests/test-isnand-nolibm.c: factored most of its contents into
55303         new file tests/test-isnand.h.
55304         * tests/test-isnand.h: New file.
55305         * tests/test-isnand.c: New file.
55306         * MODULES.html.sh: Mention new module.
55307
55308 2008-07-10  Ben Pfaff  <blp@gnu.org>
55309
55310         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55311         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55312         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55313         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55314         * modules/isnanf-nolibm: Update references to renamed files.
55315         * modules/isnand-nolibm: Likewise.
55316         * modules/isnanf-nolibm-tests: Likewise.
55317         * modules/isnand-nolibm-tests: Likewise.
55318         * lib/frexp.c: Likewise.
55319         * lib/isfinite.c: Likewise.
55320         * lib/signbitd.c: Likewise.
55321         * lib/signbitf.c: Likewise.
55322         * lib/vasnprintf.c: Likewise.
55323         * tests/test-ceilf1.c: Likewise.
55324         * tests/test-ceilf2.c: Likewise.
55325         * tests/test-floorf1.c: Likewise.
55326         * tests/test-floorf2.c: Likewise.
55327         * tests/test-frexp.c: Likewise.
55328         * tests/test-round1.c: Likewise.
55329         * tests/test-round2.c: Likewise.
55330         * tests/test-roundf1.c: Likewise.
55331         * tests/test-strtod.c: Likewise.
55332         * tests/test-trunc1.c: Likewise.
55333         * tests/test-trunc2.c: Likewise.
55334         * tests/test-truncf1.c: Likewise.
55335         * tests/test-truncf2.c: Likewise.
55336         * NEWS: Mention the renamed header files.
55337
55338 2008-07-11  Jim Meyering  <meyering@redhat.com>
55339
55340         vc-list-files: make the last-resort awk code more portable
55341         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55342         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55343         does not support it.
55344
55345 2008-07-10  Eric Blake  <ebb9@byu.net>
55346
55347         Work with tar's bootstrap.
55348         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55349         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55350         an m4 comment.
55351
55352 2008-07-09  Jim Meyering  <meyering@redhat.com>
55353
55354         posix-shell.m4: fix typo that made this test malfunction
55355         * m4/posix-shell.m4: Remove capitalization in variable name.
55356
55357 2008-07-08  Bruno Haible  <bruno@clisp.org>
55358
55359         * m4/onceonly.m4: Update comments.
55360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55361
55362 2008-07-04  Jim Meyering  <meyering@redhat.com>
55363
55364         * users.txt: Add vc-dwim.
55365         (bison, coreutils): Use the gitweb URL.
55366
55367 2008-07-03  Jim Meyering  <meyering@redhat.com>
55368
55369         * users.txt: Add libffcall.  From Sam Steingold.
55370
55371 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55372
55373         getdate.y: do not ignore TZ with relative day, month or year offset
55374         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55375         relative-date-handling, since otherwise, the latter would clobber the
55376         sole output (an updated Start value) of the tz-handling block.
55377         * tests/test-getdate.c: Tests for the fix
55378
55379 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55380
55381         Recognize 'foo_LIBRARIES += libgnu.a'.
55382         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55383         makefile snippet has already specified an installation location,
55384         also using '+='.
55385
55386 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55387
55388         getdate.y: factor out common actions
55389         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55390         Use them in place of open-coded actions.
55391
55392 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55393
55394         Add self-test for getdate module.
55395         * modules/getdate-tests: New file.
55396         * tests/test-getdate.c: New file.
55397
55398 2008-06-29  Bruno Haible  <bruno@clisp.org>
55399
55400         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55401         .gitignore.
55402         Reported by Sylvain Beucler <beuc@beuc.net>.
55403
55404 2008-06-29  Bruno Haible  <bruno@clisp.org>
55405
55406         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55407         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55408
55409 2008-06-29  Bruno Haible  <bruno@clisp.org>
55410
55411         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55412         EXTRA_DIST.
55413         Reported by Sylvain Beucler <beuc@beuc.net>.
55414
55415 2008-06-26  Jim Meyering  <meyering@redhat.com>
55416
55417         make several modules depend on the "open" module
55418         This provides slightly increased consistency when opening-for-write
55419         the name of a non-directory spelled with a trailing slash.
55420         * modules/chdir-safer: Likewise.
55421         * modules/chown: Likewise.
55422         * modules/clean-temp: Likewise.
55423         * modules/copy-file: Likewise.
55424         * modules/fchdir: Likewise.
55425         * modules/fcntl-safer: Likewise.
55426         * modules/pipe: Likewise.
55427         * modules/utime: Likewise.
55428         Prompted by Eric Blake and Bruno Haible.
55429
55430 2008-06-24  Andreas Schwab  <schwab@suse.de>
55431
55432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55433         literals can be used as initializers for global variables.
55434
55435 2008-06-23  Eric Blake  <ebb9@byu.net>
55436
55437         Make gnulib-cache.m4 easier to diff.
55438         * gnulib-tool (func_import): Allow newlines when reading cached
55439         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55440
55441 2008-06-23  Bruno Haible  <bruno@clisp.org>
55442
55443         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55444         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55445         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55446         m4/signalblocking.m4.
55447         (gl_PREREQ_SIGACTION): Don't invoke it.
55448         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55449         gl_PREREQ_SIG_HANDLER_H.
55450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55451         Don't check for sigaction here.
55452
55453 2008-06-23  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55456         (install_handlers): Don't set the SA_RESETHAND flag.
55457
55458 2008-06-23  Bruno Haible  <bruno@clisp.org>
55459
55460         * m4/sigaction.m4: Comment fixes.
55461         * lib/signal.in.h: Likewise.
55462
55463 2008-06-23  Eric Blake  <ebb9@byu.net>
55464
55465         Fix typo.
55466         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55467
55468         Avoid SA_ namespace.
55469         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55470         Reported by Ralf Wildenhues.
55471
55472         Avoid test failure due to SA_RESTORER.
55473         * tests/test-sigaction.c (SA_MASK): New macro.
55474         (main): Avoid failing due to extension flags being set.
55475         Reported by Jim Meyering.
55476
55477         Revert use of sig-handler.h in sigprocmask.c.
55478         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55479         it requires the existence of struct sigaction.
55480         * lib/sigprocmask.c (handler_t): Restore typedef.
55481         (rpl_signal, old_handlers): Use local type.
55482
55483 2008-06-22  Bruno Haible  <bruno@clisp.org>
55484
55485         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55486         conditionally.
55487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55488
55489 2008-06-22  Bruno Haible  <bruno@clisp.org>
55490
55491         * doc/posix-functions/siginterrupt.texi: Move note.
55492
55493         * lib/signal.in.h (SA_RESTART): New macro.
55494         * lib/sigaction.c: Update comment.
55495
55496         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55497
55498         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55499         (gl_PREREQ_SIGPROCMASK): Invoke it.
55500         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55501
55502         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55503
55504         * lib/sigprocmask.c: Update a comment.
55505
55506 2008-06-21  Eric Blake  <ebb9@byu.net>
55507
55508         Use sigaction module rather than signal().
55509         * modules/c-stack (Depends-on): Add sigaction.
55510         * modules/fatal-signal (Depends-on): Likewise.
55511         * modules/nanosleep (Depends-on): Likewise.
55512         * modules/sigprocmask (Files): Add sig-handler.h.
55513         * modules/sigaction (Files): Likewise.
55514         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55515         Eggert.
55516         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55517         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55518         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55519         (init_fatal_signals): Likewise.
55520         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55521         (siginterrupt): Delete fallback.
55522         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55523         instead.
55524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55525         siginterrupt.
55526
55527         New module sigaction, for mingw.
55528         * modules/sigaction: New module...
55529         * modules/sigaction-tests: ...and its test.
55530         * m4/sigaction.m4: New file.
55531         * lib/sigaction.c: Likewise.
55532         * tests/test-sigaction.c: Likewise.
55533         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55534         * modules/signal (Makefile.am): Likewise.
55535         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55536         needed.
55537         * doc/posix-headers/signal.texi (signal.h): Mention provided
55538         types.
55539         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55540         that sigaction is preferable.
55541         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55542         module.
55543         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55544         sigaction.
55545
55546         Improve robustness of sigprocmask by overriding signal.
55547         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55548         is in use.
55549         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55550         (SIGKILL, SIGSTOP): Provide fallbacks.
55551         (rpl_signal): Implement.
55552         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55553         signal can be called inside handlers.
55554
55555         Fix nanosleep module on mingw.
55556         * modules/nanosleep (Depends-on): Add sys_select.
55557         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55558
55559         Fix licensing of sigprocmask.
55560         * modules/raise (License): Relicense as LGPL.
55561
55562 2008-06-21  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55565         result if it contains question marks.
55566         Reported by Michael Geng <linux@michaelgeng.de>.
55567
55568 2008-06-19  Bruno Haible  <bruno@clisp.org>
55569
55570         Fix CVS-ism.
55571         * doc/gnulib.texi: Include updated-stamp.texi.
55572         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55573         (updated-stamp.texi): New rule.
55574         (gnulib.info): Depend on it.
55575         * doc/.gitignore: Add updated-stamp.texi.
55576         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55577
55578 2008-06-19  Bruno Haible  <bruno@clisp.org>
55579
55580         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55581         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55582
55583 2008-06-19  Eric Blake  <ebb9@byu.net>
55584
55585         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55586         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55587         Reported by Stepan Kasal.
55588
55589 2008-06-18  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55592         Reported by Eric Blake.
55593
55594 2008-06-18  Eric Blake  <ebb9@byu.net>
55595
55596         Work around cygwin 1.5.25 strsignal bug.
55597         * tests/test-strsignal.c: Allow for const char *.
55598         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55599
55600 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55601
55602         * users.txt: Update URL to article and add author/date
55603         information.
55604
55605 2008-06-17  Bruno Haible  <bruno@clisp.org>
55606
55607         New macro gl_DISABLE_THREADS.
55608         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55609         if the user did not pass --enable-threads or --disable-threads option.
55610         (gl_DISABLE_THREADS): New macro.
55611         Reported by Eric Blake <ebb9@byu.net>.
55612
55613 2008-06-17  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55616         when the macro ignores it.
55617         Based on a patch by Eric Blake <ebb9@byu.net>.
55618
55619 2008-06-17  Bruno Haible  <bruno@clisp.org>
55620
55621         * modules/tls (License): Change to LGPLv2+.
55622         Reported by Eric Blake.
55623
55624 2008-06-17  Eric Blake  <ebb9@byu.net>
55625
55626         Simplify c-stack prerequisites.
55627         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55629         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55630         check.
55631         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55632         <sys/resource.h>.
55633
55634         Move c-stack test into testsuite.
55635         * modules/c-stack-tests: New file.
55636         * lib/c-stack.c [DEBUG]: Move test program...
55637         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55638         fail test if sigaltstack is lacking.
55639         * tests/test-c-stack.sh: New driver file.
55640
55641 2008-06-16  Eric Blake  <ebb9@byu.net>
55642
55643         Use raise module consistently.
55644         * modules/fatal-signal (Depends-on): Add raise.
55645         * modules/sigprocmask (Depends-on): Likewise.
55646         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55647         * lib/sigprocmask.c (sigprocmask): Likewise.
55648         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55649         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55650
55651         Fix compliance bug in sigpending.
55652         * lib/sigprocmask.c (sigpending): Return pending array via
55653         parameter, not return value.
55654
55655 2008-06-14  Eric Blake  <ebb9@byu.net>
55656
55657         Improve obstack-printf test code.
55658         * tests/test-obstack-printf.c (test_function): Fix comment, and
55659         simplify usage of obstack_* in macros.  Add a test for coverage.
55660         Reported by Bruno Haible.
55661
55662 2008-06-14  Bruno Haible  <bruno@clisp.org>
55663
55664         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55665         array size as a constant, not as a const variable.
55666         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55667         AC_USE_SYSTEM_EXTENSIONS.
55668         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55669         Test whether the obstack_printf function actually exists.
55670         * modules/obstack-printf (Depends-on): Add extensions.
55671         (Include): Remove obstack.h.
55672         * modules/obstack-printf-posix (Depends-on): Add extensions.
55673         (Include): Remove obstack.h.
55674
55675 2008-06-13  Eric Blake  <ebb9@byu.net>
55676
55677         Add obstack-printf and obstack-printf-posix modules.
55678         * modules/obstack-printf: New file.
55679         * modules/obstack-printf-posix: Likewise.
55680         * MODULES.html.sh (Misc): Mention them.
55681         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55682         Likewise.
55683         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55684         Likewise.
55685         * modules/stdio (Makefile.am): Accomodate new modules.
55686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55687         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55688         Declare.
55689         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55690         functions.
55691         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55692         (gl_REPLACE_OBSTACK_PRINTF): New macros
55693         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55694         * tests/test-obstack-printf.c: New file.
55695         * modules/obstack-printf-tests: Likewise.
55696         * modules/obstack-printf-posix-tests: Likewise.
55697
55698 2008-06-11  Bruno Haible  <bruno@clisp.org>
55699
55700         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55701         * lib/open.c: Include errno.h.
55702         (open): Fail when attempting to write to a file that has a trailing
55703         slash.
55704         * tests/test-open.c (main): Test against trailing slash bug.
55705         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55706
55707 2008-06-10  Bruno Haible  <bruno@clisp.org>
55708
55709         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55710         for $? to work inside the trap command, with various /bin/sh-s.
55711         * tests/test-vc-list-files-cvs.sh: Likewise.
55712
55713 2008-06-10  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/acl-internal.h: Don't include gettext.h here.
55716         * lib/set-mode-acl.c: Include gettext.h here.
55717         * lib/copy-acl.c: Likewise.
55718
55719 2008-06-10  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55722         * lib/wait-process.c (wait_subprocess): Likewise.
55723         * lib/execute.h (execute): Add termsigp argument.
55724         * lib/execute.c (execute): Likewise.
55725         * lib/csharpcomp.c (compile_csharp_using_pnet,
55726         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55727         * lib/csharpexec.c (execute_csharp_using_pnet,
55728         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55729         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55730         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55731         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55732         is_jikes_present): Update.
55733         * lib/javaexec.c (execute_java_class): Update.
55734         * lib/javaversion.c (execute_and_read_line): Update.
55735         * NEWS: Document the changes.
55736         Reported by Eric Blake.
55737
55738 2008-06-10  Eric Blake  <ebb9@byu.net>
55739
55740         Add missing include.
55741         * tests/test-strstr.c (includes): Add <signal.h>.
55742         * tests/test-strcasestr.c (includes): Likewise.
55743         * tests/test-memmem.c (includes): Likewise.
55744
55745 2008-06-10  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/wait-process.c (wait_subprocess): Add an assertion.
55748
55749 2008-06-10  Bruno Haible  <bruno@clisp.org>
55750
55751         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55752
55753 2008-06-10  Bruno Haible  <bruno@clisp.org>
55754
55755         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55756         using alarm().
55757         * tests/test-strcasestr.c (main): Likewise.
55758         * tests/test-strstr.c (main): Likewise.
55759
55760 2008-06-09  Bruno Haible  <bruno@clisp.org>
55761
55762         Work around the Solaris 10 ACE ACLs ABI change.
55763         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55764         declare if ACL_NO_TRIVIAL is present.
55765         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55766         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55767         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55768         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55769         define if ACL_NO_TRIVIAL is present.
55770         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55771         and use the current ABI.
55772         (file_has_acl): Use same #if condition as elsewhere.
55773         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55774         in use, and use the current ABI.
55775         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55776         Reported by Jim Meyering.
55777
55778 2008-06-09  Eric Blake  <ebb9@byu.net>
55779
55780         Work around environments that (stupidly) ignore SIGALRM.
55781         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55782         before using alarm().
55783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55785         Reported by Ian Beckwith <ianb@erislabs.net>.
55786
55787         Produce autobuild blurb earlier in log.
55788         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55789
55790 2008-06-09  Jim Meyering  <meyering@redhat.com>
55791         and Ondřej Vašík  <ovasik@redhat.com>
55792
55793         utimens.c: correct kernel bug work-around
55794         Ondřej Vašík found that the invalid return value of 280 indicates
55795         failure, not success, and the kernel bug we're trying to work
55796         around affects not just the utimensat call, but also the fallback
55797         futimens call.
55798         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55799         not success.
55800         [HAVE_FUTIMENS]: Use the same work-around, here.
55801
55802 2008-06-09  Jim Meyering  <meyering@redhat.com>
55803
55804         add more guards around definition of ACE_-related code
55805         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55806         ALLOW and ACE_OWNER are also defined.
55807
55808 2008-06-08  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/acl-internal.h: Add me as co-author.
55811         * lib/file-has-acl.c: Likewise.
55812         * lib/set-mode-acl.c: Likewise.
55813         * lib/copy-acl.c: Likewise.
55814
55815 2008-06-08  Bruno Haible  <bruno@clisp.org>
55816
55817         Add support for AIX ACLs.
55818         * lib/acl-internal.h (acl_nontrivial): New declaration.
55819         * lib/file-has-acl.c (acl_nontrivial): New function.
55820         (file_has_acl): Add implementation using AIX 4 ACL API.
55821         * lib/set-mode-acl.c (qset_acl): Likewise.
55822         * lib/copy-acl.c (qcopy_acl): Likewise.
55823
55824 2008-06-08  Bruno Haible  <bruno@clisp.org>
55825
55826         Add support for HP-UX ACLs.
55827         * lib/acl-internal.h (acl_nontrivial): New declaration.
55828         * lib/file-has-acl.c (acl_nontrivial): New function.
55829         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55830         * lib/set-mode-acl.c (qset_acl): Likewise.
55831         * lib/copy-acl.c (qcopy_acl): Likewise.
55832
55833 2008-06-08  Bruno Haible  <bruno@clisp.org>
55834
55835         Add support for Cygwin ACLs.
55836         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55837         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55838         the chmod_or_fchmod call.
55839         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55840
55841 2008-06-08  Bruno Haible  <bruno@clisp.org>
55842
55843         Fix bug with setuid modes in Solaris 10+ code.
55844         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55845         succeeded, when the mode contains some special bits.
55846
55847 2008-06-08  Bruno Haible  <bruno@clisp.org>
55848
55849         Add support for Solaris 7..10 ACLs.
55850         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55851         declarations.
55852         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55853         functions.
55854         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55855         * lib/set-mode-acl.c (qset_acl): Likewise.
55856         * lib/copy-acl.c (qcopy_acl): Likewise.
55857
55858 2008-06-08  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55861         declaration.
55862         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55863         (acl_access_nontrivial): Remove MacOS X case.
55864         (file_has_acl): Use acl_extended_nontrivial.
55865         * lib/copy-acl.c (qcopy_acl): Likewise.
55866
55867 2008-06-08  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55870
55871 2008-06-08  Jim Meyering  <meyering@redhat.com>
55872
55873         * modules/acl (Maintainer): Add Bruno Haible.
55874
55875 2008-06-07  Bruno Haible  <bruno@clisp.org>
55876
55877         Improve support for Tru64 ACLs.
55878         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55879         ACL on OSF/1.
55880
55881 2008-06-07  Bruno Haible  <bruno@clisp.org>
55882
55883         Add support for MacOS X ACLs.
55884         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55885         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55886         * lib/set-mode-acl.c (qset_acl): Likewise.
55887         * lib/copy-acl.c (qcopy_acl): Likewise.
55888
55889 2008-06-07  Bruno Haible  <bruno@clisp.org>
55890
55891         Fix memory leak introduced on 2008-05-22.
55892         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55893         use.
55894
55895 2008-06-07  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55898         to construct an empty ACL.
55899
55900 2008-06-07  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55903         precisely.
55904         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55905
55906 2008-06-07  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55909         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55910
55911 2008-06-07  Bruno Haible  <bruno@clisp.org>
55912
55913         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55914         regardless of POSIX.
55915         * doc/posix-functions/_longjmp.texi: Likewise.
55916         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55917         SystemV platform in this case.
55918
55919 2008-06-06  Eric Blake  <ebb9@byu.net>
55920
55921         Document abort() bugs.
55922         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55923
55924         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55925         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55926         sigsetjmp.
55927         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55928         siglongjmp, but only as a macro.
55929         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55930         is obsolete.
55931         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55932
55933         Tweak documentation to cover cygwin argz bugs.
55934         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55935         argz bug fix; no code change needed since no cygwin releases
55936         occurred between the last fix and the bug being tested.
55937         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55938         module and recently fixed cygwin bugs.
55939         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55940         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55941         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55942         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55943         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55944         Likewise.
55945         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55946         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55947         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55948         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55949         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55950         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55951         Likewise.
55952
55953         Avoid gcc warning on cygwin.
55954         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55955         !ACL_NO_TRIVIAL]: Avoid unused variable.
55956
55957 2008-06-05  Eric Blake  <ebb9@byu.net>
55958
55959         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55960         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55961         git-version-gen fails to come up with a version.
55962         Reported by Simon Josefsson.
55963
55964 2008-06-05  Jim Meyering  <meyering@redhat.com>
55965             Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         utimens.c: work around a probable Linux kernel bug
55968         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55969         appears to be a kernel bug that causes utimensat to return 280
55970         instead of 0, indicating success.
55971
55972 2008-06-04  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55975         2008-06-01 commit.
55976
55977 2008-06-04  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55980         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55981         (file_has_acl): Use it. Save errno afterwards.
55982         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55983
55984 2008-06-03  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55987         draft code. Simplify #ifs.
55988         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55989         Put Solaris code after POSIX-draft code. Fix comments regarding
55990         Solaris 10, HP-UX. Mention Cygwin.
55991         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55992
55993 2008-06-03  Eric Blake  <ebb9@byu.net>
55994
55995         Provide fallback for older kernels.
55996         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55997         Provide runtime fallback if kernel lacks support.
55998         Reported by Mike Frysinger.
55999
56000 2008-06-02  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56003         it exists.
56004
56005 2008-06-02  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56008         * lib/copy-acl.c (qcopy_acl): Update comment.
56009
56010 2008-06-02  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56013         like ACL APIs.
56014
56015 2008-06-02  Bruno Haible  <bruno@clisp.org>
56016
56017         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56018         * tests/test-set-mode-acl.sh: Likewise.
56019         * tests/test-copy-acl.sh: Likewise.
56020         * tests/test-copy-file.sh: Likewise.
56021
56022 2008-06-02  Bruno Haible  <bruno@clisp.org>
56023
56024         * tests/test-file-has-acl.sh: Remove unused code.
56025
56026 2008-06-01  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56029         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56030         messages.
56031         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56032
56033 2008-06-01  Bruno Haible  <bruno@clisp.org>
56034
56035         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56036         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56037         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56038         APIs.
56039         * modules/acl-tests (configure.ac): Remove tests now contained in
56040         m4/acl.m4.
56041
56042 2008-06-02  Jim Meyering  <meyering@redhat.com>
56043
56044         announce-gen: use a better key-server host name
56045         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56046         it may be more consistently reliable.  Suggested by Werner Koch
56047         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56048
56049 2008-06-01  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56052         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56053
56054 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56055
56056         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56057
56058 2008-06-01  Bruno Haible  <bruno@clisp.org>
56059
56060         New ACL tests.
56061         * tests/test-file-has-acl.sh: New file.
56062         * tests/test-file-has-acl.c: New file.
56063         * tests/test-set-mode-acl.sh: New file.
56064         * tests/test-set-mode-acl.c: New file.
56065         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56066         * tests/test-copy-acl.c: New file.
56067         * modules/acl-tests: New file, based on modules/copy-file-tests.
56068         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56069         (Depends-on): Add acl-tests.
56070         (configure.ac): Remove checks.
56071         (Makefile.am): Don't create test-sameacls program here any more.
56072
56073 2008-06-01  Bruno Haible  <bruno@clisp.org>
56074
56075         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56076         * tests/test-sameacls.c: Include progname.h.
56077         (main): Invoke set_program_name. Portability fixes for MacOS X,
56078         Solaris, HP-UX.
56079
56080 2008-06-01  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56083         function.
56084         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56085
56086 2008-06-01  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/rpmatch (Depends-on): Add strdup.
56089
56090 2008-06-01  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/pipe.c: Include unistd-safer.h.
56093         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56094         * modules/pipe (Depends-on): Add unistd-safer.
56095
56096 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56097
56098         * modules/autobuild (configure.ac): Call AB_INIT.
56099
56100 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56101
56102         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56103         Suggested by Bruno Haible <bruno@clisp.org>.
56104
56105 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56106
56107         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56108         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56109         <bruno@clisp.org>.
56110
56111 2008-05-29  Eric Blake  <ebb9@byu.net>
56112
56113         Prefer new POSIX 200x interfaces over futimesat.
56114         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56115         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56116         when available.
56117         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56118
56119 2008-05-28  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/stpcpy (License): Change to LGPLv2+.
56122         Requested by David Lutterkort <dlutter@redhat.com>.
56123
56124 2008-05-27  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56127         current mingw.
56128         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56129
56130 2008-05-27  Bruno Haible  <bruno@clisp.org>
56131
56132         * modules/iconv_open (Link): New section, from module 'iconv'.
56133         * modules/striconv (Link): Likewise.
56134         * modules/striconveh (Link): Likewise.
56135         * modules/xstriconv (Link): Likewise.
56136         * modules/unicodeio (Link): Likewise.
56137         * modules/propername (Link): Likewise.
56138         Reported by Jim Meyering.
56139
56140 2008-05-26  Jim Meyering  <meyering@redhat.com>
56141
56142         sha256: do not artificially restrict buffer length to be < 2^32
56143         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56144         uint32_t to size_t.
56145         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56146         to match.
56147
56148         avoid unaligned access errors, e.g., on sparc
56149         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56150         direct access through a possibly-unaligned uint64* pointer.
56151         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56152         direct access through a possibly-unaligned uint32* pointer.
56153         Prompted by this patch from Tom "spot" Callaway:
56154         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56155
56156         sha512.c: fix typo in comment
56157         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56158
56159 2008-05-25  Bruno Haible  <bruno@clisp.org>
56160
56161         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56162         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56163         (Makefile.am): Update lib_SOURCES.
56164
56165 2008-05-25  Bruno Haible  <bruno@clisp.org>
56166
56167         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56168
56169 2008-05-25  Jim Meyering  <meyering@redhat.com>
56170
56171         useless-if-before-free: freed expr may have white-space differences
56172         * build-aux/useless-if-before-free: Recognize cases in which the
56173         freed expression differs from the tested one in embedded white
56174         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56175         $1 was used, so we can't make any regexp shy.  Improved tests now
56176         detect this.
56177
56178         useless-if-before-free: accept white space in the expression.
56179         * build-aux/useless-if-before-free: For now, any white space
56180         in the expression must be identical in the free argument.
56181
56182         useless-if-before-free: efficiency tweak
56183         * build-aux/useless-if-before-free: Make the expression-matching
56184         regexp "shy".
56185         Make the *outer* regexp shy, not the expr-matching one.
56186
56187         update code-in-comment to accept cast of free arg
56188         * build-aux/useless-if-before-free: Update regexp.
56189
56190 2008-05-25  Bruno Haible  <bruno@clisp.org>
56191
56192         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56193         * modules/copy-file-tests (Files, Makefile.am): Update.
56194         * tests/test-copy-file.c (func_test_copy): Update.
56195
56196 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56197
56198         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56199
56200 2008-05-23  Bruno Haible  <bruno@clisp.org>
56201
56202         Improve support for ACLs on OSF/1.
56203         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56204         Remove fallback for unknown flavors of ACLs.
56205
56206 2008-05-22  Bruno Haible  <bruno@clisp.org>
56207
56208         Add support for ACLs on OSF/1.
56209         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56210         replacements.
56211         (acl_free_text): New macro fallback.
56212         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56213         acl_free.
56214         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56215         acl_free_text function. Require AC_C_INLINE.
56216
56217 2008-05-22  Bruno Haible  <bruno@clisp.org>
56218
56219         Make copy_acl work on MacOS X 10.5.
56220         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56221         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56222         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56223         If MODE_INSIDE_ACL, don't assume that every system has the same text
56224         representation for ACLs as FreeBSD.
56225         * lib/copy-acl.c (copy_acl): Add support for platforms with
56226         !MODE_INSIDE_ACL.
56227         * lib/file-has-acl.c (file_has_acl): Likewise.
56228         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56229         FreeBSD, MacOS X, or IRIX, respectively.
56230
56231 2008-05-22  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/acl.h: Don't include <sys/acl.h>.
56234         (GETACLCNT): Move fallback to lib/acl-internal.h.
56235         * lib/acl-internal.h: Include <sys/acl.h> here.
56236         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56237
56238 2008-05-22  Bruno Haible  <bruno@clisp.org>
56239
56240         Split off copy_acl function to separate file.
56241         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56242         * lib/acl.c (copy_acl): Moved function to separate file.
56243         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56244         * modules/acl (Files): Add lib/copy-acl.c.
56245         (Makefiles.am): Augment lib_SOURCES.
56246
56247 2008-05-22  Bruno Haible  <bruno@clisp.org>
56248
56249         * modules/copy-file-tests: New file.
56250         * tests/test-copy-file.sh: New file.
56251         * tests/test-copy-file.c: New file.
56252         * tests/test-copy-file-sameacls.c: New file.
56253
56254 2008-05-22  Eric Blake  <ebb9@byu.net>
56255
56256         Avoid gcc warning.
56257         * tests/test-memcmp.c (main): Pass NULL indirectly.
56258
56259 2008-05-21  Bruno Haible  <bruno@clisp.org>
56260
56261         Add reference doc about ACLs.
56262         * doc/acl-resources.txt: New file.
56263         * doc/acl-cygwin.txt: New file.
56264
56265 2008-05-21  Bruno Haible  <bruno@clisp.org>
56266
56267         Avoid one more warning from gcc.
56268         * lib/vasnprintf.c (IF_LINT): Update comments.
56269         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56270
56271 2008-05-21  Jim Meyering  <meyering@redhat.com>
56272
56273         avoid a warning from gcc
56274         * lib/vasnprintf.c (IF_LINT): Define.
56275         (scale10_round_decimal_long_double):
56276         Use it to avoid a "may be used uninitialized" warning.
56277         (scale10_round_decimal_double): Likewise.
56278
56279 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56280
56281         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56282         declared.
56283
56284 2008-05-20  Bruno Haible  <bruno@clisp.org>
56285
56286         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56287         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56288
56289 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56290
56291         * modules/memcmp-tests: New file.
56292         * tests/test-memcmp.c: New file.
56293
56294 2008-05-19  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/propername (Notice, configure.ac): Put quoted "..." into
56297         --keyword option.
56298         * lib/propername.h: Update comments accordingly.
56299         Reported by Eric Blake.
56300
56301 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56302
56303         * modules/getpass-gnu (Depends-on): Add fseeko.
56304
56305 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56306
56307         * modules/base64-tests: New file.
56308
56309 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56310
56311         * lib/base64.c (base64_decode_ctx): If a decode context structure
56312         was passed in use it to ignore newlines.  If a context structure
56313         was _not_ passed in, continue to treat newlines as garbage (this
56314         is the historical behavior).  Formerly base64_decode.
56315         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56316         takes a decode context structure.
56317         * lib/base64.h (base64_decode): Macro for four-argument calls.
56318         (base64_decode_alloc): Likewise.
56319         * lib/base64.c (base64_decode_ctx): If a decode context structure
56320         was passed in use it to ignore newlines.  If a context structure
56321         was _not_ passed in, continue to treat newlines as garbage (this
56322         is the historical behavior).  Formerly base64_decode.
56323         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56324         takes a decode context structure.
56325         * lib/base64.h (base64_decode): Macro for four-argument calls.
56326         (base64_decode_alloc): Likewise.
56327
56328 2008-05-19  Jim Meyering  <meyering@redhat.com>
56329
56330         avoid a warning from gcc
56331         * lib/trim.c (IF_LINT): Define.
56332         (trim2): Use it to avoid a "may be used uninitialized" warning.
56333
56334         Fix doc typo.
56335         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56336
56337 2008-05-19  Bruno Haible  <bruno@clisp.org>
56338
56339         * doc/glibc-functions/getpass.texi: Document limits of other
56340         implementations.
56341
56342 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56343             Bruno Haible <bruno@clisp.org>
56344
56345         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56346
56347 2008-05-18  Bruno Haible  <bruno@clisp.org>
56348
56349         * modules/propername: New file, from GNU gettext.
56350         * lib/propername.h: New file, from GNU gettext.
56351         * lib/propername.c: New file, from GNU gettext.
56352         * MODULES.html.sh (Internationalization functions): Add propername.
56353
56354 2008-05-16  Jim Meyering  <meyering@redhat.com>
56355             Bruno Haible  <bruno@clisp.org>
56356
56357         Avoid some warnings from "gcc -Wshadow".
56358         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56359
56360 2008-05-15  Eric Blake  <ebb9@byu.net>
56361
56362         Extend previous patch to cygwin 1.7.0.
56363         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56364         fast implementation in cygwin >= 1.7.0.
56365         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56367
56368 2008-05-15  Bruno Haible  <bruno@clisp.org>
56369
56370         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56371         implementation in glibc >= 2.9.
56372         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56374
56375 2008-05-15  Bruno Haible  <bruno@clisp.org>
56376
56377         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56378         (Unicode string functions): Add unilbrk/*.
56379         Reported by Karl Berry.
56380
56381 2008-05-15  Eric Blake  <ebb9@byu.net>
56382
56383         Fix violation of <stdbool.h> replacement in regex.
56384         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56385         * lib/regexec.c (re_search_internal): Likewise.
56386         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56387
56388 2008-05-15  Jim Meyering  <meyering@redhat.com>
56389
56390         avoid distracting test output when git or cvs is not found
56391         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56392         * tests/test-vc-list-files-git.sh: Likewise.
56393
56394 2008-05-15  Eric Blake  <ebb9@byu.net>
56395
56396         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56397         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56398         glibc version.
56399         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56400         * doc/posix-functions/strstr.texi (strstr): Likewise.
56401         * lib/str-two-way.h (MAX): Sychronize with glibc.
56402
56403 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56404
56405         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56406         opr.ctx_type.
56407         (calc_first): Initialize constraint field.
56408         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56409         Fix grammar.
56410         (duplicate_node): Merge constraint field for all node types.
56411         (calc_eclosure_iter): Look at constraint field for all node types.
56412         * lib/regex_internal.c (create_cd_newstate): Don't look at
56413         opr.ctx_type.
56414
56415 2008-05-14  Bruno Haible  <bruno@clisp.org>
56416
56417         Help GCC to do better code generation.
56418         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56419         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56420         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56421         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56422         Declare with attribute 'malloc' if supported.
56423
56424 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56425
56426         use "echo STR|wc -c" rather than unportable "expr length STR"
56427         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56428         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56429
56430 2008-05-14  Jim Meyering  <meyering@redhat.com>
56431
56432         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56433         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56434         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56435         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56436         via Collin Lasse.
56437
56438 2008-05-14  Eric Blake  <ebb9@byu.net>
56439
56440         Avoid quadratic growth in gl_LIBSOURCES.
56441         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56442         Suggested by Bruno Haible.
56443
56444         Test xmemdup0.
56445         * modules/xmemdup0-tests: New file.
56446         * tests/test-xmemdup0.c: Likewise.
56447
56448 2008-05-13  Eric Blake  <ebb9@byu.net>
56449
56450         Split xmemdup0 into its own module.
56451         * modules/xmemdup0: New file.
56452         * lib/xmemdup0.h: Likewise.
56453         * lib/xmemdup0.c: Likewise.
56454         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56455         * lib/xalloc.h (xmemdup0): Remove.
56456         * lib/xmalloc.c (xmemdup0): Likewise.
56457
56458 2008-05-13  Eric Blake  <ebb9@byu.net>
56459             Bruno Haible  <bruno@clisp.org>
56460
56461         Reduce number of forks required during autoconf.
56462         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56463         and gl_LIBSOURCES_DIR.
56464         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56465         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56466         m4_syscmd per file.
56467         <m4_foreach_w>: Move...
56468         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56469
56470 2008-05-13  Eric Blake  <ebb9@byu.net>
56471
56472         * gnulib-tool: Fix various comment typos.
56473
56474 2008-05-12  Bruno Haible  <bruno@clisp.org>
56475
56476         Tailor the linebreaking algorithm.
56477         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56478
56479 2008-05-12  Bruno Haible  <bruno@clisp.org>
56480
56481         Update to Unicode 5.0.0.
56482         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56483         LBP_JV, LBP_JT. Redistribute values.
56484         (unilbrk_table): Change size.
56485         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56486         Unicode TR#14 rev. 22.
56487         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56488         LBP_JV, LBP_JT. Redistribute values.
56489         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56490         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56491         Update.
56492         * lib/unilbrk/lbrkprop1.h: Regenerated.
56493         * lib/unilbrk/lbrkprop2.h: Regenerated.
56494         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56495         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56496         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56497         Likewise.
56498         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56499         Likewise.
56500         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56501         result.
56502         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56503         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56504         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56505         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56506         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56507         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56508
56509 2008-05-11  Bruno Haible  <bruno@clisp.org>
56510
56511         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56512
56513 2008-05-11  Bruno Haible  <bruno@clisp.org>
56514
56515         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56516         * modules/unilbrk/gen-lbrk: New file.
56517
56518 2008-05-11  Bruno Haible  <bruno@clisp.org>
56519
56520         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56521         * m4/sha512.m4 (gl_SHA512): Likewise.
56522
56523 2008-05-11  Jim Meyering  <meyering@redhat.com>
56524
56525         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56526         * modules/crypto/sha256: New file.
56527         * modules/crypto/sha512: Likewise.
56528         * lib/sha256.c: Likewise.
56529         * lib/sha256.h: Likewise.
56530         * lib/sha512.c: Likewise.
56531         * lib/sha512.h: Likewise.
56532         * lib/u64.h: Likewise.
56533         * m4/sha256.m4: Likewise.
56534         * m4/sha512.m4: Likewise.
56535         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56536
56537 2008-05-10  Bruno Haible  <bruno@clisp.org>
56538
56539         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56540         (Input/Output <stdio.h>): Add xprintf.
56541         (Signal handling <signal.h>): Add strsignal.
56542         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56543         (Core language properties): Add func.
56544         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56545         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56546         strings.
56547         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56548         (Input/output): New section.
56549         (File system functions): Add openat-die, stat-macros.
56550         (Networking functions): Add sockets.
56551         (Unicode string functions): Add unictype/*.
56552         (Support for building libraries and executables): Add gperf.
56553         (Support for building documentation): Add agpl-3.0.
56554         (Misc): Add nocrash.
56555
56556 2008-05-10  Bruno Haible  <bruno@clisp.org>
56557
56558         * modules/unictype/gen-ctype: New file.
56559
56560 2008-05-10  Jim Meyering  <meyering@redhat.com>
56561
56562         Make chdir-safer.c more efficient on a system with no symlinks.
56563         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56564         also if ELOOP is zero.  Suggested by Bruno Haible.
56565
56566         Make chdir-safer.c slightly safer.
56567         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56568         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56569
56570         Avoid compile failure on systems without ELOOP (like mingw).
56571         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56572         Reported by Bruno Haible.
56573
56574 2008-05-10  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56577         (is_utf8_encoding): Use a case-insensitive comparison.
56578         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56579         streq.
56580
56581 2008-05-10  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56584         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56585         * lib/unilbrk/ulc-common.h (iconv_string_length,
56586         iconv_string_keeping_offsets): Remove declarations.
56587         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56588         Don't include <iconv.h>, streq.h, xsize.h.
56589         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56590         conversion.
56591         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56592         <iconv.h>, streq.h, xsize.h.
56593         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56594         conversion.
56595         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56596         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56597         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56598         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56599
56600 2008-05-10  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56603         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56604
56605         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56606         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56607
56608         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56609         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56610
56611         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56612         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56613
56614         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56615         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56616
56617         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56618         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56619
56620         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56621         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56622
56623         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56624         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56625
56626 2008-05-10  Bruno Haible  <bruno@clisp.org>
56627
56628         Split up 'linebreak' module.
56629         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56630         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56631         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56632         modifications.
56633         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56634         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56635         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56636         lib/linebreak.c.
56637         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56638         lib/linebreak.c.
56639         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56640         lib/linebreak.c.
56641         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56642         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56643         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56644         lib/linebreak.c.
56645         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56646         lib/linebreak.c.
56647         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56648         lib/linebreak.c.
56649         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56650         lib/linebreak.c.
56651         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56652         lib/linebreak.c.
56653         * modules/unilbrk/base: New file.
56654         * modules/unilbrk/tables: New file.
56655         * modules/unilbrk/u8-possible-linebreaks: New file.
56656         * modules/unilbrk/u16-possible-linebreaks: New file.
56657         * modules/unilbrk/u32-possible-linebreaks: New file.
56658         * modules/unilbrk/ulc-common: New file.
56659         * modules/unilbrk/ulc-possible-linebreaks: New file.
56660         * modules/unilbrk/u8-width-linebreaks: New file.
56661         * modules/unilbrk/u16-width-linebreaks: New file.
56662         * modules/unilbrk/u32-width-linebreaks: New file.
56663         * modules/unilbrk/ulc-width-linebreaks: New file.
56664         * lib/linebreak.h: Remove file.
56665         * lib/linebreak.c: Remove file.
56666         * m4/linebreak.m4: Remove file.
56667         * modules/linebreak: Remove file.
56668         * NEWS: Mention the changes.
56669
56670 2008-05-09  Eric Blake  <ebb9@byu.net>
56671
56672         Add xmemdup0.
56673         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56674         implementation.
56675         * lib/xmalloc.c (xmemdup0): New C implementation.
56676
56677 2008-05-08  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56680
56681 2008-05-07  Eric Blake  <ebb9@byu.net>
56682
56683         Support cross-compilation of <wctype.h>.
56684         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56685         AC_CACHE_CHECK.
56686
56687 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56688
56689         * build-aux/vc-list-files: Add support for bzr.
56690
56691 2008-05-03  Jim Meyering  <meyering@redhat.com>
56692
56693         avoid failed assertion with tight malloc
56694         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56695
56696 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56697
56698         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56699         are needed from arpa/inet.h.
56700         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56701         Reported by Bruno Haible.
56702
56703 2008-05-02  Jim Meyering  <meyering@redhat.com>
56704
56705         avoid compilation error on FreeBSD 6
56706         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56707
56708 2008-05-01  Jim Meyering  <meyering@redhat.com>
56709
56710         useless-if-before-free: correct --help's exit status description
56711         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56712         for one or more matches, etc.  Reported by Bruno Haible.
56713
56714         vc-list-files: make the stand-alone gnulib test work
56715         * modules/vc-list-files-tests (configure.ac):
56716         Define and AC_SUBST abs_aux_dir.
56717         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56718         $(abs_top_srcdir) to each script and having each of them
56719         duplicate the work of setting PATH, set PATH here, using
56720         the new variable, abs_aux_dir instead.
56721         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56722         * tests/test-vc-list-files-git.sh: Likewise.
56723         Reported by Bruno Haible.
56724
56725 2008-05-01  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56728         reallocation. Rename 'done' to 'found_delimiter'.
56729
56730 2008-05-01  Jim Meyering  <meyering@redhat.com>
56731
56732         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56733         * build-aux/vc-list-files: Use `...`, not $(...).
56734
56735 2008-04-30  Jim Meyering  <meyering@redhat.com>
56736
56737         add tests for vc-list-files
56738         * modules/vc-list-files-tests: New module.
56739         * tests/test-vc-list-files-cvs.sh: New file.
56740         * tests/test-vc-list-files-git.sh: New file.
56741
56742         avoid a warning from gcc
56743         * lib/getndelim2.c (IF_LINT): Define.
56744         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56745
56746         vc-list-files: work properly with build-aux/cvsu, too
56747         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56748         to all cvs-based clauses.
56749
56750         vc-list-files: work properly in the CVS+awk case, too
56751         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56752
56753         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56754         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56755         take more than one file argument, so .  Add quotes, just in case $dir
56756         ever contains a shell meta-character.  Prompted by Soren Hansen in
56757         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56758
56759 2008-04-29  Eric Blake  <ebb9@byu.net>
56760
56761         Optimize getndelim2 to use block operations when possible.
56762         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56763         freadseek, and memchr2.
56764         * lib/getndelim2.c (getndelim2): Use them for block reads.
56765
56766 2008-04-29  Bruno Haible  <bruno@clisp.org>
56767
56768         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56769         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56770         * modules/inet_ntop (Depends-on): Add extensions.
56771         * modules/inet_pton (Depends-on): Likewise.
56772         Reported by Simon Josefsson.
56773
56774 2008-04-29  Jim Meyering  <meyering@redhat.com>
56775
56776         When the is more than one match in a block, match all of them.
56777         * build-aux/useless-if-before-free: Iterate through each block
56778         until there are no more matches.
56779
56780         Fix broken useless-if-before-free script.
56781         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56782         the expression to match cast of argument to free-like function.
56783
56784 2008-04-29  Eric Blake  <ebb9@byu.net>
56785
56786         Use new header.
56787         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56788
56789 2008-04-29  Jim Meyering  <meyering@redhat.com>
56790
56791         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56792         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56793         by gnulib to exist and to declare e.g., inet_ntop.
56794         Don't include "inet_ntop.h", now removed.
56795
56796         * m4/arpa_inet_h.m4: Remove trailing blanks.
56797
56798 2008-04-29  Eric Blake  <ebb9@byu.net>
56799
56800         Silence valgrind on safe reads beyond potential array bounds.
56801         * lib/rawmemchr.valgrind: New file.
56802         * lib/strchrnul.valgrind: Likewise.
56803         * modules/rawmemchr (Files): Distribute new file.
56804         * modules/strchrnul (Files): Likewise.
56805         Suggested by Bruno Haible.
56806
56807 2008-04-29  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56810         (inet_ntop, inet_pton): Change portability warning's wording.
56811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56812         Invoke gl_CHECK_NEXT_HEADERS.
56813         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56814         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56815         set ARPA_INET_H.
56816         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56817         * modules/arpa_inet (Description): No longer only for systems that
56818         lack it.
56819         (Depends-on): Add include_next.
56820         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56821         HAVE_ARPA_INET_H.
56822
56823 2008-04-29  Jim Meyering  <meyering@redhat.com>
56824
56825         * modules/mkdir (License): Re-license as LGPLv2+.
56826
56827 2008-04-29  Bruno Haible  <bruno@clisp.org>
56828
56829         * modules/rawmemchr (Maintainer): Set to Eric.
56830         * modules/strchrnul (Maintainer): Likewise.
56831
56832 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56833
56834         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56835         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56836
56837         * modules/arpa_inet (arpa/inet.h): Use them.
56838
56839 2008-04-28  Eric Blake  <ebb9@byu.net>
56840
56841         Test getndelim2.
56842         * modules/getndelim2-tests: New file.
56843         * tests/test-getndelim2.c: Likewise.
56844         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56845         stream.
56846         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56847
56848         * MODULES.html.sh: Document new module.
56849
56850 2008-04-20  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/c-stack.c (die): Use raise.
56853         * modules/c-stack (Depends-on): Add raise.
56854
56855 2008-04-28  Bruno Haible  <bruno@clisp.org>
56856
56857         Expect rpmatch to be declared.
56858         * lib/yesno.c (rpmatch): Remove declaration.
56859
56860         Declare rpmatch.
56861         * lib/stdlib.in.h (rpmatch): New declaration.
56862         * lib/rpmatch.c: Include <stdlib.h> first.
56863         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56864         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56866         HAVE_RPMATCH.
56867         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56869         (Include): Set to <stdlib.h>.
56870         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56871         HAVE_RPMATCH.
56872         * NEWS: Document the change.
56873
56874 2008-04-28  Bruno Haible  <bruno@clisp.org>
56875
56876         Change rpmatch to use nl_langinfo when appropriate.
56877         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56878         (N_): New macro.
56879         (localized_pattern): New function/macro.
56880         (try): Remove match, nomatch arguments. Copy the pattern into safe
56881         memory before caching it.
56882         (rpmatch): Use localized_pattern. Add translator comments.
56883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56884         Suggested by Eric Blake.
56885         * modules/rpmatch (Depends-on): Add stdbool.
56886
56887 2008-04-28  Eric Blake  <ebb9@byu.net>
56888
56889         Add rawmemchr module, matching glibc.
56890         * modules/string (Makefile.am): New indicator.
56891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56892         * lib/string.in.h (rawmemchr): Declare when appropriate.
56893         * modules/rawmemchr: New file.
56894         * m4/rawmemchr.m4: Likewise.
56895         * lib/rawmemchr.c: Likewise.
56896         * modules/rawmemchr-tests: Likewise.
56897         * tests/test-rawmemchr.c: Likewise.
56898         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56899         module.
56900         * modules/strchrnul (Depends-on): Add rawmemchr.
56901         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56902
56903         Whitespace cleanup.
56904         * tests/test-strchrnul.c: Reindent.
56905         * lib/strchrnul.c: Likewise.
56906
56907         Optimize and test strchrnul.
56908         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56909         * modules/strchrnul-tests: New file.
56910         * tests/test-strchrnul.c: Likewise.
56911
56912         Remove intprops dependency.
56913         * modules/memchr (Depends-on): Remove intprops.
56914         * modules/memrchr (Depends-on): Likewise.
56915         * modules/memchr2 (Depends-on): Likewise.
56916         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56917         * lib/memrchr.c (__memrchr): Likewise.
56918         * lib/memrchr2.c (memchr2): Likewise.
56919         Reported by Simon Josefsson.
56920
56921 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56922
56923         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56924         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56925
56926 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56927
56928         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56929
56930         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56931
56932         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56933
56934         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56935         declarations.
56936         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56937
56938         * m4/inet_pton.m4: Don't check for header files.
56939
56940         * m4/inet_ntop.m4: Don't check for header files.
56941
56942 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56943
56944         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56945         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56946         trigger for cygwin).
56947         Reported by Bruno Haible  <bruno@clisp.org>.
56948
56949 2008-04-28  Bruno Haible  <bruno@clisp.org>
56950
56951         * doc/posix-functions/strdup.texi: Mention mingw problem.
56952
56953 2008-04-27  Bruno Haible  <bruno@clisp.org>
56954
56955         * modules/stat-time-tests (Depends-on): Add sleep.
56956         * tests/test-stat-time.c (force_unlink): New function.
56957         (cleanup): Use it.
56958         (test_mtime): Remove the ctime related tests.
56959         (test_ctime): New function, containing the ctime related tests.
56960         (main): Call test_ctime, except on native Windows platforms.
56961
56962 2008-04-27  Bruno Haible  <bruno@clisp.org>
56963
56964         * lib/rpmatch.c (rpmatch): Add some comments.
56965         Reported by James Youngman <jay@gnu.org>.
56966
56967 2008-04-27  Bruno Haible  <bruno@clisp.org>
56968
56969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56970         quiet NaNs.
56971
56972 2008-04-27  Bruno Haible  <bruno@clisp.org>
56973
56974         Make test-yesno.sh work on mingw.
56975         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56976         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56977         (main): Set stdin to binary mode.
56978         * modules/yesno-tests (Depends-on): Add binary-io.
56979
56980 2008-04-27  Bruno Haible  <bruno@clisp.org>
56981
56982         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56983         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56984         argument that lie outside the IEEE 854 domain.
56985         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56986         (gl_ISFINITE): Use it.
56987         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56988
56989 2008-04-27  Bruno Haible  <bruno@clisp.org>
56990
56991         Allow local renaming in config.h.
56992         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56993
56994 2008-04-27  Bruno Haible  <bruno@clisp.org>
56995
56996         * lib/memchr.c (__memchr): Change type of 'i'.
56997         * lib/memchr2.c (memchr2): Likewise.
56998
56999 2008-04-26  Eric Blake  <ebb9@byu.net>
57000         and Bruno Haible  <bruno@clisp.org>
57001
57002         Optimize and test memrchr.
57003         * modules/memrchr (Depends-on): Add intprops.
57004         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57005         * modules/memrchr-tests: New file.
57006         * tests/test-memrchr.c: New file.
57007
57008 2008-04-26  Bruno Haible  <bruno@clisp.org>
57009
57010         Add tentative support for DragonFly BSD.
57011         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57012         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57013         fp.
57014         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57015         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57016         * lib/fpurge.c (fpurge): Likewise.
57017         * lib/freadable.c (freaadable): Likewise.
57018         * lib/freadahead.c (freadahead): Likewise.
57019         * lib/freading.c (freading): Likewise.
57020         * lib/freadptr.c (freadptr): Likewise.
57021         * lib/freadseek.c (freadptrinc): Likewise.
57022         * lib/fseeko.c (fseeko): Likewise.
57023         * lib/fseterr.c (fseterr): Likewise.
57024         * lib/fwritable.c (fwritable): Likewise.
57025         * lib/fwriting.c (fwriting): Likewise.
57026
57027 2008-04-26  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/stdio-impl.h: New file.
57030         * lib/fbufmode.c: Include stdio-impl.h.
57031         (fbufmode): Use fp_, remove redundant #defines.
57032         * lib/fflush.c: Include stdio-impl.h.
57033         (clear_ungetc_buffer): Remove redundant #defines.
57034         * lib/fpurge.c: Include stdio-impl.h.
57035         (fpurge): Remove redundant #defines.
57036         * lib/freadable.c: Include stdio-impl.h.
57037         (freadable): Remove redundant #defines.
57038         * lib/freadahead.c: Include stdio-impl.h.
57039         (freadahead): Remove redundant #defines.
57040         * lib/freading.c: Include stdio-impl.h.
57041         (freading): Remove redundant #defines.
57042         * lib/freadptr.c: Include stdio-impl.h.
57043         (freadptr): Remove redundant #defines.
57044         * lib/freadseek.c: Include stdio-impl.h.
57045         (freadptrinc): Remove redundant #defines.
57046         * lib/fseeko.c: Include stdio-impl.h.
57047         (rpl_fseeko): Remove redundant #defines.
57048         * lib/fseterr.c: Include stdio-impl.h.
57049         (fseterr): Remove redundant #defines.
57050         * lib/fwritable.c: Include stdio-impl.h.
57051         (fwritable: Remove redundant #defines.
57052         * lib/fwriting.c: Include stdio-impl.h.
57053         (fwriting): Remove redundant #defines.
57054         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57055         * modules/fflush (Files): Likewise.
57056         * modules/fpurge (Files): Likewise.
57057         * modules/freadable (Files): Likewise.
57058         * modules/freadahead (Files): Likewise.
57059         * modules/freading (Files): Likewise.
57060         * modules/freadptr (Files): Likewise.
57061         * modules/freadseek (Files): Likewise.
57062         * modules/fseeko (Files): Likewise.
57063         * modules/fseterr (Files): Likewise.
57064         * modules/fwritable (Files): Likewise.
57065         * modules/fwriting (Files): Likewise.
57066
57067 2008-04-26  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57070         restore_seek_optimization, update_fpos_cache): New functions, extracted
57071         from rpl_fflush.
57072         (rpl_fflush): Use them.
57073         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57074         (gl_REPLACE_FFLUSH): Use it.
57075
57076 2008-04-26  Bruno Haible  <bruno@clisp.org>
57077
57078         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57079         on Solaris.
57080         * tests/test-xstrtoimax.sh: Likewise.
57081         * tests/test-xstrtoumax.sh: Likewise.
57082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57083
57084 2008-04-26  Bruno Haible  <bruno@clisp.org>
57085
57086         * modules/memchr-tests: New file.
57087         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57088
57089 2008-04-26  Eric Blake  <ebb9@byu.net>
57090             Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/memchr.c: Include intprops.h.
57093         (__memchr): Optimize parallel detection of matching bytes. Rename local
57094         variables. Add explanatory comments.
57095
57096 2008-04-26  Bruno Haible  <bruno@clisp.org>
57097
57098         Fix module 'memchr', broken since 2000-10-28.
57099         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57100
57101 2008-04-26  Bruno Haible  <bruno@clisp.org>
57102
57103         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57104         comments.
57105
57106 2008-04-25  Eric Blake  <ebb9@byu.net>
57107
57108         Use native fstatat on cygwin 1.7.0.
57109         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57110         first.
57111
57112 2008-04-23  Eric Blake  <ebb9@byu.net>
57113
57114         Improve memchr2 performance.
57115         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57116         NUL bytes.
57117         * modules/memchr2 (Depends-on): Use intprops.h.
57118
57119 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57120
57121         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57122         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57123         <blp@cs.stanford.edu>.
57124
57125 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57126
57127         * lib/arpa_inet.in.h: New file.
57128
57129         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57130         (Makefile.am): Sed in substitute header file.
57131
57132         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57133         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57134
57135         * modules/inet_ntop (configure.ac): Use
57136         gl_ARPA_INET_MODULE_INDICATOR.
57137
57138         * modules/inet_pton (configure.ac): Use
57139         gl_ARPA_INET_MODULE_INDICATOR.
57140
57141 2008-04-22  Jim Meyering  <meyering@redhat.com>
57142
57143         * modules/verify (License): Re-license as LGPLv2+.
57144
57145 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57146
57147         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57148         parameter to void* as per POSIX standard (MinGW uses char*).
57149
57150 2008-04-21  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57153         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57154         Define to replacements if REPLACE_ISWCNTRL is 1.
57155         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57156         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57157         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57158         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57159         what it fixes.
57160         * doc/posix-functions/iswalpha.texi: Likewise.
57161         * doc/posix-functions/iswblank.texi: Likewise.
57162         * doc/posix-functions/iswcntrl.texi: Likewise.
57163         * doc/posix-functions/iswdigit.texi: Likewise.
57164         * doc/posix-functions/iswgraph.texi: Likewise.
57165         * doc/posix-functions/iswlower.texi: Likewise.
57166         * doc/posix-functions/iswprint.texi: Likewise.
57167         * doc/posix-functions/iswpunct.texi: Likewise.
57168         * doc/posix-functions/iswspace.texi: Likewise.
57169         * doc/posix-functions/iswupper.texi: Likewise.
57170         * doc/posix-functions/iswxdigit.texi: Likewise.
57171         Reported by Alain Guibert.
57172
57173 2008-04-21  Bruno Haible  <bruno@clisp.org>
57174
57175         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57176         Patch by Alain Guibert.
57177
57178 2008-04-21  Bruno Haible  <bruno@clisp.org>
57179
57180         Fix test failures on mingw.
57181         * tests/test-xstrtol.c (print_no_progname): New function.
57182         (main): Install it in error_print_progname hook.
57183         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57184         * tests/test-xstrtoimax.sh: Likewise.
57185         * tests/test-xstrtoumax.sh: Likewise.
57186
57187 2008-04-21  Bruno Haible  <bruno@clisp.org>
57188
57189         Fix test failure on mingw.
57190         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57191
57192 2008-04-21  Bruno Haible  <bruno@clisp.org>
57193
57194         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57195         Actually assign a value.
57196
57197 2008-04-20  Bruno Haible  <bruno@clisp.org>
57198
57199         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57200         take 2.
57201         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57202         'canonicalize-lgpl' module is also used.
57203         * lib/canonicalize-lgpl.c: Undo last change.
57204         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57205
57206 2008-04-20  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57209         config.h. Provide _mkdir based fallback for mingw.
57210         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57211         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57212         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57213         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57214         rather than defining mkdir in config.h.
57215         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57216         (gl_SYS_STAT_H_DEFAULTS): New macro.
57217         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57218         HAVE_IO_H any more.
57219         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57220         HAVE_DECL_MKDIR and HAVE_IO_H.
57221
57222 2008-04-20  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/isapipe.c: Port to native Windows platforms.
57225
57226 2008-04-20  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57229
57230 2008-04-21  Eric Blake  <ebb9@byu.net>
57231
57232         Work around preprocessors that don't handle UINTMAX_MAX.
57233         * lib/memchr2.c (memchr2): Avoid embedded #if.
57234         Reported by Alain Guibert, fix suggested by Bruno Haible.
57235
57236 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57237
57238         * doc/posix-functions/strftime.texi (strftime): Explain better
57239         Windows incompatibility.  Suggested by Micah Cowan
57240         <micah@cowan.name>.
57241
57242 2008-04-20  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57245         unistr/u8-mblen.
57246
57247 2008-04-20  Bruno Haible  <bruno@clisp.org>
57248
57249         Fix test failure on platforms with non-GNU iconv.
57250         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57251         (U_TO_U8): Use it, rather than u16_to_u8.
57252         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57253         units at the end of the input string.
57254         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57255
57256 2008-04-20  Bruno Haible  <bruno@clisp.org>
57257
57258         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57259         when the resulting length is 0.
57260         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57261
57262 2008-04-20  Bruno Haible  <bruno@clisp.org>
57263
57264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57265         works.
57266         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57267
57268 2008-04-20  Bruno Haible  <bruno@clisp.org>
57269
57270         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57271         * modules/tsearch-tests (configure.ac): Test for initstate function.
57272
57273 2008-04-20  Bruno Haible  <bruno@clisp.org>
57274
57275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57276         for nlink_t if missing.
57277         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57278
57279 2008-04-19  Bruno Haible  <bruno@clisp.org>
57280
57281         Work around snprintf bug on Linux libc5.
57282         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57284         gl_SNPRINTF_SIZE1.
57285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57286         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57287         that test failed.
57288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57289         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57290         * modules/snprintf (Files): Add m4/printf.m4.
57291         * modules/vsnprintf (Files): Likewise.
57292         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57293         * doc/posix-functions/vsnprintf.texi: Likewise.
57294
57295 2008-04-19  Bruno Haible  <bruno@clisp.org>
57296
57297         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57298         from 0.0058 to less than 10^-7.
57299
57300 2008-04-19  Bruno Haible  <bruno@clisp.org>
57301
57302         Fix rounding when a precision is given.
57303         * lib/vasnprintf.c (is_borderline): New function.
57304         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57305         9...9x.
57306         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57307         %e, %g.
57308         * tests/test-vasprintf-posix.c (test_function): Likewise.
57309         * tests/test-snprintf-posix.h (test_function): Likewise.
57310         * tests/test-sprintf-posix.h (test_function): Likewise.
57311         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57312         * tests/test-printf-posix.h (test_function): Likewise.
57313         * tests/test-printf-posix.output: Update.
57314         Reported by John Darrington <john@darrington.wattle.id.au> via
57315         Ben Pfaff <blp@cs.stanford.edu>.
57316
57317 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57318
57319         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57320         Suggested by Bruno Haible <bruno@clisp.org>.
57321
57322 2008-04-17  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57325         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57326         implementation.
57327         Patch by Bruce Merry <bmerry@gmail.com>.
57328
57329 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57330
57331         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57332         doesn't work under Windows.
57333
57334 2008-04-16  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57337         New macros.
57338         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57339         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57340         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57341         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57342         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57343         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57344         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57345         macros.
57346         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57347         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57348         Northern Sotho, Uighur.
57349
57350 2008-04-16  Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57353         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57354         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57355         Reported by Daniel Bergström <daniel@octocode.com>.
57356
57357 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57358             Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57361         function.
57362         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57363         New functions, mostly extracted from gl_locale_name_default.
57364         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57365
57366 2008-04-16  Eric Blake  <ebb9@byu.net>
57367
57368         Adjust strtod detection to catch glibc 2.7 bug.
57369         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57370         Reported by John Gatewood Ham.
57371
57372 2008-04-16  Bruno Haible  <bruno@clisp.org>
57373
57374         Add tentative support for Linux libc5.
57375         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57376         * lib/fpurge.c (fpurge): Likewise.
57377         * lib/freadable.c (freadable): Likewise.
57378         * lib/freadahead.c (freadahead): Likewise.
57379         * lib/freading.c (freading): Likewise.
57380         * lib/freadptr.c (freadptr): Likewise.
57381         * lib/freadseek.c (freadptrinc): Likewise.
57382         * lib/fseeko.c (rpl_fseeko): Likewise.
57383         * lib/fseterr.c (fseterr): Likewise.
57384         * lib/fwritable.c (fwritable): Likewise.
57385         * lib/fwriting.c (fwriting): Likewise.
57386         Reported by Alain Guibert <alguibert+bts@free.fr>.
57387
57388 2008-04-15  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/mathl (configure.ac): Define module indicator.
57391
57392 2008-04-15  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/logl.c (logl): Remove unused variables.
57395
57396 2008-04-15  Bruno Haible  <bruno@clisp.org>
57397
57398         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57399         fails.
57400
57401 2008-04-15  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/trim.c (trim2): Fix argument of isspace() macro.
57404
57405 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57406
57407         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57408         to 0.
57409         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57410
57411 2008-04-14  Bruno Haible  <bruno@clisp.org>
57412
57413         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57414         AC_LANG_PROGRAM argument.
57415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57416         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57419         * m4/math_h.m4 (gl_MATH_H): Likewise.
57420         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57423         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57424         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57425         * m4/regex.m4 (gl_REGEX): Likewise.
57426         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57427         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57431         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57434
57435 2008-04-14  Jim Meyering  <meyering@redhat.com>
57436
57437         test-strtod: fix typos: s/abs/fabs/
57438         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57439
57440 2008-04-13  Bruno Haible  <bruno@clisp.org>
57441
57442         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57443         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57444         module is also used and while not building the reloc-wrapper.
57445
57446 2008-04-13  Bruno Haible  <bruno@clisp.org>
57447
57448         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57449
57450 2008-04-13  Bruno Haible  <bruno@clisp.org>
57451
57452         Fix AIX compilation failure introduced on 2008-04-02.
57453         * tests/test-frexp.c (exp): Undefine before redefining.
57454         * tests/test-frexpl.c (exp): Likewise.
57455
57456 2008-04-13  Bruno Haible  <bruno@clisp.org>
57457
57458         Work around a HP-UX stdio bug.
57459         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57460         * tests/test-ftello.c (main): Likewise.
57461         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57462         * doc/posix-functions/ftello.texi: Likewise.
57463
57464 2008-04-13  Bruno Haible  <bruno@clisp.org>
57465
57466         Make test-signbit pass on HP-UX/hppa.
57467         * tests/test-signbit.c (minus_zerol): New variable.
57468         (test_signbitl): Use it.
57469
57470 2008-04-13  Bruno Haible  <bruno@clisp.org>
57471
57472         Make truncl work on OSF/1 4.0.
57473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57474         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57475         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57477         HAVE_DECL_TRUNCL.
57478         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57479         HAVE_DECL_TRUNCL.
57480         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57481
57482 2008-04-13  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57485
57486 2008-04-13  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57489         expression, so as to avoid HP-UX 11 cc compiler bug.
57490
57491 2008-04-13  Bruno Haible  <bruno@clisp.org>
57492
57493         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57494
57495 2008-04-13  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/git-merge-changelog.c: Remove empty declaration outside of
57498         functions.
57499
57500 2008-04-13  Bruno Haible  <bruno@clisp.org>
57501
57502         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57503
57504 2008-04-13  Bruno Haible  <bruno@clisp.org>
57505
57506         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57507         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57509         also if it exists but lacks definitions of the SHUT_* macros.
57510         * modules/sys_socket (Description): Update.
57511         Reported by Elbert Pol <e.pol@chello.nl>.
57512
57513 2008-04-13  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/localcharset.c (OS2): Don't redefine if already defined.
57516         Reported by Elbert Pol <e.pol@chello.nl>.
57517
57518 2008-04-13  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/binary-io.h [__EMX__]: Include <io.h>.
57521         Reported by Elbert Pol <e.pol@chello.nl>.
57522
57523 2008-04-12  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/fpucw.h: Enable the definitions also for x86_64.
57526         Needed for NetBSD/x86_64.
57527         Reported by Thomas Klausner <tk@giga.or.at>.
57528
57529 2008-04-12  Bruno Haible  <bruno@clisp.org>
57530
57531         * tests/test-strtod.c: Include isnand.h.
57532         (main): Use isnand instead of isnan.
57533         Reported by Jim Meyering.
57534
57535 2008-04-12  Bruno Haible  <bruno@clisp.org>
57536
57537         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57538         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57539
57540 2008-04-12  Jim Meyering  <meyering@redhat.com>
57541
57542         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57543
57544 2008-04-12  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57547         Reported by Elbert Pol <e.pol@chello.nl>.
57548
57549 2008-04-12  Eric Blake  <ebb9@byu.net>
57550
57551         Work around Solaris 10 math.h bug.
57552         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57553         (gl_MATH_H_DEFAULTS): Set up default.
57554         * modules/math (Makefile.am): Replace new indicators.
57555         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57556         * tests/test-math.c (main): Test this.
57557         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57558         * doc/posix-headers/math.texi (math.h): Mention bug.
57559         Reported by Nelson H. F. Beebe and Jim Meyering.
57560
57561 2008-04-11  Bruno Haible  <bruno@clisp.org>
57562
57563         Adapt to future versions of Apple GCC.
57564         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57565         Reported by Peter O'Gorman <peter@pogma.com>.
57566
57567 2008-04-11  Bruno Haible  <bruno@clisp.org>
57568
57569         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57570
57571 2008-04-11  Bruno Haible  <bruno@clisp.org>
57572
57573         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57574
57575         * modules/getaddrinfo-tests (Makefile.am): Define
57576         test_getaddrinfo_LDADD.
57577
57578 2008-04-11  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57581         (init): Fix syntax error.
57582         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57583         is declared.
57584
57585 2008-04-11  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57588         * modules/glob (Depends-on): Add stdbool.
57589
57590 2008-04-11  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/trim.c: Include <string.h>.
57593
57594 2008-04-11  Eric Blake  <ebb9@byu.net>
57595
57596         Avoid compile failure on OS/2.
57597         * lib/regex_internal.h (internal_function): Disable optimization
57598         on OS/2 (__EMX__), where it caused compiler error.
57599         Reported by Elbert Pol.
57600
57601 2008-04-11  Bruno Haible  <bruno@clisp.org>
57602
57603         Flush the standard error stream before aborting. Needed on mingw.
57604         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57605         * tests/test-array_list.c (ASSERT): Likewise.
57606         * tests/test-array_oset.c (ASSERT): Likewise.
57607         * tests/test-avltree_list.c (ASSERT): Likewise.
57608         * tests/test-avltree_oset.c (ASSERT): Likewise.
57609         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57610         * tests/test-binary-io.c (ASSERT): Likewise.
57611         * tests/test-byteswap.c (ASSERT): Likewise.
57612         * tests/test-c-ctype.c (ASSERT): Likewise.
57613         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57614         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57615         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57616         * tests/test-c-strstr.c (ASSERT): Likewise.
57617         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57618         * tests/test-canonicalize.c (ASSERT): Likewise.
57619         * tests/test-carray_list.c (ASSERT): Likewise.
57620         * tests/test-ceilf1.c (ASSERT): Likewise.
57621         * tests/test-ceilf2.c (ASSERT): Likewise.
57622         * tests/test-ceill.c (ASSERT): Likewise.
57623         * tests/test-count-one-bits.c (ASSERT): Likewise.
57624         * tests/test-fbufmode.c (ASSERT): Likewise.
57625         * tests/test-fflush2.c (ASSERT): Likewise.
57626         * tests/test-floorf1.c (ASSERT): Likewise.
57627         * tests/test-floorf2.c (ASSERT): Likewise.
57628         * tests/test-floorl.c (ASSERT): Likewise.
57629         * tests/test-fopen.c (ASSERT): Likewise.
57630         * tests/test-fpending.c (ASSERT): Likewise.
57631         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57632         * tests/test-fpurge.c (ASSERT): Likewise.
57633         * tests/test-freadable.c (ASSERT): Likewise.
57634         * tests/test-freadahead.c (ASSERT): Likewise.
57635         * tests/test-freading.c (ASSERT): Likewise.
57636         * tests/test-freadptr.c (ASSERT): Likewise.
57637         * tests/test-freadptr2.c (ASSERT): Likewise.
57638         * tests/test-freadseek.c (ASSERT): Likewise.
57639         * tests/test-freopen.c (ASSERT): Likewise.
57640         * tests/test-frexp.c (ASSERT): Likewise.
57641         * tests/test-frexpl.c (ASSERT): Likewise.
57642         * tests/test-fseek.c (ASSERT): Likewise.
57643         * tests/test-fseeko.c (ASSERT): Likewise.
57644         * tests/test-fstrcmp.c (ASSERT): Likewise.
57645         * tests/test-ftell.c (ASSERT): Likewise.
57646         * tests/test-ftello.c (ASSERT): Likewise.
57647         * tests/test-func.c (ASSERT): Likewise.
57648         * tests/test-fwritable.c (ASSERT): Likewise.
57649         * tests/test-fwriting.c (ASSERT): Likewise.
57650         * tests/test-getdelim.c (ASSERT): Likewise.
57651         * tests/test-getline.c (ASSERT): Likewise.
57652         * tests/test-i-ring.c (ASSERT): Likewise.
57653         * tests/test-iconv-utf.c (ASSERT): Likewise.
57654         * tests/test-iconv.c (ASSERT): Likewise.
57655         * tests/test-isfinite.c (ASSERT): Likewise.
57656         * tests/test-isnand.c (ASSERT): Likewise.
57657         * tests/test-isnanf.c (ASSERT): Likewise.
57658         * tests/test-isnanl.h (ASSERT): Likewise.
57659         * tests/test-ldexpl.c (ASSERT): Likewise.
57660         * tests/test-linked_list.c (ASSERT): Likewise.
57661         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57662         * tests/test-localename.c (ASSERT): Likewise.
57663         * tests/test-lseek.c (ASSERT): Likewise.
57664         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57665         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57666         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57667         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57668         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57669         * tests/test-mbschr.c (ASSERT): Likewise.
57670         * tests/test-mbscspn.c (ASSERT): Likewise.
57671         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57672         * tests/test-mbspbrk.c (ASSERT): Likewise.
57673         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57674         * tests/test-mbsrchr.c (ASSERT): Likewise.
57675         * tests/test-mbsspn.c (ASSERT): Likewise.
57676         * tests/test-mbsstr1.c (ASSERT): Likewise.
57677         * tests/test-mbsstr2.c (ASSERT): Likewise.
57678         * tests/test-mbsstr3.c (ASSERT): Likewise.
57679         * tests/test-memchr2.c (ASSERT): Likewise.
57680         * tests/test-memmem.c (ASSERT): Likewise.
57681         * tests/test-open.c (ASSERT): Likewise.
57682         * tests/test-printf-frexp.c (ASSERT): Likewise.
57683         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57684         * tests/test-printf-posix.c (ASSERT): Likewise.
57685         * tests/test-quotearg.c (ASSERT): Likewise.
57686         * tests/test-rbtree_list.c (ASSERT): Likewise.
57687         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57688         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57689         * tests/test-round1.c (ASSERT): Likewise.
57690         * tests/test-roundf1.c (ASSERT): Likewise.
57691         * tests/test-roundl.c (ASSERT): Likewise.
57692         * tests/test-signbit.c (ASSERT): Likewise.
57693         * tests/test-sleep.c (ASSERT): Likewise.
57694         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57695         * tests/test-snprintf.c (ASSERT): Likewise.
57696         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57697         * tests/test-stat-time.c (ASSERT): Likewise.
57698         * tests/test-strcasestr.c (ASSERT): Likewise.
57699         * tests/test-strerror.c (ASSERT): Likewise.
57700         * tests/test-striconv.c (ASSERT): Likewise.
57701         * tests/test-striconveh.c (ASSERT): Likewise.
57702         * tests/test-striconveha.c (ASSERT): Likewise.
57703         * tests/test-strsignal.c (ASSERT): Likewise.
57704         * tests/test-strstr.c (ASSERT): Likewise.
57705         * tests/test-strtod.c (ASSERT): Likewise.
57706         * tests/test-trunc1.c (ASSERT): Likewise.
57707         * tests/test-trunc2.c (ASSERT): Likewise.
57708         * tests/test-truncf1.c (ASSERT): Likewise.
57709         * tests/test-truncf2.c (ASSERT): Likewise.
57710         * tests/test-truncl.c (ASSERT): Likewise.
57711         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57712         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57713         * tests/test-vasnprintf.c (ASSERT): Likewise.
57714         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57715         * tests/test-vasprintf.c (ASSERT): Likewise.
57716         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57717         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57718         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57719         * tests/test-vsnprintf.c (ASSERT): Likewise.
57720         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57721         * tests/test-wcwidth.c (ASSERT): Likewise.
57722         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57723         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57724         * tests/test-xvasprintf.c (ASSERT): Likewise.
57725         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57726         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57727         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57728         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57729         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57730         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57731         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57732         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57733         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57734         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57735         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57736         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57737         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57738         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57739         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57740         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57741         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57742         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57743         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57744         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57745         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57746         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57747         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57748         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57749         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57750         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57751         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57752         * tests/unictype/test-combining.c (ASSERT): Likewise.
57753         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57754         * tests/unictype/test-digit.c (ASSERT): Likewise.
57755         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57756         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57757         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57758         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57759         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57760         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57761         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57762         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57763         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57764         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57765         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57766         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57767         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57768         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57769         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57770         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57771         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57772         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57773         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57774         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57775         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57776         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57777         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57778         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57779         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57780         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57781         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57782         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57783         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57784         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57785         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57786         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57787         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57788         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57789         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57790         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57791         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57792         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57793         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57794         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57795         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57796         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57797         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57798         Reported by Eric Blake.
57799
57800 2008-04-11  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/wchar.in.h: Tweak comment.
57803
57804 2008-04-11  Bruno Haible  <bruno@clisp.org>
57805
57806         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57807         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57808         gl_COMMON.
57809         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57810
57811 2008-04-11  Bruno Haible  <bruno@clisp.org>
57812
57813         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57814
57815 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57816
57817         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57818         of attempting to use non-existing /dev/*random.  Based on patch
57819         from Adam Strzelecki <ono@java.pl> in
57820         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57821
57822 2008-04-08  Bruno Haible  <bruno@clisp.org>
57823
57824         Add tentative support for emx+gcc.
57825         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57826         * lib/fpurge.c (fpurge): Likewise.
57827         * lib/freadable.c (freadable): Likewise.
57828         * lib/freadahead.c (freadahead): Likewise.
57829         * lib/freading.c (freading): Likewise.
57830         * lib/freadptr.c (freadptr): Likewise.
57831         * lib/freadseek.c (freadptrinc): Likewise.
57832         * lib/fseeko.c (rpl_fseeko): Likewise.
57833         * lib/fseterr.c (fseterr): Likewise.
57834         * lib/fwritable.c (fwritable): Likewise.
57835         * lib/fwriting.c (fwriting): Likewise.
57836         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57837
57838 2008-04-09  Eric Blake  <ebb9@byu.net>
57839
57840         Avoid some autoconf warnings.
57841         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57842         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57843         * m4/afs.m4 (gl_AFS): Likewise.
57844         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57845         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57847         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57848         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57849         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57850         (AC_CHECK_DECLS_ONCE): Likewise.
57851         Rename file...
57852         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57853         gnulib-tool requires autoconf 2.59 or better.
57854         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57855
57856 2008-04-08  Eric Blake  <ebb9@byu.net>
57857
57858         Use 'git describe --match' if present (added in git 1.5.5).
57859         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57860         if possible.
57861
57862 2008-04-08  Bruno Haible  <bruno@clisp.org>
57863
57864         Add tentative support for OpenServer.
57865         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57866         _ptr, _cnt.
57867         * lib/fpurge.c (fpurge): Likewise.
57868         * lib/freadable.c (freadable): Likewise.
57869         * lib/freadahead.c (freadahead): Likewise.
57870         * lib/freading.c (freading): Likewise.
57871         * lib/freadptr.c (freadptr): Likewise.
57872         * lib/freadseek.c (freadptrinc): Likewise.
57873         * lib/fseeko.c (rpl_fseeko): Likewise.
57874         * lib/fseterr.c (fseterr): Likewise.
57875         * lib/fwritable.c (fwritable): Likewise.
57876         * lib/fwriting.c (fwriting): Likewise.
57877         Reported by Roger Cornelius <rac@tenzing.org> and
57878         Brian K. White <brian@aljex.com>.
57879
57880 2008-04-06  Jim Meyering  <meyering@redhat.com>
57881
57882         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57883
57884 2008-04-06  Bruno Haible  <bruno@clisp.org>
57885
57886         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57887         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57888         * tests/test-printf-posix.sh: Likewise.
57889         * tests/test-vfprintf-posix.sh: Likewise.
57890         * tests/test-vprintf-posix.sh: Likewise.
57891         * tests/test-xprintf-posix.sh: Likewise.
57892
57893 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57894
57895         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57896         hide error from 'ls', needed on OS/2.
57897         Report by Elbert Pol <elbert.pol@gmail.com>.
57898
57899 2008-04-04  Eric Blake  <ebb9@byu.net>
57900
57901         Make test-fseeko.c failures meaningful.
57902         * tests/test-fseeko.c: Print line number on failure.
57903         * tests/test-fseek.c: Likewise.
57904         Reported by Nelson H. F. Beebe.
57905
57906         Improve strtod bug detection check.
57907         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57908         required for Solaris 10.
57909         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57910
57911 2008-04-04  Bruno Haible  <bruno@clisp.org>
57912
57913         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57914         by m4/setenv.m4.
57915
57916 2008-04-03  Eric Blake  <ebb9@byu.net>
57917
57918         Ensure sane .version contents.
57919         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57920         version string.
57921         * build-aux/git-version-gen: Improve documentation.
57922
57923         Make GNU make output nicer.
57924         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57925         MAKECMDGOALS to enforce message for all command line targets.  Set
57926         srcdir for use in maint.mk.
57927
57928         Another maintainer tweak.
57929         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57930         a target that regenerates version.
57931
57932 2008-04-03  Jim Meyering  <meyering@redhat.com>
57933
57934         vc-list-files: don't cause coreutils "make po-check" failure
57935         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57936
57937 2008-04-03  Eric Blake  <ebb9@byu.net>
57938
57939         Allow VPATH usage of vc-list-files.
57940         * build-aux/vc-list-files (scriptversion): Add timestamp.
57941         (options): Add --help, --version, -C.
57942         (CVS): Support installed cvsu.
57943
57944 2008-04-02  Bruno Haible  <bruno@clisp.org>
57945
57946         Avoid some "statement with no effect" warnings from gcc.
57947         * tests/test-wctype.c (main): Explicitly ignore unused values.
57948         Reported by Jim Meyering.
57949
57950 2008-04-02  Jim Meyering  <meyering@redhat.com>
57951
57952         Avoid some warnings from "gcc -Wshadow".
57953         * tests/test-frexp.c (exp): Define to a different identifier.
57954         * tests/test-frexpl.c (exp): Likewise.
57955
57956 2008-04-03  Jim Meyering  <meyering@redhat.com>
57957
57958         bootstrap: remove dangling *.[ch] symlinks from lib
57959         * build-aux/bootstrap [dangling symlink removal]: Move find's
57960         -depth option to precede all others, to avoid a warning.
57961         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57962
57963 2008-04-02  Bruno Haible  <bruno@clisp.org>
57964
57965         Avoid some warnings from "gcc -Wshadow".
57966         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57967         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57968         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57969         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57970         Reported by Jim Meyering.
57971
57972 2008-04-01  Bruno Haible  <bruno@clisp.org>
57973
57974         Fix test to work on IRIX 6.5 with cc.
57975         * tests/test-math.c (numeric_equal): New function.
57976         (main): Use it.
57977
57978 2008-04-01  Bruno Haible  <bruno@clisp.org>
57979
57980         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57981
57982 2008-04-01  Bruno Haible  <bruno@clisp.org>
57983
57984         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57985         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57986         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57987         (Depends-on): Remove math.
57988
57989         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57990         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57991         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57992         (Depends-on): Remove math.
57993
57994         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57996         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57997         (Depends-on): Remove math.
57998         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57999         (Depends-on): Remove math.
58000
58001         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58002         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58003         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58004         (Depends-on): Remove math.
58005         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58006         (Depends-on): Remove math.
58007
58008         * tests/test-round1.c: Include nan.h.
58009         (main): Use NaNd instead of NAN.
58010         * modules/round-tests (Files): Add tests/nan.h.
58011
58012         * tests/test-trunc1.c: Include nan.h.
58013         (main): Use NaNd instead of NAN.
58014         * modules/trunc-tests (Files): Add tests/nan.h.
58015
58016         * tests/test-roundf1.c: Include nan.h.
58017         (main): Use NaNf instead of NAN.
58018         * modules/roundf-tests (Files): Add tests/nan.h.
58019
58020         * tests/test-truncf1.c: Include nan.h.
58021         (main): Use NaNf instead of NAN.
58022         * modules/truncf-tests (Files): Add tests/nan.h.
58023
58024         * tests/test-ceilf1.c: Include nan.h.
58025         (main): Use NaNf instead of NAN.
58026         * modules/ceilf-tests (Files): Add tests/nan.h.
58027
58028         * tests/test-floorf1.c: Include nan.h.
58029         (main): Use NaNf instead of NAN.
58030         * modules/floorf-tests (Files): Add tests/nan.h.
58031
58032         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58033         (main): Use NaNf instead of NAN.
58034         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58035
58036         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58037         (main): Use NaNd instead of NAN.
58038         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58039
58040         * tests/test-frexp.c: Include nan.h.
58041         (main): Use NaNd instead of NAN.
58042         * modules/frexp-tests (Files): Add tests/nan.h.
58043
58044         * lib/isnan.c: Don't include <math.h>.
58045         (FUNC): Don't use NAN macro.
58046         * modules/isnand-nolibm (Depends-on): Remove math.
58047         * modules/isnanf-nolibm (Depends-on): Remove math.
58048         * modules/isnanl (Depends-on): Remove math.
58049         * modules/isnanl-nolibm (Depends-on): Remove math.
58050
58051         * tests/nan.h: New file.
58052
58053 2008-04-01  Eric Blake  <ebb9@byu.net>
58054
58055         Fix typos.
58056         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58057         values to be the right type.
58058
58059         For now, cater to gnulib strtod inaccuracies.
58060         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58061         fractional results.  While not as nice from a QoI perspective, it
58062         is a quicker patch than correctly implementing decimal to binary
58063         rounding.
58064
58065 2008-03-31  Eric Blake  <ebb9@byu.net>
58066
58067         Guarantee a definition of NAN.
58068         * lib/math.in.h (NAN): Define if missing.
58069         * tests/test-math.c (main): Test it.
58070         * doc/posix-headers/math.texi (math.h): Document this.
58071         * lib/isnan.c (rpl_isnand): Use it.
58072         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58073         * tests/test-floorf1.c (NaN): Likewise.
58074         * tests/test-frexp.c (NaN): Likewise.
58075         * tests/test-isnand.c (NaN): Likewise.
58076         * tests/test-isnanf.c (NaN): Likewise.
58077         * tests/test-round1.c (NaN): Likewise.
58078         * tests/test-roundf1.c (NaN): Likewise.
58079         * tests/test-snprintf-posix.h (NaN): Likewise.
58080         * tests/test-sprintf-posix.h (NaN): Likewise.
58081         * tests/test-trunc1.c (NaN): Likewise.
58082         * tests/test-truncf1.c (NaN): Likewise.
58083         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58084         * tests/test-vasprintf-posix.c (NaN): Likewise.
58085         * modules/isnand-nolibm (Depends-on): Add math.
58086         * modules/isnanf-nolibm (Depends-on): Likewise.
58087         * modules/isnanl (Depends-on): Likewise.
58088         * modules/isnanl-nolibm (Depends-on): Likewise.
58089         * modules/snprintf-posix-tests (Depends-on): Likewise.
58090         * modules/sprintf-posix-tests (Depends-on): Likewise.
58091         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58092         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58093         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58094         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58095
58096 2008-03-31  Bruno Haible  <bruno@clisp.org>
58097
58098         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58099         * doc/posix-functions/strtod.texi: Likewise.
58100
58101 2008-03-31  Bruno Haible  <bruno@clisp.org>
58102
58103         * tests/test-strtod.c (main): Don't use C99 syntax.
58104
58105 2008-03-31  Bruno Haible  <bruno@clisp.org>
58106
58107         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58108         Reported by Eric Blake.
58109
58110 2008-03-31  Jim Meyering  <meyering@redhat.com>
58111
58112         Don't compare actual signbit return values.
58113         * tests/test-strtod.c (main): Rather, compare only their
58114         zero/non-zero nature.
58115
58116 2008-03-31  Eric Blake  <ebb9@byu.net>
58117
58118         More strtod documentation.
58119         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58120         failures as distinct bugs.
58121
58122 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58125         Problem reported by Erik Benada in
58126         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58127
58128 2008-03-30  Bruno Haible  <bruno@clisp.org>
58129
58130         * tests/test-strtod.c: Add comments about which assertion fails on which
58131         platform.
58132         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58133
58134 2008-03-30  Eric Blake  <ebb9@byu.net>
58135
58136         Test signbit behavior on zeros.
58137         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58138         (test_signbitd, test_signbitl): Likewise.
58139
58140         More strtod touchups.
58141         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58142         sign of negative underflow, for now.  Use .5, not .1.
58143         * doc/posix-functions/strtod.texi (strtod): Mention these
58144         limitations.
58145         Reported by Jim Meyering.
58146
58147 2008-03-30  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58150         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58151
58152 2008-03-30  Bruno Haible  <bruno@clisp.org>
58153
58154         Avoid failure when attempting to return empty iconv results on some
58155         platforms.
58156         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58157         allocation, don't report ENOMEM when the resulting string is empty.
58158
58159 2008-03-30  Bruno Haible  <bruno@clisp.org>
58160
58161         Fix buffer overrun.
58162         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58163         Don't consider the width for tmp_length. Check count against tmp_length
58164         before doing the padding. Ensure enough allocation during padding.
58165
58166 2008-03-30  Eric Blake  <ebb9@byu.net>
58167
58168         strtod touchups.
58169         * lib/strtod.c (strtod): Avoid compiler warnings.
58170         Reported by Jim Meyering.
58171
58172 2008-03-30  Bruno Haible  <bruno@clisp.org>
58173
58174         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58175         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58176         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58177         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58178         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58179         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58180         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58181         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58182
58183         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58184         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58185         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58186         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58187         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58188         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58189         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58190         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58191
58192         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58193         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58194         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58195         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58196         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58197         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58198         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58199         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58200
58201         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58202         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58203
58204         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58205         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58206
58207         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58208         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58209
58210         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58212         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58213
58214         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58216         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58217
58218         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58220         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58221
58222         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58224         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58225
58226         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58227         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58229         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58230         (Depends-on): Add EOVERFLOW.
58231         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58232         (Depends-on): Add EOVERFLOW.
58233         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58234         (Depends-on): Add EOVERFLOW.
58235         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58236         (Depends-on): Add EOVERFLOW.
58237         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58238         (Depends-on): Add EOVERFLOW.
58239         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58240         (Depends-on): Add EOVERFLOW.
58241         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58242         (Depends-on): Add EOVERFLOW.
58243         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58244         (Depends-on): Add EOVERFLOW.
58245
58246         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58248         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58249
58250         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58252         * modules/snprintf (Depends-on): Add EOVERFLOW.
58253
58254         * lib/poll.c (EOVERFLOW): Remove fallback.
58255         * modules/poll (Depends-on): Add EOVERFLOW.
58256
58257         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58258         * modules/getugroups (Depends-on): Add EOVERFLOW.
58259
58260         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58261         * modules/getdelim (Depends-on): Add EOVERFLOW.
58262
58263         * lib/ftell.c (EOVERFLOW): Remove fallback.
58264         * modules/ftell (Depends-on): Add EOVERFLOW.
58265
58266         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58268         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58269
58270         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58271
58272         * modules/EOVERFLOW-tests: New file.
58273         * tests/test-EOVERFLOW.c: New file.
58274
58275         * modules/EOVERFLOW: New file.
58276         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58277
58278 2008-03-30  Bruno Haible  <bruno@clisp.org>
58279
58280         Fix bug introduced on 2007-06-10.
58281         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58282         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58283
58284 2008-03-30  Bruno Haible  <bruno@clisp.org>
58285
58286         Improve freadseek's efficiency after ungetc.
58287         * lib/freadseek.c: Include freadahead.h.
58288         (freadptrinc): New function, extracted from freadseek.
58289         (freadseek): Use it in a loop. Use freadahead to determine the number
58290         of loop iterations.
58291         * modules/freadseek (Depends-on): Add freadahead.
58292         (configure.ac): Require AC_C_INLINE.
58293
58294 2008-03-30  Bruno Haible  <bruno@clisp.org>
58295
58296         * lib/freadseek.c (freadseek): Don't ignore the return value of
58297         freadptr.
58298
58299 2008-03-29  Eric Blake  <ebb9@byu.net>
58300
58301         Add hex float support.
58302         * modules/strtod (Depends-on): Add c-ctype.
58303         (Link): Mention POW_LIB.
58304         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58305         whitespace between 'e' and exponent.
58306         * tests/test-strtod.c (main): Enable hex float tests.
58307         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58308         now provides.
58309
58310         Document various strtod bugs, with some fixes.
58311         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58312         "-0x", "inf", "nan", and hex constants.
58313         * doc/posix-functions/atof.texi (atof): Likewise.
58314         * modules/stdlib (Makefile.am): Support strtod.
58315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58316         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58317         detect additional strtod bugs.
58318         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58319         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58320         bool where appropriate.  Parse 'inf' and 'nan'.
58321         * tests/test-strtod.c: New file.
58322         * modules/strtod (Depends-on): Add stdbool, stdlib.
58323         (configure.ac): Turn on module indicator.
58324         * modules/strtod-tests: New module.
58325
58326 2008-03-29  Eric Blake  <ebb9@byu.net>
58327
58328         Fix ftell on mingw.
58329         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58330         * modules/ftell-tests (Depends-on): Add binary-io.
58331         * modules/ftello-tests (Depends-on): Likewise.
58332         * tests/test-ftell.c (main): Enhance test to cover behavior after
58333         ungetc.  Enforce binary mode.
58334         * tests/test-ftello.c (main): Likewise.
58335
58336         Pass test-freadseek on cygwin.
58337         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58338         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58339         ungetc buffer.
58340
58341         * tests/test-fflush2.c (main): Fix typo.
58342
58343 2008-03-29  Bruno Haible  <bruno@clisp.org>
58344
58345         * tests/test-fflush2.c (main): Temporarily disable the contents of
58346         this test.
58347         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58348         Reported by Eric Blake.
58349
58350 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58351
58352         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58353         (GC_SHA224_DIGEST_SIZE): Add.
58354
58355         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58356         (gc_hash_digest_length): Likewise.
58357         (gc_hash_buffer): Likewise.
58358
58359 2008-03-25  Bruno Haible  <bruno@clisp.org>
58360
58361         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58362         detail which gettext release to use.
58363         Reported by Simon Josefsson.
58364
58365 2008-03-26  Jim Meyering  <meyering@redhat.com>
58366
58367         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58368         * modules/gnumakefile (clean-GNUmakefile): Also, use
58369         test ... && ... || : syntax rather than if-then ... fi.
58370
58371         gnumakefile: Don't double-quote-expand $(VPATH) value.
58372         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58373
58374 2008-03-24  Eric Blake  <ebb9@byu.net>
58375
58376         Alter GNUmakefile to install into top directory.
58377         * modules/maintainer-makefile: Split, and add dependency...
58378         * modules/gnumakefile: to this new module.
58379         * build-aux/GNUmakefile: Move...
58380         * top/GNUmakefile: ...here.
58381         * build-aux/maint.mk: Move...
58382         * top/maint.mk: ...here.
58383         * MODULES.html.sh (Support for maintaining...): Document new
58384         module.
58385
58386 2008-03-23  Bruno Haible  <bruno@clisp.org>
58387
58388         * gnulib-tool: New options --vc-files, --no-vc-files.
58389         (func_usage): Document them.
58390         (vc_files): New variable.
58391         (func_import): Consider vc_files.
58392         (func_create_testdir): Set vc_files to empty.
58393         Suggested by Jim Meyering and Karl Berry.
58394
58395 2008-03-23  Bruno Haible  <bruno@clisp.org>
58396
58397         Fix regex compilation error on HP-UX 11.
58398         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58399         * modules/regex (Files): Add m4/mbstate_t.m4.
58400         Reported by Ton Voon <ton.voon@altinity.com>.
58401
58402 2008-03-23  Bruno Haible  <bruno@clisp.org>
58403
58404         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58405
58406 2008-03-23  Eric Blake  <ebb9@byu.net>
58407             Bruno Haible  <bruno@clisp.org>
58408
58409         Install files from top/ in the destination directory.
58410         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58411         augmentation also for the files from top/.
58412         (func_import, func_create_testdir): Rewrite file names:
58413         top/filename -> filename.
58414
58415 2008-03-23  Bruno Haible  <bruno@clisp.org>
58416
58417         Tweak "gnulib --version" output.
58418         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58419
58420 2008-03-23  Bruno Haible  <bruno@clisp.org>
58421
58422         Tweak "gnulib --version" output.
58423         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58424         rather than contents of ChangeLog, when possible.
58425
58426 2008-03-21  Eric Blake  <ebb9@byu.net>
58427
58428         More --version tweaks.
58429         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58430         date of last ChangeLog entry.
58431
58432 2008-03-21  Jim Meyering  <meyering@redhat.com>
58433
58434         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58435
58436 2008-03-20  Eric Blake  <ebb9@byu.net>
58437
58438         VPATH fix.
58439         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58440
58441 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58442
58443         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58444         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58445
58446 2008-03-20  Eric Blake  <ebb9@byu.net>
58447
58448         Sync GNUmakefile with coreutils.
58449         * build-aux/GNUmakefile (have-Makefile): Rename...
58450         (_have-Makefile): ...to this, for namespace consideration.
58451         (GNUmakefile.cfg): Include, if present.
58452         (_autoreconf): Define a default.
58453         (_is-dist-target): New rule for rebuilds to pick up intra-release
58454         version.
58455         (maint-cfg.mk): Rename...
58456         (cfg.mk): ...to this.
58457
58458 2008-03-18  Jim Meyering  <meyering@redhat.com>
58459
58460         New script and module: mktempd
58461         * MODULES.html.sh (maint+release support): Add mktempd.
58462         * build-aux/mktempd: New file.
58463         * modules/mktempd: New file.
58464
58465 2008-03-15  Jim Meyering  <meyering@redhat.com>
58466
58467         Undo last change.
58468         * lib/sha1.c, lib/md5.c: 63 != ~63.
58469         Reported by Andreas Schwab.
58470
58471         sha1.c, md5.c: Hoist a redundant expression.
58472         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58473         "ctx->buflen" only once, before calling *_process_block.
58474         * lib/md5.c (md5_process_bytes): Likewise.
58475
58476 2008-03-14  Eric Blake  <ebb9@byu.net>
58477
58478         Bump copyright year in files generated by gnulib-tool.
58479         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58480         gnulib-tool, rather than hard-coding it.
58481
58482         Fix 'gnulib-tool --version' output to work with git.
58483         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58484         (startup): ...here.
58485         (func_version): Use it to invoke git-version-gen, rather than
58486         relying on CVS keyword expansion.  Modernize wording.
58487         (cvsdatestamp, last_checkin_date, version): Kill unused
58488         variables.
58489
58490 2008-03-12  Jim Meyering  <meyering@redhat.com>
58491
58492         Recognize optional cast of the argument to free.
58493         * build-aux/useless-if-before-free: Update regexps.
58494
58495         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58496
58497 2008-03-11  Bruno Haible  <bruno@clisp.org>
58498
58499         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58500         by a single package.
58501         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58502         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58503         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58504         Reported by Sam Steingold <sds@gnu.org>.
58505
58506 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58507
58508         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58509         repositories.
58510
58511 2008-03-11  Bruno Haible  <bruno@clisp.org>
58512
58513         Avoid conflicts between local macro definitions.
58514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58515         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58516
58517 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58518             Bruno Haible  <bruno@clisp.org>
58519
58520         Make va_copy work with some version of xlc on AIX 5.1.
58521         * lib/stdarg.in.h: New file.
58522         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58523         On AIX, use a <stdarg.h> file substitute.
58524         * modules/stdarg (Files): Add lib/stdarg.in.h.
58525         (Depends-on): Add include_next.
58526         (Makefile.am): Build a stdarg.h substitute if requested.
58527         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58528
58529 2008-03-10  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58533         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58534
58535 2008-03-10  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/stdlib (Depends-on): Add include_next, remove
58538         absolute-header.
58539
58540 2008-03-09  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/freadahead.h (freadahead): Document more precisely.
58543         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58544         the sum of both buffer sizes.
58545         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58546         * NEWS: Document the change.
58547
58548 2008-03-09  Bruno Haible  <bruno@clisp.org>
58549
58550         Extend freadptr to return also the buffer size.
58551         * lib/freadptr.h (freadptr): Add sizep argument.
58552         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58553         (freadptr): Add sizep argument. Determine buffer size like freadahead
58554         does.
58555         * tests/test-freadptr.c: Don't include freadahead.h.
58556         (main): Adapt for new calling convention of freadptr.
58557         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58558         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58559         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58560         tests/test-freadptr2.sh.
58561         (Depends): Remove freadahead.
58562         (TESTS): Add test-freadptr2.sh.
58563         (check_PROGRAMS): Add test-freadptr2.
58564
58565 2008-03-09  Bruno Haible  <bruno@clisp.org>
58566
58567         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58568         Report and solution by Simon Josefsson.
58569
58570 2008-03-06  Bruno Haible  <bruno@clisp.org>
58571
58572         Make fflush after ungetc work on BSD platforms.
58573         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58574         * tests/test-fflush2.c: New file.
58575         * tests/test-fflush2.sh: New file.
58576         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58577         tests/test-fflush2.c.
58578         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58579         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58580
58581 2008-03-06  Eric Blake  <ebb9@byu.net>
58582
58583         Likewise for ftello.
58584         * modules/ftello (Dependencies): Add extensions.
58585         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58586
58587 2008-03-06  Bruno Haible  <bruno@clisp.org>
58588
58589         * modules/fseeko (Dependencies): Add extensions.
58590         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58591         Needed on glibc systems.
58592
58593 2008-03-06  Bruno Haible  <bruno@clisp.org>
58594
58595         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58596         email address.
58597         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58598
58599 2008-03-06  Bruno Haible  <bruno@clisp.org>
58600
58601         * users.txt: Add libgnupdf.
58602
58603 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58604
58605         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58606         (Header File Substitutes, Function Substitutes,
58607         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58608         (Build robot for gnulib): Fix typo.
58609
58610 2008-03-06  Bruno Haible  <bruno@clisp.org>
58611
58612         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58613         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58614
58615 2008-03-06  Bruno Haible  <bruno@clisp.org>
58616
58617         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58618         * doc/gnulib.texi: Include it.
58619
58620 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58621
58622         * modules/func (License): Change license to unlimited; there was
58623         no LGPL parts in the module anyway.
58624
58625 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58626
58627         * modules/__func__: Renamed to modules/func.
58628         * modules/__func__-tests: Renamed to modules/func-tests.
58629         * tests/test-__func__.c: Renamed to tests/test-func.c.
58630         * m4/__func__.m4: Renamed to m4/func.m4.
58631         * doc/gnulib.texi (__func__): Section renamed to func.
58632         Suggested by Eric Blake <ebb9@byu.net>.
58633
58634 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58635
58636         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58637         about __func__.  Make example self-contained.  Suggested by Eric
58638         Blake <ebb9@byu.net>.
58639
58640         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58641         Suggested by Eric Blake <ebb9@byu.net>.
58642
58643 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58644
58645         * modules/__func__: New file.
58646         * modules/__func__-tests: New file.
58647         * tests/test-__func__.c: New file.
58648         * m4/__func__.m4: New file.
58649         * doc/gnulib.texi (__func__): Document __func__ module.
58650
58651 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58652
58653         * modules/byteswap (License): Re-license as LGPLv2+.
58654
58655 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58656
58657         * doc/Makefile: Add pdf target.
58658
58659 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58660
58661         * modules/inline (License): Use 'unlimited', since there are only
58662         *.m4 files in this module.
58663
58664 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58665             Bruno Haible  <bruno@clisp.org>
58666
58667         Add support for HP C 7.1 on OpenVMS 8.3.
58668         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58669
58670 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58671
58672         Update VMS specifics.
58673         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58674
58675 2008-03-02  Jim Meyering  <meyering@redhat.com>
58676
58677         Remove the last dependency on the "free" module.
58678         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58679         Reported by Bob Proulx.
58680
58681         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58682
58683         Remove useless "if" tests before free.  Deprecate "free" module.
58684         * doc/posix-functions/free.texi: Mention that this
58685         module is no longer useful.
58686         * modules/free (Notice): Say this module is obsolete.
58687         * modules/readutmp (Depends-on): Remove free.
58688         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58689         * lib/putenv.c (putenv): Likewise.
58690         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58691         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58692         * tests/test-c-strcasestr.c (main): Likewise.
58693         * tests/test-c-strstr.c (main): Likewise.
58694         * tests/test-mbscasestr1.c (main): Likewise.
58695         * tests/test-mbscasestr2.c (main): Likewise.
58696         * tests/test-mbsstr1.c (main): Likewise.
58697         * tests/test-mbsstr2.c (main): Likewise.
58698         * tests/test-memmem.c (main): Likewise.
58699         * tests/test-strcasestr.c (main): Likewise.
58700         * tests/test-striconv.c (main): Likewise.
58701         * tests/test-striconveh.c (main): Likewise.
58702         * tests/test-striconveha.c (main): Likewise.
58703         * tests/test-strstr.c (main): Likewise.
58704
58705         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58706
58707         bootstrap: sync from coreutils again
58708         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58709
58710 2008-03-01  Jim Meyering  <meyering@redhat.com>
58711
58712         bootstrap: sync from coreutils
58713         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58714         also when the target doesn't exist.
58715
58716 2008-03-01  Eric Blake  <ebb9@byu.net>
58717
58718         Fix bugs in last patch.
58719         * lib/memchr2.c (memchr2): Fix typo.
58720         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58721         extension.
58722         Reported by Bruce Korb.
58723
58724         New module 'memchr2'.
58725         * modules/memchr2: New file.
58726         * modules/memchr2-tests: Likewise.
58727         * lib/memchr2.h: Likewise.
58728         * lib/memchr2.c: Likewise, based on memchr.c.
58729         * tests/test-memchr2.c: New test.
58730         * MODULES.html.sh (String handling): Add memchr2.
58731
58732 2008-02-29  Bruno Haible  <bruno@clisp.org>
58733
58734         * modules/freadseek-tests: New file.
58735         * tests/test-freadseek.sh: New file.
58736         * tests/test-freadseek.c: New file.
58737
58738         New module 'freadseek'.
58739         * modules/freadseek: New file.
58740         * lib/freadseek.h: New file.
58741         * lib/freadseek.c: New file.
58742         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58743
58744 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58745
58746         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58747         wydawca.
58748
58749         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58750         program_invocation_name and program_invocation_short_name are
58751         present.
58752
58753 2008-02-28  Bruno Haible  <bruno@clisp.org>
58754
58755         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58756         * tests/test-freadptr.sh: Also test non-seekable stdin.
58757
58758 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58759
58760         * build-aux/bootstrap (source_base, m4_base)
58761         (doc_base, tests_base): New variables.
58762         (gnulib_tool_options): Do not hardcode base directories, use
58763         the above variables instead.
58764
58765 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58766
58767         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58768
58769 2008-02-28  Bruno Haible  <bruno@clisp.org>
58770
58771         * modules/freadptr-tests: New file.
58772         * tests/test-freadptr.sh: New file.
58773         * tests/test-freadptr.c: New file.
58774
58775         New module 'freadptr'.
58776         * modules/freadptr: New file.
58777         * lib/freadptr.h: New file.
58778         * lib/freadptr.c: New file.
58779         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58780
58781 2008-02-26  Karl Berry  <karl@freefriends.org>
58782
58783         Sync from Libtool:
58784         * libltdl/argz.c (argz_add, argz_count): New functions.
58785         * libltdl/argz.in.h: Declare them.
58786         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58787
58788 2008-02-22  Bruno Haible  <bruno@clisp.org>
58789
58790         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58791         is a pointer type.  Needed for HP-UX 10.
58792         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58793         * doc/posix-functions/gmtime_r.texi: Likewise.
58794         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58795
58796 2008-02-24  Bruno Haible  <bruno@clisp.org>
58797
58798         * modules/environ-tests: New file.
58799         * tests/test-environ.c: New file.
58800
58801         New module 'environ'.
58802         * modules/environ: New file.
58803         * lib/unistd.in.h (environ): New declaration.
58804         * m4/environ.m4: New file.
58805         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58806         after use.
58807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58808         HAVE_DECL_ENVIRON.
58809         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58810         HAVE_DECL_ENVIRON.
58811         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58812         wrong claim that 'environ' is missing on some systems.
58813         * modules/execute (Depends-on): Add environ.
58814         * lib/execute.c (environ): Remove fallback declaration.
58815         * modules/pipe (Depends-on): Add environ.
58816         * lib/pipe.c (environ): Remove fallback declaration.
58817         * modules/setenv (Depends-on): Add environ.
58818         * lib/setenv.c (environ): Remove fallback declaration.
58819         * modules/unsetenv (Depends-on): Add environ.
58820         * lib/unsetenv.c (environ): Remove fallback declaration.
58821         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58822         m4/environ.m4.
58823         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58824         (gl_PREREQ_UNSETENV): Likewise.
58825
58826 2008-02-24  Bruno Haible  <bruno@clisp.org>
58827
58828         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58829
58830 2008-02-20  Bob Proulx  <bob@proulx.com>
58831
58832         Enable use of older two part flavor 'git describe'.
58833         * build-aux/git-version-gen: If using the older two part flavor of
58834         git version then recreate the third part now present in the
58835         newer three part flavor of git describe.
58836
58837 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58838
58839         * lib/fts.c (fts_build): Typo correction to comment.
58840
58841 2008-02-17  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58844         generating no-op conflicts.
58845
58846 2008-02-17  Bruno Haible  <bruno@clisp.org>
58847
58848         Speed up by 10%.
58849         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58850         result_entries, rather than an index-based loop.
58851
58852 2008-02-17  Bruno Haible  <bruno@clisp.org>
58853
58854         Speed up by 25%.
58855         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58856         'hashcode_cached'.
58857         (entry_create): New function.
58858         (entry_hashcode): Use the cached hashcode if possible.
58859         (read_changelog_file, try_split_merged_entry): Use entry_create.
58860
58861 2008-02-17  Bruno Haible  <bruno@clisp.org>
58862
58863         Speed up from O(n^2) to O(n) for long ChangeLog files.
58864         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58865         (read_changelog_file): Change implementation of entries_reversed list
58866         to rbtreehash.
58867         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58868
58869 2008-02-17  Bruno Haible  <bruno@clisp.org>
58870
58871         New option --split-merged-entry.
58872         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58873         (find_paragraph_end, try_split_merged_entry): New functions.
58874         (long_options): Add option --split-merged-entry.
58875         (usage): Document option --split-merged-entry.
58876         (main): Implement option --split-merged-entry.
58877         Reported by Eric Blake.
58878
58879 2008-02-17  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/git-merge-changelog.c: Include c-strstr.h.
58882         (main): Support the "git pull --rebase" situation.
58883         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58884         Reported by Eric Blake.
58885
58886 2008-02-16  Eric Blake  <ebb9@byu.net>
58887
58888         Avoid doubling \ in common case of "c-maybe" quoting style.
58889         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58890         eliding outer quotes.
58891         * lib/quotearg.h: Document this.
58892         * tests/test-quotearg.c (result_strings, inputs, results_g)
58893         (flag_results, locale_results): Test it by adding a new string to
58894         each test group.
58895         (compare_strings): Test new string.
58896
58897 2008-02-13  Eric Blake  <ebb9@byu.net>
58898
58899         Avoid trigraph quoting in default output.
58900         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58901         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58902         unless explicitly requested.
58903         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58904
58905 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58906
58907         Don't rely on signed integer overflowing to negative value.
58908         * lib/getugroups.c (getugroups): Include <limits.h>.
58909         Instead, compare against INT_MAX, and increment only if the test passes.
58910
58911 2008-02-13  Jim Meyering  <meyering@redhat.com>
58912         and Eric Blake  <ebb9@byu.net>
58913
58914         Avoid shadowing warning and compile errors on Linux.
58915         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58916         forwarding macros on Linux.
58917         (dcgettext): Define a stub, for Linux.
58918         (results_g, main): Avoid warnings.
58919
58920 2008-02-12  Eric Blake  <ebb9@byu.net>
58921
58922         Silence warning in last patch.
58923         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58924
58925         Quotearg part 4: add tests, fix c-maybe colon quoting.
58926         * lib/quotearg.h: Improve documentation.
58927         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58928         escapes when adding outer quotes.  When quoting trigraphs, use
58929         valid C notation.  When quoting NUL, omit extra characters if next
58930         character is not digit.  Alter prototype.
58931         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58932         callers.
58933         * modules/quotearg-tests: New module.
58934         * tests/test-quotearg.c: New test.
58935
58936 2008-02-07  Eric Blake  <ebb9@byu.net>
58937
58938         Quotearg part 3: add flag to control outer quote elision.
58939         * lib/quotearg.h (c_maybe_quoting_style): New style.
58940         (enum quoting_flags): Better documentation of flags.
58941         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58942         c-maybe style.
58943         (quotearg_buffer_restyled): Handle new flag to elide outer
58944         quotes.
58945
58946         Quotearg part 2: add flag that can control NUL elision.
58947         * lib/quotearg.h (set_quoting_flags): New prototype.
58948         * lib/quotearg.c (struct quoting_options): Add flag field.
58949         (set_quoting_flags): New function.
58950         (quotearg_buffer_restyled): Add flags parameter.
58951         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58952         (quotearg_n_options): Set the flag, since length cannot be
58953         returned.
58954         (quoting_options_from_style): Default flags correctly.
58955
58956         Quotearg part 1: more wrappers, restore quotearg_char state.
58957         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58958         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58959         (quotearg_colon_mem): New wrappers.
58960         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58961         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58962         functions.
58963         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58964         (quotearg_colon_mem): New functions.
58965
58966 2008-02-11  Bruno Haible  <bruno@clisp.org>
58967
58968         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58969         library in the current directory: it does not work with parallel make.
58970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58971
58972 2008-02-11  Bruno Haible  <bruno@clisp.org>
58973
58974         * .gitattributes: New file.
58975
58976 2008-02-11  Jim Meyering  <meyering@redhat.com>
58977
58978         useless-if-before-free: Fix reversed exit values.
58979         * build-aux/useless-if-before-free: Use correct values
58980         for EXIT_MATCH and EXIT_NO_MATCH.
58981
58982         * build-aux/useless-if-before-free: Close stdout carefully.
58983
58984 2008-02-10  Bruno Haible  <bruno@clisp.org>
58985
58986         New module 'git-merge-changelog'.
58987         * modules/git-merge-changelog: New file.
58988         * lib/git-merge-changelog.c: New file.
58989
58990 2008-02-10  Jim Meyering  <meyering@redhat.com>
58991
58992         useless-if-before-free: New option: --list (-l).
58993
58994         useless-if-before-free: Don't exit immediately upon open failure.
58995         * build-aux/useless-if-before-free: Exit 2 for errors.
58996         Upon failure to open a file, don't exit immediately.
58997         Rather, just warn and continue with any remaining files.
58998
58999 2008-02-10  Bruno Haible  <bruno@clisp.org>
59000
59001         New abstract list operation 'node_set_value'.
59002         * lib/gl_list.h (gl_list_node_set_value): New function.
59003         (struct gl_list_implementation): New field node_set_value.
59004         * lib/gl_list.c (gl_list_node_set_value): New function.
59005         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59006         (gl_array_list_implementation): Update.
59007         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59008         (gl_carray_list_implementation): Update.
59009         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59010         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59011         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59012         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59013         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59014         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59015         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59016         Update.
59017         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59018         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59019         (gl_sublist_list_implementation): Update.
59020
59021 2008-02-10  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59024         Needed when ELEMENT is #defined to 'some_type *'.
59025
59026 2008-02-10  Jim Meyering  <meyering@redhat.com>
59027
59028         New script and module: useless-if-before-free
59029         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59030         * build-aux/useless-if-before-free: New file.
59031         * modules/useless-if-before-free: New file.
59032
59033         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59034
59035         xstrtol_error: Fix typo.
59036         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59037         s/exit_failure/exit_status/.
59038
59039 2008-02-09  Jim Meyering  <meyering@redhat.com>
59040
59041         New script and module: gitlog-to-changelog
59042         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59043         * modules/gitlog-to-changelog: New file.
59044         * build-aux/gitlog-to-changelog: New file.
59045
59046 2008-02-08  Jim Meyering  <meyering@redhat.com>
59047
59048         Avoid two "parameter unused" warnings.
59049         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59050         Mark "st" as used.
59051
59052         Use "git COMMAND", not "git-COMMAND".
59053         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59054         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59055         * build-aux/git-version-gen: Use "git status", not "git-status".
59056
59057 2008-02-07  Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59060         Avoids a crash on Windows Vista.
59061         Reported by Adam Strzelecki <ono@java.pl> via
59062         Simon Josefsson <simon@josefsson.org>.
59063
59064 2008-02-06  Bruno Haible  <bruno@clisp.org>
59065
59066         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59067         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59068         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59070         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59072         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59073         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59081         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59082         left-adjust flag.
59083         * tests/test-snprintf-posix.h (test_function): Likewise.
59084         * tests/test-sprintf-posix.h (test_function): Likewise.
59085         * tests/test-vasprintf-posix.c (test_function): Likewise.
59086         * doc/posix-functions/fprintf.texi: Update.
59087         * doc/posix-functions/printf.texi: Update.
59088         * doc/posix-functions/snprintf.texi: Update.
59089         * doc/posix-functions/sprintf.texi: Update.
59090         * doc/posix-functions/vfprintf.texi: Update.
59091         * doc/posix-functions/vprintf.texi: Update.
59092         * doc/posix-functions/vsnprintf.texi: Update.
59093         * doc/posix-functions/vsprintf.texi: Update.
59094         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59095
59096 2008-02-06  Bruno Haible  <bruno@clisp.org>
59097
59098         Fix bug introduced on 2008-01-26.
59099         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59100
59101 2008-02-06  Bruno Haible  <bruno@clisp.org>
59102
59103         Fix bug introduced on 2007-06-10.
59104         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59105         !NEED_PRINTF_FLAG_ZERO.
59106
59107 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59108
59109         getloadavg: use libperfstat on AIX5
59110         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59111
59112 2008-02-03  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/diffseq.h: Add comments about required #includes.
59115         Reported by Michael Biggs <gnulib@doubleplum.net>.
59116
59117 2008-02-01  Bruno Haible  <bruno@clisp.org>
59118
59119         * users.txt: Add gnuit.
59120
59121 2008-01-31  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/md4.c (set_uint32): Mark as inline.
59124         * lib/md5.c (set_uint32): Likewise.
59125         * lib/sha1.c (set_uint32): Likewise.
59126         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59127         * m4/md5.m4 (gl_MD5): Likewise.
59128         * m4/sha1.m4 (gl_SHA1): Likewise.
59129
59130 2008-01-31  Jim Meyering  <meyering@redhat.com>
59131
59132         Use "sizeof VAR", rather than a literal "4".
59133         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59134         * lib/md4.c (md4_read_ctx): Likewise.
59135         * lib/sha1.c (sha1_read_ctx): Likewise.
59136
59137 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59138
59139         * tests/test-sha1.c: New file, based on test-md5.c.
59140
59141         * modules/crypto/sha1-tests: New file.
59142
59143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59144
59145         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59146
59147 2008-01-31  Jim Meyering  <meyering@redhat.com>
59148
59149         Prefer "sizeof v" over the equivalent "4".
59150         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59151         * lib/md5.c (set_uint32): Likewise.
59152         * lib/sha1.c (set_uint32): Likewise.
59153
59154 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59155
59156         * lib/sha1.c (set_uint32): Mark function as static.
59157
59158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59159
59160         md2: clarify comments to say that alignment is not required.
59161         * lib/md2.h: Remove warning about alignment in comment.
59162         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59163         never been required.
59164
59165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59166
59167         md4: adapt alignment constraint fix from sha1.
59168         * lib/md4.c (set_uint32): New function, from sha1.c
59169         (md4_read_ctx): Use it.
59170         (md4_finish_ctx): Doc fix.
59171         * lib/md4.h: Doc fix.
59172
59173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59174
59175         md5: adapt alignment constraint fix from sha1.
59176         * lib/md5.c (set_uint32): New function, from sha1.c
59177         (md5_read_ctx): Use it.
59178         (md5_finish_ctx): Doc fix.
59179         * lib/md5.h: Doc fix.
59180
59181 2008-01-30  Peter Palfrader  <weasel@debian.org>
59182
59183         sha1: remove the result buffer alignment constraint
59184         * lib/sha1.c (set_uint32): New function.
59185         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59186         constraint.
59187         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59188         * lib/sha1.h: Likewise.
59189
59190 2008-01-30  Andreas Schwab  <schwab@suse.de>
59191             Bruno Haible  <bruno@clisp.org>
59192
59193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59194         correct definition of LDBL_MIN_EXP.
59195
59196 2008-01-30  Karl Berry  <karl@gnu.org>
59197
59198         * config/srclist-update: try to preserve x bit on updates.
59199         * config/srclistvars.sh: update for karl.
59200
59201 2008-01-29  Jim Meyering  <meyering@redhat.com>
59202
59203         vasnprintf.c: Avoid warning about unused label
59204         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59205         "overflow" label definition and associated code with the
59206         same cpp condition that guards the sole use of that label.
59207
59208 2008-01-26  Bruno Haible  <bruno@clisp.org>
59209
59210         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59211         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59212         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59213         * lib/isnanl-nolibm.h (isnanl): Likewise.
59214         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59215
59216 2008-01-26  Bruno Haible  <bruno@clisp.org>
59217
59218         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59219         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59220
59221 2008-01-26  Bruno Haible  <bruno@clisp.org>
59222
59223         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59224         GCC >= 4.0 built-in.
59225         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59226
59227 2008-01-26  Bruno Haible  <bruno@clisp.org>
59228
59229         Rename isnan, applicable to 'double' only, to isnand.
59230         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59231         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59232         (configure.ac): Update.
59233         (Include): Replace "isnan.h" with "isnand.h".
59234         * m4/isnand.m4: Renamed from m4/isnan.m4.
59235         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59236         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59237         instead of isnan.c.
59238         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59239         instead of HAVE_ISNAN_IN_LIBC.
59240         (isnand): Renamed from isnan.
59241         * lib/isnand.c: New file.
59242         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59243         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59244         (Makefile.am): Update.
59245         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59246         Include isnand.h instead of isnan.h.
59247         (main): Test isnand instead of isnan.
59248         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59249         isnan-nolibm.
59250         * modules/frexp (Depends-on): Likewise.
59251         * modules/frexp-tests (Depends-on): Likewise.
59252         * modules/frexp-nolibm (Depends-on): Likewise.
59253         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59254         * modules/isfinite (Depends-on): Likewise.
59255         * modules/round-tests (Depends-on): Likewise.
59256         * modules/signbit (Depends-on): Likewise.
59257         * modules/signbit-tests (Depends-on): Likewise.
59258         * modules/snprintf-posix (Depends-on): Likewise.
59259         * modules/sprintf-posix (Depends-on): Likewise.
59260         * modules/trunc-tests (Depends-on): Likewise.
59261         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59264         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59265         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59266         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59268         * modules/vasnprintf-posix (Depends-on): Likewise.
59269         * modules/vasprintf-posix (Depends-on): Likewise.
59270         * modules/vfprintf-posix (Depends-on): Likewise.
59271         * modules/vsnprintf-posix (Depends-on): Likewise.
59272         * modules/vsprintf-posix (Depends-on): Likewise.
59273         * lib/frexp.c: Include isnand.h instead of isnan.h.
59274         (ISNAN): Set to isnand instead of isnan.
59275         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59276         (gl_isfinited): Use isnand instead of isnan.
59277         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59278         (gl_signbitd): Use isnand instead of isnan.
59279         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59280         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59281         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59282         (main): Use isnand instead of isnan.
59283         * tests/test-round1.c: Include isnand.h.
59284         (main): Use isnand instead of isnan.
59285         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59286         (ISNAN): Set to isnand instead of isnan.
59287         * tests/test-trunc1.c: Include isnand.h.
59288         (main): Use isnand instead of isnan.
59289         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59290         (equal): Use isnand instead of isnan.
59291         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59292         isnand-nolibm.
59293         * NEWS: Mention the change.
59294
59295 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59296             Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59299         the GCC builtins for signbits are present and set
59300         REPLACE_SIGNBIT_USING_GCC if so.
59301         * lib/math.in.h (signbit): Define using GCC builtins if
59302         REPLACE_SIGNBIT_USING_GCC is set.
59303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59304         REPLACE_SIGNBIT_USING_GCC.
59305         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59306
59307 2008-01-25  Jim Meyering  <meyering@redhat.com>
59308
59309         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59310         * lib/poll.c: Include <config.h>, not "config.h".
59311         * tests/test-getaddrinfo.c: Likewise.
59312
59313 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59314
59315         * modules/sockets-tests: New file.
59316
59317 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59318
59319         * modules/sockets: New module, can be used to call WSA_Startup and
59320         WSA_Cleanup when needed.
59321
59322         * lib/sockets.h, lib/sockets.c: New files.
59323
59324         * m4/sockets.m4: New file.
59325
59326         * tests/test-sockets.c: New file.
59327
59328 2008-01-19  Bruno Haible  <bruno@clisp.org>
59329
59330         * doc/posix-headers: Renamed from doc/headers.
59331         * doc/posix-functions: Renamed from doc/functions.
59332         * doc/gnulib.texi: Update.
59333
59334 2008-01-19  Bruno Haible  <bruno@clisp.org>
59335
59336         * doc/glibc-functions/strcasestr.texi: Include contents of
59337         doc/functions/strcasestr.texi, fixing the list of platforms.
59338         * doc/functions/strcasestr.texi: Remove file.
59339
59340 2008-01-19  Bruno Haible  <bruno@clisp.org>
59341
59342         * doc/glibc-functions/memmem.texi: Include contents of
59343         doc/functions/memmem.texi.
59344         * doc/functions/memmem.texi: Remove file.
59345
59346 2008-01-18  Bruno Haible  <bruno@clisp.org>
59347
59348         * doc/glibc-functions/*.texi: New files.
59349         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59350         to use the new files.
59351
59352 2008-01-17  Bruno Haible  <bruno@clisp.org>
59353
59354         * tests/test-gethostname.c (main): Fix printf statement.
59355
59356 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59357
59358         * modules/gethostname-tests: New file.
59359
59360         * tests/test-gethostname.c: New file.
59361
59362 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59363
59364         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59365         used by the UNAME case.  Reported by Bruno Haible
59366         <bruno@clisp.org>.
59367
59368 2008-01-17  Eric Blake  <ebb9@byu.net>
59369
59370         Convert c-strcasestr to be more efficient.
59371         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59372         (Depends-on): Add c-strcase, remove malloca, strnlen.
59373         * tests/test-c-strcasestr.c (main): Enhance test.
59374         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59375
59376 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59377
59378         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59379         Use it in creating po/Makevars.
59380
59381 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59382
59383         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59384         Applications that requires it should initialize libgcrypt
59385         manually.
59386
59387 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59388
59389         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59390
59391 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59392
59393         Fix problem with getdate on mingw32 reported by Simon Josefsson
59394         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59395         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59396         tzname", when deciding whether to declare tzname.
59397         * lib/strftime.c (tzname): Likewise.
59398
59399 2008-01-15  Bruno Haible  <bruno@clisp.org>
59400
59401         Work around a MacOS X 10.5 bug in frexpl().
59402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59403         * doc/functions/frexpl.texi: Document the bug.
59404         Reported by Elias Pipping <pipping@gentoo.org>.
59405
59406 2008-01-14  Eric Blake  <ebb9@byu.net>
59407
59408         Touch up previous patch.
59409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59410         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59411
59412         Convert strcasestr module to use Two-Way algorithm.
59413         * modules/strcasestr-simple: New module, based on the old
59414         strcasestr, but with Two-Way rather than KMP.
59415         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59416         * lib/string.in.h (rpl_strcasestr): Declare.
59417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59418         performance.
59419         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59420         * modules/string (Makefile.am): Support strcasestr.
59421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59422         * modules/strcasestr-tests (Depends-on): Check for alarm.
59423         * tests/test-strcasestr.c: Augment test.
59424         * lib/str-two-way.h: Clean up stray macro.
59425         * NEWS: Document new module.
59426         * MODULES.html.sh (string handling): Likewise.
59427         * doc/functions/strcasestr.texi: New file.
59428         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59429         here, since it is not a POSIX function.
59430
59431 2008-01-14  Colin Watson  <cjwatson@debian.org>
59432             Bruno Haible  <bruno@clisp.org>
59433
59434         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59435         works fine; if not, set REPLACE_STRSIGNAL.
59436         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59438         REPLACE_STRSIGNAL.
59439         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59440         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59441         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59442
59443 2008-01-14  Bruno Haible  <bruno@clisp.org>
59444
59445         * modules/strsignal (Include): Change to <string.h>.
59446
59447 2008-01-14  Colin Watson  <cjwatson@debian.org>
59448
59449         * modules/argp (Notice): Add a notice recommending to change
59450         XGETTEXT_OPTIONS.
59451         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59452
59453 2008-01-13  Colin Watson  <cjwatson@debian.org>
59454
59455         * modules/strsignal-tests: New file.
59456         * tests/test-strsignal.c: New file.
59457
59458         * lib/strsignal.c: New file, from glibc with modifications.
59459         * lib/siglist.h: New file, from glibc with modifications.
59460         * lib/string.in.h (strsignal): New declaration.
59461         * m4/strsignal.m4: New file.
59462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59463         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59464         * modules/strsignal: New file.
59465         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59466         HAVE_DECL_STRSIGNAL.
59467
59468 2008-01-13  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59471         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59474
59475 2008-01-13  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59478         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59479         * lib/argp.h (__attribute__): Likewise.
59480         * lib/c-stack.c (__attribute__): Likewise.
59481         * lib/error.h (__attribute__): Likewise.
59482         * lib/fts.c (__attribute__): Likewise.
59483         * lib/openat.h (__attribute__): Likewise.
59484         * lib/stdio.in.h (__attribute__): Likewise.
59485         * lib/string.in.h (__attribute__): Likewise.
59486         * lib/utimens.c (__attribute__): Likewise.
59487         * lib/vasnprintf.h (__attribute__): Likewise.
59488         * lib/xalloc.h (__attribute__): Likewise.
59489         * lib/xprintf.h (__attribute__): Likewise.
59490         * lib/xstrtol.h (__attribute__): Likewise.
59491         * lib/xvasprintf.h (__attribute__): Likewise.
59492
59493 2008-01-12  Bruno Haible  <bruno@clisp.org>
59494
59495         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59496         * doc/glibc-headers/a.out.texi: New file.
59497         * doc/glibc-headers/aliases.texi: New file.
59498         * doc/glibc-headers/alloca.texi: New file.
59499         * doc/glibc-headers/ar.texi: New file.
59500         * doc/glibc-headers/argp.texi: New file.
59501         * doc/glibc-headers/argz.texi: New file.
59502         * doc/glibc-headers/byteswap.texi: New file.
59503         * doc/glibc-headers/crypt.texi: New file.
59504         * doc/glibc-headers/endian.texi: New file.
59505         * doc/glibc-headers/envz.texi: New file.
59506         * doc/glibc-headers/err.texi: New file.
59507         * doc/glibc-headers/error.texi: New file.
59508         * doc/glibc-headers/execinfo.texi: New file.
59509         * doc/glibc-headers/fpu_control.texi: New file.
59510         * doc/glibc-headers/fstab.texi: New file.
59511         * doc/glibc-headers/fts.texi: New file.
59512         * doc/glibc-headers/getopt.texi: New file.
59513         * doc/glibc-headers/ieee754.texi: New file.
59514         * doc/glibc-headers/ifaddrs.texi: New file.
59515         * doc/glibc-headers/libintl.texi: New file.
59516         * doc/glibc-headers/mcheck.texi: New file.
59517         * doc/glibc-headers/mntent.texi: New file.
59518         * doc/glibc-headers/obstack.texi: New file.
59519         * doc/glibc-headers/paths.texi: New file.
59520         * doc/glibc-headers/printf.texi: New file.
59521         * doc/glibc-headers/pty.texi: New file.
59522         * doc/glibc-headers/resolv.texi: New file.
59523         * doc/glibc-headers/shadow.texi: New file.
59524         * doc/glibc-headers/sysexits.texi: New file.
59525         * doc/glibc-headers/ttyent.texi: New file.
59526
59527 2008-01-12  Jim Meyering  <meyering@redhat.com>
59528
59529         announce-gen: emit Gnulib's git-based version string.
59530         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59531         New option --gnulib-version=V, where V is expected to be
59532         the output of running git describe in the gnulib directory.
59533         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59534         not useful, and plan to stop publishing an xdelta file with each
59535         coreutils release.
59536
59537         * build-aux/announce-gen: Also check for lzma-compressed files.
59538
59539 2008-01-11  Bruno Haible  <bruno@clisp.org>
59540
59541         * tests/test-memmem.c (main): Increase maximum allowed time.
59542         * tests/test-strstr.c (main): Likewise.
59543
59544 2008-01-11  Bruno Haible  <bruno@clisp.org>
59545
59546         * doc/functions/memmem.texi: Add more precisions about platforms.
59547         * doc/functions/strstr.texi: Likewise.
59548
59549 2008-01-10  Eric Blake  <ebb9@byu.net>
59550
59551         * m4/strstr.m4: Delete cruft from copy-n-paste.
59552         Reported by Bruno Haible.
59553
59554 2008-01-10  Bruno Haible  <bruno@clisp.org>
59555
59556         Make c-strstr rely on strstr.
59557         * lib/c-strstr.c: Don't include str-kmp.h.
59558         (c_strstr): Define in terms of strstr.
59559         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59560         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59561
59562 2008-01-10  Bruno Haible  <bruno@clisp.org>
59563
59564         * doc/gnulib.texi (String Functions in C Locale): New section.
59565         * doc/c-ctype.texi: New file.
59566         * doc/c-strcase.texi: New file.
59567         * doc/c-strcaseeq.texi: New file.
59568         * doc/c-strcasestr.texi: New file.
59569         * doc/c-strstr.texi: New file.
59570         * doc/c-strtod.texi: New file.
59571         * doc/c-strtold.texi: New file.
59572
59573 2008-01-10  Eric Blake  <ebb9@byu.net>
59574
59575         * lib/relocatable.h: Fix a comment.
59576
59577 2008-01-10  Eric Blake  <ebb9@byu.net>
59578
59579         Share two-way algorithm.
59580         * lib/str-two-way.h: New file, merged from...
59581         * lib/memmem.c: ...here...
59582         * lib/strstr.c: ...and here.
59583         * modules/memmem (Files): Use it.
59584         * modules/strstr (Files): Likewise.
59585
59586         Avoid quadratic strstr implementations.
59587         * lib/strstr.c: New file.
59588         * m4/strstr.m4: Likewise.
59589         * modules/strstr: Likewise.
59590         * modules/strstr-tests: Likewise.
59591         * tests/test-strstr.c: Likewise.
59592         * lib/string.in.h (rpl_strstr): Declare.
59593         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59595         * modules/string (Makefile.am): Likewise.
59596         * MODULES.html.sh (string handling): Mention new module.
59597         * doc/functions/strstr.texi (strstr): Document the bug.
59598
59599 2008-01-10  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/relocatable.h (relocate): State whether result is freshly
59602         allocated or not.
59603         * lib/relocatable.c (relocate): Return a freshly allocated string
59604         instead of a pointer to a privately held string.
59605         Reported by Sylvain Beucler <beuc@gnu.org>.
59606
59607 2008-01-10  Colin Watson  <cjwatson@debian.org>
59608
59609         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59610         s/S_ISNLK/S_ISLNK/.
59611
59612 2008-01-09  Bruno Haible  <bruno@clisp.org>
59613
59614         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59615         and other files.
59616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59617         if it's only a guess.
59618         * modules/memmem: Simplify by depending on memmem-simple.
59619
59620 2008-01-09  Bruno Haible  <bruno@clisp.org>
59621
59622         Work around OpenBSD 4.0 tdelete() bug.
59623         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59624         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59625         macros and don't redefine the enum values.
59626         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59627         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59628         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59629
59630 2008-01-09  Bruno Haible  <bruno@clisp.org>
59631
59632         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59633         (main): Don't perform the tests if setlocale did not install a UTF-8
59634         locale. Needed on OpenBSD 4.0.
59635         * modules/wcwidth-tests (Depends-on): Add localcharset.
59636
59637 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59640         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59641         * NEWS: announce this.
59642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59643
59644 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59645         and Eric Blake  <ebb9@byu.net>
59646
59647         Add memmem-simple module.
59648         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59649         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59650         * modules/memmem-simple: New file.
59651         * modules/memmem (Description): Tweak.
59652         * MODULES.html.sh (string handling): Mention new module.
59653         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59654         addressed by memmem-simple.
59655         * NEWS: Document the difference.
59656
59657 2008-01-09  Eric Blake  <ebb9@byu.net>
59658
59659         Give gcc some memmem optimization hints.
59660         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59661         (strcasestr): Declare as pure.
59662         * modules/memmem (Maintainer): Claim my implementation.
59663
59664 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59665
59666         Support AIX 6.1 and higher.
59667         * build-aux/config.libpath: Likewise.
59668         * build-aux/config.rpath: Likewise.
59669
59670 2008-01-08  Jim Meyering  <meyering@redhat.com>
59671             Bruno Haible  <bruno@clisp.org>
59672
59673         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59674         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59675         Reported by Peter Fales in
59676         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59677
59678 2008-01-08  Bruno Haible  <bruno@clisp.org>
59679
59680         * modules/unictype/category-of (Depends-on): Add
59681         unictype/category-none.
59682         * modules/unictype/category-and-tests (Depends-on): Add
59683         unictype/category-{L,N,Lu,Nd}.
59684         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59685         * modules/unictype/category-or-tests (Depends-on): Add
59686         unictype/category-{L,N}.
59687         * modules/unictype/category-name-tests (Depends-on): Add
59688         unictype/category-{Z,Nl}.
59689         Reported by Simon Josefsson.
59690
59691 2008-01-08  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59694         convention better.
59695         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59696         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59697         Reported by Peter Miller <millerp@canb.auug.org.au>.
59698
59699 2008-01-08  Eric Blake  <ebb9@byu.net>
59700
59701         Rewrite memmem to guarantee linear complexity without malloc.
59702         * lib/memmem.c (memmem): Use Two-Way rather than
59703         Knuth-Morris-Pratt, to allow O(1) space usage.
59704         (critical_factorization, two_way_short_needle)
59705         (two_way_long_needle): New functions.
59706         (knuth_morris_pratt): Delete.
59707         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59708         Add stdint.
59709         * tests/test-memmem.c (main): Add tests for periodic needle and
59710         sublinear performance.
59711         * doc/functions/memmem.texi (memmem): Document other deficiencies
59712         in cygwin and older glibc.
59713
59714 2008-01-08  Bruno Haible  <bruno@clisp.org>
59715
59716         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59717         augmentation.
59718
59719 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59720
59721         Add a configure time option: --disable-acl.
59722         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59723         AC_ARG_ENABLE(acl).
59724
59725 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59726
59727         * tests/test-localename.c: Don't include obsolete "setenv.h".
59728
59729         * modules/localename-tests (Depends-on): Need unsetenv.
59730
59731 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59732
59733         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59734
59735 2008-01-06  Colin Watson  <cjwatson@debian.org>
59736
59737         * users.txt: Add man-db.
59738
59739 2008-01-07  Bruno Haible  <bruno@clisp.org>
59740
59741         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59742         previous section name.
59743
59744 2008-01-07  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/progname.c (set_program_name): Don't strip off a leading
59747         "lt-" prefix outside a .libs directory.
59748         Suggested by Paul Eggert.
59749
59750 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59751             Bruno Haible  <bruno@clisp.org>
59752
59753         Improve memory cleanup in 'relocatable' module.
59754         * lib/relocatable.h (compute_curr_prefix): Change return type to
59755         'char *'.
59756         * lib/relocatable.c (compute_curr_prefix): Change return type to
59757         'char *'. Free curr_installdir after use.
59758         (relocate): Free curr_prefix_better after use.
59759         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59760
59761 2008-01-01  Bruno Haible  <bruno@clisp.org>
59762
59763         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59764         failure on older glibc systems.
59765         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59766
59767 2008-01-05  Eric Blake  <ebb9@byu.net>
59768
59769         Avoid quadratic system memmem.
59770         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59771         Reported by Ralf Wildenhues.
59772
59773         Fix memmem test for mingw.
59774         * modules/memmem-tests (configure.ac): Check for alarm.
59775         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59776         it.
59777         * doc/functions/memmem.texi: New file.
59778         * doc/gnulib.texi (Function Substitutes): Add memmem.
59779         Reported by Bruno Haible.
59780
59781 2008-01-04  Bruno Haible  <bruno@clisp.org>
59782
59783         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59784         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59785         gl_HEADER_STRING_H_DEFAULTS.
59786
59787 2008-01-04  Eric Blake  <ebb9@byu.net>
59788
59789         Shorten duration of memmem test.
59790         * tests/test-memmem.c (main): Use alarm to declare failure if test
59791         is taking too long.
59792         Reported by Ralf Wildenhues.
59793
59794 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59795
59796         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59797         string, needed by strerror.
59798
59799 2008-01-03  Colin Watson  <cjwatson@debian.org>
59800             Bruno Haible  <bruno@clisp.org>
59801
59802         * doc/gnulib-tool.texi (Localization): New section.
59803
59804 2008-01-02  Bruno Haible  <bruno@clisp.org>
59805
59806         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59807         variables to 'unsigned char *' type.
59808         Reported by Paul Eggert.
59809
59810 2008-01-02  Jim Meyering  <jim@meyering.net>
59811
59812         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59813
59814 2007-12-31  Jim Meyering  <jim@meyering.net>
59815
59816         Avoid use of private FTS type name.
59817         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59818
59819 2007-12-30  Karl Berry  <karl@gnu.org>
59820
59821         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59822         work around defect in Texinfo and/or the standalone Info browser.
59823
59824 2007-12-30  Bruno Haible  <bruno@clisp.org>
59825
59826         Unify 5 copies of the KMP code.
59827         * lib/str-kmp.h: New file.
59828         * lib/c-strcasestr.c: Include str-kmp.h.
59829         (knuth_morris_pratt): Remove function.
59830         (c_strcasestr): Update.
59831         * lib/c-strstr.c: Include str-kmp.h.
59832         (knuth_morris_pratt): Remove function.
59833         (c_strcasestr): Update.
59834         * lib/mbscasestr.c: Include str-kmp.h.
59835         (knuth_morris_pratt_unibyte): Remove function.
59836         * lib/mbsstr.c: Include str-kmp.h.
59837         (knuth_morris_pratt_unibyte): Remove function.
59838         * lib/strcasestr.c: Include str-kmp.h.
59839         (knuth_morris_pratt): Remove function.
59840         (strcasestr): Update.
59841         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59842         * modules/c-strstr (Files): Likewise.
59843         * modules/mbscasestr (Files): Likewise.
59844         * modules/mbsstr (Files): Likewise.
59845         * modules/strcasestr (Files): Likewise.
59846         Suggested by Paul Eggert.
59847
59848 2007-12-30  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59851         defined.
59852
59853 2007-12-30  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/xmalloca.h: Include xalloc.h.
59856         (xnmalloca): New macro.
59857
59858 2007-12-30  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/malloca.h (nmalloca): New macro.
59861         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59862         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59863         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59864         knuth_morris_pratt_multibyte): Likewise.
59865         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59866         knuth_morris_pratt_multibyte): Likewise.
59867         * lib/memmem.c (knuth_morris_pratt): Likewise.
59868         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59869
59870 2007-12-25  Bruno Haible  <bruno@clisp.org>
59871
59872         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59873         * lib/glob.c: Don't include openat.h.
59874         (link_exists2_p): Add back the code that deals with the
59875         !GLOB_ALTDIRFUNC case.
59876         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59877         let it do the filename concatenation.
59878         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59879         * modules/glob (Depends-on): Remove openat.
59880
59881 2007-12-31  Bruno Haible  <bruno@clisp.org>
59882
59883         * modules/dirfd (License): Change to LGPLv2+.
59884         Approved by Jim Meyering.
59885
59886 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59889         when multiplying M by sizeof (size_t).
59890
59891 2007-12-10  Martin Lambers  <marlam@marlam.de>
59892
59893         Override getpagesize on mingw.
59894         * lib/getpagesize.c: New file.
59895         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59896         * modules/getpagesize (Files): Add lib/getpagesize.c.
59897         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59899         REPLACE_GETPAGESIZE.
59900         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59901
59902 2007-12-25  Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/localcharset (Notice): New field.
59905         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59906         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59907
59908 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59909             Bruno Haible  <bruno@clisp.org>
59910
59911         Avoid using the syntax symbol() in formatted documentation.
59912         * MODULES.html.sh (func_module): When replacing symbol() with a
59913         hyperlink, remove the parentheses. Show an error if some remain.
59914         Recognize and render the '...' syntax.
59915         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59916         Rework. Add paragraph about GCC's inlining.
59917         * doc/alloca.texi: Likewise.
59918         * doc/error.texi: Remove parentheses from symbol reference.
59919         * doc/gnulib-intro.texi: Likewise.
59920         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59921         * modules/fnmatch (Description): Reword to say "the ... function".
59922         * modules/full-read (Description): Likewise.
59923         * modules/full-write (Description): Likewise.
59924         * modules/safe-read (Description): Likewise.
59925         * modules/safe-write (Description): Likewise.
59926         * modules/strchrnul (Description): Likewise.
59927         * modules/trim (Description): Likewise.
59928         * modules/error (Description): Remove parentheses from symbol
59929         references.
59930         * modules/verror (Description): Likewise.
59931         Reported by Karl Berry.
59932
59933 2007-12-25  Bruno Haible  <bruno@clisp.org>
59934
59935         Fixup after 2007-10-16 commit.
59936         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59937
59938 2007-12-24  Bruno Haible  <bruno@clisp.org>
59939
59940         Make --enable-relocatable work with DESTDIR.
59941         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59942         to compute installdir from destprog.
59943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59944         also set the RELOC_DESTDIR variable.
59945         Reported by Левашев Иван <octagram@bluebottle.com>.
59946
59947 2007-12-24  Bruno Haible  <bruno@clisp.org>
59948
59949         Fix link error due to xalloc_die().
59950         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59951         of xreadlink.
59952         * lib/relocwrapper.c: Update comments.
59953         * build-aux/install-reloc: Remove xreadlink.c from file list.
59954         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59955         xreadlink.c.
59956         Reported by Левашев Иван <octagram@bluebottle.com>.
59957
59958 2007-12-24  Bruno Haible  <bruno@clisp.org>
59959
59960         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59961         * lib/setenv.h: Remove file.
59962         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59963         lib/setenv.h.
59964         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59965         (Depends-on): Add stdlib.
59966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59967         gl_FUNC_UNSETENV.
59968         (Include): Replace setenv.h with <stdlib.h>.
59969         * modules/unsetenv: New file.
59970         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59971         * lib/unsetenv.c: Include <stdlib.h> first.
59972         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59973         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59974         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59975         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59976         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59977         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59979         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59980         * doc/functions/unsetenv.texi: Update.
59981         * modules/xsetenv (Depends-on): Add unsetenv.
59982         * modules/getdate (Depends-on): Likewise.
59983         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59984         * lib/xsetenv.c: Don't include setenv.h.
59985         * lib/getdate.y: Likewise.
59986         * lib/relocwrapper.c: Likewise.
59987         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59988         (Depends-on): Add stdlib.
59989         * NEWS: Mention the changes.
59990         Reported by Левашев Иван <octagram@bluebottle.com>.
59991
59992 2007-12-23  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59995         indentation.
59996
59997 2007-12-23  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/c-strcasestr.c: Add more comments.
60000         * lib/c-strstr.c: Likewise.
60001         * lib/mbscasestr.c: Likewise.
60002         * lib/mbsstr.c: Likewise.
60003         * lib/strcasestr.c: Likewise.
60004         * lib/memmem.c: Likewise.
60005
60006 2007-12-23  Bruno Haible  <bruno@clisp.org>
60007
60008         * tests/test-memmem.c: Include <string.h> first.
60009
60010 2007-12-22  Bruno Haible  <bruno@clisp.org>
60011
60012         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60013         the contents of $testsbase.
60014         Reported by Ralf Wildenhues.
60015
60016 2007-12-22  Bruno Haible  <bruno@clisp.org>
60017
60018         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60019         two variables local_ldadd_before, local_ldadd_last.
60020
60021 2007-12-20  Eric Blake  <ebb9@byu.net>
60022
60023         Work around circular library issue when cross-compiling.
60024         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60025         that progname.o does not need to pull in rpl_memcmp.
60026
60027 2007-12-19  Eric Blake  <ebb9@byu.net>
60028
60029         Fix memmem to avoid O(n^2) worst-case complexity.
60030         * lib/memmem.c (knuth_morris_pratt): New function.
60031         (memmem): Use it if first few naive iterations fail.
60032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60033         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60034         * modules/memchr (License): Likewise.
60035         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60036         malloca.
60037         * tests/test-memmem.c: Rewrite, borrowing ideas from
60038         test-mbsstr1.c; the old version wouldn't even compile!
60039         * modules/memmem-tests: New file.
60040         * lib/string.in.h (rpl_memmem): Add declaration.
60041         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60043         REPLACE_MEMMEM.
60044
60045 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60046
60047         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60048         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60049         before any system include files, and undef after them all.  This
60050         should fix a problem on VMS reported by John E. Malmberg in
60051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60052
60053 2007-12-17  Eric Blake  <ebb9@byu.net>
60054
60055         Revert addition of verify, for BSD/OS.
60056         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60057         can't handle large files, for the sake of obsolete platforms.
60058         * modules/fseeko (Depends-on): Remove verify.
60059         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60060         * doc/functions/ftello.texi (ftello): Likewise.
60061         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60062         Reported by Larry Jones.
60063
60064 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60065
60066         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60067         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60068
60069 2007-12-17  Jim Meyering  <meyering@redhat.com>
60070
60071         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60072         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60073         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60074         * modules/getcwd (Depends-on): Add openat.
60075         Reported by Petr Salinger.
60076
60077 2007-12-17  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60080         avoid a segmentation fault of the configure test on x86_64 systems.
60081
60082 2007-12-15  Jim Meyering  <meyering@redhat.com>
60083
60084         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60085
60086 2007-12-13  Eric Blake  <ebb9@byu.net>
60087
60088         Another fseek test.
60089         * tests/test-fseek.c (main): Also test ungetc handling.
60090         * tests/test-fseeko.c (main): Likewise.
60091         * modules/fseeko (Depends-on): Add verify.
60092         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60093         large.
60094         Reported by Larry Jones.
60095
60096         Fix fseeko on mingw.
60097         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60098         seek.
60099
60100         Beef up fseek tests.
60101         * tests/test-fseek.c (main): Also test eof handling.
60102         * tests/test-fseeko.c (main): Likewise.
60103         Reported by Larry Jones.
60104
60105 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60106
60107         Fix fseeko on BSD-based platforms.
60108         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60109         successful seek.
60110
60111 2007-12-12  Eric Blake  <ebb9@byu.net>
60112
60113         Allow circular dependency of separate libtests.a
60114         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60115         when use_libtests.
60116
60117 2007-12-11  Eric Blake  <ebb9@byu.net>
60118
60119         Fix bug with -0.0L in previous patch.
60120         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60121         * tests/test-isnan.c (main): Also test on zeroes.
60122         * tests/test-isnanf.c (main): Likewise.
60123         * tests/test-isnanl.h (main): Likewise.
60124
60125         Detect pseudo-denormals on x86 even when cross-compiling.
60126         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60127         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60128         invalid bit patterns that happen to satisfy ==.
60129
60130         Avoid link failures with separate libtests.a.
60131         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60132         last, to satisfy circular dependencies.
60133
60134 2007-12-11  Eric Blake  <ebb9@byu.net>
60135         and Bruno Haible  <bruno@clisp.org>
60136
60137         Fix OpenBSD 4.0 <float.h> handling of long double.
60138         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60139         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60140         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60141
60142 2007-12-11  Jim Meyering  <meyering@redhat.com>
60143
60144         * users.txt: Add libvirt.
60145
60146         Support versions of autoconf prior to 2.59c.
60147         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60148         if it is not already defined.
60149
60150 2007-12-09  Bruno Haible  <bruno@clisp.org>
60151
60152         Let 'gnulib-tool --import' collect sources needed for the tests in
60153         tests/ rather than in lib/.
60154         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60155         argument. If true, add rules to generate libtests.a, and put libtests.a
60156         into $(LDADD). Consider source files in subdirectories and set
60157         uses_subdirs.
60158         (func_emit_initmacro_start, func_emit_initmacro_end,
60159         func_emit_initmacro_done): Pass all arguments explicitly.
60160         (func_import): Determine two module lists main_modules,
60161         testsrelated_modules. Determine use_libtests. Determine two variables
60162         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60163         instead of just sed_transform_lib_file. Determine two variables
60164         main_files and testsrelated_files. Compute 'files' as the union of
60165         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60166         func_add_or_update. In the generated gnulib-comp.m4, collect the
60167         object files for tests/ in different variables than those for lib/.
60168         Substitute LIBTESTS_LIBDEPS.
60169         (func_create_testdir): Combine the uses_subdirs results from
60170         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60171
60172 2007-12-09  Bruno Haible  <bruno@clisp.org>
60173
60174         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60175         the build-aux directory.
60176
60177 2007-12-09  Bruno Haible  <bruno@clisp.org>
60178
60179         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60180         introduced on 2006-09-09.
60181
60182 2007-12-07  Jim Meyering  <meyering@redhat.com>
60183
60184         Let these macros work also with autoconf-2.59.
60185         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60186         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60188
60189 2007-12-06  Jim Meyering  <meyering@redhat.com>
60190
60191         Avoid a configure-time syntax error in gl_FUNC_ACL.
60192         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60193         function in each branch, before testing the cache variable.
60194
60195 2007-12-04  Eric Blake  <ebb9@byu.net>
60196
60197         Make scripts executable.
60198         * build-aux/config.guess: Add execute permissions.
60199         * build-aux/config.sub: Likewise.
60200         * build-aux/gendocs.sh: Likewise.
60201
60202         Fix frexp on mingw.
60203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60204         cross-compiling.
60205         * doc/functions/frexp.texi (frexp): Document the bug.
60206
60207         Make cygwin fseeko check more reliable.
60208         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60209         version numbers, rather than unrelated feature check.
60210         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60211         * doc/functions/ftello.texi (ftello): Likewise.
60212         Reported by Bruno Haible.
60213
60214         * m4/strerror.m4: Bump version number.
60215
60216 2007-12-03  Bruno Haible  <bruno@clisp.org>
60217
60218         * doc/functions/mprotect.texi: Mention the mingw problem.
60219
60220 2007-12-03  Eric Blake  <ebb9@byu.net>
60221
60222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60223         REPLACE_STRERROR is initialized before this macro.
60224
60225 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60228         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60229         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60230         put -lsec in even for programs other than 'ls'.  This fixes a problem
60231         for gettext reported by Bruno Haible in
60232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60233         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60234         Add support for Solaris 10.  This isn't efficient, but should get the
60235         job done for now.
60236
60237 2007-12-03  James Youngman  <jay@gnu.org>
60238
60239         * doc/regexprops-generic.texi: change "an close-group" to "a
60240         close-group" and "illegal" to "not allowed".
60241
60242 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60243
60244         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60245         pr_byname.h. Needed for the rare case when the maintainer has done
60246         "make maintainer-clean" in the source directory and then attempts a
60247         build outside the source directory.
60248         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60249         scripts_byname.h.
60250
60251 2007-12-02  Martin Lambers <marlam@marlam.de>
60252             Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/getpagesize.h: Remove file.
60255         * lib/unistd.in.h: Include declaration of getpagesize here.
60256         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60257         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60258         HAVE_SYS_PARAM_H.
60259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60260         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60261         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60262         (Depends-on): Add unistd.
60263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60264         (Include): Use <unistd.h> instead of getpagesize.h.
60265         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60266         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60267         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60268         gl_GETPAGESIZE invocation, already handled by module dependency.
60269         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60270
60271 2007-12-02  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/strings-tests: New file.
60274         * tests/test-strings.c: New file.
60275
60276         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60277         * lib/strings.in.h: New file.
60278         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60279         * m4/strings_h.m4: New file.
60280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60281         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60282         * modules/strings: New file.
60283         * modules/string (Makefile.am): Update.
60284         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60285         Reported by Karl Berry.
60286
60287 2007-12-01  Eric Blake  <ebb9@byu.net>
60288
60289         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60290         accommodate fix in cygwin 1.5.25.
60291
60292 2007-12-01  Jim Meyering  <meyering@redhat.com>
60293
60294         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60295         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60296         that would inhibit utf8-optimization of a regexp containing line-
60297         or buffer-anchors, e.g., `^', `$'.
60298
60299 2007-11-30  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60302         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60303         glthread_recursive_lock_init.
60304         * lib/lock.c (glthread_recursive_lock_init)
60305         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60307
60308 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         New function qset_acl, like set_acl but with syscall semantics.
60311         * lib/acl.h (qset_acl): New decl.
60312         * lib/acl.c (qset_acl): New function.
60313         (set_acl): Use new function.  Use more-consistent diagnostics.
60314
60315 2007-11-28  Jim Meyering  <meyering@redhat.com>
60316
60317         * modules/physmem (License): Change from GPL to LGPLv2+.
60318
60319 2007-11-26  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60322         'long double' type has excess precision.
60323         Reported by Jim Meyering in
60324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60325
60326 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60327
60328         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60329         Sync from <http://gnu.org/licenses>.
60330         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60331         with license text from same location.
60332         * doc/maintain.texi, doc/standards.texi:  Sync from
60333         <http://savannah.gnu.org/projects/gnustandards>.
60334
60335 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60336         and Jim Meyering  <meyering@redhat.com>
60337
60338         Adjust getdate' grammar to accept a slightly more regular language.
60339         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60340         Before, the former was rejected.
60341         * lib/getdate.y (digits_to_date_time): New function, factored
60342         out of ...
60343         (number): ...here.  Just call digits_to_date_time.
60344         (hybrid): New non-terminal to handle an <unsigned number,
60345         signed relative offset> sequence consistently.
60346
60347 2007-11-18  Jim Meyering  <meyering@redhat.com>
60348
60349         Pull my changes from coreutils:
60350         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60351         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60352         use of $gnulib_tool_option_extras, so that it's separated from the
60353         preceding argument.
60354
60355         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60356         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60357         parent destination directories before copying a file into place.
60358
60359 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60360
60361         bootstrap: work also with 4-argument variant of AC_INIT
60362         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60363
60364 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         Port test-getaddrinfo to Solaris.
60367         Problem reported by Bruno Haible in
60368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60369         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60370         explanation of setting 'hints'.
60371         Don't reject an implementation merely because it returns EAI_SERVICE.
60372         (EAI_SERVICE): Define to 0 if not defined.
60373
60374 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         The license of gnu-make and posix-shell is now "GPLed build tool".
60377         * modules/gnu-make (License): Likewise.
60378         * modules/posix-shell (License): Likewise.
60379
60380         New module posix-shell, for determining a POSIX shell
60381         or perhaps something that is close enough to a POSIX shell.
60382         * m4/posix-shell.m4: New file.
60383         * modules/posix-shell: New file.
60384
60385         * MODULES.html.sh: Mention new module.
60386
60387         New module gnu-make, for determining whether we're using GNU Make.
60388         * m4/gnu-make.m4: New file.
60389         * modules/gnu-make: New file.
60390         * MODULES.html.sh: Mention new module.
60391
60392 2007-11-14  Jim Meyering  <meyering@redhat.com>
60393
60394         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60395         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60396         use this macro to create a function _definition_.
60397         Remove useless "#undef ARGMATCH_DIE".
60398
60399 2007-11-14  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/config.charset: Update for OpenBSD 4.1.
60402         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60403
60404 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60405
60406         Document 64-bit #if problems in stdint.texi.
60407         * doc/headers/stdint.texi (stdint.h): Mention problems with
60408         64-bit-#if, and how to work around them.
60409
60410         Don't insist on 'long long int' support in the preprocessor.  It
60411         breaks too many things.  For example, PRIdMAX still uses a 'long
60412         long int' format with the latest Sun compiler, even though
60413         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60414         preprocessor problem.  This causes the latest coreutils to dump
60415         core on Solaris 10 sparc with the Sun C compiler.
60416         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60417         the troublesome expressions at configure-time, not at #if-time.
60418         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60419         preprocessor.
60420         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60421         compile-time C checks, done at 'configure'-time.
60422         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60423         * modules/inttypes (Makefile): Substitute the new symbols that
60424         gl_INTTYPES_H now generates.
60425         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60426
60427 2007-11-12  Bruno Haible  <bruno@clisp.org>
60428
60429         Tests for Unicode character classification functions.
60430
60431         * modules/unictype/bidicategory-byname-tests: New file.
60432         * modules/unictype/bidicategory-name-tests: New file.
60433         * modules/unictype/bidicategory-of-tests: New file.
60434         * modules/unictype/bidicategory-test-tests: New file.
60435         * modules/unictype/block-list-tests: New file.
60436         * modules/unictype/block-of-tests: New file.
60437         * modules/unictype/block-test-tests: New file.
60438         * modules/unictype/category-C-tests: New file.
60439         * modules/unictype/category-Cc-tests: New file.
60440         * modules/unictype/category-Cf-tests: New file.
60441         * modules/unictype/category-Cn-tests: New file.
60442         * modules/unictype/category-Co-tests: New file.
60443         * modules/unictype/category-Cs-tests: New file.
60444         * modules/unictype/category-L-tests: New file.
60445         * modules/unictype/category-Ll-tests: New file.
60446         * modules/unictype/category-Lm-tests: New file.
60447         * modules/unictype/category-Lo-tests: New file.
60448         * modules/unictype/category-Lt-tests: New file.
60449         * modules/unictype/category-Lu-tests: New file.
60450         * modules/unictype/category-M-tests: New file.
60451         * modules/unictype/category-Mc-tests: New file.
60452         * modules/unictype/category-Me-tests: New file.
60453         * modules/unictype/category-Mn-tests: New file.
60454         * modules/unictype/category-N-tests: New file.
60455         * modules/unictype/category-Nd-tests: New file.
60456         * modules/unictype/category-Nl-tests: New file.
60457         * modules/unictype/category-No-tests: New file.
60458         * modules/unictype/category-P-tests: New file.
60459         * modules/unictype/category-Pc-tests: New file.
60460         * modules/unictype/category-Pd-tests: New file.
60461         * modules/unictype/category-Pe-tests: New file.
60462         * modules/unictype/category-Pf-tests: New file.
60463         * modules/unictype/category-Pi-tests: New file.
60464         * modules/unictype/category-Po-tests: New file.
60465         * modules/unictype/category-Ps-tests: New file.
60466         * modules/unictype/category-S-tests: New file.
60467         * modules/unictype/category-Sc-tests: New file.
60468         * modules/unictype/category-Sk-tests: New file.
60469         * modules/unictype/category-Sm-tests: New file.
60470         * modules/unictype/category-So-tests: New file.
60471         * modules/unictype/category-Z-tests: New file.
60472         * modules/unictype/category-Zl-tests: New file.
60473         * modules/unictype/category-Zp-tests: New file.
60474         * modules/unictype/category-Zs-tests: New file.
60475         * modules/unictype/category-and-not-tests: New file.
60476         * modules/unictype/category-and-tests: New file.
60477         * modules/unictype/category-byname-tests: New file.
60478         * modules/unictype/category-name-tests: New file.
60479         * modules/unictype/category-none-tests: New file.
60480         * modules/unictype/category-of-tests: New file.
60481         * modules/unictype/category-or-tests: New file.
60482         * modules/unictype/category-test-withtable-tests: New file.
60483         * modules/unictype/combining-class-tests: New file.
60484         * modules/unictype/ctype-alnum-tests: New file.
60485         * modules/unictype/ctype-alpha-tests: New file.
60486         * modules/unictype/ctype-blank-tests: New file.
60487         * modules/unictype/ctype-cntrl-tests: New file.
60488         * modules/unictype/ctype-digit-tests: New file.
60489         * modules/unictype/ctype-graph-tests: New file.
60490         * modules/unictype/ctype-lower-tests: New file.
60491         * modules/unictype/ctype-print-tests: New file.
60492         * modules/unictype/ctype-punct-tests: New file.
60493         * modules/unictype/ctype-space-tests: New file.
60494         * modules/unictype/ctype-upper-tests: New file.
60495         * modules/unictype/ctype-xdigit-tests: New file.
60496         * modules/unictype/decimal-digit-tests: New file.
60497         * modules/unictype/digit-tests: New file.
60498         * modules/unictype/mirror-tests: New file.
60499         * modules/unictype/numeric-tests: New file.
60500         * modules/unictype/property-alphabetic-tests: New file.
60501         * modules/unictype/property-ascii-hex-digit-tests: New file.
60502         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60503         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60504         * modules/unictype/property-bidi-block-separator-tests: New file.
60505         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60506         * modules/unictype/property-bidi-common-separator-tests: New file.
60507         * modules/unictype/property-bidi-control-tests: New file.
60508         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60509         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60510         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60511         * modules/unictype/property-bidi-european-digit-tests: New file.
60512         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60513         * modules/unictype/property-bidi-left-to-right-tests: New file.
60514         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60515         * modules/unictype/property-bidi-other-neutral-tests: New file.
60516         * modules/unictype/property-bidi-pdf-tests: New file.
60517         * modules/unictype/property-bidi-segment-separator-tests: New file.
60518         * modules/unictype/property-bidi-whitespace-tests: New file.
60519         * modules/unictype/property-byname-tests: New file.
60520         * modules/unictype/property-combining-tests: New file.
60521         * modules/unictype/property-composite-tests: New file.
60522         * modules/unictype/property-currency-symbol-tests: New file.
60523         * modules/unictype/property-dash-tests: New file.
60524         * modules/unictype/property-decimal-digit-tests: New file.
60525         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60526         * modules/unictype/property-deprecated-tests: New file.
60527         * modules/unictype/property-diacritic-tests: New file.
60528         * modules/unictype/property-extender-tests: New file.
60529         * modules/unictype/property-format-control-tests: New file.
60530         * modules/unictype/property-grapheme-base-tests: New file.
60531         * modules/unictype/property-grapheme-extend-tests: New file.
60532         * modules/unictype/property-grapheme-link-tests: New file.
60533         * modules/unictype/property-hex-digit-tests: New file.
60534         * modules/unictype/property-hyphen-tests: New file.
60535         * modules/unictype/property-id-continue-tests: New file.
60536         * modules/unictype/property-id-start-tests: New file.
60537         * modules/unictype/property-ideographic-tests: New file.
60538         * modules/unictype/property-ids-binary-operator-tests: New file.
60539         * modules/unictype/property-ids-trinary-operator-tests: New file.
60540         * modules/unictype/property-ignorable-control-tests: New file.
60541         * modules/unictype/property-iso-control-tests: New file.
60542         * modules/unictype/property-join-control-tests: New file.
60543         * modules/unictype/property-left-of-pair-tests: New file.
60544         * modules/unictype/property-line-separator-tests: New file.
60545         * modules/unictype/property-logical-order-exception-tests: New file.
60546         * modules/unictype/property-lowercase-tests: New file.
60547         * modules/unictype/property-math-tests: New file.
60548         * modules/unictype/property-non-break-tests: New file.
60549         * modules/unictype/property-not-a-character-tests: New file.
60550         * modules/unictype/property-numeric-tests: New file.
60551         * modules/unictype/property-other-alphabetic-tests: New file.
60552         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60553         * modules/unictype/property-other-grapheme-extend-tests: New file.
60554         * modules/unictype/property-other-id-continue-tests: New file.
60555         * modules/unictype/property-other-id-start-tests: New file.
60556         * modules/unictype/property-other-lowercase-tests: New file.
60557         * modules/unictype/property-other-math-tests: New file.
60558         * modules/unictype/property-other-uppercase-tests: New file.
60559         * modules/unictype/property-paired-punctuation-tests: New file.
60560         * modules/unictype/property-paragraph-separator-tests: New file.
60561         * modules/unictype/property-pattern-syntax-tests: New file.
60562         * modules/unictype/property-pattern-white-space-tests: New file.
60563         * modules/unictype/property-private-use-tests: New file.
60564         * modules/unictype/property-punctuation-tests: New file.
60565         * modules/unictype/property-quotation-mark-tests: New file.
60566         * modules/unictype/property-radical-tests: New file.
60567         * modules/unictype/property-sentence-terminal-tests: New file.
60568         * modules/unictype/property-soft-dotted-tests: New file.
60569         * modules/unictype/property-space-tests: New file.
60570         * modules/unictype/property-terminal-punctuation-tests: New file.
60571         * modules/unictype/property-test-tests: New file.
60572         * modules/unictype/property-titlecase-tests: New file.
60573         * modules/unictype/property-unassigned-code-value-tests: New file.
60574         * modules/unictype/property-unified-ideograph-tests: New file.
60575         * modules/unictype/property-uppercase-tests: New file.
60576         * modules/unictype/property-variation-selector-tests: New file.
60577         * modules/unictype/property-white-space-tests: New file.
60578         * modules/unictype/property-xid-continue-tests: New file.
60579         * modules/unictype/property-xid-start-tests: New file.
60580         * modules/unictype/property-zero-width-tests: New file.
60581         * modules/unictype/scripts-tests: New file.
60582         * modules/unictype/syntax-c-ident-tests: New file.
60583         * modules/unictype/syntax-c-whitespace-tests: New file.
60584         * modules/unictype/syntax-java-ident-tests: New file.
60585         * modules/unictype/syntax-java-whitespace-tests: New file.
60586         * tests/unictype/test-bidi_byname.c: New file.
60587         * tests/unictype/test-bidi_name.c: New file.
60588         * tests/unictype/test-bidi_of.c: New file.
60589         * tests/unictype/test-bidi_test.c: New file.
60590         * tests/unictype/test-block_list.c: New file.
60591         * tests/unictype/test-block_of.c: New file.
60592         * tests/unictype/test-block_test.c: New file.
60593         * tests/unictype/test-categ_and.c: New file.
60594         * tests/unictype/test-categ_and_not.c: New file.
60595         * tests/unictype/test-categ_byname.c: New file.
60596         * tests/unictype/test-categ_name.c: New file.
60597         * tests/unictype/test-categ_none.c: New file.
60598         * tests/unictype/test-categ_of.c: New file.
60599         * tests/unictype/test-categ_or.c: New file.
60600         * tests/unictype/test-categ_test_withtable.c: New file.
60601         * tests/unictype/test-combining.c: New file.
60602         * tests/unictype/test-decdigit.c: New file.
60603         * tests/unictype/test-digit.c: New file.
60604         * tests/unictype/test-mirror.c: New file.
60605         * tests/unictype/test-numeric.c: New file.
60606         * tests/unictype/test-pr_byname.c: New file.
60607         * tests/unictype/test-pr_test.c: New file.
60608         * tests/unictype/test-predicate-part1.h: New file.
60609         * tests/unictype/test-predicate-part2.h: New file.
60610         * tests/unictype/test-scripts.c: New file.
60611         * tests/unictype/test-sy_c_ident.c: New file.
60612         * tests/unictype/test-sy_java_ident.c: New file.
60613
60614         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60615         for Unicode 5.0.0.
60616         * tests/unictype/test-categ_Cc.c: Likewise.
60617         * tests/unictype/test-categ_Cf.c: Likewise.
60618         * tests/unictype/test-categ_Cn.c: Likewise.
60619         * tests/unictype/test-categ_Co.c: Likewise.
60620         * tests/unictype/test-categ_Cs.c: Likewise.
60621         * tests/unictype/test-categ_L.c: Likewise.
60622         * tests/unictype/test-categ_Ll.c: Likewise.
60623         * tests/unictype/test-categ_Lm.c: Likewise.
60624         * tests/unictype/test-categ_Lo.c: Likewise.
60625         * tests/unictype/test-categ_Lt.c: Likewise.
60626         * tests/unictype/test-categ_Lu.c: Likewise.
60627         * tests/unictype/test-categ_M.c: Likewise.
60628         * tests/unictype/test-categ_Mc.c: Likewise.
60629         * tests/unictype/test-categ_Me.c: Likewise.
60630         * tests/unictype/test-categ_Mn.c: Likewise.
60631         * tests/unictype/test-categ_N.c: Likewise.
60632         * tests/unictype/test-categ_Nd.c: Likewise.
60633         * tests/unictype/test-categ_Nl.c: Likewise.
60634         * tests/unictype/test-categ_No.c: Likewise.
60635         * tests/unictype/test-categ_P.c: Likewise.
60636         * tests/unictype/test-categ_Pc.c: Likewise.
60637         * tests/unictype/test-categ_Pd.c: Likewise.
60638         * tests/unictype/test-categ_Pe.c: Likewise.
60639         * tests/unictype/test-categ_Pf.c: Likewise.
60640         * tests/unictype/test-categ_Pi.c: Likewise.
60641         * tests/unictype/test-categ_Po.c: Likewise.
60642         * tests/unictype/test-categ_Ps.c: Likewise.
60643         * tests/unictype/test-categ_S.c: Likewise.
60644         * tests/unictype/test-categ_Sc.c: Likewise.
60645         * tests/unictype/test-categ_Sk.c: Likewise.
60646         * tests/unictype/test-categ_Sm.c: Likewise.
60647         * tests/unictype/test-categ_So.c: Likewise.
60648         * tests/unictype/test-categ_Z.c: Likewise.
60649         * tests/unictype/test-categ_Zl.c: Likewise.
60650         * tests/unictype/test-categ_Zp.c: Likewise.
60651         * tests/unictype/test-categ_Zs.c: Likewise.
60652         * tests/unictype/test-ctype_alnum.c: Likewise.
60653         * tests/unictype/test-ctype_alpha.c: Likewise.
60654         * tests/unictype/test-ctype_blank.c: Likewise.
60655         * tests/unictype/test-ctype_cntrl.c: Likewise.
60656         * tests/unictype/test-ctype_digit.c: Likewise.
60657         * tests/unictype/test-ctype_graph.c: Likewise.
60658         * tests/unictype/test-ctype_lower.c: Likewise.
60659         * tests/unictype/test-ctype_print.c: Likewise.
60660         * tests/unictype/test-ctype_punct.c: Likewise.
60661         * tests/unictype/test-ctype_space.c: Likewise.
60662         * tests/unictype/test-ctype_upper.c: Likewise.
60663         * tests/unictype/test-ctype_xdigit.c: Likewise.
60664         * tests/unictype/test-decdigit.h: Likewise.
60665         * tests/unictype/test-digit.h: Likewise.
60666         * tests/unictype/test-numeric.h: Likewise.
60667         * tests/unictype/test-pr_alphabetic.c: Likewise.
60668         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60669         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60670         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60671         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60672         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60673         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60674         * tests/unictype/test-pr_bidi_control.c: Likewise.
60675         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60676         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60677         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60678         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60679         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60680         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60681         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60682         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60683         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60684         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60685         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60686         * tests/unictype/test-pr_combining.c: Likewise.
60687         * tests/unictype/test-pr_composite.c: Likewise.
60688         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60689         * tests/unictype/test-pr_dash.c: Likewise.
60690         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60691         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60692         * tests/unictype/test-pr_deprecated.c: Likewise.
60693         * tests/unictype/test-pr_diacritic.c: Likewise.
60694         * tests/unictype/test-pr_extender.c: Likewise.
60695         * tests/unictype/test-pr_format_control.c: Likewise.
60696         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60697         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60698         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60699         * tests/unictype/test-pr_hex_digit.c: Likewise.
60700         * tests/unictype/test-pr_hyphen.c: Likewise.
60701         * tests/unictype/test-pr_id_continue.c: Likewise.
60702         * tests/unictype/test-pr_id_start.c: Likewise.
60703         * tests/unictype/test-pr_ideographic.c: Likewise.
60704         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60705         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60706         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60707         * tests/unictype/test-pr_iso_control.c: Likewise.
60708         * tests/unictype/test-pr_join_control.c: Likewise.
60709         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60710         * tests/unictype/test-pr_line_separator.c: Likewise.
60711         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60712         * tests/unictype/test-pr_lowercase.c: Likewise.
60713         * tests/unictype/test-pr_math.c: Likewise.
60714         * tests/unictype/test-pr_non_break.c: Likewise.
60715         * tests/unictype/test-pr_not_a_character.c: Likewise.
60716         * tests/unictype/test-pr_numeric.c: Likewise.
60717         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60718         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60719         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60720         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60721         * tests/unictype/test-pr_other_id_start.c: Likewise.
60722         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60723         * tests/unictype/test-pr_other_math.c: Likewise.
60724         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60725         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60726         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60727         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60728         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60729         * tests/unictype/test-pr_private_use.c: Likewise.
60730         * tests/unictype/test-pr_punctuation.c: Likewise.
60731         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60732         * tests/unictype/test-pr_radical.c: Likewise.
60733         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60734         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60735         * tests/unictype/test-pr_space.c: Likewise.
60736         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60737         * tests/unictype/test-pr_titlecase.c: Likewise.
60738         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60739         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60740         * tests/unictype/test-pr_uppercase.c: Likewise.
60741         * tests/unictype/test-pr_variation_selector.c: Likewise.
60742         * tests/unictype/test-pr_white_space.c: Likewise.
60743         * tests/unictype/test-pr_xid_continue.c: Likewise.
60744         * tests/unictype/test-pr_xid_start.c: Likewise.
60745         * tests/unictype/test-pr_zero_width.c: Likewise.
60746         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60747         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60748
60749 2007-11-12  Bruno Haible  <bruno@clisp.org>
60750
60751         Unicode character classification functions.
60752         * lib/unictype.h: New file.
60753         * modules/unictype/base: New file.
60754         * modules/unictype/category-L: New file.
60755         * modules/unictype/category-Lu: New file.
60756         * modules/unictype/category-Ll: New file.
60757         * modules/unictype/category-Lt: New file.
60758         * modules/unictype/category-Lm: New file.
60759         * modules/unictype/category-Lo: New file.
60760         * modules/unictype/category-M: New file.
60761         * modules/unictype/category-Mn: New file.
60762         * modules/unictype/category-Mc: New file.
60763         * modules/unictype/category-Me: New file.
60764         * modules/unictype/category-N: New file.
60765         * modules/unictype/category-Nd: New file.
60766         * modules/unictype/category-Nl: New file.
60767         * modules/unictype/category-No: New file.
60768         * modules/unictype/category-P: New file.
60769         * modules/unictype/category-Pc: New file.
60770         * modules/unictype/category-Pd: New file.
60771         * modules/unictype/category-Ps: New file.
60772         * modules/unictype/category-Pe: New file.
60773         * modules/unictype/category-Pi: New file.
60774         * modules/unictype/category-Pf: New file.
60775         * modules/unictype/category-Po: New file.
60776         * modules/unictype/category-S: New file.
60777         * modules/unictype/category-Sm: New file.
60778         * modules/unictype/category-Sc: New file.
60779         * modules/unictype/category-Sk: New file.
60780         * modules/unictype/category-So: New file.
60781         * modules/unictype/category-Z: New file.
60782         * modules/unictype/category-Zs: New file.
60783         * modules/unictype/category-Zl: New file.
60784         * modules/unictype/category-Zp: New file.
60785         * modules/unictype/category-C: New file.
60786         * modules/unictype/category-Cc: New file.
60787         * modules/unictype/category-Cf: New file.
60788         * modules/unictype/category-Cs: New file.
60789         * modules/unictype/category-Co: New file.
60790         * modules/unictype/category-Cn: New file.
60791         * modules/unictype/category-or: New file.
60792         * modules/unictype/category-of: New file.
60793         * modules/unictype/category-test: New file.
60794         * modules/unictype/category-test-withtable: New file.
60795         * modules/unictype/category-byname: New file.
60796         * modules/unictype/category-none: New file.
60797         * modules/unictype/category-and: New file.
60798         * modules/unictype/category-and-not: New file.
60799         * modules/unictype/category-name: New file.
60800         * modules/unictype/combining-class: New file.
60801         * modules/unictype/category-all: New file.
60802         * modules/unictype/bidicategory-all: New file.
60803         * modules/unictype/bidicategory-byname: New file.
60804         * modules/unictype/bidicategory-name: New file.
60805         * modules/unictype/bidicategory-of: New file.
60806         * modules/unictype/bidicategory-test: New file.
60807         * modules/unictype/decimal-digit: New file.
60808         * modules/unictype/digit: New file.
60809         * modules/unictype/numeric: New file.
60810         * modules/unictype/mirror: New file.
60811         * modules/unictype/property-white-space: New file.
60812         * modules/unictype/property-alphabetic: New file.
60813         * modules/unictype/property-other-alphabetic: New file.
60814         * modules/unictype/property-not-a-character: New file.
60815         * modules/unictype/property-default-ignorable-code-point: New file.
60816         * modules/unictype/property-other-default-ignorable-code-point: New
60817         file.
60818         * modules/unictype/property-deprecated: New file.
60819         * modules/unictype/property-logical-order-exception: New file.
60820         * modules/unictype/property-variation-selector: New file.
60821         * modules/unictype/property-private-use: New file.
60822         * modules/unictype/property-unassigned-code-value: New file.
60823         * modules/unictype/property-uppercase: New file.
60824         * modules/unictype/property-other-uppercase: New file.
60825         * modules/unictype/property-lowercase: New file.
60826         * modules/unictype/property-other-lowercase: New file.
60827         * modules/unictype/property-titlecase: New file.
60828         * modules/unictype/property-soft-dotted: New file.
60829         * modules/unictype/property-id-start: New file.
60830         * modules/unictype/property-other-id-start: New file.
60831         * modules/unictype/property-id-continue: New file.
60832         * modules/unictype/property-other-id-continue: New file.
60833         * modules/unictype/property-xid-start: New file.
60834         * modules/unictype/property-xid-continue: New file.
60835         * modules/unictype/property-pattern-white-space: New file.
60836         * modules/unictype/property-pattern-syntax: New file.
60837         * modules/unictype/property-join-control: New file.
60838         * modules/unictype/property-grapheme-base: New file.
60839         * modules/unictype/property-grapheme-extend: New file.
60840         * modules/unictype/property-other-grapheme-extend: New file.
60841         * modules/unictype/property-grapheme-link: New file.
60842         * modules/unictype/property-bidi-control: New file.
60843         * modules/unictype/property-bidi-left-to-right: New file.
60844         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60845         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60846         * modules/unictype/property-bidi-european-digit: New file.
60847         * modules/unictype/property-bidi-eur-num-separator: New file.
60848         * modules/unictype/property-bidi-eur-num-terminator: New file.
60849         * modules/unictype/property-bidi-arabic-digit: New file.
60850         * modules/unictype/property-bidi-common-separator: New file.
60851         * modules/unictype/property-bidi-block-separator: New file.
60852         * modules/unictype/property-bidi-segment-separator: New file.
60853         * modules/unictype/property-bidi-whitespace: New file.
60854         * modules/unictype/property-bidi-non-spacing-mark: New file.
60855         * modules/unictype/property-bidi-boundary-neutral: New file.
60856         * modules/unictype/property-bidi-pdf: New file.
60857         * modules/unictype/property-bidi-embedding-or-override: New file.
60858         * modules/unictype/property-bidi-other-neutral: New file.
60859         * modules/unictype/property-hex-digit: New file.
60860         * modules/unictype/property-ascii-hex-digit: New file.
60861         * modules/unictype/property-ideographic: New file.
60862         * modules/unictype/property-unified-ideograph: New file.
60863         * modules/unictype/property-radical: New file.
60864         * modules/unictype/property-ids-binary-operator: New file.
60865         * modules/unictype/property-ids-trinary-operator: New file.
60866         * modules/unictype/property-zero-width: New file.
60867         * modules/unictype/property-space: New file.
60868         * modules/unictype/property-non-break: New file.
60869         * modules/unictype/property-iso-control: New file.
60870         * modules/unictype/property-format-control: New file.
60871         * modules/unictype/property-dash: New file.
60872         * modules/unictype/property-hyphen: New file.
60873         * modules/unictype/property-punctuation: New file.
60874         * modules/unictype/property-line-separator: New file.
60875         * modules/unictype/property-paragraph-separator: New file.
60876         * modules/unictype/property-quotation-mark: New file.
60877         * modules/unictype/property-sentence-terminal: New file.
60878         * modules/unictype/property-terminal-punctuation: New file.
60879         * modules/unictype/property-currency-symbol: New file.
60880         * modules/unictype/property-math: New file.
60881         * modules/unictype/property-other-math: New file.
60882         * modules/unictype/property-paired-punctuation: New file.
60883         * modules/unictype/property-left-of-pair: New file.
60884         * modules/unictype/property-combining: New file.
60885         * modules/unictype/property-composite: New file.
60886         * modules/unictype/property-decimal-digit: New file.
60887         * modules/unictype/property-numeric: New file.
60888         * modules/unictype/property-diacritic: New file.
60889         * modules/unictype/property-extender: New file.
60890         * modules/unictype/property-ignorable-control: New file.
60891         * modules/unictype/property-test: New file.
60892         * modules/unictype/property-byname: New file.
60893         * modules/unictype/property-all: New file.
60894         * modules/unictype/scripts: New file.
60895         * modules/unictype/scripts-all: New file.
60896         * modules/unictype/block-of: New file.
60897         * modules/unictype/block-test: New file.
60898         * modules/unictype/block-list: New file.
60899         * modules/unictype/block-all: New file.
60900         * modules/unictype/syntax-c-whitespace: New file.
60901         * modules/unictype/syntax-java-whitespace: New file.
60902         * modules/unictype/syntax-c-ident: New file.
60903         * modules/unictype/syntax-java-ident: New file.
60904         * modules/unictype/ctype-alnum: New file.
60905         * modules/unictype/ctype-alpha: New file.
60906         * modules/unictype/ctype-cntrl: New file.
60907         * modules/unictype/ctype-digit: New file.
60908         * modules/unictype/ctype-graph: New file.
60909         * modules/unictype/ctype-lower: New file.
60910         * modules/unictype/ctype-print: New file.
60911         * modules/unictype/ctype-punct: New file.
60912         * modules/unictype/ctype-space: New file.
60913         * modules/unictype/ctype-upper: New file.
60914         * modules/unictype/ctype-xdigit: New file.
60915         * modules/unictype/ctype-blank: New file.
60916         * lib/unictype/bidi_byname.c: New file.
60917         * lib/unictype/bidi_name.c: New file.
60918         * lib/unictype/bidi_of.c: New file.
60919         * lib/unictype/bidi_test.c: New file.
60920         * lib/unictype/bitmap.h: New file.
60921         * lib/unictype/block_test.c: New file.
60922         * lib/unictype/blocks.c: New file.
60923         * lib/unictype/categ_C.c: New file.
60924         * lib/unictype/categ_Cc.c: New file.
60925         * lib/unictype/categ_Cf.c: New file.
60926         * lib/unictype/categ_Cn.c: New file.
60927         * lib/unictype/categ_Co.c: New file.
60928         * lib/unictype/categ_Cs.c: New file.
60929         * lib/unictype/categ_L.c: New file.
60930         * lib/unictype/categ_Ll.c: New file.
60931         * lib/unictype/categ_Lm.c: New file.
60932         * lib/unictype/categ_Lo.c: New file.
60933         * lib/unictype/categ_Lt.c: New file.
60934         * lib/unictype/categ_Lu.c: New file.
60935         * lib/unictype/categ_M.c: New file.
60936         * lib/unictype/categ_Mc.c: New file.
60937         * lib/unictype/categ_Me.c: New file.
60938         * lib/unictype/categ_Mn.c: New file.
60939         * lib/unictype/categ_N.c: New file.
60940         * lib/unictype/categ_Nd.c: New file.
60941         * lib/unictype/categ_Nl.c: New file.
60942         * lib/unictype/categ_No.c: New file.
60943         * lib/unictype/categ_P.c: New file.
60944         * lib/unictype/categ_Pc.c: New file.
60945         * lib/unictype/categ_Pd.c: New file.
60946         * lib/unictype/categ_Pe.c: New file.
60947         * lib/unictype/categ_Pf.c: New file.
60948         * lib/unictype/categ_Pi.c: New file.
60949         * lib/unictype/categ_Po.c: New file.
60950         * lib/unictype/categ_Ps.c: New file.
60951         * lib/unictype/categ_S.c: New file.
60952         * lib/unictype/categ_Sc.c: New file.
60953         * lib/unictype/categ_Sk.c: New file.
60954         * lib/unictype/categ_Sm.c: New file.
60955         * lib/unictype/categ_So.c: New file.
60956         * lib/unictype/categ_Z.c: New file.
60957         * lib/unictype/categ_Zl.c: New file.
60958         * lib/unictype/categ_Zp.c: New file.
60959         * lib/unictype/categ_Zs.c: New file.
60960         * lib/unictype/categ_and.c: New file.
60961         * lib/unictype/categ_and_not.c: New file.
60962         * lib/unictype/categ_byname.c: New file.
60963         * lib/unictype/categ_name.c: New file.
60964         * lib/unictype/categ_none.c: New file.
60965         * lib/unictype/categ_of.c: New file.
60966         * lib/unictype/categ_or.c: New file.
60967         * lib/unictype/categ_test.c: New file.
60968         * lib/unictype/combining.c: New file.
60969         * lib/unictype/ctype_alnum.c: New file.
60970         * lib/unictype/ctype_alpha.c: New file.
60971         * lib/unictype/ctype_blank.c: New file.
60972         * lib/unictype/ctype_cntrl.c: New file.
60973         * lib/unictype/ctype_digit.c: New file.
60974         * lib/unictype/ctype_graph.c: New file.
60975         * lib/unictype/ctype_lower.c: New file.
60976         * lib/unictype/ctype_print.c: New file.
60977         * lib/unictype/ctype_punct.c: New file.
60978         * lib/unictype/ctype_space.c: New file.
60979         * lib/unictype/ctype_upper.c: New file.
60980         * lib/unictype/ctype_xdigit.c: New file.
60981         * lib/unictype/decdigit.c: New file.
60982         * lib/unictype/digit.c: New file.
60983         * lib/unictype/identsyntaxmap.h: New file.
60984         * lib/unictype/mirror.c: New file.
60985         * lib/unictype/numeric.c: New file.
60986         * lib/unictype/pr_alphabetic.c: New file.
60987         * lib/unictype/pr_ascii_hex_digit.c: New file.
60988         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60989         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60990         * lib/unictype/pr_bidi_block_separator.c: New file.
60991         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60992         * lib/unictype/pr_bidi_common_separator.c: New file.
60993         * lib/unictype/pr_bidi_control.c: New file.
60994         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60995         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60996         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60997         * lib/unictype/pr_bidi_european_digit.c: New file.
60998         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60999         * lib/unictype/pr_bidi_left_to_right.c: New file.
61000         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61001         * lib/unictype/pr_bidi_other_neutral.c: New file.
61002         * lib/unictype/pr_bidi_pdf.c: New file.
61003         * lib/unictype/pr_bidi_segment_separator.c: New file.
61004         * lib/unictype/pr_bidi_whitespace.c: New file.
61005         * lib/unictype/pr_byname.c: New file.
61006         * lib/unictype/pr_byname.gperf: New file.
61007         * lib/unictype/pr_combining.c: New file.
61008         * lib/unictype/pr_composite.c: New file.
61009         * lib/unictype/pr_currency_symbol.c: New file.
61010         * lib/unictype/pr_dash.c: New file.
61011         * lib/unictype/pr_decimal_digit.c: New file.
61012         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61013         * lib/unictype/pr_deprecated.c: New file.
61014         * lib/unictype/pr_diacritic.c: New file.
61015         * lib/unictype/pr_extender.c: New file.
61016         * lib/unictype/pr_format_control.c: New file.
61017         * lib/unictype/pr_grapheme_base.c: New file.
61018         * lib/unictype/pr_grapheme_extend.c: New file.
61019         * lib/unictype/pr_grapheme_link.c: New file.
61020         * lib/unictype/pr_hex_digit.c: New file.
61021         * lib/unictype/pr_hyphen.c: New file.
61022         * lib/unictype/pr_id_continue.c: New file.
61023         * lib/unictype/pr_id_start.c: New file.
61024         * lib/unictype/pr_ideographic.c: New file.
61025         * lib/unictype/pr_ids_binary_operator.c: New file.
61026         * lib/unictype/pr_ids_trinary_operator.c: New file.
61027         * lib/unictype/pr_ignorable_control.c: New file.
61028         * lib/unictype/pr_iso_control.c: New file.
61029         * lib/unictype/pr_join_control.c: New file.
61030         * lib/unictype/pr_left_of_pair.c: New file.
61031         * lib/unictype/pr_line_separator.c: New file.
61032         * lib/unictype/pr_logical_order_exception.c: New file.
61033         * lib/unictype/pr_lowercase.c: New file.
61034         * lib/unictype/pr_math.c: New file.
61035         * lib/unictype/pr_non_break.c: New file.
61036         * lib/unictype/pr_not_a_character.c: New file.
61037         * lib/unictype/pr_numeric.c: New file.
61038         * lib/unictype/pr_other_alphabetic.c: New file.
61039         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61040         * lib/unictype/pr_other_grapheme_extend.c: New file.
61041         * lib/unictype/pr_other_id_continue.c: New file.
61042         * lib/unictype/pr_other_id_start.c: New file.
61043         * lib/unictype/pr_other_lowercase.c: New file.
61044         * lib/unictype/pr_other_math.c: New file.
61045         * lib/unictype/pr_other_uppercase.c: New file.
61046         * lib/unictype/pr_paired_punctuation.c: New file.
61047         * lib/unictype/pr_paragraph_separator.c: New file.
61048         * lib/unictype/pr_pattern_syntax.c: New file.
61049         * lib/unictype/pr_pattern_white_space.c: New file.
61050         * lib/unictype/pr_private_use.c: New file.
61051         * lib/unictype/pr_punctuation.c: New file.
61052         * lib/unictype/pr_quotation_mark.c: New file.
61053         * lib/unictype/pr_radical.c: New file.
61054         * lib/unictype/pr_sentence_terminal.c: New file.
61055         * lib/unictype/pr_soft_dotted.c: New file.
61056         * lib/unictype/pr_space.c: New file.
61057         * lib/unictype/pr_terminal_punctuation.c: New file.
61058         * lib/unictype/pr_test.c: New file.
61059         * lib/unictype/pr_titlecase.c: New file.
61060         * lib/unictype/pr_unassigned_code_value.c: New file.
61061         * lib/unictype/pr_unified_ideograph.c: New file.
61062         * lib/unictype/pr_uppercase.c: New file.
61063         * lib/unictype/pr_variation_selector.c: New file.
61064         * lib/unictype/pr_white_space.c: New file.
61065         * lib/unictype/pr_xid_continue.c: New file.
61066         * lib/unictype/pr_xid_start.c: New file.
61067         * lib/unictype/pr_zero_width.c: New file.
61068         * lib/unictype/scripts.c: New file.
61069         * lib/unictype/sy_c_ident.c: New file.
61070         * lib/unictype/sy_c_whitespace.c: New file.
61071         * lib/unictype/sy_java_ident.c: New file.
61072         * lib/unictype/sy_java_whitespace.c: New file.
61073
61074         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61075         Unicode 5.0.0.
61076         * lib/unictype/blocks.h: Likewise.
61077         * lib/unictype/categ_C.h: Likewise.
61078         * lib/unictype/categ_Cc.h: Likewise.
61079         * lib/unictype/categ_Cf.h: Likewise.
61080         * lib/unictype/categ_Cn.h: Likewise.
61081         * lib/unictype/categ_Co.h: Likewise.
61082         * lib/unictype/categ_Cs.h: Likewise.
61083         * lib/unictype/categ_L.h: Likewise.
61084         * lib/unictype/categ_Ll.h: Likewise.
61085         * lib/unictype/categ_Lm.h: Likewise.
61086         * lib/unictype/categ_Lo.h: Likewise.
61087         * lib/unictype/categ_Lt.h: Likewise.
61088         * lib/unictype/categ_Lu.h: Likewise.
61089         * lib/unictype/categ_M.h: Likewise.
61090         * lib/unictype/categ_Mc.h: Likewise.
61091         * lib/unictype/categ_Me.h: Likewise.
61092         * lib/unictype/categ_Mn.h: Likewise.
61093         * lib/unictype/categ_N.h: Likewise.
61094         * lib/unictype/categ_Nd.h: Likewise.
61095         * lib/unictype/categ_Nl.h: Likewise.
61096         * lib/unictype/categ_No.h: Likewise.
61097         * lib/unictype/categ_P.h: Likewise.
61098         * lib/unictype/categ_Pc.h: Likewise.
61099         * lib/unictype/categ_Pd.h: Likewise.
61100         * lib/unictype/categ_Pe.h: Likewise.
61101         * lib/unictype/categ_Pf.h: Likewise.
61102         * lib/unictype/categ_Pi.h: Likewise.
61103         * lib/unictype/categ_Po.h: Likewise.
61104         * lib/unictype/categ_Ps.h: Likewise.
61105         * lib/unictype/categ_S.h: Likewise.
61106         * lib/unictype/categ_Sc.h: Likewise.
61107         * lib/unictype/categ_Sk.h: Likewise.
61108         * lib/unictype/categ_Sm.h: Likewise.
61109         * lib/unictype/categ_So.h: Likewise.
61110         * lib/unictype/categ_Z.h: Likewise.
61111         * lib/unictype/categ_Zl.h: Likewise.
61112         * lib/unictype/categ_Zp.h: Likewise.
61113         * lib/unictype/categ_Zs.h: Likewise.
61114         * lib/unictype/categ_of.h: Likewise.
61115         * lib/unictype/combining.h: Likewise.
61116         * lib/unictype/ctype_alnum.h: Likewise.
61117         * lib/unictype/ctype_alpha.h: Likewise.
61118         * lib/unictype/ctype_blank.h: Likewise.
61119         * lib/unictype/ctype_cntrl.h: Likewise.
61120         * lib/unictype/ctype_digit.h: Likewise.
61121         * lib/unictype/ctype_graph.h: Likewise.
61122         * lib/unictype/ctype_lower.h: Likewise.
61123         * lib/unictype/ctype_print.h: Likewise.
61124         * lib/unictype/ctype_punct.h: Likewise.
61125         * lib/unictype/ctype_space.h: Likewise.
61126         * lib/unictype/ctype_upper.h: Likewise.
61127         * lib/unictype/ctype_xdigit.h: Likewise.
61128         * lib/unictype/decdigit.h: Likewise.
61129         * lib/unictype/digit.h: Likewise.
61130         * lib/unictype/mirror.h: Likewise.
61131         * lib/unictype/numeric.h: Likewise.
61132         * lib/unictype/pr_alphabetic.h: Likewise.
61133         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61134         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61135         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61136         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61137         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61138         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61139         * lib/unictype/pr_bidi_control.h: Likewise.
61140         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61141         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61142         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61143         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61144         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61145         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61146         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61147         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61148         * lib/unictype/pr_bidi_pdf.h: Likewise.
61149         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61150         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61151         * lib/unictype/pr_combining.h: Likewise.
61152         * lib/unictype/pr_composite.h: Likewise.
61153         * lib/unictype/pr_currency_symbol.h: Likewise.
61154         * lib/unictype/pr_dash.h: Likewise.
61155         * lib/unictype/pr_decimal_digit.h: Likewise.
61156         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61157         * lib/unictype/pr_deprecated.h: Likewise.
61158         * lib/unictype/pr_diacritic.h: Likewise.
61159         * lib/unictype/pr_extender.h: Likewise.
61160         * lib/unictype/pr_format_control.h: Likewise.
61161         * lib/unictype/pr_grapheme_base.h: Likewise.
61162         * lib/unictype/pr_grapheme_extend.h: Likewise.
61163         * lib/unictype/pr_grapheme_link.h: Likewise.
61164         * lib/unictype/pr_hex_digit.h: Likewise.
61165         * lib/unictype/pr_hyphen.h: Likewise.
61166         * lib/unictype/pr_id_continue.h: Likewise.
61167         * lib/unictype/pr_id_start.h: Likewise.
61168         * lib/unictype/pr_ideographic.h: Likewise.
61169         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61170         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61171         * lib/unictype/pr_ignorable_control.h: Likewise.
61172         * lib/unictype/pr_iso_control.h: Likewise.
61173         * lib/unictype/pr_join_control.h: Likewise.
61174         * lib/unictype/pr_left_of_pair.h: Likewise.
61175         * lib/unictype/pr_line_separator.h: Likewise.
61176         * lib/unictype/pr_logical_order_exception.h: Likewise.
61177         * lib/unictype/pr_lowercase.h: Likewise.
61178         * lib/unictype/pr_math.h: Likewise.
61179         * lib/unictype/pr_non_break.h: Likewise.
61180         * lib/unictype/pr_not_a_character.h: Likewise.
61181         * lib/unictype/pr_numeric.h: Likewise.
61182         * lib/unictype/pr_other_alphabetic.h: Likewise.
61183         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61184         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61185         * lib/unictype/pr_other_id_continue.h: Likewise.
61186         * lib/unictype/pr_other_id_start.h: Likewise.
61187         * lib/unictype/pr_other_lowercase.h: Likewise.
61188         * lib/unictype/pr_other_math.h: Likewise.
61189         * lib/unictype/pr_other_uppercase.h: Likewise.
61190         * lib/unictype/pr_paired_punctuation.h: Likewise.
61191         * lib/unictype/pr_paragraph_separator.h: Likewise.
61192         * lib/unictype/pr_pattern_syntax.h: Likewise.
61193         * lib/unictype/pr_pattern_white_space.h: Likewise.
61194         * lib/unictype/pr_private_use.h: Likewise.
61195         * lib/unictype/pr_punctuation.h: Likewise.
61196         * lib/unictype/pr_quotation_mark.h: Likewise.
61197         * lib/unictype/pr_radical.h: Likewise.
61198         * lib/unictype/pr_sentence_terminal.h: Likewise.
61199         * lib/unictype/pr_soft_dotted.h: Likewise.
61200         * lib/unictype/pr_space.h: Likewise.
61201         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61202         * lib/unictype/pr_titlecase.h: Likewise.
61203         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61204         * lib/unictype/pr_unified_ideograph.h: Likewise.
61205         * lib/unictype/pr_uppercase.h: Likewise.
61206         * lib/unictype/pr_variation_selector.h: Likewise.
61207         * lib/unictype/pr_white_space.h: Likewise.
61208         * lib/unictype/pr_xid_continue.h: Likewise.
61209         * lib/unictype/pr_xid_start.h: Likewise.
61210         * lib/unictype/pr_zero_width.h: Likewise.
61211         * lib/unictype/scripts.h: Likewise.
61212         * lib/unictype/scripts_byname.gperf: Likewise.
61213         * lib/unictype/sy_c_ident.h: Likewise.
61214         * lib/unictype/sy_c_whitespace.h: Likewise.
61215         * lib/unictype/sy_java_ident.h: Likewise.
61216         * lib/unictype/sy_java_whitespace.h: Likewise.
61217
61218         * lib/unictype/Makefile: New file.
61219         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61220         glibc.
61221         * lib/unictype/3level.h: New file, copied from glibc.
61222         * lib/unictype/3levelbit.h: New file.
61223
61224 2007-11-11  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/gperf: New file.
61227         * modules/iconv_open (Depends-on): Add it.
61228         (Makefile.am): Remove the GPERF definition.
61229
61230 2007-11-11  Bruno Haible  <bruno@clisp.org>
61231
61232         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61233         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61234
61235 2007-11-11  Bruno Haible  <bruno@clisp.org>
61236
61237         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61238         (usage): Remove function.
61239
61240 2007-11-11  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61243         gl_FUNC_CEILF_LIBS.
61244         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61245         gl_FUNC_CEIL_LIBS.
61246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61247         gl_FUNC_CEILL_LIBS.
61248         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61249         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61250         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61251
61252 2007-11-11  Bruno Haible  <bruno@clisp.org>
61253
61254         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61255         roundf were declared but do not exist on functions.
61256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61257         roundl were declared but do not exist on functions.
61258         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61259         HAVE_FLOORL_AND_CEILL, respectively.
61260         Needed for Sun C on Solaris 10.
61261
61262 2007-11-11  Bruno Haible  <bruno@clisp.org>
61263
61264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61265         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61266         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61267         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61269         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61270         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61271         HAVE_DECL_ROUNDF.
61272         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61273         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61275         of HAVE_DECL_ROUND*.
61276         * modules/math (Makefile.am): Update.
61277
61278 2007-11-10  Bruno Haible  <bruno@clisp.org>
61279
61280         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61281         ptrdiff_t as m4/intl.m4.
61282
61283 2007-11-10  Jim Meyering  <meyering@redhat.com>
61284
61285         Avoid link failure for the argmatch test.
61286         * tests/test-argmatch.c (usage): Define function to avoid a link
61287         failure: argmatch_die requires a usage function.
61288
61289 2007-11-09  Bruno Haible  <bruno@clisp.org>
61290
61291         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61292         * doc/functions/vsnprintf.texi: Likewise.
61293         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61294         with a size argument < 2.
61295
61296 2007-11-09  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61299         buffer. Fixes an inefficiency introduced on 2007-11-03.
61300
61301 2007-11-09  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61304         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61305
61306 2007-11-08  Jim Meyering  <meyering@redhat.com>
61307
61308         Change cache variable name prefix "jm_" to "gl_" everywhere.
61309         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61310         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61311         * m4/uptime.m4: s/gl_/jm_/
61312
61313 2007-11-07  Bruno Haible  <bruno@clisp.org>
61314
61315         Update to GNU gettext 0.17.
61316         * m4/intl.m4: Update to GNU gettext 0.17.
61317         * m4/po.m4: Likewise.
61318         * modules/gettext (Files): Remove m4/ulonglong.m4.
61319         (configure.ac): Require gettext infrastructure from version 0.17.
61320
61321 2007-11-06  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61324         symbolic values are not defined in a public header.
61325         * lib/freadable.c (freadable) [QNX]: Likewise.
61326         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61327         * lib/freading.c (freading) [QNX]: Likewise.
61328         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61329         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61330         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61331         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61332         Reported by Alain Magloire.
61333
61334         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61335
61336 2007-11-05  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61339         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61340         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61341         Reported by Eric Blake.
61342
61343 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61344             Bruno Haible  <bruno@clisp.org>
61345
61346         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61347         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61348         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61349         (malloc): Undefine also before including <stdlib.h>.
61350         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61351         Needed on OSF/1 4.0.
61352
61353 2007-11-05  Jim Meyering  <meyering@redhat.com>
61354
61355         git-version-gen: sync from coreutils.
61356         * build-aux/git-version-gen: Add comments.
61357         Change the first '-' to '.' in the snapshot version string,
61358         e.g., 6.9-377-08144 -> 6.9.377-08144
61359         Remove first parameter.
61360         Don't declare a version "-dirty" merely because a time
61361         stamp has changed.
61362
61363 2007-11-04  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/lock.h: Protect all macro definitions containing an 'if'
61366         statement through a "do { ... } while (0)".
61367         * lib/tls.h: Likewise.
61368
61369 2007-11-04  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61372
61373 2007-11-04  Bruno Haible  <bruno@clisp.org>
61374
61375         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61376         * modules/fprintf-posix (Depends-on): Add nocrash.
61377         * modules/snprintf-posix (Depends-on): Likewise.
61378         * modules/sprintf-posix (Depends-on): Likewise.
61379         * modules/vasnprintf-posix (Depends-on): Likewise.
61380         * modules/vasprintf-posix (Depends-on): Likewise.
61381         * modules/vfprintf-posix (Depends-on): Likewise.
61382         * modules/vsnprintf-posix (Depends-on): Likewise.
61383         * modules/vsprintf-posix (Depends-on): Likewise.
61384         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61385         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61386         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61387         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61388         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61389         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61390         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61391
61392 2007-11-04  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/nocrash: New file.
61395         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61396         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61397
61398 2007-11-04  Bruno Haible  <bruno@clisp.org>
61399
61400         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61401         precision handling.
61402         * tests/test-vasprintf-posix.c (test_function): Likewise.
61403         * tests/test-snprintf-posix.h (test_function): Likewise.
61404         * tests/test-sprintf-posix.h (test_function): Likewise.
61405
61406         Fix *printf behaviour for large precisions on mingw and BeOS.
61407         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61408         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61410         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61412         gl_PRINTF_PRECISION and test its result. Invoke
61413         gl_PREREQ_VASNPRINTF_PRECISION.
61414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61415         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61416         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61421         * doc/functions/fprintf.texi: Update.
61422         * doc/functions/printf.texi: Update.
61423         * doc/functions/snprintf.texi: Update.
61424         * doc/functions/sprintf.texi: Update.
61425         * doc/functions/vfprintf.texi: Update.
61426         * doc/functions/vprintf.texi: Update.
61427         * doc/functions/vsnprintf.texi: Update.
61428         * doc/functions/vsprintf.texi: Update.
61429
61430 2007-11-04  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61433
61434 2007-11-04  Bruno Haible  <bruno@clisp.org>
61435
61436         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61437         Reported by Sylvain Beucler <beuc@gnu.org>.
61438
61439 2007-11-03  Bruno Haible  <bruno@clisp.org>
61440
61441         * tests/test-fprintf-posix2.sh: New file.
61442         * tests/test-fprintf-posix2.c: New file.
61443         * modules/fprintf-posix-tests (Files): Add them.
61444         (TESTS): Add test-fprintf-posix2.sh.
61445         (configure.ac): Check for getrlimit and setrlimit.
61446         (check_PROGRAMS): Add test-fprintf-posix2.
61447
61448         * tests/test-printf-posix2.sh: New file.
61449         * tests/test-printf-posix2.c: New file.
61450         * modules/printf-posix-tests (Files): Add them.
61451         (TESTS): Add test-printf-posix2.sh.
61452         (configure.ac): Check for getrlimit and setrlimit.
61453         (check_PROGRAMS): Add test-printf-posix2.
61454
61455         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61456         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61457         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61458         (decode_double): New function, copied from decode_long_double.
61459         (scale10_round_decimal_decoded): New function, extracted from
61460         scale10_round_decimal_long_double.
61461         (scale10_round_decimal_long_double): Use it.
61462         (scale10_round_decimal_double): New function.
61463         (floorlog10): New function.
61464         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61466         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61468         gl_PRINTF_ENOMEM and test its result. Invoke
61469         gl_PREREQ_VASNPRINTF_ENOMEM.
61470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61477         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61478         * modules/snprintf-posix (Depends-on): Likewise.
61479         * modules/sprintf-posix (Depends-on): Likewise.
61480         * modules/vasnprintf-posix (Depends-on): Likewise.
61481         * modules/vasprintf-posix (Depends-on): Likewise.
61482         * modules/vfprintf-posix (Depends-on): Likewise.
61483         * modules/vsnprintf-posix (Depends-on): Likewise.
61484         * modules/vsprintf-posix (Depends-on): Likewise.
61485         * doc/functions/fprintf.texi: Update.
61486         * doc/functions/printf.texi: Update.
61487         * doc/functions/snprintf.texi: Update.
61488         * doc/functions/sprintf.texi: Update.
61489         * doc/functions/vfprintf.texi: Update.
61490         * doc/functions/vprintf.texi: Update.
61491         * doc/functions/vsnprintf.texi: Update.
61492         * doc/functions/vsprintf.texi: Update.
61493
61494 2007-11-03  Bruno Haible  <bruno@clisp.org>
61495
61496         * modules/frexp-nolibm-tests: New file.
61497
61498         * modules/frexp-nolibm: New file.
61499         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61500
61501 2007-11-03  Bruno Haible  <bruno@clisp.org>
61502
61503         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61504         value is C99 compliant.
61505         Needed for OSF/1 5.1.
61506
61507 2007-11-03  Bruno Haible  <bruno@clisp.org>
61508
61509         Fix out-of-memory handling of vasnprintf.
61510         * lib/printf-parse.c: Include <errno.h>.
61511         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61512         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61513         is already set.
61514
61515 2007-11-02  Eric Blake  <ebb9@byu.net>
61516
61517         Fix tests on cygwin.
61518         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61519
61520 2007-11-01  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61523         warning.
61524         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61525         needed for POSIX compatibility.
61526
61527 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61530         for compatibility with GNU.
61531
61532 2007-11-01  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61535         (putenv): Renamed from rpl_putenv. Change argument type from
61536         'const char *' to 'char *'.
61537         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61538         of defining putenv in config.h, just set REPLACE_PUTENV.
61539         * modules/putenv (Depends-on): Add stdlib.
61540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61541         (Include): Use <stdlib.h>.
61542         * lib/stdlib.in.h (putenv): New declaration.
61543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61544         REPLACE_PUTENV.
61545         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61546         REPLACE_PUTENV.
61547         Needed for MacOS X 10.5.0.
61548         Reported by Peter O'Gorman <peter@pogma.com>.
61549
61550 2007-11-01  Jim Meyering  <meyering@redhat.com>
61551
61552         Treat an empty date string exactly like "0".
61553         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61554         if the remaining date string (to be parsed) is empty, use "0".
61555         Reported by Mischa Molhoek and discussed in this thread:
61556         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61557
61558 2007-10-31  Bruno Haible  <bruno@clisp.org>
61559
61560         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61561         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61562         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61563         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61564         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61565         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61566
61567 2007-10-31  Bruno Haible  <bruno@clisp.org>
61568
61569         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61570         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61571         (AC_TYPE_LONG_LONG_INT): Use it.
61572         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61573         it as well.
61574         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61575         to m4/longlong.m4.
61576         * modules/stdint (Files): Remove m4/ulonglong.m4.
61577         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61578         m4/ulonglong.m4.
61579         * modules/strtoumax (Files): Likewise.
61580
61581 2007-10-30  Bruno Haible  <bruno@clisp.org>
61582
61583         * modules/xvasprintf-posix: New file.
61584         Suggested by Eric Blake.
61585
61586 2007-10-30  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/xprintf-posix-tests: New file.
61589         * tests/test-xprintf-posix.sh: New file.
61590         * tests/test-xprintf-posix.c: New file.
61591         * tests/test-xfprintf-posix.c: New file.
61592
61593         * modules/xprintf-posix: New file.
61594
61595 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61596
61597         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61598         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61599         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61600
61601 2007-10-29  Bruno Haible  <bruno@clisp.org>
61602
61603         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61604         contain the special marker '_cv_'.
61605         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61606         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61607         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61608         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61609         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61610         Reported by Ralf Wildenhues.
61611
61612 2007-10-29  Bruno Haible  <bruno@clisp.org>
61613
61614         * gnulib-tool (func_import): When --lgpl is not specified, set
61615         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61616         GPLv3.
61617         Reported by Simon Josefsson.
61618
61619 2007-10-28  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61622         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61623         HAVE_DECL_ISFINITE.
61624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61625         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61626         HAVE_DECL_ISFINITE.
61627
61628 2007-10-28  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61631         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61632
61633 2007-10-28  Bruno Haible  <bruno@clisp.org>
61634
61635         Fix link errors with Sun C 5.0 on Solaris 10.
61636         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61637         function is declared but not present in the compiler's libm.
61638         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61639         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61640         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61641         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61642         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61643         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61644         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61646         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61647         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61648         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61649         HAVE_DECL_FLOORL.
61650
61651 2007-10-28  Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61654         gl_FUNC_FLOORL. Cache the result.
61655         (gl_FUNC_FLOORL): Use it.
61656         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61657         gl_FUNC_CEILL. Cache the result.
61658         (gl_FUNC_CEILL): Use it.
61659
61660         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61661         gl_FUNC_FLOOR. Cache the result.
61662         (gl_FUNC_FLOOR): Use it.
61663         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61664         gl_FUNC_CEIL. Cache the result.
61665         (gl_FUNC_CEIL): Use it.
61666
61667         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61668         gl_FUNC_FLOORF. Cache the result.
61669         (gl_FUNC_FLOORF): Use it.
61670         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61671         gl_FUNC_CEILF. Cache the result.
61672         (gl_FUNC_CEILF): Use it.
61673
61674 2007-10-28  Bruno Haible  <bruno@clisp.org>
61675
61676         * gnulib-tool: Allow specifying the LGPL version number through
61677         --lgpl=2 or --lgpl=3.
61678         (func_usage): Document --lgpl with argument.
61679         Handle --lgpl=... arguments.
61680         (func_import): Recognize also gl_LGPL calls with an argument. When
61681         --lgpl=2 is used and the module's license is just LGPL, report an
61682         error. Set sed_transform_lib_file according to the lgpl variable. In
61683         the generated files, use --lgpl or gl_LGPL invocations with argument,
61684         if necessary.
61685         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61686         an LGPv2+ license.
61687         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61688         gl_LGPL macro.
61689
61690 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61691             Bruno Haible  <bruno@clisp.org>
61692
61693         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61694         (u16_uctomb_aux): Likewise.
61695         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61696         !HAVE_INLINE.
61697         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61698
61699 2007-10-28  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61702         Invoke AM_GETTEXT_OPTION if it exists.
61703         * modules/vasprintf: Likewise.
61704         * modules/verror: Likewise.
61705         * modules/xprintf: Likewise.
61706         * modules/xvasprintf: Likewise.
61707
61708 2007-10-27  Ben Pfaff  <blp@gnu.org>
61709
61710         * lib/math.in.h: Define isfinite macro and prototypes for
61711         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61712         implementations.
61713         * m4/math_h.m4: New substitutions for isfinite module.
61714         * lib/isfinite.c: New file.
61715         * m4/isfinite.m4: New file.
61716         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61717         * modules/isfinite: New file.
61718         * modules/isfinite-tests: New file.
61719         * tests/tests-isfinite.c: New file.
61720         * doc/functions/isfinite.texi: Mention isfinite module.
61721         * MODULES.html.sh: Mention new module.
61722
61723 2007-10-27  Ben Pfaff  <blp@gnu.org>
61724
61725         Ralf Wildenhues reported that Tru64 4.0D declares the round
61726         functions but does not have definitions.
61727         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61728         cannot be found in any library, set the output variable to
61729         "missing" instead of "".
61730         * m4/round.m4: Also use our substitute if we cannot find round in
61731         any library, even if it is declared.
61732         * m4/roundf.m4: Likewise for roundf.
61733         * m4/roundl.m4: Likewise for roundl.
61734         * lib/math.in.h: Undefine roundf, round, roundl before defining
61735         their replacements, to allow for hypothetical systems where these
61736         may be defined as macros but not available in libraries.
61737
61738 2007-10-27  Bruno Haible  <bruno@clisp.org>
61739
61740         * doc/gnulib.texi: Invoke @firstparagraphindent.
61741         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61742         changes in gnulib.
61743         (Source changes): New section.
61744
61745 2007-10-26  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61748         borrowed from autoconf.
61749
61750 2007-10-26  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61753         strerror returned the empty string. Needed on HP-UX 11.00.
61754
61755 2007-10-24  Micah Cowan  <micah@cowan.name>
61756
61757         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61758         * build-aux/bootstrap: Remove support for now-unnecessary option,
61759         --cvs-user, and envvars CVS_USER, CVS_RSH.
61760
61761 2007-10-24  Jim Meyering  <meyering@redhat.com>
61762
61763         Avoid diagnostics from sha1sum when there is no cached checksum.
61764         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61765         if the po.s1 file hasn't been created yet.
61766
61767         * build-aux/bootstrap: Sync from coreutils:
61768         2007-10-24  Jim Meyering  <meyering@redhat.com>
61769         Get gnulib from the git repository, not from an obsolete cvs one.
61770         * build-aux/bootstrap: Suggestion from Micah Cowan.
61771         2007-10-04  Jim Meyering  <jim@meyering.net>
61772         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61773         (update_po_files): Work also when there are no .po files in po/.
61774
61775 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61776
61777         * README: Append ".git" to git and cg examples.
61778         Problem reported by Benoit Sigoure.
61779
61780 2007-10-23  Micah Cowan  <micah@cowan.name>
61781
61782         * users.txt: Add wget.
61783
61784 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61785
61786         Fix linking of some unistdio tests on FreeBSD.
61787         * modules/unistdio/u16-vsnprintf-tests
61788         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61789         * modules/unistdio/u16-vsprintf-tests
61790         (test_u16_vsnprintf1_LDADD): Likewise.
61791         * modules/unistdio/u32-vsnprintf-tests
61792         (test_u32_vsnprintf1_LDADD): Likewise.
61793         * modules/unistdio/u32-vsprintf-tests
61794         (test_u32_vsprintf1_LDADD): Likewise.
61795         * modules/unistdio/u8-vsnprintf-tests
61796         (test_u8_vsnprintf1_LDADD): Likewise.
61797         * modules/unistdio/u8-vsprintf-tests
61798         (test_u8_vsprintf1_LDADD): Likewise.
61799         * modules/unistdio/ulc-vsnprintf-tests
61800         (test_ulc_vsnprintf1_LDADD): Likewise.
61801         * modules/unistdio/ulc-vsprintf-tests
61802         (test_ulc_vsprintf1_LDADD): Likewise.
61803
61804         Fix linking of some uniconv tests on FreeBSD.
61805         * modules/uniconv/u16-conv-from-enc-tests
61806         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61807         * modules/uniconv/u16-conv-to-enc-tests
61808         (test_u16_conv_to_enc_LDADD): Likewise.
61809         * modules/uniconv/u16-strconv-from-enc-tests
61810         (test_u16_strconv_from_enc_LDADD): Likewise.
61811         * modules/uniconv/u16-strconv-to-enc-tests
61812         (test_u16_strconv_to_enc_LDADD): Likewise.
61813         * modules/uniconv/u32-conv-from-enc-tests
61814         (test_u32_conv_from_enc_LDADD): Likewise.
61815         * modules/uniconv/u32-conv-to-enc-tests
61816         (test_u32_conv_to_enc_LDADD): Likewise.
61817         * modules/uniconv/u32-strconv-from-enc-tests
61818         (test_u32_strconv_from_enc_LDADD): Likewise.
61819         * modules/uniconv/u32-strconv-to-enc-tests
61820         (test_u32_strconv_to_enc_LDADD): Likewise.
61821         * modules/uniconv/u8-conv-from-enc-tests
61822         (test_u8_conv_from_enc_LDADD): Likewise.
61823         * modules/uniconv/u8-conv-to-enc-tests
61824         (test_u8_conv_to_enc_LDADD): Likewise.
61825         * modules/uniconv/u8-strconv-from-enc-tests
61826         (test_u8_strconv_from_enc_LDADD): Likewise.
61827         * modules/uniconv/u8-strconv-to-enc-tests
61828         (test_u8_strconv_to_enc_LDADD): Likewise.
61829
61830 2007-10-22  Bruno Haible  <bruno@clisp.org>
61831
61832         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61833         size.
61834
61835 2007-10-22  Eric Blake  <ebb9@byu.net>
61836
61837         Tweak x*printf documentation.
61838         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61839         variable name and comments.
61840         Suggested by Bruno Haible.
61841
61842 2007-10-22  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/acl.c (copy_acl): Fix file name in comment.
61845
61846 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         Fix Tru64 problem with stdbool.h.
61849         * lib/stdbool.in.h (false, true):
61850         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61851         Don't declare as an enum in this situation; it runs afoul of Tru64.
61852         Problem reported by Steven M. Schweda in
61853         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61854
61855 2007-10-22  Eric Blake  <ebb9@byu.net>
61856
61857         Also wrap vf?printf.
61858         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61859         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61860         (xvprintf, xvfprintf): New functions.
61861
61862 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61863
61864         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61865         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61866
61867         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61868         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61869
61870 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61873         by Bruno Haible.
61874
61875 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61876
61877         * lib/getloadavg.c
61878         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61879         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61880
61881         * tests/test-i-ring.c: Work for C89.
61882
61883 2007-10-22  Bruno Haible  <bruno@clisp.org>
61884
61885         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61886         -1u, in preprocessor expression, so that we don't test for the bug
61887         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61889
61890 2007-10-22  Eric Blake  <ebb9@byu.net>
61891
61892         * tests/test-yesno.sh: Silence stderr during test.
61893
61894 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61895
61896         * modules/crypto/gc-camellia: New file.
61897
61898         * m4/gc-camellia.m4: New file.
61899
61900         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61901
61902         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61903
61904 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61905
61906         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61907         --help to stdout.  Reported by sms@antinode.org (Steven
61908         M. Schweda).
61909
61910 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61911
61912         * users.txt: Fix link to libksba.
61913
61914 2007-10-21  Ben Pfaff  <blp@gnu.org>
61915
61916         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61917         round.c roundf implementation that depends on floorf and ceilf to
61918         be tested unconditionally.
61919
61920 2007-10-21  Ben Pfaff  <blp@gnu.org>
61921
61922         * m4/check-libm-func.m4: Removed.
61923         * m4/check-math-lib.m4: New file.
61924         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61925         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61926         definition and lack of AC_LIBOBJ([roundf]).
61927         * m4/roundl.m4: Ditto, and similarly for roundl.
61928         * modules/round: Reference new m4 file.
61929         * modules/roundf: Ditto.
61930         * modules/roundl: Ditto.
61931         * tests/test-round2.c (main): Use ROUND instead of round.
61932         Bug report from Bruno Haible.
61933
61934 2007-10-21  Bruno Haible  <bruno@clisp.org>
61935
61936         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61937         context.
61938
61939 2007-10-21  Bruno Haible  <bruno@clisp.org>
61940
61941         * tests/test-wcwidth.c (main): Allow negative result for some control
61942         characters.
61943
61944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61945         Needed on OSF/1 5.1.
61946
61947 2007-10-21  Bruno Haible  <bruno@clisp.org>
61948
61949         * tests/test-floorf1.c: Include isnanf.h.
61950         (main): Use isnanf() instead of isnan().
61951         * tests/test-ceilf1.c: Include isnanf.h.
61952         (main): Use isnanf() instead of isnan().
61953         * tests/test-truncf1.c: Include isnanf.h.
61954         (main): Use isnanf() instead of isnan().
61955         * tests/test-roundf1.c: Include isnanf.h.
61956         (main): Use isnanf() instead of isnan().
61957
61958 2007-10-21  Eric Blake  <ebb9@byu.net>
61959
61960         * users.txt: Update URL for m4.
61961
61962 2007-10-21  Bruno Haible  <bruno@clisp.org>
61963
61964         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61965
61966 2007-10-21  Bruno Haible  <bruno@clisp.org>
61967
61968         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61969         Git's management files if the CVS files are not present.
61970
61971 2007-10-20  Bruno Haible  <bruno@clisp.org>
61972
61973         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61974         gcc-3.4.x.
61975
61976 2007-10-20  Ben Pfaff  <blp@gnu.org>
61977
61978         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61979         implementations.
61980         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61981         * lib/round.c: New file.
61982         * lib/roundf.c: New file.
61983         * lib/roundl.c: New file.
61984         * m4/round.m4: New file.
61985         * m4/roundf.m4: New file.
61986         * m4/roundl.m4: New file.
61987         * m4/check-libm-func-m4: New file.
61988         * modules/math: Replace round, roundf, roundl related @VARS@ in
61989         math.in.h.
61990         * modules/round: New file.
61991         * modules/round-tests: New file.
61992         * modules/roundf: New file.
61993         * modules/roundf-tests: New file.
61994         * modules/roundl: New file.
61995         * modules/roundl-tests: New file.
61996         * tests/test-round1.c: New file.
61997         * tests/test-round2.c: New file.
61998         * tests/test-roundf1.c: New file.
61999         * tests/test-roundf2.c: New file.
62000         * tests/test-roundl.c: New file.
62001         * doc/functions/round.texi: Mention round module.
62002         * doc/functions/roundf.texi: Mention roundf module.
62003         * doc/functions/roundl.texi: Mention roundl module.
62004         * MODULES.html.sh: Mention new modules.
62005         Thanks to Bruno Haible for suggestions.
62006
62007 2007-10-20  Jim Meyering  <meyering@redhat.com>
62008
62009         * lib/xprintf.c: Include <config.h> unconditionally.
62010
62011         Change xprintf's license to GPL.
62012         * modules/xprintf (License): s/LGPL/GPL/, since this module
62013         depends on modules (exit and exitfail) which are GPL.
62014         Suggestion from Bruno Haible.
62015
62016         xprintf fixes.
62017         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62018         Use a clearer diagnostic.
62019         Patch from Bruno Haible.
62020
62021 2007-10-20  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62024         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62026
62027 2007-10-20  Bruno Haible  <bruno@clisp.org>
62028
62029         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62030         precision in the comparison result > x - 1 or similar.
62031         * tests/test-ceilf2.c (correct_result_p): Likewise.
62032         * tests/test-truncf2.c (correct_result_p): Likewise.
62033         * tests/test-trunc2.c (correct_result_p): Likewise.
62034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62035
62036 2007-10-20  Bruno Haible  <bruno@clisp.org>
62037
62038         * modules/ceil: New file.
62039         * m4/ceil.m4: New file.
62040         * doc/functions/ceil.texi: Mention the 'ceil' module.
62041
62042 2007-10-20  Bruno Haible  <bruno@clisp.org>
62043
62044         * modules/floor: New file.
62045         * m4/floor.m4: New file.
62046         * doc/functions/floor.texi: Mention the 'floor' module.
62047
62048 2007-10-20  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62051         of %a.
62052         * modules/floorf-tests (Depends-on): Likewise.
62053         * modules/truncf-tests (Depends-on): Likewise.
62054         * modules/trunc-tests (Depends-on): Likewise.
62055         Reported by Ben Pfaff.
62056
62057 2007-10-19  Jim Meyering  <meyering@redhat.com>
62058
62059         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62060         Don't bother testing specific errno values.  Just test ferror.
62061
62062         New module: xprintf
62063         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62064
62065 2007-10-19  Bruno Haible  <bruno@clisp.org>
62066
62067         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62068         syntax.
62069         * modules/javaexec (Makefile.am): Likewise.
62070         * modules/relocatable-prog (Makefile.am): Likewise.
62071         Suggested by Jim Meyering.
62072
62073 2007-10-18  Bruno Haible  <bruno@clisp.org>
62074
62075         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62076         Reported by Jim Meyering.
62077
62078 2007-10-18  Eric Blake  <ebb9@byu.net>
62079
62080         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62081
62082 2007-10-18  Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62085         the format string into writable memory. Needed in Fortify conditions.
62086
62087 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62088             Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62091         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62092         * modules/trim (Depends-on): Add mbchar.
62093         (configure.ac): Add gl_FUNC_MBRTOWC.
62094         (Makefile.am): Augment lib_SOURCES.
62095
62096 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         Modify glob.c to use fstatat and dirfd, to simplify it.
62099         Suggested by Eric Blake.
62100         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62101         Don't include <stdbool.h>; not used.
62102         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62103         (link_exists_p): Simplify implementation, since we can now assume
62104         dirfd and fstatat.
62105         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62106
62107 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62108
62109         * gnulib-tool (func_get_dependencies): Fix sed script to
62110         match only tests.
62111
62112 2007-10-17  Bruno Haible  <bruno@clisp.org>
62113
62114         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62115         allow locale names without encoding suffix.
62116         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62117         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62118
62119 2007-10-16  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62122         * lib/getgroups.c (getgroups): Likewise.
62123         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62124
62125 2007-10-16  Bruno Haible  <bruno@clisp.org>
62126
62127         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62128         * modules/malloc-posix (License): Likewise.
62129         * modules/realloc-posix (License): Likewise.
62130         * modules/calloc-posix (License): Likewise.
62131         * modules/intprops (License): Change from GPL to LGPL, with
62132         Paul Eggert's approval.
62133
62134 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62135
62136         Merge glibc changes into lib/glob.c.
62137
62138         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62139         2007-10-15 04:59:03 UTC.  Here are the changes:
62140
62141         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62142
62143         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62144
62145         * lib/glob.c: Add some branch prediction throughout.
62146
62147         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62148
62149         [BZ #5103]
62150         * lib/glob.c (glob): Recognize patterns starting \/.
62151
62152         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62153
62154         [BZ #3996]
62155         * lib/glob.c (attribute_hidden): Define if not defined.
62156         (glob): Unescape dirname, filename or username when needed and not
62157         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62158         is NULL.  Handle unescaped [ in pattern without closing ].
62159         Don't pass GLOB_CHECK down to recursive glob for directories.
62160         (__glob_pattern_type): New function.
62161         (__glob_pattern_p): Implement using __glob_pattern_type.
62162         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62163         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62164         Remove unreachable code.
62165
62166         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62167
62168         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62169         explain why there are no leaks.
62170
62171         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62172
62173         [BZ #3253]
62174         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62175         time, rather allocate increasingly bigger arrays of pointers, if
62176         possible with alloca, if too large with malloc.
62177
62178 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62179
62180         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62181         Problem reported by H.Merijn Brand in
62182         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62184         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62185
62186 2007-10-15  Bruno Haible  <bruno@clisp.org>
62187
62188         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62189         with explicit rpl_ prefix.
62190         * lib/fopen.c (fopen): Likewise.
62191         * lib/freopen.c (freopen): Likewise.
62192         * lib/iconv.c (iconv): Likewise.
62193         * lib/iconv_close.c (iconv_close): Likewise.
62194
62195 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62196
62197         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62198
62199 2007-10-15  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62202         <stddef.h> instead of <stdlib.h> since we only need NULL.
62203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62204
62205 2007-10-15  Bruno Haible  <bruno@clisp.org>
62206
62207         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62208         Replace paragraph talking about LIBOBJS.
62209         Reported by Colin Watson <cjwatson@debian.org>.
62210
62211 2007-10-15  Bruno Haible  <bruno@clisp.org>
62212
62213         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62214         <stdlib.h> before using NULL.
62215
62216 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62217
62218         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62219         Reported by Albert Chin <china@thewrittenword.com>.
62220
62221 2007-10-14  Bruno Haible  <bruno@clisp.org>
62222
62223         * modules/iconv_open-utf-tests: New file.
62224         * tests/test-iconv-utf.c: New file.
62225
62226         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62227         * modules/iconv_open-utf: New file.
62228         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62229         (iconv, iconv_close): New declarations.
62230         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62231         be defined.
62232         (iconv_open): Add special handling of conversion between UTF-8 and
62233         UTF-{16,32}{BE,LE}.
62234         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62235         * lib/iconv_close.c: New file.
62236         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62237         gl_FUNC_ICONV_OPEN.
62238         (gl_FUNC_ICONV_OPEN): Use it.
62239         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62240         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62241         and REPLACE_ICONV_UTF.
62242         * modules/iconv_open (Depends-on): Add c-strcase.
62243         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62244         ICONV_CONST.
62245         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62246
62247 2007-10-13  Albert Chin  <china@thewrittenword.com>
62248             Bruno Haible  <bruno@clisp.org>
62249
62250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62251         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62252
62253 2007-10-13  Bruno Haible  <bruno@clisp.org>
62254
62255         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62256         defined, use the ISO C99 inline semantics.
62257         * lib/argp.h (ARGP_EI): Likewise.
62258
62259 2007-10-13  Bruno Haible  <bruno@clisp.org>
62260
62261         Handle 'inline' change in gcc 4.3.0.
62262         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62263         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62264         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62265         argp_fmtstream_point): Disable 'extern' declaration if the function
62266         definition is going to be provided inline.
62267         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62268         semantics, not the ISO C99 inline semantics.
62269         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62270         'extern' declaration if the function definition is going to be provided
62271         inline.
62272         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62273         the GNU C inline semantics, not the ISO C99 inline semantics. With
62274         GCC 4.2, avoid a warning.
62275
62276 2007-10-13  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/freading.h (freading): Enable the use of __freading for
62279         glibc >= 2.7.
62280         * lib/freading.c (freading): Likewise.
62281
62282 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62285         "warning: C99 inline functions are not supported; using GNU89".
62286
62287 2007-10-12  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62290         of 2.
62291         * tests/test-ceilf2.c: New file.
62292         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62293
62294         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62295         * modules/ceilf-tests: Update.
62296
62297 2007-10-12  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62300         of 2.
62301         * tests/test-floorf2.c: New file.
62302         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62303
62304         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62305         * modules/floorf-tests: Update.
62306
62307 2007-10-12  Bruno Haible  <bruno@clisp.org>
62308
62309         * tests/test-trunc2.c: New file.
62310         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62311
62312         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62313         * modules/trunc-tests: Update.
62314
62315 2007-10-12  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62318         of 2.
62319         * tests/test-truncf2.c: New file.
62320         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62321
62322         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62323         * modules/truncf-tests: Update.
62324
62325 2007-10-11  Eric Blake  <ebb9@byu.net>
62326
62327         Don't claim strerror is broken on Interix.
62328         * doc/functions/strerror.texi (strerror): Known broken systems are
62329         now Solaris 8, and not Interix.
62330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62331         Interix on cross-compile.
62332         Reported by Martin Koeppe in
62333         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62334
62335 2007-10-11  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/i-ring-tests: New file.
62338         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62339         instead of assert.
62340
62341 2007-10-11  Bruno Haible  <bruno@clisp.org>
62342
62343         * modules/filenamecat-tests: New file.
62344         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62345         * lib/filenamecat.c: Remove test code.
62346
62347 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62350
62351         * lib/strerror.c: Include <string.h> always, to test interface,
62352         and to remove the need for the dummy.
62353         Include intprops.h to compute width instead of doing it ourselves
62354         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62355         (strerror): Define it to return NULL if there's no system strerror.
62356         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62357         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62358         ancient pre-strerror Unix systems well any more.  Saying "unknown
62359         system error" is enough.
62360         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62361         simpler strerror.c implementation.
62362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62363         Simplify the tests to reflect the simpler strerror implementation.
62364         * modules/strerror (Depends-on): Add intprops.
62365
62366 2007-10-09  Eric Blake  <ebb9@byu.net>
62367
62368         Silence test-fpending.
62369         * modules/fpending-tests (Files): Add wrapper script.
62370         * tests/test-fpending.sh: New file.
62371
62372 2007-10-09  Bruno Haible  <bruno@clisp.org>
62373
62374         * MODULES.html.sh (func_module): Don't create a hyperlink for
62375         function names like 'printf_frexp'.
62376         (Misc): Add crc, memxor.
62377         (Characteristics of floating types): New section.
62378         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62379         isnanf-nolibm, signbit, trunc, truncf, truncl.
62380         (Enhancements for ISO C 99 functions): New subsection Input/output.
62381         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62382         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62383         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62384         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62385         (Enhancements for POSIX:2001 functions): Add chdir-long.
62386         (File system functions): Add areadlink, chdir-safer, read-file.
62387         Remove cycle-check.
62388         (File system as inode set): New section.
62389         (Date and time): Add gethrxtime.
62390         (Multithreading): Add openmp.
62391         (Internationalization functions): Add localename.
62392         (Unicode string functions): Add unistr/u*-mbsnlen.
62393         (Support for maintaining and releasing projects): Add git-version-gen.
62394         (Lone files): Remove directories.
62395
62396 2007-10-08  Ben Pfaff  <blp@gnu.org>
62397
62398         * lib/xmalloca.h: Fix typo in comment.
62399
62400 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62401
62402         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62403         when avoiding problems with integer overflow.  Use a portable test
62404         instead.
62405
62406 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62407
62408         * modules/dummy (License): Change to LGPLv2+.
62409         * modules/float (License): Likewise
62410         * modules/realloc (License): Likewise
62411         * modules/stdlib (License): Likewise
62412
62413 2007-10-07  Bruno Haible  <bruno@clisp.org>
62414
62415         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62416         * floor.c (TWO_MANT_DIG): Likewise.
62417         * ceil.c (TWO_MANT_DIG): Likewise.
62418         Reported by Ben Pfaff.
62419
62420 2007-10-07  Bruno Haible  <bruno@clisp.org>
62421
62422         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62423         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62424         * lib/frexp.c (FUNC): Likewise.
62425         * lib/printf-frexp.h (printf_frexp): Likewise.
62426         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62427         * lib/printf-frexp.c (FUNC): Likewise.
62428         Suggested by Jim Meyering.
62429
62430 2007-10-07  Jim Meyering  <meyering@redhat.com>
62431
62432         Make xnanosleep's integer overflow test more robust.
62433         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62434         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62435
62436 2007-10-07  Bruno Haible  <bruno@clisp.org>
62437
62438         * NEWS: Mention the license change.
62439
62440         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62441         abbreviations in the modules files.
62442
62443         Change copyright notice from GPLv2+ to GPLv3+.
62444         * README: Change copyright notice.
62445         * MODULES.html.sh: Likewise.
62446         * build-aux/bootstrap.conf: Likewise.
62447         * build-aux/config.libpath: Likewise.
62448         * build-aux/csharpcomp.sh.in: Likewise.
62449         * build-aux/csharpexec.sh.in: Likewise.
62450         * build-aux/install-reloc: Likewise.
62451         * build-aux/javacomp.sh.in: Likewise.
62452         * build-aux/javaexec.sh.in: Likewise.
62453         * build-aux/ldd.sh.in: Likewise.
62454         * build-aux/reloc-ldflags: Likewise.
62455         * build-aux/relocatable.sh.in: Likewise.
62456         * build-aux/x-to-1.in: Likewise.
62457         * check-module: Likewise.
62458         * config/srclistvars.sh: Likewise.
62459         * gnulib-tool: Likewise.
62460         * lib/acl-internal.h: Likewise.
62461         * lib/acl.c: Likewise.
62462         * lib/acl.h: Likewise.
62463         * lib/acl_entries.c: Likewise.
62464         * lib/areadlink-with-size.c: Likewise.
62465         * lib/areadlink.c: Likewise.
62466         * lib/areadlink.h: Likewise.
62467         * lib/argmatch.c: Likewise.
62468         * lib/argmatch.h: Likewise.
62469         * lib/argp-ba.c: Likewise.
62470         * lib/argp-eexst.c: Likewise.
62471         * lib/argp-fmtstream.c: Likewise.
62472         * lib/argp-fmtstream.h: Likewise.
62473         * lib/argp-fs-xinl.c: Likewise.
62474         * lib/argp-help.c: Likewise.
62475         * lib/argp-namefrob.h: Likewise.
62476         * lib/argp-parse.c: Likewise.
62477         * lib/argp-pin.c: Likewise.
62478         * lib/argp-pv.c: Likewise.
62479         * lib/argp-pvh.c: Likewise.
62480         * lib/argp-xinl.c: Likewise.
62481         * lib/argp.h: Likewise.
62482         * lib/at-func.c: Likewise.
62483         * lib/atanl.c: Likewise.
62484         * lib/backupfile.c: Likewise.
62485         * lib/backupfile.h: Likewise.
62486         * lib/basename.c: Likewise.
62487         * lib/binary-io.h: Likewise.
62488         * lib/byteswap.in.h: Likewise.
62489         * lib/c-stack.c: Likewise.
62490         * lib/c-stack.h: Likewise.
62491         * lib/c-strcasestr.c: Likewise.
62492         * lib/c-strcasestr.h: Likewise.
62493         * lib/c-strstr.c: Likewise.
62494         * lib/c-strstr.h: Likewise.
62495         * lib/c-strtod.c: Likewise.
62496         * lib/calloc.c: Likewise.
62497         * lib/canon-host.c: Likewise.
62498         * lib/canon-host.h: Likewise.
62499         * lib/canonicalize-lgpl.c: Likewise.
62500         * lib/canonicalize.c: Likewise.
62501         * lib/canonicalize.h: Likewise.
62502         * lib/ceil.c: Likewise.
62503         * lib/ceilf.c: Likewise.
62504         * lib/ceill.c: Likewise.
62505         * lib/chdir-long.c: Likewise.
62506         * lib/chdir-long.h: Likewise.
62507         * lib/chdir-safer.c: Likewise.
62508         * lib/chdir-safer.h: Likewise.
62509         * lib/chown.c: Likewise.
62510         * lib/classpath.c: Likewise.
62511         * lib/classpath.h: Likewise.
62512         * lib/clean-temp.c: Likewise.
62513         * lib/clean-temp.h: Likewise.
62514         * lib/cloexec.c: Likewise.
62515         * lib/close-stream.c: Likewise.
62516         * lib/closein.c: Likewise.
62517         * lib/closein.h: Likewise.
62518         * lib/closeout.c: Likewise.
62519         * lib/closeout.h: Likewise.
62520         * lib/concat-filename.c: Likewise.
62521         * lib/copy-file.c: Likewise.
62522         * lib/copy-file.h: Likewise.
62523         * lib/count-one-bits.h: Likewise.
62524         * lib/crc.c: Likewise.
62525         * lib/crc.h: Likewise.
62526         * lib/creat-safer.c: Likewise.
62527         * lib/csharpcomp.c: Likewise.
62528         * lib/csharpcomp.h: Likewise.
62529         * lib/csharpexec.c: Likewise.
62530         * lib/csharpexec.h: Likewise.
62531         * lib/cycle-check.c: Likewise.
62532         * lib/cycle-check.h: Likewise.
62533         * lib/diacrit.c: Likewise.
62534         * lib/diacrit.h: Likewise.
62535         * lib/diffseq.h: Likewise.
62536         * lib/dirchownmod.c: Likewise.
62537         * lib/dirent.in.h: Likewise.
62538         * lib/dirfd.c: Likewise.
62539         * lib/dirfd.h: Likewise.
62540         * lib/dirname.c: Likewise.
62541         * lib/dirname.h: Likewise.
62542         * lib/dummy.c: Likewise.
62543         * lib/dup-safer.c: Likewise.
62544         * lib/dup2.c: Likewise.
62545         * lib/eealloc.h: Likewise.
62546         * lib/error.c: Likewise.
62547         * lib/error.h: Likewise.
62548         * lib/euidaccess.c: Likewise.
62549         * lib/exclude.c: Likewise.
62550         * lib/exclude.h: Likewise.
62551         * lib/execute.c: Likewise.
62552         * lib/execute.h: Likewise.
62553         * lib/exitfail.c: Likewise.
62554         * lib/exitfail.h: Likewise.
62555         * lib/expl.c: Likewise.
62556         * lib/fatal-signal.c: Likewise.
62557         * lib/fatal-signal.h: Likewise.
62558         * lib/fbufmode.c: Likewise.
62559         * lib/fbufmode.h: Likewise.
62560         * lib/fchdir.c: Likewise.
62561         * lib/fchmodat.c: Likewise.
62562         * lib/fchownat.c: Likewise.
62563         * lib/fcntl--.h: Likewise.
62564         * lib/fcntl-safer.h: Likewise.
62565         * lib/fcntl.in.h: Likewise.
62566         * lib/fd-safer.c: Likewise.
62567         * lib/fflush.c: Likewise.
62568         * lib/file-has-acl.c: Likewise.
62569         * lib/file-set.c: Likewise.
62570         * lib/file-type.c: Likewise.
62571         * lib/file-type.h: Likewise.
62572         * lib/fileblocks.c: Likewise.
62573         * lib/filemode.c: Likewise.
62574         * lib/filemode.h: Likewise.
62575         * lib/filename.h: Likewise.
62576         * lib/filenamecat.c: Likewise.
62577         * lib/filenamecat.h: Likewise.
62578         * lib/findprog.c: Likewise.
62579         * lib/findprog.h: Likewise.
62580         * lib/float.in.h: Likewise.
62581         * lib/floor.c: Likewise.
62582         * lib/floorf.c: Likewise.
62583         * lib/floorl.c: Likewise.
62584         * lib/fopen-safer.c: Likewise.
62585         * lib/fopen.c: Likewise.
62586         * lib/fpending.c: Likewise.
62587         * lib/fpending.h: Likewise.
62588         * lib/fprintf.c: Likewise.
62589         * lib/fprintftime.h: Likewise.
62590         * lib/fpucw.h: Likewise.
62591         * lib/fpurge.c: Likewise.
62592         * lib/fpurge.h: Likewise.
62593         * lib/freadable.c: Likewise.
62594         * lib/freadable.h: Likewise.
62595         * lib/freadahead.c: Likewise.
62596         * lib/freadahead.h: Likewise.
62597         * lib/freading.c: Likewise.
62598         * lib/freading.h: Likewise.
62599         * lib/free.c: Likewise.
62600         * lib/freopen.c: Likewise.
62601         * lib/frexp.c: Likewise.
62602         * lib/frexpl.c: Likewise.
62603         * lib/fseek.c: Likewise.
62604         * lib/fseterr.c: Likewise.
62605         * lib/fseterr.h: Likewise.
62606         * lib/fstatat.c: Likewise.
62607         * lib/fstrcmp.c: Likewise.
62608         * lib/fstrcmp.h: Likewise.
62609         * lib/fsusage.c: Likewise.
62610         * lib/fsusage.h: Likewise.
62611         * lib/ftell.c: Likewise.
62612         * lib/ftello.c: Likewise.
62613         * lib/fts-cycle.c: Likewise.
62614         * lib/fts.c: Likewise.
62615         * lib/fts_.h: Likewise.
62616         * lib/full-read.c: Likewise.
62617         * lib/full-read.h: Likewise.
62618         * lib/full-write.c: Likewise.
62619         * lib/full-write.h: Likewise.
62620         * lib/fwritable.c: Likewise.
62621         * lib/fwritable.h: Likewise.
62622         * lib/fwriteerror.c: Likewise.
62623         * lib/fwriteerror.h: Likewise.
62624         * lib/fwriting.c: Likewise.
62625         * lib/fwriting.h: Likewise.
62626         * lib/gcd.c: Likewise.
62627         * lib/gcd.h: Likewise.
62628         * lib/getcwd.c: Likewise.
62629         * lib/getdate.h: Likewise.
62630         * lib/getdate.y: Likewise.
62631         * lib/getdomainname.c: Likewise.
62632         * lib/getdomainname.h: Likewise.
62633         * lib/getgroups.c: Likewise.
62634         * lib/gethostname.c: Likewise.
62635         * lib/gethrxtime.c: Likewise.
62636         * lib/gethrxtime.h: Likewise.
62637         * lib/getloadavg.c: Likewise.
62638         * lib/getndelim2.c: Likewise.
62639         * lib/getndelim2.h: Likewise.
62640         * lib/getnline.c: Likewise.
62641         * lib/getnline.h: Likewise.
62642         * lib/getopt.c: Likewise.
62643         * lib/getopt.in.h: Likewise.
62644         * lib/getopt1.c: Likewise.
62645         * lib/getopt_int.h: Likewise.
62646         * lib/getpagesize.h: Likewise.
62647         * lib/getsubopt.c: Likewise.
62648         * lib/gettime.c: Likewise.
62649         * lib/getugroups.c: Likewise.
62650         * lib/getugroups.h: Likewise.
62651         * lib/getusershell.c: Likewise.
62652         * lib/gl_anyavltree_list1.h: Likewise.
62653         * lib/gl_anyavltree_list2.h: Likewise.
62654         * lib/gl_anyhash_list1.h: Likewise.
62655         * lib/gl_anyhash_list2.h: Likewise.
62656         * lib/gl_anylinked_list1.h: Likewise.
62657         * lib/gl_anylinked_list2.h: Likewise.
62658         * lib/gl_anyrbtree_list1.h: Likewise.
62659         * lib/gl_anyrbtree_list2.h: Likewise.
62660         * lib/gl_anytree_list1.h: Likewise.
62661         * lib/gl_anytree_list2.h: Likewise.
62662         * lib/gl_anytree_oset.h: Likewise.
62663         * lib/gl_anytreehash_list1.h: Likewise.
62664         * lib/gl_anytreehash_list2.h: Likewise.
62665         * lib/gl_array_list.c: Likewise.
62666         * lib/gl_array_list.h: Likewise.
62667         * lib/gl_array_oset.c: Likewise.
62668         * lib/gl_array_oset.h: Likewise.
62669         * lib/gl_avltree_list.c: Likewise.
62670         * lib/gl_avltree_list.h: Likewise.
62671         * lib/gl_avltree_oset.c: Likewise.
62672         * lib/gl_avltree_oset.h: Likewise.
62673         * lib/gl_avltreehash_list.c: Likewise.
62674         * lib/gl_avltreehash_list.h: Likewise.
62675         * lib/gl_carray_list.c: Likewise.
62676         * lib/gl_carray_list.h: Likewise.
62677         * lib/gl_linked_list.c: Likewise.
62678         * lib/gl_linked_list.h: Likewise.
62679         * lib/gl_linkedhash_list.c: Likewise.
62680         * lib/gl_linkedhash_list.h: Likewise.
62681         * lib/gl_list.c: Likewise.
62682         * lib/gl_list.h: Likewise.
62683         * lib/gl_oset.c: Likewise.
62684         * lib/gl_oset.h: Likewise.
62685         * lib/gl_rbtree_list.c: Likewise.
62686         * lib/gl_rbtree_list.h: Likewise.
62687         * lib/gl_rbtree_oset.c: Likewise.
62688         * lib/gl_rbtree_oset.h: Likewise.
62689         * lib/gl_rbtreehash_list.c: Likewise.
62690         * lib/gl_rbtreehash_list.h: Likewise.
62691         * lib/gl_sublist.c: Likewise.
62692         * lib/gl_sublist.h: Likewise.
62693         * lib/group-member.c: Likewise.
62694         * lib/group-member.h: Likewise.
62695         * lib/hard-locale.c: Likewise.
62696         * lib/hard-locale.h: Likewise.
62697         * lib/hash-pjw.c: Likewise.
62698         * lib/hash-pjw.h: Likewise.
62699         * lib/hash-triple.c: Likewise.
62700         * lib/hash.c: Likewise.
62701         * lib/hash.h: Likewise.
62702         * lib/human.c: Likewise.
62703         * lib/human.h: Likewise.
62704         * lib/i-ring.c: Likewise.
62705         * lib/i-ring.h: Likewise.
62706         * lib/idcache.c: Likewise.
62707         * lib/imaxabs.c: Likewise.
62708         * lib/imaxdiv.c: Likewise.
62709         * lib/inet_pton.c: Likewise.
62710         * lib/inet_pton.h: Likewise.
62711         * lib/intprops.h: Likewise.
62712         * lib/inttostr.c: Likewise.
62713         * lib/inttostr.h: Likewise.
62714         * lib/inttypes.in.h: Likewise.
62715         * lib/isapipe.c: Likewise.
62716         * lib/isdir.c: Likewise.
62717         * lib/isnan.c: Likewise.
62718         * lib/isnan.h: Likewise.
62719         * lib/isnanf.c: Likewise.
62720         * lib/isnanf.h: Likewise.
62721         * lib/isnanl-nolibm.h: Likewise.
62722         * lib/isnanl.c: Likewise.
62723         * lib/isnanl.h: Likewise.
62724         * lib/javacomp.c: Likewise.
62725         * lib/javacomp.h: Likewise.
62726         * lib/javaexec.c: Likewise.
62727         * lib/javaexec.h: Likewise.
62728         * lib/javaversion.c: Likewise.
62729         * lib/javaversion.h: Likewise.
62730         * lib/javaversion.java: Likewise.
62731         * lib/lbrkprop.h: Likewise.
62732         * lib/lchmod.h: Likewise.
62733         * lib/lchown.c: Likewise.
62734         * lib/ldexpl.c: Likewise.
62735         * lib/linebreak.c: Likewise.
62736         * lib/linebreak.h: Likewise.
62737         * lib/linebuffer.c: Likewise.
62738         * lib/linebuffer.h: Likewise.
62739         * lib/locale.in.h: Likewise.
62740         * lib/logl.c: Likewise.
62741         * lib/long-options.c: Likewise.
62742         * lib/long-options.h: Likewise.
62743         * lib/lstat.c: Likewise.
62744         * lib/lstat.h: Likewise.
62745         * lib/math.in.h: Likewise.
62746         * lib/mbchar.c: Likewise.
62747         * lib/mbchar.h: Likewise.
62748         * lib/mbfile.h: Likewise.
62749         * lib/mbiter.h: Likewise.
62750         * lib/mbscasecmp.c: Likewise.
62751         * lib/mbscasestr.c: Likewise.
62752         * lib/mbschr.c: Likewise.
62753         * lib/mbscspn.c: Likewise.
62754         * lib/mbslen.c: Likewise.
62755         * lib/mbsncasecmp.c: Likewise.
62756         * lib/mbsnlen.c: Likewise.
62757         * lib/mbspbrk.c: Likewise.
62758         * lib/mbspcasecmp.c: Likewise.
62759         * lib/mbsrchr.c: Likewise.
62760         * lib/mbssep.c: Likewise.
62761         * lib/mbsspn.c: Likewise.
62762         * lib/mbsstr.c: Likewise.
62763         * lib/mbstok_r.c: Likewise.
62764         * lib/mbswidth.c: Likewise.
62765         * lib/mbswidth.h: Likewise.
62766         * lib/mbuiter.h: Likewise.
62767         * lib/memcasecmp.c: Likewise.
62768         * lib/memcasecmp.h: Likewise.
62769         * lib/memchr.c: Likewise.
62770         * lib/memcmp.c: Likewise.
62771         * lib/memcoll.c: Likewise.
62772         * lib/memcoll.h: Likewise.
62773         * lib/memcpy.c: Likewise.
62774         * lib/memrchr.c: Likewise.
62775         * lib/mkancesdirs.c: Likewise.
62776         * lib/mkdir-p.c: Likewise.
62777         * lib/mkdir-p.h: Likewise.
62778         * lib/mkdir.c: Likewise.
62779         * lib/mkdirat.c: Likewise.
62780         * lib/mkdtemp.c: Likewise.
62781         * lib/mkstemp-safer.c: Likewise.
62782         * lib/mkstemp.c: Likewise.
62783         * lib/modechange.c: Likewise.
62784         * lib/modechange.h: Likewise.
62785         * lib/mountlist.c: Likewise.
62786         * lib/mountlist.h: Likewise.
62787         * lib/mpsort.c: Likewise.
62788         * lib/nanosleep.c: Likewise.
62789         * lib/obstack.c: Likewise.
62790         * lib/obstack.h: Likewise.
62791         * lib/open-safer.c: Likewise.
62792         * lib/open.c: Likewise.
62793         * lib/openat-die.c: Likewise.
62794         * lib/openat-priv.h: Likewise.
62795         * lib/openat-proc.c: Likewise.
62796         * lib/openat.c: Likewise.
62797         * lib/openat.h: Likewise.
62798         * lib/pagealign_alloc.c: Likewise.
62799         * lib/pagealign_alloc.h: Likewise.
62800         * lib/physmem.c: Likewise.
62801         * lib/physmem.h: Likewise.
62802         * lib/pipe-safer.c: Likewise.
62803         * lib/pipe.c: Likewise.
62804         * lib/pipe.h: Likewise.
62805         * lib/posixtm.c: Likewise.
62806         * lib/posixtm.h: Likewise.
62807         * lib/posixver.c: Likewise.
62808         * lib/printf-frexp.c: Likewise.
62809         * lib/printf-frexp.h: Likewise.
62810         * lib/printf-frexpl.c: Likewise.
62811         * lib/printf-frexpl.h: Likewise.
62812         * lib/printf.c: Likewise.
62813         * lib/progname.c: Likewise.
62814         * lib/progname.h: Likewise.
62815         * lib/progreloc.c: Likewise.
62816         * lib/putenv.c: Likewise.
62817         * lib/quote.c: Likewise.
62818         * lib/quote.h: Likewise.
62819         * lib/quotearg.c: Likewise.
62820         * lib/quotearg.h: Likewise.
62821         * lib/raise.c: Likewise.
62822         * lib/readline.c: Likewise.
62823         * lib/readline.h: Likewise.
62824         * lib/readlink.c: Likewise.
62825         * lib/readtokens.c: Likewise.
62826         * lib/readtokens.h: Likewise.
62827         * lib/readtokens0.c: Likewise.
62828         * lib/readtokens0.h: Likewise.
62829         * lib/readutmp.c: Likewise.
62830         * lib/readutmp.h: Likewise.
62831         * lib/realloc.c: Likewise.
62832         * lib/relocwrapper.c: Likewise.
62833         * lib/rename-dest-slash.c: Likewise.
62834         * lib/rename.c: Likewise.
62835         * lib/rmdir.c: Likewise.
62836         * lib/rpmatch.c: Likewise.
62837         * lib/safe-read.c: Likewise.
62838         * lib/safe-read.h: Likewise.
62839         * lib/safe-write.c: Likewise.
62840         * lib/safe-write.h: Likewise.
62841         * lib/same-inode.h: Likewise.
62842         * lib/same.c: Likewise.
62843         * lib/same.h: Likewise.
62844         * lib/save-cwd.c: Likewise.
62845         * lib/save-cwd.h: Likewise.
62846         * lib/savedir.c: Likewise.
62847         * lib/savedir.h: Likewise.
62848         * lib/savewd.c: Likewise.
62849         * lib/savewd.h: Likewise.
62850         * lib/search.in.h: Likewise.
62851         * lib/setenv.c: Likewise.
62852         * lib/setenv.h: Likewise.
62853         * lib/settime.c: Likewise.
62854         * lib/sh-quote.c: Likewise.
62855         * lib/sh-quote.h: Likewise.
62856         * lib/sig2str.c: Likewise.
62857         * lib/sig2str.h: Likewise.
62858         * lib/signal.in.h: Likewise.
62859         * lib/signbitd.c: Likewise.
62860         * lib/signbitf.c: Likewise.
62861         * lib/signbitl.c: Likewise.
62862         * lib/sigprocmask.c: Likewise.
62863         * lib/sincosl.c: Likewise.
62864         * lib/sleep.c: Likewise.
62865         * lib/sprintf.c: Likewise.
62866         * lib/sqrtl.c: Likewise.
62867         * lib/stat-time.h: Likewise.
62868         * lib/stdio--.h: Likewise.
62869         * lib/stdio-safer.h: Likewise.
62870         * lib/stdlib--.h: Likewise.
62871         * lib/stdlib-safer.h: Likewise.
62872         * lib/stdlib.in.h: Likewise.
62873         * lib/stpcpy.c: Likewise.
62874         * lib/stpncpy.c: Likewise.
62875         * lib/strchrnul.c: Likewise.
62876         * lib/strcspn.c: Likewise.
62877         * lib/strerror.c: Likewise.
62878         * lib/strftime.c: Likewise.
62879         * lib/strftime.h: Likewise.
62880         * lib/striconveh.c: Likewise.
62881         * lib/striconveh.h: Likewise.
62882         * lib/striconveha.c: Likewise.
62883         * lib/striconveha.h: Likewise.
62884         * lib/stripslash.c: Likewise.
62885         * lib/strnlen1.c: Likewise.
62886         * lib/strnlen1.h: Likewise.
62887         * lib/strtod.c: Likewise.
62888         * lib/strtoimax.c: Likewise.
62889         * lib/strtok_r.c: Likewise.
62890         * lib/strtol.c: Likewise.
62891         * lib/strtoll.c: Likewise.
62892         * lib/strtoul.c: Likewise.
62893         * lib/strtoull.c: Likewise.
62894         * lib/sysexits.in.h: Likewise.
62895         * lib/tempname.c: Likewise.
62896         * lib/tempname.h: Likewise.
62897         * lib/timespec.h: Likewise.
62898         * lib/tls.c: Likewise.
62899         * lib/tls.h: Likewise.
62900         * lib/tmpdir.c: Likewise.
62901         * lib/tmpdir.h: Likewise.
62902         * lib/tmpfile-safer.c: Likewise.
62903         * lib/tmpfile.c: Likewise.
62904         * lib/trigl.c: Likewise.
62905         * lib/trigl.h: Likewise.
62906         * lib/trim.c: Likewise.
62907         * lib/trim.h: Likewise.
62908         * lib/trunc.c: Likewise.
62909         * lib/truncf.c: Likewise.
62910         * lib/truncl.c: Likewise.
62911         * lib/tsearch.c: Likewise.
62912         * lib/unicodeio.c: Likewise.
62913         * lib/unicodeio.h: Likewise.
62914         * lib/unistd--.h: Likewise.
62915         * lib/unistd-safer.h: Likewise.
62916         * lib/unistdio/ulc-fprintf.c: Likewise.
62917         * lib/unistdio/ulc-vfprintf.c: Likewise.
62918         * lib/unlinkdir.c: Likewise.
62919         * lib/unlinkdir.h: Likewise.
62920         * lib/unlocked-io.h: Likewise.
62921         * lib/unsetenv.c: Likewise.
62922         * lib/userspec.c: Likewise.
62923         * lib/utime.c: Likewise.
62924         * lib/utimecmp.c: Likewise.
62925         * lib/utimecmp.h: Likewise.
62926         * lib/utimens.c: Likewise.
62927         * lib/verify.h: Likewise.
62928         * lib/verror.c: Likewise.
62929         * lib/verror.h: Likewise.
62930         * lib/version-etc-fsf.c: Likewise.
62931         * lib/version-etc.c: Likewise.
62932         * lib/version-etc.h: Likewise.
62933         * lib/vfprintf.c: Likewise.
62934         * lib/vprintf.c: Likewise.
62935         * lib/vsprintf.c: Likewise.
62936         * lib/w32spawn.h: Likewise.
62937         * lib/wait-process.c: Likewise.
62938         * lib/wait-process.h: Likewise.
62939         * lib/wcwidth.c: Likewise.
62940         * lib/write-any-file.c: Likewise.
62941         * lib/xalloc-die.c: Likewise.
62942         * lib/xalloc.h: Likewise.
62943         * lib/xasprintf.c: Likewise.
62944         * lib/xgetcwd.c: Likewise.
62945         * lib/xgetcwd.h: Likewise.
62946         * lib/xgetdomainname.c: Likewise.
62947         * lib/xgetdomainname.h: Likewise.
62948         * lib/xgethostname.c: Likewise.
62949         * lib/xmalloc.c: Likewise.
62950         * lib/xmalloca.c: Likewise.
62951         * lib/xmalloca.h: Likewise.
62952         * lib/xmemcoll.c: Likewise.
62953         * lib/xnanosleep.c: Likewise.
62954         * lib/xreadlink.c: Likewise.
62955         * lib/xreadlink.h: Likewise.
62956         * lib/xsetenv.c: Likewise.
62957         * lib/xsetenv.h: Likewise.
62958         * lib/xstriconv.c: Likewise.
62959         * lib/xstriconv.h: Likewise.
62960         * lib/xstrndup.c: Likewise.
62961         * lib/xstrndup.h: Likewise.
62962         * lib/xstrtod.c: Likewise.
62963         * lib/xstrtod.h: Likewise.
62964         * lib/xstrtol-error.c: Likewise.
62965         * lib/xstrtol.c: Likewise.
62966         * lib/xstrtol.h: Likewise.
62967         * lib/xtime.h: Likewise.
62968         * lib/xvasprintf.c: Likewise.
62969         * lib/xvasprintf.h: Likewise.
62970         * lib/yesno.c: Likewise.
62971         * lib/yesno.h: Likewise.
62972         * posix-modules: Likewise.
62973         * tests/test-alloca-opt.c: Likewise.
62974         * tests/test-arcfour.c: Likewise.
62975         * tests/test-arctwo.c: Likewise.
62976         * tests/test-argmatch.c: Likewise.
62977         * tests/test-argp-2.sh: Likewise.
62978         * tests/test-argp.c: Likewise.
62979         * tests/test-arpa_inet.c: Likewise.
62980         * tests/test-array_list.c: Likewise.
62981         * tests/test-array_oset.c: Likewise.
62982         * tests/test-atexit.c: Likewise.
62983         * tests/test-avltree_list.c: Likewise.
62984         * tests/test-avltree_oset.c: Likewise.
62985         * tests/test-avltreehash_list.c: Likewise.
62986         * tests/test-base64.c: Likewise.
62987         * tests/test-binary-io.c: Likewise.
62988         * tests/test-byteswap.c: Likewise.
62989         * tests/test-c-ctype.c: Likewise.
62990         * tests/test-c-strcasecmp.c: Likewise.
62991         * tests/test-c-strcasestr.c: Likewise.
62992         * tests/test-c-strncasecmp.c: Likewise.
62993         * tests/test-c-strstr.c: Likewise.
62994         * tests/test-canonicalize-lgpl.c: Likewise.
62995         * tests/test-canonicalize.c: Likewise.
62996         * tests/test-carray_list.c: Likewise.
62997         * tests/test-ceilf.c: Likewise.
62998         * tests/test-ceill.c: Likewise.
62999         * tests/test-count-one-bits.c: Likewise.
63000         * tests/test-crc.c: Likewise.
63001         * tests/test-dirname.c: Likewise.
63002         * tests/test-fbufmode.c: Likewise.
63003         * tests/test-fcntl.c: Likewise.
63004         * tests/test-fflush.c: Likewise.
63005         * tests/test-floorf.c: Likewise.
63006         * tests/test-floorl.c: Likewise.
63007         * tests/test-fopen.c: Likewise.
63008         * tests/test-fprintf-posix.c: Likewise.
63009         * tests/test-fprintf-posix.h: Likewise.
63010         * tests/test-fpurge.c: Likewise.
63011         * tests/test-freadable.c: Likewise.
63012         * tests/test-freadahead.c: Likewise.
63013         * tests/test-freading.c: Likewise.
63014         * tests/test-freopen.c: Likewise.
63015         * tests/test-frexp.c: Likewise.
63016         * tests/test-frexpl.c: Likewise.
63017         * tests/test-fseek.c: Likewise.
63018         * tests/test-fseeko.c: Likewise.
63019         * tests/test-fseterr.c: Likewise.
63020         * tests/test-fstrcmp.c: Likewise.
63021         * tests/test-ftell.c: Likewise.
63022         * tests/test-ftello.c: Likewise.
63023         * tests/test-fwritable.c: Likewise.
63024         * tests/test-fwriting.c: Likewise.
63025         * tests/test-getaddrinfo.c: Likewise.
63026         * tests/test-getpass.c: Likewise.
63027         * tests/test-gettimeofday.c: Likewise.
63028         * tests/test-hmac-md5.c: Likewise.
63029         * tests/test-hmac-sha1.c: Likewise.
63030         * tests/test-iconv.c: Likewise.
63031         * tests/test-iconvme.c: Likewise.
63032         * tests/test-inttypes.c: Likewise.
63033         * tests/test-isnan.c: Likewise.
63034         * tests/test-isnanf.c: Likewise.
63035         * tests/test-isnanl-nolibm.c: Likewise.
63036         * tests/test-isnanl.c: Likewise.
63037         * tests/test-isnanl.h: Likewise.
63038         * tests/test-ldexpl.c: Likewise.
63039         * tests/test-linked_list.c: Likewise.
63040         * tests/test-linkedhash_list.c: Likewise.
63041         * tests/test-locale.c: Likewise.
63042         * tests/test-localename.c: Likewise.
63043         * tests/test-lock.c: Likewise.
63044         * tests/test-lseek.c: Likewise.
63045         * tests/test-malloca.c: Likewise.
63046         * tests/test-math.c: Likewise.
63047         * tests/test-mbscasecmp.c: Likewise.
63048         * tests/test-mbscasestr1.c: Likewise.
63049         * tests/test-mbscasestr2.c: Likewise.
63050         * tests/test-mbscasestr3.c: Likewise.
63051         * tests/test-mbscasestr4.c: Likewise.
63052         * tests/test-mbschr.c: Likewise.
63053         * tests/test-mbscspn.c: Likewise.
63054         * tests/test-mbsncasecmp.c: Likewise.
63055         * tests/test-mbspbrk.c: Likewise.
63056         * tests/test-mbspcasecmp.c: Likewise.
63057         * tests/test-mbsrchr.c: Likewise.
63058         * tests/test-mbsspn.c: Likewise.
63059         * tests/test-mbsstr1.c: Likewise.
63060         * tests/test-mbsstr2.c: Likewise.
63061         * tests/test-mbsstr3.c: Likewise.
63062         * tests/test-md5.c: Likewise.
63063         * tests/test-memmem.c: Likewise.
63064         * tests/test-netinet_in.c: Likewise.
63065         * tests/test-open.c: Likewise.
63066         * tests/test-printf-frexp.c: Likewise.
63067         * tests/test-printf-frexpl.c: Likewise.
63068         * tests/test-printf-posix.c: Likewise.
63069         * tests/test-printf-posix.h: Likewise.
63070         * tests/test-rbtree_list.c: Likewise.
63071         * tests/test-rbtree_oset.c: Likewise.
63072         * tests/test-rbtreehash_list.c: Likewise.
63073         * tests/test-read-file.c: Likewise.
63074         * tests/test-rijndael.c: Likewise.
63075         * tests/test-search.c: Likewise.
63076         * tests/test-signbit.c: Likewise.
63077         * tests/test-sleep.c: Likewise.
63078         * tests/test-snprintf-posix.c: Likewise.
63079         * tests/test-snprintf-posix.h: Likewise.
63080         * tests/test-snprintf.c: Likewise.
63081         * tests/test-sprintf-posix.c: Likewise.
63082         * tests/test-sprintf-posix.h: Likewise.
63083         * tests/test-stat-time.c: Likewise.
63084         * tests/test-stdbool.c: Likewise.
63085         * tests/test-stdint.c: Likewise.
63086         * tests/test-stdio.c: Likewise.
63087         * tests/test-stdlib.c: Likewise.
63088         * tests/test-stpncpy.c: Likewise.
63089         * tests/test-strcasestr.c: Likewise.
63090         * tests/test-striconv.c: Likewise.
63091         * tests/test-striconveh.c: Likewise.
63092         * tests/test-striconveha.c: Likewise.
63093         * tests/test-string.c: Likewise.
63094         * tests/test-sys_select.c: Likewise.
63095         * tests/test-sys_socket.c: Likewise.
63096         * tests/test-sys_stat.c: Likewise.
63097         * tests/test-sys_time.c: Likewise.
63098         * tests/test-sysexits.c: Likewise.
63099         * tests/test-time.c: Likewise.
63100         * tests/test-tls.c: Likewise.
63101         * tests/test-trunc.c: Likewise.
63102         * tests/test-truncf.c: Likewise.
63103         * tests/test-truncl.c: Likewise.
63104         * tests/test-unistd.c: Likewise.
63105         * tests/test-vasnprintf-posix.c: Likewise.
63106         * tests/test-vasnprintf-posix2.c: Likewise.
63107         * tests/test-vasnprintf.c: Likewise.
63108         * tests/test-vasprintf-posix.c: Likewise.
63109         * tests/test-vasprintf.c: Likewise.
63110         * tests/test-verify.c: Likewise.
63111         * tests/test-vfprintf-posix.c: Likewise.
63112         * tests/test-vprintf-posix.c: Likewise.
63113         * tests/test-vsnprintf-posix.c: Likewise.
63114         * tests/test-vsnprintf.c: Likewise.
63115         * tests/test-vsprintf-posix.c: Likewise.
63116         * tests/test-wchar.c: Likewise.
63117         * tests/test-wctype.c: Likewise.
63118         * tests/test-wcwidth.c: Likewise.
63119         * tests/test-xstrtol.c: Likewise.
63120         * tests/test-xvasprintf.c: Likewise.
63121         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63122         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63123         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63124         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63125         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63126         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63127         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63128         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63129         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63130         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63131         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63132         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63133         * tests/uniname/test-uninames.c: Likewise.
63134         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63135         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63136         * tests/unistdio/test-u16-printf1.h: Likewise.
63137         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63138         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63139         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63140         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63141         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63142         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63143         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63144         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63145         * tests/unistdio/test-u32-printf1.h: Likewise.
63146         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63147         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63148         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63149         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63150         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63151         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63152         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63153         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63154         * tests/unistdio/test-u8-printf1.h: Likewise.
63155         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63156         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63157         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63158         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63159         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63160         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63161         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63162         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63163         * tests/unistdio/test-ulc-printf1.h: Likewise.
63164         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63165         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63166         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63167         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63168         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63169         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63170         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63171         * tests/uniwidth/test-u16-width.c: Likewise.
63172         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63173         * tests/uniwidth/test-u32-width.c: Likewise.
63174         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63175         * tests/uniwidth/test-u8-width.c: Likewise.
63176         * tests/uniwidth/test-uc_width.c: Likewise.
63177         * config/srclist-update: Likewise.
63178         (fixlicense): Update to GPLv3+.
63179
63180         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63181         * tests/test-tsearch.c: Change copyright notice.
63182
63183         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63184         * lib/c-strcaseeq.h: Change copyright notice.
63185         * lib/streq.h: Likewise.
63186         * lib/uniconv.h: Likewise.
63187         * lib/uniconv/u-conv-from-enc.h: Likewise.
63188         * lib/uniconv/u-conv-to-enc.h: Likewise.
63189         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63190         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63191         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63192         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63193         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63194         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63195         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63196         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63197         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63198         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63199         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63200         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63201         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63202         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63203         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63204         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63205         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63206         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63207         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63208         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63209         * lib/uniname.h: Likewise.
63210         * lib/uniname/uniname.c: Likewise.
63211         * lib/unistdio.h: Likewise.
63212         * lib/unistdio/u-asnprintf.h: Likewise.
63213         * lib/unistdio/u-asprintf.h: Likewise.
63214         * lib/unistdio/u-printf-args.c: Likewise.
63215         * lib/unistdio/u-printf-args.h: Likewise.
63216         * lib/unistdio/u-printf-parse.h: Likewise.
63217         * lib/unistdio/u-snprintf.h: Likewise.
63218         * lib/unistdio/u-sprintf.h: Likewise.
63219         * lib/unistdio/u-vasprintf.h: Likewise.
63220         * lib/unistdio/u-vsnprintf.h: Likewise.
63221         * lib/unistdio/u-vsprintf.h: Likewise.
63222         * lib/unistdio/u16-asnprintf.c: Likewise.
63223         * lib/unistdio/u16-asprintf.c: Likewise.
63224         * lib/unistdio/u16-printf-parse.c: Likewise.
63225         * lib/unistdio/u16-snprintf.c: Likewise.
63226         * lib/unistdio/u16-sprintf.c: Likewise.
63227         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63228         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63229         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63230         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63231         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63232         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63233         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63234         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63235         * lib/unistdio/u16-vasnprintf.c: Likewise.
63236         * lib/unistdio/u16-vasprintf.c: Likewise.
63237         * lib/unistdio/u16-vsnprintf.c: Likewise.
63238         * lib/unistdio/u16-vsprintf.c: Likewise.
63239         * lib/unistdio/u32-asnprintf.c: Likewise.
63240         * lib/unistdio/u32-asprintf.c: Likewise.
63241         * lib/unistdio/u32-printf-parse.c: Likewise.
63242         * lib/unistdio/u32-snprintf.c: Likewise.
63243         * lib/unistdio/u32-sprintf.c: Likewise.
63244         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63245         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63246         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63247         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63248         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63249         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63250         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63251         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63252         * lib/unistdio/u32-vasnprintf.c: Likewise.
63253         * lib/unistdio/u32-vasprintf.c: Likewise.
63254         * lib/unistdio/u32-vsnprintf.c: Likewise.
63255         * lib/unistdio/u32-vsprintf.c: Likewise.
63256         * lib/unistdio/u8-asnprintf.c: Likewise.
63257         * lib/unistdio/u8-asprintf.c: Likewise.
63258         * lib/unistdio/u8-printf-parse.c: Likewise.
63259         * lib/unistdio/u8-snprintf.c: Likewise.
63260         * lib/unistdio/u8-sprintf.c: Likewise.
63261         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63262         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63263         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63264         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63265         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63266         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63267         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63268         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63269         * lib/unistdio/u8-vasnprintf.c: Likewise.
63270         * lib/unistdio/u8-vasprintf.c: Likewise.
63271         * lib/unistdio/u8-vsnprintf.c: Likewise.
63272         * lib/unistdio/u8-vsprintf.c: Likewise.
63273         * lib/unistdio/ulc-asnprintf.c: Likewise.
63274         * lib/unistdio/ulc-asprintf.c: Likewise.
63275         * lib/unistdio/ulc-printf-parse.c: Likewise.
63276         * lib/unistdio/ulc-snprintf.c: Likewise.
63277         * lib/unistdio/ulc-sprintf.c: Likewise.
63278         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63279         * lib/unistdio/ulc-vasprintf.c: Likewise.
63280         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63281         * lib/unistdio/ulc-vsprintf.c: Likewise.
63282         * lib/unistr.h: Likewise.
63283         * lib/unistr/u-cpy-alloc.h: Likewise.
63284         * lib/unistr/u-cpy.h: Likewise.
63285         * lib/unistr/u-endswith.h: Likewise.
63286         * lib/unistr/u-move.h: Likewise.
63287         * lib/unistr/u-set.h: Likewise.
63288         * lib/unistr/u-startswith.h: Likewise.
63289         * lib/unistr/u-stpcpy.h: Likewise.
63290         * lib/unistr/u-stpncpy.h: Likewise.
63291         * lib/unistr/u-strcat.h: Likewise.
63292         * lib/unistr/u-strcpy.h: Likewise.
63293         * lib/unistr/u-strcspn.h: Likewise.
63294         * lib/unistr/u-strdup.h: Likewise.
63295         * lib/unistr/u-strlen.h: Likewise.
63296         * lib/unistr/u-strncat.h: Likewise.
63297         * lib/unistr/u-strncpy.h: Likewise.
63298         * lib/unistr/u-strnlen.h: Likewise.
63299         * lib/unistr/u-strpbrk.h: Likewise.
63300         * lib/unistr/u-strspn.h: Likewise.
63301         * lib/unistr/u-strstr.h: Likewise.
63302         * lib/unistr/u-strtok.h: Likewise.
63303         * lib/unistr/u16-check.c: Likewise.
63304         * lib/unistr/u16-chr.c: Likewise.
63305         * lib/unistr/u16-cmp.c: Likewise.
63306         * lib/unistr/u16-cpy-alloc.c: Likewise.
63307         * lib/unistr/u16-cpy.c: Likewise.
63308         * lib/unistr/u16-endswith.c: Likewise.
63309         * lib/unistr/u16-mblen.c: Likewise.
63310         * lib/unistr/u16-mbsnlen.c: Likewise.
63311         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63312         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63313         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63314         * lib/unistr/u16-mbtouc.c: Likewise.
63315         * lib/unistr/u16-mbtoucr.c: Likewise.
63316         * lib/unistr/u16-move.c: Likewise.
63317         * lib/unistr/u16-next.c: Likewise.
63318         * lib/unistr/u16-prev.c: Likewise.
63319         * lib/unistr/u16-set.c: Likewise.
63320         * lib/unistr/u16-startswith.c: Likewise.
63321         * lib/unistr/u16-stpcpy.c: Likewise.
63322         * lib/unistr/u16-stpncpy.c: Likewise.
63323         * lib/unistr/u16-strcat.c: Likewise.
63324         * lib/unistr/u16-strchr.c: Likewise.
63325         * lib/unistr/u16-strcmp.c: Likewise.
63326         * lib/unistr/u16-strcpy.c: Likewise.
63327         * lib/unistr/u16-strcspn.c: Likewise.
63328         * lib/unistr/u16-strdup.c: Likewise.
63329         * lib/unistr/u16-strlen.c: Likewise.
63330         * lib/unistr/u16-strmblen.c: Likewise.
63331         * lib/unistr/u16-strmbtouc.c: Likewise.
63332         * lib/unistr/u16-strncat.c: Likewise.
63333         * lib/unistr/u16-strncmp.c: Likewise.
63334         * lib/unistr/u16-strncpy.c: Likewise.
63335         * lib/unistr/u16-strnlen.c: Likewise.
63336         * lib/unistr/u16-strpbrk.c: Likewise.
63337         * lib/unistr/u16-strrchr.c: Likewise.
63338         * lib/unistr/u16-strspn.c: Likewise.
63339         * lib/unistr/u16-strstr.c: Likewise.
63340         * lib/unistr/u16-strtok.c: Likewise.
63341         * lib/unistr/u16-to-u32.c: Likewise.
63342         * lib/unistr/u16-to-u8.c: Likewise.
63343         * lib/unistr/u16-uctomb-aux.c: Likewise.
63344         * lib/unistr/u16-uctomb.c: Likewise.
63345         * lib/unistr/u32-check.c: Likewise.
63346         * lib/unistr/u32-chr.c: Likewise.
63347         * lib/unistr/u32-cmp.c: Likewise.
63348         * lib/unistr/u32-cpy-alloc.c: Likewise.
63349         * lib/unistr/u32-cpy.c: Likewise.
63350         * lib/unistr/u32-endswith.c: Likewise.
63351         * lib/unistr/u32-mblen.c: Likewise.
63352         * lib/unistr/u32-mbsnlen.c: Likewise.
63353         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63354         * lib/unistr/u32-mbtouc.c: Likewise.
63355         * lib/unistr/u32-mbtoucr.c: Likewise.
63356         * lib/unistr/u32-move.c: Likewise.
63357         * lib/unistr/u32-next.c: Likewise.
63358         * lib/unistr/u32-prev.c: Likewise.
63359         * lib/unistr/u32-set.c: Likewise.
63360         * lib/unistr/u32-startswith.c: Likewise.
63361         * lib/unistr/u32-stpcpy.c: Likewise.
63362         * lib/unistr/u32-stpncpy.c: Likewise.
63363         * lib/unistr/u32-strcat.c: Likewise.
63364         * lib/unistr/u32-strchr.c: Likewise.
63365         * lib/unistr/u32-strcmp.c: Likewise.
63366         * lib/unistr/u32-strcpy.c: Likewise.
63367         * lib/unistr/u32-strcspn.c: Likewise.
63368         * lib/unistr/u32-strdup.c: Likewise.
63369         * lib/unistr/u32-strlen.c: Likewise.
63370         * lib/unistr/u32-strmblen.c: Likewise.
63371         * lib/unistr/u32-strmbtouc.c: Likewise.
63372         * lib/unistr/u32-strncat.c: Likewise.
63373         * lib/unistr/u32-strncmp.c: Likewise.
63374         * lib/unistr/u32-strncpy.c: Likewise.
63375         * lib/unistr/u32-strnlen.c: Likewise.
63376         * lib/unistr/u32-strpbrk.c: Likewise.
63377         * lib/unistr/u32-strrchr.c: Likewise.
63378         * lib/unistr/u32-strspn.c: Likewise.
63379         * lib/unistr/u32-strstr.c: Likewise.
63380         * lib/unistr/u32-strtok.c: Likewise.
63381         * lib/unistr/u32-to-u16.c: Likewise.
63382         * lib/unistr/u32-to-u8.c: Likewise.
63383         * lib/unistr/u32-uctomb.c: Likewise.
63384         * lib/unistr/u8-check.c: Likewise.
63385         * lib/unistr/u8-chr.c: Likewise.
63386         * lib/unistr/u8-cmp.c: Likewise.
63387         * lib/unistr/u8-cpy-alloc.c: Likewise.
63388         * lib/unistr/u8-cpy.c: Likewise.
63389         * lib/unistr/u8-endswith.c: Likewise.
63390         * lib/unistr/u8-mblen.c: Likewise.
63391         * lib/unistr/u8-mbsnlen.c: Likewise.
63392         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63393         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63394         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63395         * lib/unistr/u8-mbtouc.c: Likewise.
63396         * lib/unistr/u8-mbtoucr.c: Likewise.
63397         * lib/unistr/u8-move.c: Likewise.
63398         * lib/unistr/u8-next.c: Likewise.
63399         * lib/unistr/u8-prev.c: Likewise.
63400         * lib/unistr/u8-set.c: Likewise.
63401         * lib/unistr/u8-startswith.c: Likewise.
63402         * lib/unistr/u8-stpcpy.c: Likewise.
63403         * lib/unistr/u8-stpncpy.c: Likewise.
63404         * lib/unistr/u8-strcat.c: Likewise.
63405         * lib/unistr/u8-strchr.c: Likewise.
63406         * lib/unistr/u8-strcmp.c: Likewise.
63407         * lib/unistr/u8-strcpy.c: Likewise.
63408         * lib/unistr/u8-strcspn.c: Likewise.
63409         * lib/unistr/u8-strdup.c: Likewise.
63410         * lib/unistr/u8-strlen.c: Likewise.
63411         * lib/unistr/u8-strmblen.c: Likewise.
63412         * lib/unistr/u8-strmbtouc.c: Likewise.
63413         * lib/unistr/u8-strncat.c: Likewise.
63414         * lib/unistr/u8-strncmp.c: Likewise.
63415         * lib/unistr/u8-strncpy.c: Likewise.
63416         * lib/unistr/u8-strnlen.c: Likewise.
63417         * lib/unistr/u8-strpbrk.c: Likewise.
63418         * lib/unistr/u8-strrchr.c: Likewise.
63419         * lib/unistr/u8-strspn.c: Likewise.
63420         * lib/unistr/u8-strstr.c: Likewise.
63421         * lib/unistr/u8-strtok.c: Likewise.
63422         * lib/unistr/u8-to-u16.c: Likewise.
63423         * lib/unistr/u8-to-u32.c: Likewise.
63424         * lib/unistr/u8-uctomb-aux.c: Likewise.
63425         * lib/unistr/u8-uctomb.c: Likewise.
63426         * lib/unitypes.h: Likewise.
63427         * lib/uniwidth.h: Likewise.
63428         * lib/uniwidth/cjk.h: Likewise.
63429         * lib/uniwidth/u16-strwidth.c: Likewise.
63430         * lib/uniwidth/u16-width.c: Likewise.
63431         * lib/uniwidth/u32-strwidth.c: Likewise.
63432         * lib/uniwidth/u32-width.c: Likewise.
63433         * lib/uniwidth/u8-strwidth.c: Likewise.
63434         * lib/uniwidth/u8-width.c: Likewise.
63435         * lib/uniwidth/width.c: Likewise.
63436
63437 2007-10-07  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63440         The file is still under LGPL (see modules/inttypes).
63441
63442 2007-10-06  Bruno Haible  <bruno@clisp.org>
63443
63444         * modules/trunc (Dependencies): Add 'extensions'.
63445         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63446         Reported by Ben Pfaff <blp@gnu.org>.
63447
63448 2007-10-06  Bruno Haible  <bruno@clisp.org>
63449
63450         * modules/freopen-tests: New file.
63451         * tests/test-freopen.c: New file.
63452
63453         * modules/fopen-tests: New file.
63454         * tests/test-fopen.c: New file.
63455
63456         * modules/fopen: New file.
63457         * lib/fopen.c: New file.
63458         * m4/fopen.m4: New file.
63459         * modules/freopen: New file.
63460         * lib/freopen.c: New file.
63461         * m4/freopen.m4: New file.
63462         * lib/stdio.in.h (fopen, freopen): New declarations.
63463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63464         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63465         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63466         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63467         * doc/functions/fopen.texi: Mention the 'fopen' module.
63468         * doc/functions/freopen.texi: Mention the 'freopen' module.
63469
63470 2007-10-06  Bruno Haible  <bruno@clisp.org>
63471
63472         * modules/open-tests: New file.
63473         * tests/test-open.c: New file.
63474
63475         * modules/open: New file.
63476         * lib/open.c: New file.
63477         * m4/open.m4: New file.
63478         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63479         lib/open.c does.
63480         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63481         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63482         macros.
63483         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63484         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63485         REPLACE_OPEN.
63486         * doc/functions/open.texi: Mention the 'open' module.
63487
63488 2007-10-04  Bruno Haible  <bruno@clisp.org>
63489
63490         * modules/ceill-tests: New file.
63491         * tests/test-ceill.c: New file.
63492
63493         * modules/ceill: New file.
63494         * lib/ceill.c: Replace entire file.
63495         * m4/ceill.m4: New file.
63496         * lib/math.in.h (ceill): Replace declaration.
63497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63498         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63499         * doc/functions/ceill.texi: Mention the 'ceill' module.
63500         * modules/mathl (Files): Remove lib/ceill.c.
63501         (Depends-on): Add ceill.
63502
63503 2007-10-04  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/ceilf-tests: New file.
63506         * tests/test-ceilf.c: New file.
63507
63508         * modules/ceilf: New file.
63509         * lib/ceil.c: New file.
63510         * lib/ceilf.c: New file.
63511         * m4/ceilf.m4: New file.
63512         * lib/math.in.h (ceilf): New declaration.
63513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63514         HAVE_DECL_CEILF.
63515         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63516         HAVE_DECL_CEILF.
63517         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63518
63519 2007-10-04  Bruno Haible  <bruno@clisp.org>
63520
63521         * modules/floorl-tests: New file.
63522         * tests/test-floorl.c: New file.
63523
63524         * modules/floorl: New file.
63525         * lib/floorl.c: Replace entire file.
63526         * m4/floorl.m4: New file.
63527         * lib/math.in.h (floorl): Replace declaration.
63528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63529         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63530         * doc/functions/floorl.texi: Mention the 'floorl' module.
63531         * modules/mathl (Files): Remove lib/floorl.c.
63532         (Depends-on): Add floorl.
63533
63534 2007-10-04  Bruno Haible  <bruno@clisp.org>
63535
63536         * modules/floorf-tests: New file.
63537         * tests/test-floorf.c: New file.
63538
63539         * modules/floorf: New file.
63540         * lib/floor.c: New file.
63541         * lib/floorf.c: New file.
63542         * m4/floorf.m4: New file.
63543         * lib/math.in.h (floorf): New declaration.
63544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63545         HAVE_DECL_FLOORF.
63546         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63547         HAVE_DECL_FLOORF.
63548         * doc/functions/floorf.texi: Mention the 'floorf' module.
63549
63550 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63551             Bruno Haible  <bruno@clisp.org>
63552
63553         Advertise for the Git server instead of the CVS server.
63554         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63555         repository instead of the CVS one.
63556         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63557         about all VCS systems generically.
63558         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63559
63560 2007-10-04  Bruno Haible  <bruno@clisp.org>
63561
63562         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63563         means.
63564         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63565
63566 2007-10-04  Bruno Haible  <bruno@clisp.org>
63567
63568         * modules/truncl-tests: New file.
63569         * tests/test-truncl.c: New file.
63570
63571         * modules/truncl: New file.
63572         * lib/truncl.c: New file.
63573         * m4/truncl.m4: New file.
63574         * lib/math.in.h (truncl): New declaration.
63575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63576         HAVE_DECL_TRUNCL.
63577         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63578         HAVE_DECL_TRUNCL.
63579         * doc/functions/truncl.texi: Mention the 'truncl' module.
63580
63581 2007-10-04  Bruno Haible  <bruno@clisp.org>
63582
63583         * modules/truncf-tests: New file.
63584         * tests/test-truncf.c: New file.
63585
63586         * modules/truncf: New file.
63587         * lib/trunc.c: Make paramerizable through USE_* macros.
63588         * lib/truncf.c: New file.
63589         * m4/truncf.m4: New file.
63590         * lib/math.in.h (truncf): New declaration.
63591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63592         HAVE_DECL_TRUNCF.
63593         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63594         HAVE_DECL_TRUNCF.
63595         * doc/functions/truncf.texi: Mention the 'truncf' module.
63596
63597 2007-10-03  Bruno Haible  <bruno@clisp.org>
63598
63599         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63600         augmentation also for tests modules.
63601         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63602         * modules/atexit-tests (Makefile.am): Likewise.
63603         * modules/binary-io-tests (Makefile.am): Likewise.
63604         * modules/c-strcase-tests (Makefile.am): Likewise.
63605         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63606         * modules/canonicalize-tests (Makefile.am): Likewise.
63607         * modules/closein-tests (Makefile.am): Likewise.
63608         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63609         * modules/freadahead-tests (Makefile.am): Likewise.
63610         * modules/fseek-tests (Makefile.am): Likewise.
63611         * modules/fseeko-tests (Makefile.am): Likewise.
63612         * modules/ftell-tests (Makefile.am): Likewise.
63613         * modules/ftello-tests (Makefile.am): Likewise.
63614         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63615         * modules/isnanl-tests (Makefile.am): Likewise.
63616         * modules/lseek-tests (Makefile.am): Likewise.
63617         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63618         * modules/mbscasestr-tests (Makefile.am): Likewise.
63619         * modules/mbschr-tests (Makefile.am): Likewise.
63620         * modules/mbscspn-tests (Makefile.am): Likewise.
63621         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63622         * modules/mbspbrk-tests (Makefile.am): Likewise.
63623         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63624         * modules/mbsrchr-tests (Makefile.am): Likewise.
63625         * modules/mbsspn-tests (Makefile.am): Likewise.
63626         * modules/mbsstr-tests (Makefile.am): Likewise.
63627         * modules/printf-posix-tests (Makefile.am): Likewise.
63628         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63629         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63630         * modules/tsearch-tests (Makefile.am): Likewise.
63631         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63632         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63633         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63634         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63635         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63636         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63637         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63638         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63639         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63640         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63641         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63642         * modules/xstrtol-tests (Makefile.am): Likewise.
63643         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63644         * modules/yesno-tests (Makefile.am): Likewise.
63645
63646 2007-10-03  Bruno Haible  <bruno@clisp.org>
63647
63648         * modules/trunc-tests: New file.
63649         * tests/test-trunc.c: New file.
63650
63651         * modules/trunc: New file.
63652         * lib/trunc.c: New file.
63653         * m4/trunc.m4: New file.
63654         * lib/math.in.h (trunc): New declaration.
63655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63656         HAVE_DECL_TRUNC.
63657         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63658         HAVE_DECL_TRUNC.
63659         * doc/functions/trunc.texi: Mention the 'trunc' module.
63660
63661 2007-10-03  Bruno Haible  <bruno@clisp.org>
63662
63663         * tests/test-fpending.c: New file, mostly copied
63664         from coreutils/lib/t-fpending.c.
63665         * modules/fpending-tests: New file.
63666
63667 2007-10-03  Bruno Haible  <bruno@clisp.org>
63668
63669         Port the stdio extensions to QNX (untested).
63670         * lib/fseterr.c (fseterr): Add support for QNX.
63671         * lib/fbufmode.c (fbufmode): Likewise.
63672         * lib/freadable.c (freadable): Likewise.
63673         * lib/fwritable.c (fwritable): Likewise.
63674         * lib/freading.c (freading): Likewise.
63675         * lib/fwriting.c (fwriting): Likewise.
63676         * lib/freadahead.c (freadahed): Likewise.
63677         * lib/fpurge.c (fpurge): Likewise.
63678         * lib/fseeko.c (rpl_fseeko): Likewise.
63679
63680 2007-10-03  Bruno Haible  <bruno@clisp.org>
63681             Jim Meyering  <jim@meyering.net>
63682             Eric Blake  <ebb9@byu.net>
63683
63684         * doc/relocatable.texi: Use @command instead of @program.
63685
63686 2007-10-02  Jim Meyering  <jim@meyering.net>
63687
63688         Perform one more "_.h" -> ".in.h" substitution.
63689         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63690         instead of unistd_.h here, too.
63691
63692 2007-10-01  Bruno Haible  <bruno@clisp.org>
63693
63694         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63695         Needed for the alloca-opt module.
63696
63697 2007-09-30  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63700         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63701         alloca_.h.
63702         * lib/argz.in.h: Renamed from lib/argz_.h.
63703         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63704         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63705         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63706         byteswap_.h.
63707         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63708         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63709         dirent_.h.
63710         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63711         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63712         fcntl_.h.
63713         * lib/float.in.h: Renamed from lib/float_.h.
63714         * modules/float (Files, Makefile.am): Use float.in.h instead of
63715         float_.h.
63716         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63717         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63718         fnmatch_.h.
63719         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63720         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63721         getopt_.h.
63722         * lib/glob.in.h: Renamed from lib/glob_.h.
63723         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63724         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63725         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63726         iconv_.h.
63727         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63728         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63729         inttypes_.h.
63730         * lib/locale.in.h: Renamed from lib/locale_.h.
63731         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63732         locale_.h.
63733         * lib/math.in.h: Renamed from lib/math_.h.
63734         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63735         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63736         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63737         of netinet_in_.h. Add dependency.
63738         * lib/poll.in.h: Renamed from lib/poll_.h.
63739         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63740         * lib/search.in.h: Renamed from lib/search_.h.
63741         * modules/search (Files, Makefile.am): Use search.in.h instead of
63742         search_.h.
63743         * lib/signal.in.h: Renamed from lib/signal_.h.
63744         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63745         _signal.h.
63746         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63747         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63748         stdbool_.h.
63749         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63750         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63751         stdint_.h.
63752         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63753         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63754         stdio_.h.
63755         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63756         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63757         stdlib_.h.
63758         * lib/string.in.h: Renamed from lib/string_.h.
63759         * modules/string (Files, Makefile.am): Use string.in.h instead of
63760         string_.h.
63761         * doc/gnulib-tool.texi (Initial import): Update.
63762         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63763         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63764         of sys_select_.h. Add dependency.
63765         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63766         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63767         of sys_socket_.h.
63768         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63769         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63770         sys_stat_.h.
63771         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63772         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63773         sys_time_.h.
63774         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63775         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63776         sysexits_.h.
63777         * lib/time.in.h: Renamed from lib/time_.h.
63778         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63779         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63780         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63781         unistd_.h.
63782         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63783         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63784         wchar_.h.
63785         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63786         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63787         wctype_.h.
63788         * build-aux/bootstrap (slurp): Update.
63789         * lib/.cppi-disable: Update.
63790
63791 2007-09-30  Bruno Haible  <bruno@clisp.org>
63792
63793         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63794         Needed on BeOS.
63795
63796 2007-09-30  Bruno Haible  <bruno@clisp.org>
63797
63798         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63799
63800 2007-09-29  Bruno Haible  <bruno@clisp.org>
63801
63802         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63803
63804 2007-09-29  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63807         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63808         * build-aux/install-reloc: Compile also areadlink.c.
63809         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63810
63811 2007-09-29  Bruno Haible  <bruno@clisp.org>
63812
63813         * gnulib-tool (func_emit_initmacro_done): Indentation.
63814
63815 2007-09-29  Bruno Haible  <bruno@clisp.org>
63816
63817         * README: Add CVS checkout update instructions.
63818         Info from Bob Proulx <bob@proulx.com>.
63819
63820 2007-09-28  Eric Blake  <ebb9@byu.net>
63821
63822         Provide move-if-change.
63823         * build-aux/move-if-change: New file, based on best practice
63824         rather than any canonical upstream location.
63825
63826 2007-09-28  Jim Meyering  <jim@meyering.net>
63827
63828         Fix canonicalize loop-detection corner case.
63829         Do not attempt to stat the symlink values stored via seen_triple.
63830         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63831         on linux-2.6.18, (but not 2.6.22).
63832         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63833         triple_compare.  The former compares dev,ino,filename, while the latter
63834         would actually stat dirname(filename) when dev and ino were equal.
63835         * lib/hash-triple.c: Install <string.h>.
63836         (STREQ): Define.
63837         (triple_compare_ino_str): New function.
63838         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63839
63840 2007-09-28  Eric Blake  <ebb9@byu.net>
63841
63842         Enforce that AC_REPLACE_FUNCS files exist.
63843         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63844         override check for typos.
63845
63846         Fix test-closein on Solaris 10.
63847         * tests/test-closein.c (main): Don't assume stdin can be inherited
63848         closed on all systems.
63849         * tests/test-closein.sh: Likewise.
63850         Reported by Piotr Tarnowski.
63851
63852 2007-09-28  Jim Meyering  <jim@meyering.net>
63853
63854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63855
63856 2007-09-27  Jim Meyering  <jim@meyering.net>
63857
63858         canonicalize: Avoid a false-positive cycle failure.
63859         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63860         Sort.  Remove cycle-check.
63861         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63862         not cycle-check.h.
63863         (seen_triple): New function.
63864         (canonicalize_filename_mode): Use it instead of cycle-check.
63865         * tests/test-canonicalize.c: Add a test for this bug.
63866         * tests/test-canonicalize.sh: Set up and run the test.
63867
63868         New module, file-set, from coreutils.
63869         * modules/file-set: Define it.
63870         * lib/file-set.c, lib/file-set.h: Implement.
63871
63872         New module, hash-triple, from coreutils.
63873         * modules/hash-triple: Define it.
63874         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63875
63876 2007-09-25  Eric Blake  <ebb9@byu.net>
63877
63878         Fix strerror on Interix.
63879         * lib/string_.h (strerror): Declare replacement.
63880         * doc/functions/strerror.texi (strerror): Document the Interix
63881         shortcoming.
63882         * modules/string (Makefile.am): Support new hooks.
63883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63884         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63885         gl_FUNC_STRERROR_SEPARATE.
63886         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63887         * lib/strerror.c (rpl_strerror): Provide replacement.
63888         * modules/strerror (Depends-on): Add string.
63889         (configure.ac): Detect use of module.
63890         * tests/test-strerror.c: New file.
63891         * modules/strerror-tests: New test module.
63892         * modules/argp (Depends-on): Add strerror.
63893         * modules/error (Depends-on): Likewise.
63894         Reported by Martin Koeppe.
63895
63896 2007-09-24  Bruno Haible  <bruno@clisp.org>
63897
63898         * README: Update git instructions.
63899
63900 2007-09-24  Eric Blake  <ebb9@byu.net>
63901
63902         Revert fpending breakage from 2007-09-08.
63903         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63904         __fpending.c.
63905
63906 2007-09-24  Jim Meyering  <jim@meyering.net>
63907
63908         filenamecat.c: Add a test.
63909         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63910         showing how the function works when DIR is the empty string.
63911
63912 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63913
63914         * tests/test-canonicalize.sh: Turn on executable bit.
63915
63916 2007-09-19  Eric Blake  <ebb9@byu.net>
63917
63918         * README: Update CVS instructions.
63919
63920 2007-09-18  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/areadlink: New file.
63923         * lib/areadlink.h (areadlink): New declaration.
63924         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63925
63926 2007-09-17  Jim Meyering  <jim@meyering.net>
63927
63928         * lib/savewd.c (ESTALE) [!defined]: Define.
63929         Reported to be required on Interix by Martin Koeppe.
63930
63931 2007-09-17  Bruno Haible  <bruno@clisp.org>
63932
63933         * gnulib-tool (func_version): Use $version.
63934
63935 2007-09-16  Bruno Haible  <bruno@clisp.org>
63936
63937         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63938         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63939         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63940         Reported by Greg Schafer <gschafer@zip.com.au>.
63941
63942 2007-09-15  Bruno Haible  <bruno@clisp.org>
63943
63944         * gnulib-tool (sed): Try a little harder to make bash understand the
63945         alias.
63946         Reported by Bruce Korb <bruce.korb@gmail.com>.
63947
63948 2007-09-13  Eric Blake  <ebb9@byu.net>
63949
63950         * ChangeLog: Remove conflict markers.
63951
63952 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63953
63954         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63955         Reported by Bruno Haible <bruno@clisp.org>.
63956
63957 2007-09-12  Bruno Haible  <bruno@clisp.org>
63958
63959         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63960         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63961         is not defined.
63962
63963 2007-09-12  Eric Blake  <ebb9@byu.net>
63964
63965         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63966         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63967         Autoconf definition.
63968         * modules/euidaccess (Depends-on): Add extensions, for
63969         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63970         * modules/fnmatch (Depends-on): Likewise.
63971         * modules/getaddrinfo (Depends-on): Likewise.
63972         * modules/getdelim (Depends-on): Likewise.
63973         * modules/getline (Depends-on): Likewise.
63974         * modules/getsubopt (Depends-on): Likewise.
63975         * modules/gettext (Depends-on): Likewise.
63976         * modules/group-member (Depends-on): Likewise.
63977         * modules/mbchar (Depends-on): Likewise.
63978         * modules/memmem (Depends-on): Likewise.
63979         * modules/mempcpy (Depends-on): Likewise.
63980         * modules/memrchr (Depends-on): Likewise.
63981         * modules/pagealign_alloc (Depends-on): Likewise.
63982         * modules/readutmp (Depends-on): Likewise.
63983         * modules/stpcpy (Depends-on): Likewise.
63984         * modules/stpncpy (Depends-on): Likewise.
63985         * modules/strchrnul (Depends-on): Likewise.
63986         * modules/strndup (Depends-on): Likewise.
63987         * modules/strsep (Depends-on): Likewise.
63988         * modules/strverscmp (Depends-on): Likewise.
63989         * modules/vasprintf (Depends-on): Likewise.
63990         * modules/wcwidth (Depends-on): Likewise.
63991         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63992         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63993         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63997         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63998         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63999         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64000         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64001         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64002         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64003         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64004         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64005         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64006         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64007         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64008         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64010         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64011         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64012         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64013         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64014         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64015         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64017         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64018         so that lock.m4 can be used in gettext without extensions module.
64019
64020 2007-09-11  Bruno Haible  <bruno@clisp.org>
64021
64022         * m4/isc-posix.m4: Remove file.
64023         Suggested by Eric Blake.
64024
64025 2007-09-11  Eric Blake  <ebb9@byu.net>
64026
64027         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64028
64029 2007-09-10  Bruno Haible  <bruno@clisp.org>
64030
64031         * posix-modules: Fix typo in error message.
64032         Reported by Matt <mkraai@beckman.com>.
64033
64034 2007-09-09  Bruno Haible  <bruno@clisp.org>
64035
64036         * doc/functions/getdelim.texi: Update list of platforms lacking the
64037         function.
64038         * doc/functions/getline.texi: Likewise.
64039
64040 2007-09-09  Jim Meyering  <jim@meyering.net>
64041
64042         * lib/hash.c (hash_initialize): Detect calloc failure.
64043         Reported by Bruno Haible.
64044
64045 2007-09-09  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64048         malloc or realloc fails.
64049
64050 2007-09-09  Bruno Haible  <bruno@clisp.org>
64051
64052         * modules/getcwd (Depends-on): Add malloc-posix.
64053         * modules/glob (Depends-on): Likewise.
64054         * modules/putenv (Depends-on): Likewise.
64055         * modules/strdup (Depends-on): Likewise.
64056         * modules/getdelim (Depends-on): Add realloc-posix.
64057         * modules/read-file (Depends-on): Likewise.
64058
64059 2007-09-09  Bruno Haible  <bruno@clisp.org>
64060
64061         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64062         (gl_FUNC_MALLOC_POSIX): Require it.
64063         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64064         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64065         * modules/realloc (Files): Add m4/malloc.m4.
64066         * modules/calloc (Files): Likewise.
64067
64068 2007-09-09  Bruno Haible  <bruno@clisp.org>
64069
64070         * modules/malloc-posix: New file.
64071         * modules/malloc (Depends-on): Add malloc-posix.
64072         * lib/malloc.c: Include errno.h.
64073         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64074         and a POSIX-compatible malloc into a single function. Set ENOMEM
64075         when returning NULL.
64076         * m4/malloc.m4: New file.
64077         * doc/functions/malloc.texi: Mention the malloc-posix module.
64078         * lib/stdlib_.h (malloc): New declaration.
64079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64080         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64081         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64082         and HAVE_MALLOC_POSIX.
64083
64084 2007-09-09  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/realloc-posix: New file.
64087         * modules/realloc (Depends-on): Add realloc-posix.
64088         * lib/realloc.c: Include errno.h.
64089         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64090         and a POSIX-compatible realloc into a single function. Set ENOMEM
64091         when returning NULL.
64092         * m4/realloc.m4: New file.
64093         * doc/functions/realloc.texi: Mention the realloc-posix module.
64094         * lib/stdlib_.h (realloc): New declaration.
64095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64096         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64097         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64098         and HAVE_REALLOC_POSIX.
64099
64100 2007-09-09  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/calloc-posix: New file.
64103         * modules/calloc (Depends-on): Add calloc-posix.
64104         * lib/calloc.c: Include errno.h.
64105         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64106         and a POSIX-compatible calloc into a single function. Set ENOMEM
64107         when returning NULL.
64108         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64109         * doc/functions/calloc.texi: Mention the calloc-posix module.
64110         * lib/stdlib_.h (calloc): New declaration.
64111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64112         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64113         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64114         and HAVE_CALLOC_POSIX.
64115
64116 2007-09-09  Bruno Haible  <bruno@clisp.org>
64117
64118         Allow for modules to show an arbitrary notice.
64119         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64120         * gnulib-tool: New option --extract-notice.
64121         (func_usage): Document it.
64122         (sed_extract_prog): Update.
64123         (func_get_notice): New function.
64124         (func_modules_notice): New function.
64125         (func_import, func_create_testdir): Invoke it.
64126         Suggested by Jim Meyering.
64127
64128 2007-09-09  Bruno Haible  <bruno@clisp.org>
64129
64130         * gnulib-tool: New options --verbose, --quiet.
64131         (func_usage): Document them.
64132         (verbose): New variable.
64133         (func_execute_command): New function.
64134         (func_import): Don't show the module list and the file list if
64135         $verbose < 0.
64136         (func_create_testdir): Likewise. Use func_execute_command.
64137         (func_create_megatestdir): Use func_execute_command.
64138
64139 2007-09-08  Bruno Haible  <bruno@clisp.org>
64140
64141         * gnulib-tool (func_import): Prefer rsync over wget when available,
64142         for fetching the PO files.
64143
64144 2007-09-08  Bruno Haible  <bruno@clisp.org>
64145
64146         * posix-modules: New file. Portions copied from gnulib-tool.
64147         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64148
64149 2007-09-08  Jim Meyering  <jim@meyering.net>
64150
64151         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64152         * lib/fpending.h: Rename from __fpending.h.
64153         * lib/fpending.c: Rename from __fpending.c.
64154         Include "fpending.h", not "__fpending.h".
64155         * lib/__fpending.h, lib/__fpending.c: Remove files.
64156         * modules/fpending (Files): Reflect new file names.
64157         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64158
64159 2007-09-08  Bruno Haible  <bruno@clisp.org>
64160
64161         * m4/inttypes-h.m4: Remove stub file.
64162
64163 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64164
64165         * doc/headers/stdint.texi: Discuss #include_next issue.
64166
64167 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64170
64171 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64172
64173         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64174         in variable name.
64175
64176 2007-09-03  Jim Meyering  <jim@meyering.net>
64177
64178         New module: git-version-gen.
64179         * modules/git-version-gen: New file.
64180
64181         Import changes from coreutils for bootstrap script.
64182
64183         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64184
64185         bootstrap: uses rsync to download the .po files
64186         * build-aux/bootstrap (po_download_command_format): New global.
64187         (download_po_files): Use rsync.
64188         (update_po_files): Don't remove .po files after download,
64189         so future rsync runs can take advantage of the copies.
64190
64191         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64192
64193         Solve the unnecessary-.po-file-regeneration problem once and for all.
64194         * build-aux/bootstrap (download_po_files): New function, renamed from
64195         get_translations.  Now, downloads, but doesn't update LINGUAS.
64196         (update_po_files): New function.
64197
64198         bootstrap: Ignore more.
64199         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64200         uniwidth to e.g., lib/.gitignore.
64201         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64202
64203         * build-aux/bootstrap: New setting: vc_ignore.
64204         (insert_sorted_if_absent): Create $file if absent.
64205         Adapt to new, possibly empty, list: $vc_ignore.
64206
64207         bootstrap: generate more ignorable names
64208         * build-aux/bootstrap (slurp): When generating ignorable names,
64209         also map .sin to .sed, .gperf to .c, and .y to .c.
64210
64211 2007-09-03  Jim Meyering  <jim@meyering.net>
64212
64213         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64214         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64215
64216 2007-09-02  Bruno Haible  <bruno@clisp.org>
64217
64218         Fix mis-recognition of 'mcs' on QNX 6.
64219         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64220         output contains the string "Mono".
64221         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64222         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64223
64224 2007-09-01  Bruno Haible  <bruno@clisp.org>
64225
64226         Fix collision between uniwidth/* and linebreak modules.
64227         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64228         u32_width): Remove declarations.
64229         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64230         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64231         streq3, streq2, streq1, streq0): Remove functions.
64232         (STREQ): Remove macro.
64233         (is_cjk_encoding): Remove function.
64234         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64235         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64236         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64237         * NEWS: Document the change.
64238
64239 2007-09-01  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/streq.h: Add double-inclusion guard.
64242
64243 2007-09-01  Karl Berry  <karl@gnu.org>
64244
64245         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64246
64247 2007-08-28  Jim Meyering  <jim@meyering.net>
64248
64249         Rename mreadlink_with_size to areadlink_with_size.
64250         * NEWS: Document the change.
64251         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64252         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64253         * lib/mreadlink.h: Rename this to...
64254         * lib/areadlink.h: ...this.
64255         * modules/mreadlink-with-size: Rename this to...
64256         * modules/areadlink-with-size: ...this.
64257         * lib/canonicalize.c: Reflect the renaming.
64258         * modules/canonicalize: Likewise.
64259
64260 2007-08-26  Bruno Haible  <bruno@clisp.org>
64261
64262         * gnulib-tool (func_import): When deciding which files to remove,
64263         consider also dangling symbolic links.
64264         Reported by Eric Blake.
64265
64266 2007-08-26  Bruno Haible  <bruno@clisp.org>
64267
64268         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64269
64270 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64271
64272         * lib/readline.c: Don't include getline.h, the prototype is now
64273         found in stdio.h.
64274
64275 2007-08-23  Jim Meyering  <jim@meyering.net>
64276
64277         Getdelim touchup.
64278         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64279         around the funlockfile call, since funlockfile never sets errno.
64280         Don't set errno upon failed realloc.
64281
64282 2007-08-22  Eric Blake  <ebb9@byu.net>
64283
64284         Getline touchups.
64285         * lib/getdelim.c (getdelim): Revert regression that required *n to
64286         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64288         getdelim, rather than whether implementation is missing.
64289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64290         * lib/stdio_.h (getline): Also declare if replacement is
64291         required.
64292         * doc/functions/getdelim.texi: New file.
64293         * doc/functions/getline.texi: Likewise.
64294         * doc/gnulib.texi (Function Substitutes): Add new files.
64295         Reported by Bruno Haible.
64296
64297 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64298
64299         * users.txt: Add Guile.
64300
64301 2007-08-22  Eric Blake  <ebb9@byu.net>
64302
64303         * tests/test-getdelim.c (main): Use remove, not unlink.
64304         * tests/test-getline.c (main): Likewise.
64305
64306         Move getline and getdelim into stdio.h, per POSIX 200x.
64307         * modules/getline (Files): Remove getline.h.
64308         (Depends-on): Add stdio.
64309         (configure.ac): Add module indicator.
64310         * modules/getdelim (Files): Remove getdelim.h.
64311         (Depends-on): Add stdio.
64312         (configure.ac): Add module indicator.
64313         * modules/stdio (Makefile.am): Work with new indicators.
64314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64316         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64317         * lib/getdelim.h: Delete.
64318         * lib/getline.h: Delete.
64319         * lib/stdio_.h (getdelim, getline): Declare.
64320         * modules/getdelim-tests: New module.
64321         * modules/getline-tests: Likewise.
64322         * tests/test-getdelim.c: New file.
64323         * tests/test-getline.c: Likewise.
64324         * NEWS: Document the change.
64325         * lib/getline.c: Update choice of header.
64326         * lib/csharpcomp.c: Likewise.
64327         * lib/getpass.c: Likewise.
64328         * lib/javacomp.c: Likewise.
64329         * lib/javaversion.c: Likewise.
64330         * lib/yesno.c: Likewise.
64331         * lib/getdelim.c: Likewise.
64332         (getdelim): Set errno on failure, and avoid memory leak.
64333
64334 2007-08-19  Bruno Haible  <bruno@clisp.org>
64335
64336         * modules/closein (Depends-on): Add freadahead.
64337         * lib/closein.c: Include freadahead.h.
64338         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64339         is zero.
64340
64341 2007-08-19  Bruno Haible  <bruno@clisp.org>
64342
64343         * modules/freadahead-tests: New file.
64344         * tests/test-freadahead.sh: New file.
64345         * tests/test-freadahead.c: New file.
64346
64347         * modules/freadahead: New file.
64348         * lib/freadahead.h: New file.
64349         * lib/freadahead.c: New file.
64350         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64351         fbufmode, fpurge, freadable, fwritable.
64352
64353 2007-08-19  Eric Blake  <ebb9@byu.net>
64354
64355         Test yesno in combination with closein.
64356         * lib/yesno.c (yesno): Document use of stdin.
64357         * modules/yesno-tests (Files): New module.
64358         * tests/test-yesno.c (main): New file.
64359         * tests/test-yesno.sh: Likewise.
64360
64361 2007-08-19  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64364         * lib/fseeko.c (rpl_fseeko): Likewise.
64365         * lib/fseterr.c (fseterr): Likewise.
64366
64367 2007-08-19  Bruno Haible  <bruno@clisp.org>
64368
64369         * tests/test-lseek.c (main): Disable a test for BeOS.
64370         * doc/functions/lseek.texi: Document the BeOS bug.
64371
64372 2007-08-19  Bruno Haible  <bruno@clisp.org>
64373             Eric Blake  <ebb9@byu.net>
64374
64375         * lib/lseek.c: Include <sys/stat.h>.
64376         (rpl_lseek): Add workaround code also for Unix platforms.
64377         Needed for BeOS.
64378         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64379         * doc/functions/lseek.texi: Document BeOS definiency.
64380
64381 2007-08-18  Bruno Haible  <bruno@clisp.org>
64382
64383         * modules/fstrcmp-tests: New file.
64384         * tests/test-fstrcmp.c: New file.
64385
64386 2007-08-18  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/fstrcmp: New file, from GNU gettext with modifications.
64389         * lib/fstrcmp.h: New file, from GNU gettext.
64390         * lib/fstrcmp.c: New file, from GNU gettext.
64391         * MODULES.html.sh (String handling): Add fstrcmp.
64392
64393 2007-08-18  Bruno Haible  <bruno@clisp.org>
64394
64395         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64396         'bool'.
64397         (diag, compareseq): Remove const from the ctxt argument.
64398         (USE_HEURISTIC): Undefine at the end.
64399
64400 2007-08-18  Jim Meyering  <jim@meyering.net>
64401
64402         New file: lib/idcache.h
64403         * NEWS: Mention the addition.
64404         * modules/idcache (Files): Add lib/idcache.h
64405         * lib/idcache.c: Include "idcache.h".
64406         Don't include <sys/types.h>.
64407         Add a FIXME comment.
64408         Move file-scoped "static" declarations to the top.
64409         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64410
64411 2007-08-17  Bruno Haible  <bruno@clisp.org>
64412         and Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * MODULES.html.sh: Add diffseq.
64415         * modules/diffseq: New file.
64416         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64417         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64418
64419 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         Import changes from coreutils for bootstrap script.
64422
64423         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64424
64425         * build-aux/bootstrap (slurp): Work even in environments where
64426         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64427         current code does not slurp files whose names start with ".", and
64428         this looks like it might be a troublesome area.
64429
64430         2007-07-11  Jim Meyering  <jim@meyering.net>
64431
64432         If there's a GPL vN copyright comment, require that N == 3.
64433
64434         2007-07-08  Jim Meyering  <jim@meyering.net>
64435
64436         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64437         * build-aux/bootstrap (mam_template): Move definition out of loop.
64438
64439         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64440
64441         * build-aux/bootstrap (symlink_to_dir): Rename function from
64442         symlink_to_gnulib.  Add a directory parameter.  Update all
64443         callers.
64444         (cp_mark_as_generated): Also check for -- and link to -- files in
64445         gl/.
64446
64447         2007-07-08  Jim Meyering  <jim@meyering.net>
64448
64449         Adapt to deeper hierarchy in gnulib.
64450         * build-aux/bootstrap (symlink_to_dir): If the destination
64451         directory doesn't exist, create it. This is required at least for
64452         "lib/uniwidth/cjk.h".
64453
64454         2007-05-15  Jim Meyering  <jim@meyering.net>
64455
64456         * build-aux/bootstrap: Now that generated Makefile.am files
64457         are no longer under version control, they must be created at
64458         bootstrap time.
64459
64460 2007-08-14  Ben Pfaff  <blp@gnu.org>
64461
64462         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64463
64464 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64467         given the changes below.
64468         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64469         even on hosts that have padding bits beyond the supported 64.
64470
64471 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64474         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64475         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64476         depends on it.
64477         (xstrtol_error): Remove.
64478         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64479         but with a different signature.
64480         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64481         * lib/xstrtol-error.c: Include exitfail.h.
64482         (xstrtol_fatal): New function, with a different signature from the
64483         old xstrtol_error, so that the caller need not worry about passing
64484         in an exit status, or about storage management of the option argument.
64485         (xstrtol_error): Now a static function.  Redo signature to
64486         implement xstrtol_fatal.  Output the correct number of hyphens in
64487         front of the option so that the caller need not worry about
64488         storage management.
64489         (N_): New macro.
64490         (_): Remove; not used now.
64491         * modules/xstrtol: Depend on getopt.
64492         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64493         of old STRTOL_FATAL_ERROR macro.
64494         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64495         of test program.
64496         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64497         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64498
64499 2007-08-08  Eric Blake  <ebb9@byu.net>
64500
64501         * lib/xstrtol-error.c: Add missing include.
64502
64503         Move xstrtol messages into gnulib domain, when --pobase is used.
64504         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64505         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64506         * modules/xstrtol (Files): Distribute new file.
64507         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64508         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64509         * tests/test-xstrtol.c: ...into new file.
64510         * tests/test-xstrtoul.c: Also test xstrtoul.
64511         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64512         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64513         * tests/test-xstrtol.sh: Drive the tests.
64514         * tests/test-xstrtoimax.sh: Likewise.
64515         * tests/test-xstrtoumax.sh: Likewise.
64516         * modules/xstrtol-tests: New module.
64517         * modules/xstrtoimax-tests: Likewise.
64518         * modules/xstrtoumax-tests: Likewise.
64519
64520 2007-08-08  Jim Meyering  <jim@meyering.net>
64521
64522         New function: mfile_name_concat.
64523         * lib/filenamecat.c (mfile_name_concat): New function, just like
64524         file_name_concat, but return NULL upon failure rather than exiting
64525         with a diagnostic.
64526         * lib/filenamecat.h: Declare it.
64527
64528 2007-08-07  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64531         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64532         warning from gcc.
64533         Reported by Eric Blake.
64534
64535 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64536
64537         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64538         * modules/crypto/arcfour (License): Likewise.
64539         * modules/crypto/des-tests (License): Likewise.
64540         * modules/crypto/gc-arctwo-tests (License): Likewise.
64541         * modules/crypto/gc-des-tests (License): Likewise.
64542         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64543         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64544         * modules/crypto/gc-md2-tests (License): Likewise.
64545         * modules/crypto/gc-md4-tests (License): Likewise.
64546         * modules/crypto/gc-md5-tests (License): Likewise.
64547         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64548         * modules/crypto/gc-rijndael-tests (License): Likewise.
64549         * modules/crypto/gc-sha1-tests (License): Likewise.
64550         * modules/crypto/gc-tests (License): Likewise.
64551         * modules/crypto/hmac-md5 (License): Likewise.
64552         * modules/crypto/hmac-sha1 (License): Likewise.
64553         * modules/crypto/md2-tests (License): Likewise.
64554         * modules/crypto/md4-tests (License): Likewise.
64555         * modules/crypto/md5 (License): Likewise.
64556         * modules/crypto/rijndael (License): Likewise.
64557         * modules/crypto/sha1 (License): Likewise.
64558         * modules/memxor (License): Likewise.
64559
64560 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64561         and Bruno Haible  <bruno@clisp.org>
64562
64563         * NEWS: Describe interface changes to human, xstrtol.
64564         * lib/human.h: Include <xstrtol.h>.
64565         (human_options): Return enum strtol_error, not int.  Remove
64566         bool arg; take int * instead.
64567         * lib/human.c: Don't include "gettext.h".
64568         (_): Remove; no longer used.
64569         Don't include <xstrtol.h>, since human.h does it.
64570         (human_options): Adjust to abovementioned interface changes.
64571         Do not report error to stderr; that's now the caller's
64572         responsibility.
64573         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64574         interface change.
64575         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64576         Str, Argument_type_string.  All uses changed.  Put " argument"
64577         in diagnostics to make them clearer.  Change wording of suffix
64578         message for clarity.
64579         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64580         Argument_type_string.
64581         (STRTOL_FATAL_WARN): Remove; no longer used.
64582         * modules/human (Depends-on): Remove gettext-h.
64583
64584 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64585
64586         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64587
64588 2007-07-31  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64591         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64592         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64593
64594 2007-07-31  Bruno Haible  <bruno@clisp.org>
64595
64596         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64597         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64598
64599 2007-07-30  Bruno Haible  <bruno@clisp.org>
64600
64601         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64602         * modules/c-ctype (License): Likewise.
64603         * modules/c-strcase (License): Likewise.
64604         * modules/check-version (License): Likewise.
64605         * modules/iconv (License): Likewise.
64606         * modules/iconv_open (License): Likewise.
64607         * modules/read-file (License): Likewise.
64608         * modules/striconv (License): Likewise.
64609         * modules/strverscmp (License): Likewise.
64610         * modules/vasprintf (License): Likewise.
64611         * modules/crypto/des (License): Likewise.
64612         * modules/crypto/gc (License): Likewise.
64613         * modules/crypto/gc-arcfour (License): Likewise.
64614         * modules/crypto/gc-arctwo (License): Likewise.
64615         * modules/crypto/gc-des (License): Likewise.
64616         * modules/crypto/gc-hmac-md5 (License): Likewise.
64617         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64618         * modules/crypto/gc-md2 (License): Likewise.
64619         * modules/crypto/gc-md4 (License): Likewise.
64620         * modules/crypto/gc-md5 (License): Likewise.
64621         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64622         * modules/crypto/gc-random (License): Likewise.
64623         * modules/crypto/gc-rijndael (License): Likewise.
64624         * modules/crypto/gc-sha1 (License): Likewise.
64625         * modules/crypto/md2 (License): Likewise.
64626         * modules/crypto/md4 (License): Likewise.
64627
64628 2007-07-30  Jim Meyering  <jim@meyering.net>
64629
64630         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64631         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64632         it has valid stat data.  This bug would cause du not to count the
64633         sizes of inaccessible directories.
64634         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64635         in <http://bugzilla.redhat.com/250077>.
64636
64637 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64638             Bruno Haible  <bruno@clisp.org>
64639
64640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64641         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64642         #include_next, gives a diagnostic about it, but reports no error in
64643         the exit code.
64644         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64645
64646 2007-07-24  Ben Pfaff  <blp@gnu.org>
64647
64648         Improve name: "count-one-bits" is better than "popcount".
64649         * MODULES.html.sh: Update name.
64650         * lib/popcount.h: Renamed lib/count-one-bits.h.
64651         (popcount): Renamed count_one_bits.
64652         (popcountl): Renamed count_one_bits_l.
64653         (popcountll): Renamed count_one_bits_ll.
64654         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64655         * modules/popcount: Renamed module/count-one-bits.
64656         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64657         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64658
64659 2007-07-23  Ben Pfaff  <blp@gnu.org>
64660
64661         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64662         better code generation, and add U to large constants to avoid
64663         warnings, in non-GCC case.
64664         Suggested by Bruno Haible.
64665
64666 2007-07-23  Ben Pfaff  <blp@gnu.org>
64667
64668         * lib/popcount.h: Use verify_true instead of if...abort.
64669         * modules/popcount: Depend on verify module.
64670         Suggested by Jim Meyering.
64671
64672 2007-07-23  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (func_import): Create a .cvsignore file also when the
64675         directory is not yet in CVS but the toplevel directory is. When
64676         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64677         Reported by Karl Berry.
64678
64679 2007-07-22  Ben Pfaff  <blp@gnu.org>
64680
64681         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64682         case.
64683         Suggested by Eric Blake.
64684
64685 2007-07-22  Ben Pfaff  <blp@gnu.org>
64686
64687         New module: popcount.
64688         * MODULES.html.sh: Add popcount.
64689         * modules/popcount: New file.
64690         * modules/popcount-tests: New file.
64691         * tests/test-popcount.c: New file.
64692         * lib/popcount.h: New file.
64693         * m4/popcount.m4: New file.
64694
64695 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64696
64697         * build-aux/announce-gen: Update to GPLv3.
64698
64699         * build-aux/config.guess: Update from config.
64700
64701 2007-07-21  Bruno Haible  <bruno@clisp.org>
64702
64703         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64704         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64705
64706 2007-07-20  Jim Meyering  <jim@meyering.net>
64707
64708         * check-module: Diagnose a self-dependency.
64709
64710 2007-07-19  Bruno Haible  <bruno@clisp.org>
64711
64712         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64713         empty.
64714         Reported by Eric Blake.
64715
64716 2007-07-18  Bruno Haible  <bruno@clisp.org>
64717
64718         * gnulib-tool: New options --po-base, --po-domain.
64719         (func_usage): Document them.
64720         (pobase, po_domain): New variables.
64721         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64722         DEFAULT_TEXT_DOMAIN.
64723         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64724         (func_import): Consider pobase and po_domain. Create a po/ directory.
64725         (func_create_testdir): Set pobase and po_domain to empty.
64726         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64727         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64728
64729 2007-07-18  Bruno Haible  <bruno@clisp.org>
64730
64731         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64732         EXTRA_DIST augmentation for files in build-aux/.
64733
64734 2007-07-16  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64737         * modules/getdelim (License): Likewise.
64738
64739 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64740
64741         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64742         * modules/d-type (License): Likewise.
64743         * modules/extensions (License): Likewise.
64744         * modules/fnmatch (License): Likewise.
64745         * modules/fseeko (License): Likewise.
64746         * modules/getaddrinfo (License): Likewise.
64747         * modules/getline (License): Likewise.
64748         * modules/getlogin_r (License): Likewise.
64749         * modules/getpass (License): Likewise.
64750         * modules/gettimeofday (License): Likewise.
64751         * modules/glob (License): Likewise.
64752         * modules/inet_ntop (License): Likewise.
64753         * modules/malloc (License): Likewise.
64754         * modules/malloca (License): Likewise.
64755         * modules/memmem (License): Likewise.
64756         * modules/mempcpy (License): Likewise.
64757         * modules/memset (License): Likewise.
64758         * modules/minmax (License): Likewise.
64759         * modules/mktime (License): Likewise.
64760         * modules/netinet_in (License): Likewise.
64761         * modules/pathmax (License): Likewise.
64762         * modules/poll (License): Likewise.
64763         * modules/regex (License): Likewise.
64764         * modules/snprintf (License): Likewise.
64765         * modules/stdbool (License): Likewise.
64766         * modules/stdint (License): Likewise.
64767         * modules/stdio (License): Likewise.
64768         * modules/strcase (License): Likewise.
64769         * modules/strcasestr (License): Likewise.
64770         * modules/strdup (License): Likewise.
64771         * modules/string (License): Likewise.
64772         * modules/strndup (License): Likewise.
64773         * modules/strnlen (License): Likewise.
64774         * modules/strpbrk (License): Likewise.
64775         * modules/strptime (License): Likewise.
64776         * modules/strsep (License): Likewise.
64777         * modules/sys_select (License): Likewise.
64778         * modules/sys_socket (License): Likewise.
64779         * modules/sys_stat (License): Likewise.
64780         * modules/sys_time (License): Likewise.
64781         * modules/time (License): Likewise.
64782         * modules/time_r (License): Likewise.
64783         * modules/timegm (License): Likewise.
64784         * modules/unistd (License): Likewise.
64785         * modules/vsnprintf (License): Likewise.
64786         * modules/wctype (License): Likewise.
64787
64788 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64789
64790         * modules/argz (License): LGPLv2+.
64791
64792 2007-07-15  Karl Berry  <karl@gnu.org>
64793
64794         * doc/gnulib.texi: revise node structure per new fdl.texi.
64795
64796 2007-07-14  Bruno Haible  <bruno@clisp.org>
64797
64798         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64799         the output file.
64800         * lib/uniname/uninames.h: Regenerated.
64801
64802 2007-07-14  Karl Berry  <karl@gnu.org>
64803
64804         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64805         omitting sectioning and index commands.
64806
64807 2007-07-13  Bruno Haible  <bruno@clisp.org>
64808
64809         New gnulib-tool option --more-symlinks.
64810         * gnulib-tool (func_usage): Document --more-symlinks.
64811         (do_copyrights): New variable.
64812         Recognize option --more-symlinks.
64813         (func_import): Don't add a copyright notice transform to
64814         sed_transform_lib_file if do_copyrights is empty.
64815
64816 2007-07-13  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/vasnprintf.c (decimal_point_char): Define also if
64819         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64820         && !NEED_PRINTF_DIRECTIVE_A.
64821         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64822         Gary V. Vaughan <gary@gnu.org>.
64823
64824 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         * lib/inttypes_.h: Undo previous change, since it was fixed
64827         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64828
64829 2007-07-13  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64832         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64833
64834 2007-07-13  Jim Meyering  <jim@meyering.net>
64835
64836         df: Don't fail for Tru64's "file-on-file mount".
64837         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64838         so we fall through and use statfs instead.  Details here:
64839         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64840         Reported by Albert Chin.
64841
64842 2007-07-13  Bruno Haible  <bruno@clisp.org>
64843
64844         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64845         * modules/configmake (License): Likewise.
64846         * modules/gettext (License): Likewise.
64847         * modules/gettext-h (License): Likewise.
64848         * modules/include_next (License): Likewise.
64849         * modules/link-warning (License): Likewise.
64850         * modules/localcharset (License): Likewise.
64851         * modules/localename (License): Likewise.
64852         * modules/lock (License): Likewise.
64853         * modules/relocatable-lib-lgpl (License): Likewise.
64854         * modules/size_max (License): Likewise.
64855         * modules/vasnprintf (License): Likewise.
64856         * modules/wchar (License): Likewise.
64857         * modules/xsize (License): Likewise.
64858
64859 2007-07-13  Bruno Haible  <bruno@clisp.org>
64860
64861         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64862         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64863
64864 2007-07-12  Bruno Haible  <bruno@clisp.org>
64865
64866         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64867         in the modules files.
64868
64869 2007-07-11  Karl Berry  <karl@gnu.org>
64870
64871         * MODULES.html.sh (func_module): use
64872          sed -e '\|^'"${includefile}"'$|d'
64873          instead of /.../d, to avoid errors on $includefile's containing /.
64874
64875 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64876
64877         * gnulib-tool (func_import): Avoid duplication of --avoid
64878         statements
64879         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64880         names to `_' in variable names.
64881
64882 2007-07-10  Eric Blake  <ebb9@byu.net>
64883
64884         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64885         * NEWS: Document this change.
64886
64887 2007-07-08  Bruno Haible  <bruno@clisp.org>
64888
64889         Update to Unicode 5.0.
64890         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64891         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64892         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64893         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64894         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64895         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64896         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64897         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64898         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64899         U+10A3F, U+1D242..U+1D244.
64900         (nonspacing_table_ind): Update.
64901         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64902         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64903
64904 2007-07-08  Bruno Haible  <bruno@clisp.org>
64905
64906         Update to Unicode 5.0.
64907         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64908         code transform. Extend the name index field of unicode_name_to_code and
64909         unicode_code_to_name from 16 to 24 bits.
64910         * lib/uniname/uniname.c (unicode_character_name,
64911         unicode_name_character): Add the range 0x12xxx to the code transform.
64912         * lib/uniname/uninames.h: Regenerated.
64913         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64914
64915 2007-07-07  Bruno Haible  <bruno@clisp.org>
64916
64917         * modules/wcwidth-tests: New file.
64918         * tests/test-wcwidth.c: New file.
64919
64920         Work around MacOS X wcwidth() bug.
64921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64922         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64923         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64924         original wcwidth in non-UTF-8 locales.
64925         * modules/wcwidth (Depends-on): Add localcharset, streq,
64926         uniwidth/width.
64927         * doc/functions/wcwidth.texi: Update.
64928
64929 2007-07-07  Bruno Haible  <bruno@clisp.org>
64930
64931         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64932         (wcwidth): New declaration.
64933         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64934         macros.
64935         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64936         here. Prepare for creating <wchar.h> unconditionally.
64937         * modules/wchar (Depends-on): Add link-warning.
64938         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64939         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64940         * lib/wcwidth.h: Remove file.
64941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64942         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64943         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64944         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64945         (Include): Replace wcwidth.h with <wchar.h>.
64946         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64947         * lib/mbchar.h: Don't include wcwidth.h.
64948         * lib/mbswidth.c: Likewise.
64949         * NEWS: Mention the change.
64950
64951 2007-07-07  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64954         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64955         definition with an external declaration.
64956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64957         defined as a function. Remove AC_C_INLINE requirement.
64958         * modules/wcwidth (Files): Add lib/wcwidth.c.
64959         (Makefile.am): Remove redundant statement.
64960
64961 2007-07-07  Bruno Haible  <bruno@clisp.org>
64962
64963         * MODULES.html.sh (Unicode string functions): Add the new modules.
64964
64965         * tests/uniwidth/test-u32-strwidth.c: New file.
64966         * modules/uniwidth/u32-strwidth-tests: New file.
64967
64968         * lib/uniwidth/u32-strwidth.c: New file.
64969         * modules/uniwidth/u32-strwidth: New file.
64970
64971         * tests/uniwidth/test-u16-strwidth.c: New file.
64972         * modules/uniwidth/u16-strwidth-tests: New file.
64973
64974         * lib/uniwidth/u16-strwidth.c: New file.
64975         * modules/uniwidth/u16-strwidth: New file.
64976
64977         * tests/uniwidth/test-u8-strwidth.c: New file.
64978         * modules/uniwidth/u8-strwidth-tests: New file.
64979
64980         * lib/uniwidth/u8-strwidth.c: New file.
64981         * modules/uniwidth/u8-strwidth: New file.
64982
64983         * tests/uniwidth/test-u32-width.c: New file.
64984         * modules/uniwidth/u32-width-tests: New file.
64985
64986         * lib/uniwidth/u32-width.c: New file.
64987         * modules/uniwidth/u32-width: New file.
64988
64989         * tests/uniwidth/test-u16-width.c: New file.
64990         * modules/uniwidth/u16-width-tests: New file.
64991
64992         * lib/uniwidth/u16-width.c: New file.
64993         * modules/uniwidth/u16-width: New file.
64994
64995         * tests/uniwidth/test-u8-width.c: New file.
64996         * modules/uniwidth/u8-width-tests: New file.
64997
64998         * lib/uniwidth/u8-width.c: New file.
64999         * modules/uniwidth/u8-width: New file.
65000
65001         * tests/uniwidth/test-uc_width.c: New file.
65002         * modules/uniwidth/width-tests: New file.
65003
65004         * lib/uniwidth/width.c: New file, from GNU libiconv.
65005         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65006         * modules/uniwidth/width: New file.
65007
65008         * lib/uniwidth.h: New file, from GNU libiconv.
65009         * modules/uniwidth/base: New file.
65010
65011 2007-07-07  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/uniname.h: New file, from GNU gettext.
65014         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65015         * lib/uniname/uninames.h: New file, from GNU gettext.
65016         * lib/uniname/uniname.c: New file, from GNU gettext.
65017         * tests/uniname/test-uninames.sh: New file.
65018         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65019         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65020         * modules/uniname/base: New file.
65021         * modules/uniname/uniname: New file.
65022         * modules/uniname/uniname-tests: New file.
65023         * MODULES.html.sh (Unicode string functions): Add the new modules.
65024
65025 2007-07-06  Bruno Haible  <bruno@clisp.org>
65026
65027         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65028
65029 2007-07-06  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65032         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65033         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65034         include <sys/time.h>.
65035         Reported by Eric Blake.
65036
65037 2007-07-06  Eric Blake  <ebb9@byu.net>
65038
65039         Fix testing canonicalize on cygwin.
65040         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65041         Revert patch from 2007-06-19.
65042         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65043         canonicalize module is also in use.
65044         * tests/test-canonicalize.c: New file.
65045         * tests/test-canonicalize.sh: Likewise.
65046         * modules/canonicalize-tests: Likewise.
65047
65048 2007-07-06  Jim Meyering  <jim@meyering.net>
65049
65050         * lib/getugroups.c (getugroups): Detect getgrent failure.
65051         Adjust comment to reflect reality: this function may return -1.
65052
65053 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65054
65055         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65056         the new TP address.
65057         (usage): Fix typo
65058         (gnulib_mk): New variable.
65059
65060 2007-07-05  Jim Meyering  <jim@meyering.net>
65061
65062         Don't let endgrent clobber errno, no matter how improbable.
65063         * lib/getugroups.c (getugroups): Save and restore errno around
65064         endgrent call.
65065
65066         Close the group DB even when failing with 2^31 or more members.
65067         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65068
65069 2007-07-04  Jim Meyering  <jim@meyering.net>
65070
65071         * lib/getugroups.h: New file.
65072         * lib/getugroups.c: Include "getugroups.h".
65073         Remove uses of "register" keyword.
65074         Move local variable, "cp", down into scope where used.
65075         Give "username" parameter the "const" attribute.
65076         * modules/getugroups (Files): Add lib/getugroups.h
65077
65078 2007-07-04  Karl Berry  <karl@gnu.org>
65079
65080         * MODULES.html.sh (func_all_modules): Complete rename of
65081         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65082
65083 2007-07-02  Bruno Haible  <bruno@clisp.org>
65084
65085         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65086         mode, when inttypes.h comes from gnulib.
65087         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65088
65089 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65090
65091         * NEWS: Mention lgpl module name change.
65092
65093         * modules/lgpl-2.1: Renamed from lgpl.
65094
65095         * NEWS: Mention gpl module name change.
65096
65097         * modules/gpl-3.0: New file, based on gpl-2.0.
65098
65099         * modules/gpl-2.0: Renamed from gpl.
65100
65101         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65102         doc/gpl-2.0.texi.
65103
65104 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65107         #define __STDC_LIMIT_MACROS temporarily while including
65108         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65109         Problem reported by Joel E. Denny in
65110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65111
65112 2007-07-01  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/unistdio.h: New file.
65115         * lib/unistdio/u-asnprintf.h: New file.
65116         * lib/unistdio/u-asprintf.h: New file.
65117         * lib/unistdio/u-printf-args.c: New file.
65118         * lib/unistdio/u-printf-args.h: New file.
65119         * lib/unistdio/u-printf-parse.h: New file.
65120         * lib/unistdio/u-snprintf.h: New file.
65121         * lib/unistdio/u-sprintf.h: New file.
65122         * lib/unistdio/u-vasprintf.h: New file.
65123         * lib/unistdio/u-vsnprintf.h: New file.
65124         * lib/unistdio/u-vsprintf.h: New file.
65125         * lib/unistdio/ulc-asnprintf.c: New file.
65126         * lib/unistdio/ulc-asprintf.c: New file.
65127         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65128         * lib/unistdio/ulc-printf-parse.c: New file.
65129         * lib/unistdio/ulc-snprintf.c: New file.
65130         * lib/unistdio/ulc-sprintf.c: New file.
65131         * lib/unistdio/ulc-vasnprintf.c: New file.
65132         * lib/unistdio/ulc-vasprintf.c: New file.
65133         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65134         * lib/unistdio/ulc-vsnprintf.c: New file.
65135         * lib/unistdio/ulc-vsprintf.c: New file.
65136         * lib/unistdio/u8-asnprintf.c: New file.
65137         * lib/unistdio/u8-asprintf.c: New file.
65138         * lib/unistdio/u8-printf-parse.c: New file.
65139         * lib/unistdio/u8-snprintf.c: New file.
65140         * lib/unistdio/u8-sprintf.c: New file.
65141         * lib/unistdio/u8-vasnprintf.c: New file.
65142         * lib/unistdio/u8-vasprintf.c: New file.
65143         * lib/unistdio/u8-vsnprintf.c: New file.
65144         * lib/unistdio/u8-vsprintf.c: New file.
65145         * lib/unistdio/u8-u8-asnprintf.c: New file.
65146         * lib/unistdio/u8-u8-asprintf.c: New file.
65147         * lib/unistdio/u8-u8-snprintf.c: New file.
65148         * lib/unistdio/u8-u8-sprintf.c: New file.
65149         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65150         * lib/unistdio/u8-u8-vasprintf.c: New file.
65151         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65152         * lib/unistdio/u8-u8-vsprintf.c: New file.
65153         * lib/unistdio/u16-asnprintf.c: New file.
65154         * lib/unistdio/u16-asprintf.c: New file.
65155         * lib/unistdio/u16-printf-parse.c: New file.
65156         * lib/unistdio/u16-snprintf.c: New file.
65157         * lib/unistdio/u16-sprintf.c: New file.
65158         * lib/unistdio/u16-vasnprintf.c: New file.
65159         * lib/unistdio/u16-vasprintf.c: New file.
65160         * lib/unistdio/u16-vsnprintf.c: New file.
65161         * lib/unistdio/u16-vsprintf.c: New file.
65162         * lib/unistdio/u16-u16-asnprintf.c: New file.
65163         * lib/unistdio/u16-u16-asprintf.c: New file.
65164         * lib/unistdio/u16-u16-snprintf.c: New file.
65165         * lib/unistdio/u16-u16-sprintf.c: New file.
65166         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65167         * lib/unistdio/u16-u16-vasprintf.c: New file.
65168         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65169         * lib/unistdio/u16-u16-vsprintf.c: New file.
65170         * lib/unistdio/u32-asnprintf.c: New file.
65171         * lib/unistdio/u32-asprintf.c: New file.
65172         * lib/unistdio/u32-printf-parse.c: New file.
65173         * lib/unistdio/u32-snprintf.c: New file.
65174         * lib/unistdio/u32-sprintf.c: New file.
65175         * lib/unistdio/u32-vasnprintf.c: New file.
65176         * lib/unistdio/u32-vasprintf.c: New file.
65177         * lib/unistdio/u32-vsnprintf.c: New file.
65178         * lib/unistdio/u32-vsprintf.c: New file.
65179         * lib/unistdio/u32-u32-asnprintf.c: New file.
65180         * lib/unistdio/u32-u32-asprintf.c: New file.
65181         * lib/unistdio/u32-u32-snprintf.c: New file.
65182         * lib/unistdio/u32-u32-sprintf.c: New file.
65183         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65184         * lib/unistdio/u32-u32-vasprintf.c: New file.
65185         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65186         * lib/unistdio/u32-u32-vsprintf.c: New file.
65187         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65188         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65189         * tests/unistdio/test-ulc-printf1.h: New file.
65190         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65191         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65192         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65193         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65194         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65195         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65196         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65197         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65198         * tests/unistdio/test-u8-asnprintf1.c: New file.
65199         * tests/unistdio/test-u8-asnprintf1.h: New file.
65200         * tests/unistdio/test-u8-printf1.h: New file.
65201         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65202         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65203         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65204         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65205         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65206         * tests/unistdio/test-u8-vasprintf1.c: New file.
65207         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65208         * tests/unistdio/test-u8-vsprintf1.c: New file.
65209         * tests/unistdio/test-u16-asnprintf1.c: New file.
65210         * tests/unistdio/test-u16-asnprintf1.h: New file.
65211         * tests/unistdio/test-u16-printf1.h: New file.
65212         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65213         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65214         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65215         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65216         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65217         * tests/unistdio/test-u16-vasprintf1.c: New file.
65218         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65219         * tests/unistdio/test-u16-vsprintf1.c: New file.
65220         * tests/unistdio/test-u32-asnprintf1.c: New file.
65221         * tests/unistdio/test-u32-asnprintf1.h: New file.
65222         * tests/unistdio/test-u32-printf1.h: New file.
65223         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65224         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65225         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65226         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65227         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65228         * tests/unistdio/test-u32-vasprintf1.c: New file.
65229         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65230         * tests/unistdio/test-u32-vsprintf1.c: New file.
65231         * modules/unistdio/base: New file.
65232         * modules/unistdio/u-printf-args: New file.
65233         * modules/unistdio/ulc-asnprintf: New file.
65234         * modules/unistdio/ulc-asprintf: New file.
65235         * modules/unistdio/ulc-fprintf: New file.
65236         * modules/unistdio/ulc-printf-parse: New file.
65237         * modules/unistdio/ulc-snprintf: New file.
65238         * modules/unistdio/ulc-sprintf: New file.
65239         * modules/unistdio/ulc-vasnprintf: New file.
65240         * modules/unistdio/ulc-vasprintf: New file.
65241         * modules/unistdio/ulc-vfprintf: New file.
65242         * modules/unistdio/ulc-vsnprintf: New file.
65243         * modules/unistdio/ulc-vsprintf: New file.
65244         * modules/unistdio/u8-asnprintf: New file.
65245         * modules/unistdio/u8-asprintf: New file.
65246         * modules/unistdio/u8-printf-parse: New file.
65247         * modules/unistdio/u8-snprintf: New file.
65248         * modules/unistdio/u8-sprintf: New file.
65249         * modules/unistdio/u8-vasnprintf: New file.
65250         * modules/unistdio/u8-vasprintf: New file.
65251         * modules/unistdio/u8-vsnprintf: New file.
65252         * modules/unistdio/u8-vsprintf: New file.
65253         * modules/unistdio/u8-u8-asnprintf: New file.
65254         * modules/unistdio/u8-u8-asprintf: New file.
65255         * modules/unistdio/u8-u8-snprintf: New file.
65256         * modules/unistdio/u8-u8-sprintf: New file.
65257         * modules/unistdio/u8-u8-vasnprintf: New file.
65258         * modules/unistdio/u8-u8-vasprintf: New file.
65259         * modules/unistdio/u8-u8-vsnprintf: New file.
65260         * modules/unistdio/u8-u8-vsprintf: New file.
65261         * modules/unistdio/u16-asnprintf: New file.
65262         * modules/unistdio/u16-asprintf: New file.
65263         * modules/unistdio/u16-printf-parse: New file.
65264         * modules/unistdio/u16-snprintf: New file.
65265         * modules/unistdio/u16-sprintf: New file.
65266         * modules/unistdio/u16-vasnprintf: New file.
65267         * modules/unistdio/u16-vasprintf: New file.
65268         * modules/unistdio/u16-vsnprintf: New file.
65269         * modules/unistdio/u16-vsprintf: New file.
65270         * modules/unistdio/u16-u16-asnprintf: New file.
65271         * modules/unistdio/u16-u16-asprintf: New file.
65272         * modules/unistdio/u16-u16-snprintf: New file.
65273         * modules/unistdio/u16-u16-sprintf: New file.
65274         * modules/unistdio/u16-u16-vasnprintf: New file.
65275         * modules/unistdio/u16-u16-vasprintf: New file.
65276         * modules/unistdio/u16-u16-vsnprintf: New file.
65277         * modules/unistdio/u16-u16-vsprintf: New file.
65278         * modules/unistdio/u32-asnprintf: New file.
65279         * modules/unistdio/u32-asprintf: New file.
65280         * modules/unistdio/u32-printf-parse: New file.
65281         * modules/unistdio/u32-snprintf: New file.
65282         * modules/unistdio/u32-sprintf: New file.
65283         * modules/unistdio/u32-vasnprintf: New file.
65284         * modules/unistdio/u32-vasprintf: New file.
65285         * modules/unistdio/u32-vsnprintf: New file.
65286         * modules/unistdio/u32-vsprintf: New file.
65287         * modules/unistdio/u32-u32-asnprintf: New file.
65288         * modules/unistdio/u32-u32-asprintf: New file.
65289         * modules/unistdio/u32-u32-snprintf: New file.
65290         * modules/unistdio/u32-u32-sprintf: New file.
65291         * modules/unistdio/u32-u32-vasnprintf: New file.
65292         * modules/unistdio/u32-u32-vasprintf: New file.
65293         * modules/unistdio/u32-u32-vsnprintf: New file.
65294         * modules/unistdio/u32-u32-vsprintf: New file.
65295         * modules/unistdio/ulc-asnprintf-tests: New file.
65296         * modules/unistdio/ulc-vasnprintf-tests: New file.
65297         * modules/unistdio/ulc-vasprintf-tests: New file.
65298         * modules/unistdio/ulc-vsnprintf-tests: New file.
65299         * modules/unistdio/ulc-vsprintf-tests: New file.
65300         * modules/unistdio/u8-asnprintf-tests: New file.
65301         * modules/unistdio/u8-vasnprintf-tests: New file.
65302         * modules/unistdio/u8-vasprintf-tests: New file.
65303         * modules/unistdio/u8-vsnprintf-tests: New file.
65304         * modules/unistdio/u8-vsprintf-tests: New file.
65305         * modules/unistdio/u16-asnprintf-tests: New file.
65306         * modules/unistdio/u16-vasnprintf-tests: New file.
65307         * modules/unistdio/u16-vasprintf-tests: New file.
65308         * modules/unistdio/u16-vsnprintf-tests: New file.
65309         * modules/unistdio/u16-vsprintf-tests: New file.
65310         * modules/unistdio/u32-asnprintf-tests: New file.
65311         * modules/unistdio/u32-vasnprintf-tests: New file.
65312         * modules/unistdio/u32-vasprintf-tests: New file.
65313         * modules/unistdio/u32-vsnprintf-tests: New file.
65314         * modules/unistdio/u32-vsprintf-tests: New file.
65315         * MODULES.html.sh (Unicode string functions): Add the new modules.
65316
65317 2007-07-01  Bruno Haible  <bruno@clisp.org>
65318
65319         * lib/sprintf.c (sprintf): Limit the available length estimation,
65320         to avoid address wraparound.
65321         * lib/vsprintf.c (vsprintf): Likewise.
65322         * modules/sprintf-posix (Dependencies): Add stdint.
65323         * modules/vsprintf-posix (Dependencies): Likewise.
65324
65325 2007-07-01  Bruno Haible  <bruno@clisp.org>
65326
65327         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65328         Windows PATH as well. Conservative double-quoting. Comments.
65329
65330 2007-07-01  Bruno Haible  <bruno@clisp.org>
65331             Eric Blake  <ebb9@byu.net>
65332             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65333
65334         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65335         empty components in $PATH, denoting '.'.
65336
65337 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65338
65339         * gnulib-tool: Fix indentation.
65340         (func_create_megatestdir): Likewise.
65341         Report by Bruno Haible.
65342
65343 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65344
65345         Sync from Automake.
65346         * build-aux/gnupload: Fix shell portability issues with for loops.
65347         Report by Karl Berry.
65348
65349 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65350
65351         * build-aux/maint.mk (POURL): Use translationproject.org.
65352
65353 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65354             Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65357         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65358         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65359         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65360         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65361
65362 2007-06-27  Bruno Haible  <bruno@clisp.org>
65363
65364         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65365         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65366
65367 2007-06-26  Karl Berry  <karl@gnu.org>
65368
65369         * MODULES.html.sh: remove xreadlink-with-size.
65370
65371 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65374         method that I hope also handles the double-include problem noted
65375         by Bruno Haible in
65376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65377
65378 2007-06-23  Bruno Haible  <bruno@clisp.org>
65379
65380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65381         Don't let the 'mostlyclean' target fail if the last subdirectory could
65382         not be removed.
65383         Reported by Karl Berry.
65384
65385 2007-06-23  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (echo): Add a speedier workaround for ksh.
65388         * tests/test-echo.sh: Likewise.
65389
65390 2007-06-23  Bruno Haible  <bruno@clisp.org>
65391
65392         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65393         * tests/test-echo.sh: Likewise.
65394
65395 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65396
65397         * gnulib-tool (IFS): Initialize early, so we don't set it to
65398         empty later.
65399         (self_abspathname): Rewrite algorithm to set it, reindent.
65400         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65401         (func_create_megatestdir): Merge some sed scripts.
65402
65403 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65406         exposed by Sun Studio 11 cc on Solaris 8.
65407
65408 2007-06-22  Bruno Haible  <bruno@clisp.org>
65409
65410         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65411         backslashes.
65412         * tests/test-echo.sh: New file.
65413
65414 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65415
65416         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65417         simplify `sed_replace_build_aux' scripts, they are portable but
65418         echoing them with `echo' is not.
65419         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65420
65421 2007-06-21  Karl Berry  <karl@gnu.org>
65422
65423         * config/srclist.txt: guess we can't handle the licenses via
65424         srclist at the moment.
65425
65426 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * MODULES.html.sh: Add include_next.
65429         * modules/include_next: New file.
65430
65431 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65434         INCLUDE_NEXT.
65435         (gl_CHECK_NEXT_HEADERS): New macro.
65436         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65437         the obsolescent gl_ABSOLUTE_HEADER.
65438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65439         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65440         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65441         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65442         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65443         * m4/math_h.m4 (gl_MATH_H): Likewise.
65444         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65445         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65446         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65447         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65448         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65449         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65455         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65456         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65457         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65458         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65459         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65460         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65461         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65462         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65463         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65464         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65465         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65466         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65467         * lib/float_.h: Likewise.
65468         * lib/inttypes_.h: Likewise.
65469         * lib/math_.h: Likewise.
65470         * lib/search_.h: Likewise.
65471         * lib/signal_.h: Likewise.
65472         * lib/stdint_.h: Likewise.
65473         * lib/stdio_.h: Likewise.
65474         * lib/stdlib_.h: Likewise.
65475         * lib/string_.h: Likewise.
65476         * lib/sys_stat_.h: Likewise.
65477         * lib/sys_time_.h: Likewise.
65478         * lib/time_.h: Likewise.
65479         * lib/unistd_.h: Likewise.
65480         * lib/wchar_.h: Likewise.
65481         * lib/wctype_.h: Likewise.
65482         * lib/dirent_.h: Likewise.
65483         * lib/iconv_.h: Likewise.
65484         * lib/locale_.h: Likewise.
65485         * lib/netinet_in_.h: Likewise.
65486         * lib/sys_select_.h: Likewise.
65487         * lib/sys_socket_.h: Likewise.
65488         * lib/sysexits_.h: Likewise.
65489         * modules/fcntl (Depends-on): Depend on include_next, not
65490         absolute_header.
65491         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65492         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65493         * modules/fchdir: Likewise.
65494         * modules/float: Likewise.
65495         * modules/iconv_open: Likewise.
65496         * modules/inttypes: Likewise.
65497         * modules/locale: Likewise.
65498         * modules/math: Likewise.
65499         * modules/netinet_in: Likewise.
65500         * modules/search: Likewise.
65501         * modules/signal: Likewise.
65502         * modules/stdint: Likewise.
65503         * modules/stdio: Likewise.
65504         * modules/stdlib: Likewise.
65505         * modules/string: Likewise.
65506         * modules/sys_select: Likewise.
65507         * modules/sys_socket: Likewise.
65508         * modules/sys_stat: Likewise.
65509         * modules/sys_time: Likewise.
65510         * modules/sysexits: Likewise.
65511         * modules/time: Likewise.
65512         * modules/unistd: Likewise.
65513         * modules/wchar: Likewise.
65514         * modules/wctype: Likewise.
65515         * modules/sys_stat: Change maintainer to "all".
65516         * modules/unistd: Likewise.
65517
65518 2007-06-20  Karl Berry  <karl@gnu.org>
65519
65520         * config/srclist.txt: track www changes in license files.
65521
65522 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65523
65524         * build-aux/bootstrap: Remove stray dot.
65525         Make sure build_aux settings are honored when linking
65526         gnulib_extra_files.
65527
65528 2007-06-19  Eric Blake  <ebb9@byu.net>
65529
65530         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65531         Allow compilation on cygwin.
65532
65533 2007-06-19  Jim Meyering  <jim@meyering.net>
65534
65535         xreadlink-with-size: Remove module.  No longer used.
65536         Ex-callers now use xreadlink or mreadlink-with-size.
65537         * modules/xreadlink-with-size: Remove module.
65538         * lib/xreadlink-with-size.c: Remove file.
65539         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65540         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65541         just before the function definition *is* accurate.
65542
65543         Eliminate one way canonicalize_filename_mode could exit.
65544         * lib/canonicalize.c (canonicalize_filename_mode):
65545         Use mreadlink_with_size, not xreadlink_with_size.
65546
65547 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         Detect porting problems to FreeBSD/arm, which has time_t wider than
65550         long int.  Original problem reported for GNU diff by Xin Li in
65551         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65552         * modules/getdate (Depends-on): Add intprops, verify.
65553         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65554         is an integer type no wider than long int.
65555
65556 2007-06-18  Jim Meyering  <jim@meyering.net>
65557
65558         New module: mreadlink-with-size.
65559         * MODULES.html.sh: Add mreadlink-with-size.
65560         * modules/mreadlink-with-size: New module
65561         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65562         not xreadlink-with-size.
65563         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65564
65565 2007-06-16  Bruno Haible  <bruno@clisp.org>
65566
65567         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65568         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65569         Reported by Gary V. Vaughan <gary@gnu.org>.
65570
65571 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         Revamp lchown so that it lives in unistd.h where it belongs.
65574         * lib/lchown.h: Remove.
65575         * lib/dirchownmod.c: Don't include lib/lchown.h.
65576         * lib/fchownat.c: Likewise.
65577         * lib/openat.c: Likewise.
65578         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65579         does not follow symlinks.
65580         (EOPNOTSUPP): Define if not defined.
65581         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65582         is defined to 0.
65583         (lchown): New decl.
65584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65585         Do not check for lchown decl.
65586         Set REPLACE_LCHOWN.
65587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65588         REPLACE_LCHOWN.
65589         * modules/chown: Make it clear it follows symlinks.
65590         * modules/lchown: Make it clear it doesn't follow symlinks.
65591         (Files): Remove lib/lchown.h
65592         (Depends-on): Add unistd.
65593         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65594         (Include): Include <unistd.h>, not "lchown.h".
65595         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65596         REPLACE_LCHOWN.
65597
65598 2007-06-15  Jim Meyering  <jim@meyering.net>
65599
65600         Change license (GPL to LGPL) of fsusage and dependents.
65601         * modules/fsusage (License): Change to LGPL.
65602         * modules/full-read (License): Likewise.
65603         * modules/full-write (License): Likewise.
65604         * modules/safe-read (License): Likewise.
65605         * modules/safe-write (License): Likewise.
65606
65607 2007-06-14  Ben Pfaff  <blp@gnu.org>
65608
65609         Missing part of allocsa -> malloca transition.
65610         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65611         gl_MALLOCA.
65612
65613 2007-06-12  Bruno Haible  <bruno@clisp.org>
65614
65615         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65616         to ia64, x86_64, i386.
65617         Reported by Eric Blake.
65618
65619 2007-06-12  Bruno Haible  <bruno@clisp.org>
65620
65621         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65622         cross-compiling to x86_64.
65623
65624 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65627         glitch reported by Ralf Wildenhues in
65628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65629
65630         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65631         Vin Shelton.
65632
65633 2007-06-11  Bruno Haible  <bruno@clisp.org>
65634
65635         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65636         replacement string.
65637         Reported by Eric Blake.
65638
65639 2007-06-10  Bruno Haible  <bruno@clisp.org>
65640
65641         Prepare vasnprintf code for use with Unicode strings.
65642         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65643         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65644         TYPE_U32_STRING.
65645         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65646         a_u32_string variants.
65647         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65648         * lib/printf-args.c: Don't include config.h and the specification
65649         header if PRINTF_FETCHARGS is already defined.
65650         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65651         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65652         TYPE_U16_STRING, TYPE_U32_STRING.
65653         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65654         u16_directive, u16_directives, u32_directive, u32_directives): New
65655         types.
65656         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65657         New declarations.
65658         * lib/printf-parse.c: Don't include config.h and the specification
65659         header if PRINTF_PARSE is already defined. Eliminate the set of
65660         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65661         them now. Include c-ctype.h.
65662         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65663         directive and CHAR_T_ONLY_ASCII.
65664         * lib/vasnprintf.c: Don't include config.h and the specification header
65665         if VASNPRINTF is already defined.
65666         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65667         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65668         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65669         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65670         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65671         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65672         code accordingly.
65673         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65674         pad_ourselves also in this case, with the 'c' and 's' directives, and
65675         with a different notion of "width".
65676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65677
65678 2007-06-10  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/unistr/u32-mbsnlen: New file.
65681         * lib/unistr/u32-mbsnlen.c: New file.
65682
65683         * modules/unistr/u16-mbsnlen: New file.
65684         * lib/unistr/u16-mbsnlen.c: New file.
65685
65686         * modules/unistr/u8-mbsnlen: New file.
65687         * lib/unistr/u8-mbsnlen.c: New file.
65688
65689         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65690         declarations.
65691
65692 2007-06-10  Bruno Haible  <bruno@clisp.org>
65693
65694         * lib/string_.h (mbsnlen): New declaration.
65695         * lib/mbsnlen.c: New file.
65696         * m4/mbsnlen.m4: New file.
65697         * modules/mbsnlen: New file.
65698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65699         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65700         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65701
65702 2007-06-10  Bruno Haible  <bruno@clisp.org>
65703
65704         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65705
65706 2007-06-10  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65709         * lib/mbuiter.h: Likewise.
65710
65711 2007-06-10  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65714         declaration.
65715
65716 2007-06-10  Karl Berry  <karl@gnu.org>
65717
65718         * config/srclist.txt: remove gettext entries, Bruno prefers
65719         to update individually.
65720
65721 2007-06-10  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65724         'maxlen'. Ensure only length + width bytes are allocated, not
65725         length + 1 + width.
65726
65727 2007-06-09  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65730         (CHAR_T): Remove macro.
65731         (VASNPRINTF): Update.
65732
65733 2007-06-09  Bruno Haible  <bruno@clisp.org>
65734
65735         * MODULES.html.sh (Unicode string functions): Add the new modules.
65736
65737         * modules/uniconv/u32-conv-to-enc: New file.
65738         * lib/uniconv/u32-conv-to-enc.c: New file.
65739         * modules/uniconv/u32-conv-to-enc-tests: New file.
65740         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65741
65742         * modules/uniconv/u16-conv-to-enc: New file.
65743         * lib/uniconv/u16-conv-to-enc.c: New file.
65744         * lib/uniconv/u-conv-to-enc.h: New file.
65745         * modules/uniconv/u16-conv-to-enc-tests: New file.
65746         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65747
65748         * modules/uniconv/u8-conv-to-enc: New file.
65749         * lib/uniconv/u8-conv-to-enc.c: New file.
65750         * modules/uniconv/u8-conv-to-enc-tests: New file.
65751         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65752
65753         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65754         u32_conv_to_encoding): New declarations.
65755
65756 2007-06-09  Bruno Haible  <bruno@clisp.org>
65757
65758         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65759
65760 2007-06-09  Bruno Haible  <bruno@clisp.org>
65761
65762         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65763         * modules/malloca: Renamed from modules/allocsa, updated.
65764         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65765         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65766         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65767         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65768         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65769         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65770         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65771         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65772         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65773         * modules/c-strcasestr (Depends-on): Update.
65774         * lib/c-strcasestr.c: Update.
65775         * modules/c-strstr (Depends-on): Update.
65776         * lib/c-strstr.c: Update.
65777         * modules/canonicalize-lgpl (Depends-on): Update.
65778         * lib/canonicalize-lgpl.c: Update.
65779         * modules/clean-temp (Depends-on): Update.
65780         * lib/clean-temp.c: Update.
65781         * modules/csharpcomp (Depends-on): Update.
65782         * lib/csharpcomp.c: Update.
65783         * modules/csharpexec (Depends-on): Update.
65784         * lib/csharpexec.c: Update.
65785         * modules/javacomp (Depends-on): Update.
65786         * lib/javacomp.c: Update.
65787         * modules/javaexec (Depends-on): Update.
65788         * lib/javaexec.c: Update.
65789         * modules/mbscasestr (Depends-on): Update.
65790         * lib/mbscasestr.c: Update.
65791         * modules/mbsstr (Depends-on): Update.
65792         * lib/mbsstr.c: Update.
65793         * modules/setenv (Depends-on): Update.
65794         * lib/setenv.c: Update.
65795         * modules/strcasestr (Depends-on): Update.
65796         * lib/strcasestr.c: Update.
65797         * modules/striconveha (Depends-on): Update.
65798         * lib/striconveha.c: Update.
65799         * modules/relocatable-prog-wrapper (Files): Update.
65800         * lib/relocwrapper.c: Update.
65801         * build-aux/install-reloc: Update.
65802         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65803
65804 2007-06-08  Bruno Haible  <bruno@clisp.org>
65805
65806         Port to uClibc.
65807         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65808         * lib/fpurge.c (fpurge): Likewise.
65809         * lib/freading.c (freading): Likewise.
65810         * lib/fseeko.c (rpl_fseeko): Likewise.
65811         * lib/fseterr.c (fseterr): Likewise.
65812         * lib/fwriting.c (fwriting): Likewise.
65813         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65814
65815 2007-06-08  Bruno Haible  <bruno@clisp.org>
65816
65817         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65818         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65819         * modules/gettext (Files): Add m4/intlmacosx.m4.
65820
65821 2007-06-07  Bruno Haible  <bruno@clisp.org>
65822
65823         * modules/localename-tests: New file.
65824         * tests/test-localename.c: New file.
65825
65826         New module 'localename'.
65827         * lib/localename.h: New file.
65828         * lib/localename.c: New file, from GNU gettext.
65829         * m4/localename.m4: New file.
65830         * modules/localename: New file.
65831
65832 2007-06-07  Bruno Haible  <bruno@clisp.org>
65833
65834         Work around the lack of <wchar.h> on some builds of uClibc.
65835         * doc/headers/wchar.texi: Update.
65836         * lib/wchar_.h: Include <wchar.h> only if it exists.
65837         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65838         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65839         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65840         doesn't exist.
65841         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65842         * modules/mbfile (Depends-on): Add wchar.
65843         * modules/mbiter (Depends-on): Likewise.
65844         * modules/mbuiter (Depends-on): Likewise.
65845         Reported by Simon Josefsson.
65846
65847 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         Work around problem reported by Steven M. Schweda in
65850         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65851         Tru64 5.1B with the Compaq compiler environment installed declares
65852         an 'isblank' function but does not define it in the C library.
65853         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65854         * lib/regex_internal.h (isblank): Likewise.
65855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65856         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65857
65858 2007-06-05  Bruno Haible  <bruno@clisp.org>
65859
65860         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65861         ia64.
65862         * modules/printf-safe: New file.
65863         * modules/fprintf-posix (Depends-on): Add printf-safe.
65864         * modules/printf-posix (Depends-on): Likewise.
65865         * modules/snprintf-posix (Depends-on): Likewise.
65866         * modules/sprintf-posix (Depends-on): Likewise.
65867         * modules/vasnprintf-posix (Depends-on): Likewise.
65868         * modules/vasprintf-posix (Depends-on): Likewise.
65869         * modules/vfprintf-posix (Depends-on): Likewise.
65870         * modules/vprintf-posix (Depends-on): Likewise.
65871         * modules/vsnprintf-posix (Depends-on): Likewise.
65872         * modules/vsprintf-posix (Depends-on): Likewise.
65873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65874         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65875         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65876         "no" on i386, x86_64, ia64.
65877         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65878         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65879         on i386, x86_64, ia64.
65880         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65882         on i386, x86_64, ia64.
65883         * tests/test-vasnprintf-posix.c: Include float.h.
65884         (LDBL80_WORDS): New macro.
65885         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65886         on i386, x86_64, ia64.
65887         * tests/test-vasprintf-posix.c: Include float.h.
65888         (LDBL80_WORDS): New macro.
65889         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65890         on i386, x86_64, ia64.
65891         * tests/test-snprintf-posix.c: Include float.h.
65892         * tests/test-sprintf-posix.c: Likewise.
65893         * tests/test-vsnprintf-posix.c: Likewise.
65894         * tests/test-vsprintf-posix.c: Likewise.
65895
65896 2007-06-05  Bruno Haible  <bruno@clisp.org>
65897
65898         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65899         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65900         non-IEEE numbers on i386, x86_64, ia64.
65901         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65902         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65903         * tests/test-isnanl.h: Include float.h.
65904         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65905
65906 2007-06-05  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65909         also the %a / %A. Handle the %a / %A code before this extra handling.
65910
65911 2007-06-05  Bruno Haible  <bruno@clisp.org>
65912
65913         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65914         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65915
65916 2007-06-05  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65919         typo in variable name.
65920
65921 2007-06-05  Eric Blake  <ebb9@byu.net>
65922
65923         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65924         Reported by Simon Josefsson.
65925
65926 2007-06-04  Bruno Haible  <bruno@clisp.org>
65927
65928         Avoid test failures on some PowerPC platforms.
65929         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65930         Define differently for PowerPC.
65931         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65932         Reported by Gary V. Vaughan <gary@gnu.org>.
65933
65934 2007-06-02  Bruno Haible  <bruno@clisp.org>
65935
65936         Fix test-stdint failure on FreeBSD/ia64.
65937         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65938         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65939         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65940         * doc/headers/stdint.texi: Update.
65941
65942 2007-06-01  Bruno Haible  <bruno@clisp.org>
65943
65944         * tests/test-binary-io.c (main): Pass a third argument to open().
65945         Reported by Gary V. Vaughan <gary@gnu.org>.
65946
65947 2007-06-01  Bruno Haible  <bruno@clisp.org>
65948
65949         * doc/functions/frexpl.texi: Update for mingw.
65950
65951 2007-06-01  Bruno Haible  <bruno@clisp.org>
65952
65953         * tests/test-lseek.c (main): Disable test of errno for invalid third
65954         argument.
65955         * doc/functions/lseek.texi: Update.
65956         Reported by Gary V. Vaughan <gary@gnu.org>.
65957
65958 2007-05-28  Bruno Haible  <bruno@clisp.org>
65959
65960         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65961
65962 2007-05-31  Eric Blake  <ebb9@byu.net>
65963
65964         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65965         cross compiling.
65966
65967 2007-05-30  Eric Blake  <ebb9@byu.net>
65968         and Bruno Haible  <bruno@clisp.org>
65969
65970         Work around mingw test failures exposed by m4-1.4.9b.
65971         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65972         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65973         moment.
65974
65975 2007-05-30  Bruno Haible  <bruno@clisp.org>
65976
65977         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65978         assuming that they are closed. Needed on HP-UX 11.
65979
65980 2007-05-29  Bruno Haible  <bruno@clisp.org>
65981
65982         Fix a problem with #include_next.
65983         * lib/dirent_.h: Split the double-inclusion guard.
65984         * lib/fcntl_.h: Likewise.
65985         * lib/float_.h: Likewise.
65986         * lib/iconv_.h: Likewise.
65987         * lib/inttypes_.h: Likewise.
65988         * lib/locale_.h: Likewise.
65989         * lib/math_.h: Likewise.
65990         * lib/netinet_in_.h: Likewise.
65991         * lib/search_.h: Likewise.
65992         * lib/signal_.h: Likewise.
65993         * lib/stdint_.h: Likewise.
65994         * lib/stdio_.h: Likewise.
65995         * lib/stdlib_.h: Likewise.
65996         * lib/string_.h: Likewise.
65997         * lib/sys_select_.h: Likewise.
65998         * lib/sys_socket_.h: Likewise.
65999         * lib/sys_stat_.h: Likewise.
66000         * lib/sys_time_.h: Likewise.
66001         * lib/sysexits_.h: Likewise.
66002         * lib/time_.h: Likewise.
66003         * lib/unistd_.h: Likewise.
66004         * lib/wchar_.h: Likewise.
66005         * lib/wctype_.h: Likewise.
66006
66007 2007-05-29  Bruno Haible  <bruno@clisp.org>
66008
66009         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66010         for the moment.
66011
66012 2007-05-29  Bruno Haible  <bruno@clisp.org>
66013
66014         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66015         invocation.
66016         Reported by Eric Blake.
66017
66018 2007-05-29  Bruno Haible  <bruno@clisp.org>
66019
66020         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66021         compiling case.
66022
66023 2007-05-29  Eric Blake  <ebb9@byu.net>
66024             Bruno Haible  <bruno@clisp.org>
66025
66026         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66027         cross compiles.
66028
66029 2007-05-28  Eric Blake  <ebb9@byu.net>
66030
66031         * modules/closein-tests (test_closein_LDADD): Support test on
66032         cygwin with libtool.
66033
66034 2007-05-28  Bruno Haible  <bruno@clisp.org>
66035
66036         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66037         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66038         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66039         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66040         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66041         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66042         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66043         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66044         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66045
66046 2007-05-28  Eric Blake  <ebb9@byu.net>
66047
66048         Unconditionally include <config.h> in unit tests.
66049         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66050         * tests/test-allocsa.c, tests/test-arcfour.c,
66051         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66052         tests/test-array_list.c, tests/test-array_oset.c,
66053         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66054         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66055         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66056         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66057         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66058         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66059         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66060         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66061         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66062         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66063         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66064         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66065         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66066         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66067         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66068         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66069         test-md5.c, test-memmem.c, test-printf-posix.c,
66070         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66071         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66072         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66073         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66074         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66075         test-vasnprintf-posix2.c, test-vasnprintf.c,
66076         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66077         test-vfprintf-posix.c, test-vprintf-posix.c,
66078         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66079         test-xvasprintf.c: Likewise.
66080
66081 2007-05-28  Bruno Haible  <bruno@clisp.org>
66082
66083         * gnulib-tool (func_import): Remember the --with-tests command-line
66084         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66085         Reported by Eric Blake.
66086
66087 2007-05-28  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/ftell-tests: New file.
66090         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66091         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66092
66093         * lib/ftell.c: New file.
66094         * modules/ftell: New file.
66095         * m4/ftell.m4: New file.
66096         * doc/functions/ftell.texi: Update.
66097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66098         REPLACE_FTELL.
66099         * lib/stdio_.h (rpl_ftell): New declaration.
66100         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66101         REPLACE_FTELL.
66102
66103 2007-05-28  Eric Blake  <ebb9@byu.net>
66104
66105         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66106
66107 2007-05-28  Bruno Haible  <bruno@clisp.org>
66108
66109         * modules/fseek-tests: New file.
66110         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66111         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66112
66113         * lib/fseek.c: New file.
66114         * modules/fseek: New file.
66115         * m4/fseek.m4: New file.
66116         * doc/functions/fseek.texi: Update.
66117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66118         REPLACE_FSEEK.
66119         * lib/stdio_.h (rpl_fseek): New declaration.
66120         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66121         REPLACE_FSEEK.
66122
66123 2007-05-28  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/stdio_.h (fflush): More comments.
66126
66127 2007-05-28  Bruno Haible  <bruno@clisp.org>
66128
66129         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66130         runtime test.
66131
66132 2007-05-28  Eric Blake  <ebb9@byu.net>
66133
66134         Improve lseek module.
66135         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66136         * lib/unistd_.h (lseek): Scale back link warning message.
66137         * tests/test-lseek.c: Beef up test.
66138         * tests/test-lseek.sh: Exercise more facets of lseek.
66139         Reported by Bruno Haible.
66140
66141 2007-05-28  Bruno Haible  <bruno@clisp.org>
66142
66143         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66144         to define.
66145
66146 2007-05-27  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66149
66150 2007-05-27  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/openmp: New file.
66153         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66154         Noah Misch.
66155
66156 2007-05-26  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/chdir-long (Depends-on): Add fchdir.
66159         * modules/chdir-safer (Depends-on): Likewise.
66160         * modules/fts (Depends-on): Likewise.
66161         * modules/fts-lgpl (Depends-on): Likewise.
66162         * modules/openat (Depends-on): Likewise.
66163         * modules/savewd (Depends-on): Likewise.
66164
66165 2007-05-24  Eric Blake  <ebb9@byu.net>
66166
66167         Fix lseek on mingw.
66168         * modules/lseek: New module.
66169         * m4/lseek.m4: New file.
66170         * lib/lseek.c: New file.
66171         * modules/lseek-tests: New file.
66172         * tests/test-lseek.c: New file.
66173         * tests/test-lseek.sh: New file.
66174         * MODULES.html.sh: Document lseek module.
66175         * modules/fflush (Depends-on): Add lseek, fseeko.
66176         * modules/fseeko (Depends-on): Likewise.
66177         * modules/ftello (Depends-on): Likewise.
66178         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66179         broken.
66180         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66181         broken.
66182         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66183         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66184         * lib/ftello.c (rpl_ftello): Likewise.
66185         * tests/test-fseeko.c (main): Test this.
66186         * tests/test-fseeko.sh: Likewise.
66187         * tests/test-ftello.c (main): Likewise.
66188         * tests/test-ftello.sh: Likewise.
66189         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66190         implies replacing fseek.
66191         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66192         HAVE_FTELLO.
66193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66194         * modules/unistd (Makefile.am): Likewise.
66195         * lib/unistd_.h (lseek): Declare a replacement.
66196         * doc/functions/lseek.texi (lseek): Document this fix.
66197         * doc/functions/fseek.texi (fseek): Likewise.
66198         * doc/functions/ftell.texi (ftell): Likewise.
66199
66200 2007-05-24  Bruno Haible  <bruno@clisp.org>
66201
66202         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66203         in the printed representation of a NaN.
66204         * tests/test-vasprintf-posix.c (test_function): Likewise.
66205         * tests/test-snprintf-posix.h (test_function): Likewise.
66206         * tests/test-sprintf-posix.h (test_function): Likewise.
66207         Reported by Eric Blake.
66208
66209 2007-05-23  Eric Blake  <ebb9@byu.net>
66210
66211         Fix fseeko/ftello on cygwin 1.5.24.
66212         * doc/functions/fseeko.texi (fseeko): Document the fix.
66213         * doc/functions/ftello.texi (ftello): Document the fix.
66214         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66215         * doc/functions/stdout.text (stdout): New file.
66216         * doc/functions/stderr.text (stderr): New file.
66217         * doc/gnulib.texi (Function Substitutes): Use new files.
66218         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66219         prior to 1.7.0.
66220         * tests/test-ftello.c (main): Likewise for ftello.
66221         * tests/test-fseeko.sh: New file.
66222         * tests/test-ftello.sh: New file.
66223         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66224         with seekable stdin.
66225         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66227         (gl_REPLACE_FSEEKO): New macro.
66228         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66229         * modules/fseeko (Files): Distribute fseeko.c.
66230         * modules/ftello (Files): Distribute ftello.c.
66231         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66232         mode.
66233         * lib/ftello.c (rpl_ftello): New file.
66234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66235         fseeko, ftello.
66236         (gl_STDIN_LARGE_OFFSET): New macro.
66237         * modules/stdio (Makefile.am): Perform the replacement.
66238         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66239
66240 2007-05-23  Bruno Haible  <bruno@clisp.org>
66241
66242         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66243         GNULIB_POSIXCHECK is defined.
66244
66245 2007-05-21  Bruno Haible  <bruno@clisp.org>
66246
66247         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66248         Check also the output for NaN arguments. When cross-compiling, guess
66249         no on IRIX.
66250         * lib/vasnprintf.c: Update comments.
66251         * tests/test-vasnprintf-posix.c (strisnan): New function.
66252         (test_function): Use it.
66253         * tests/test-vasprintf-posix.c (strisnan): New function.
66254         (test_function): Use it.
66255         * tests/test-snprintf-posix.h (strisnan): New function.
66256         (test_function): Use it.
66257         * tests/test-sprintf-posix.h (strisnan): New function.
66258         (test_function): Use it.
66259         Reported by Eric Blake.
66260
66261 2007-05-20  Bruno Haible  <bruno@clisp.org>
66262
66263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66264         numbers that fails on BeOS.
66265         * doc/functions/frexpl.texi: Update.
66266
66267 2007-05-20  Jim Meyering  <jim@meyering.net>
66268
66269         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66270         forced upon us by glibc-2.6.
66271
66272 2007-05-20  Bruno Haible  <bruno@clisp.org>
66273
66274         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66275         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66276         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66277         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66278         NEED_PRINTF_INFINITE.
66279         (is_infinitel): New function.
66280         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66282         gl_PREREQ_VASNPRINTF_INFINITE.
66283         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66284         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66285         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66286         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66287         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66288         gl_PREREQ_VASNPRINTF_INFINITE.
66289         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66296         * doc/functions/fprintf.texi: Update.
66297         * doc/functions/printf.texi: Update.
66298         * doc/functions/snprintf.texi: Update.
66299         * doc/functions/sprintf.texi: Update.
66300         * doc/functions/vfprintf.texi: Update.
66301         * doc/functions/vprintf.texi: Update.
66302         * doc/functions/vsnprintf.texi: Update.
66303         * doc/functions/vsprintf.texi: Update.
66304
66305 2007-05-20  Bruno Haible  <bruno@clisp.org>
66306
66307         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66308         was not found in libc.
66309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66310
66311 2007-05-20  Bruno Haible  <bruno@clisp.org>
66312
66313         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66314         printed as "-nan" instead of "nan".
66315         * tests/test-vasprintf-posix.c (test_function): Likewise.
66316         * tests/test-snprintf-posix.h (test_function): Likewise.
66317         * tests/test-sprintf-posix.h (test_function): Likewise.
66318         Needed for HP-UX 11.
66319
66320 2007-05-20  Jim Meyering  <jim@meyering.net>
66321
66322         Fix buggy test for the fchownat-deref bug.
66323         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66324         symlink required for the run-test.  Without it, this test would
66325         always declare that fchownat doesn't work, and client code would
66326         unnecessarily use the replacement function with fixed libc.
66327         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66328         Reported by Greg Schafer.
66329
66330 2007-05-19  Bruno Haible  <bruno@clisp.org>
66331
66332         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66333         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66334         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66335         Needed for IRIX 6.5 and Solaris 2.5.1.
66336
66337 2007-05-19  Bruno Haible  <bruno@clisp.org>
66338
66339         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66340         (test_function): Skip tests involving -0.0 on platforms where
66341         -0.0 = 0.0.
66342         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66343         (test_function): Skip tests involving -0.0 on platforms where
66344         -0.0 = 0.0.
66345         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66346         (test_function): Skip tests involving -0.0 on platforms where
66347         -0.0 = 0.0.
66348         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66349         (test_function): Skip tests involving -0.0 on platforms where
66350         -0.0 = 0.0.
66351         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66352         tests.
66353         * tests/test-printf-posix.h (test_function): Likewise.
66354         * tests/test-printf-posix.output: Remove all -0.0 related results.
66355         Needed for IRIX 6.5.
66356
66357 2007-05-19  Bruno Haible  <bruno@clisp.org>
66358
66359         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66360         printed as "nan0x7fffffff" instead of "nan".
66361         * tests/test-vasprintf-posix.c (test_function): Likewise.
66362         * tests/test-snprintf-posix.h (test_function): Likewise.
66363         * tests/test-sprintf-posix.h (test_function): Likewise.
66364         * tests/test-fprintf-posix.h (NaN): Remove macro.
66365         (test_function): Remove all NaN related tests.
66366         * tests/test-printf-posix.h (NaN): Remove macro.
66367         (test_function): Remove all NaN related tests.
66368         * tests/test-printf-posix.output: Remove all NaN related results.
66369         Needed for IRIX 6.5.
66370
66371 2007-05-19  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66375
66376 2007-05-19  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/float_.h: New file.
66379         * m4/float_h.m4: New file.
66380         * modules/float: New file.
66381         * modules/isnanl (Dependencies): Add float.
66382         * modules/isnanl-nolibm (Dependencies): Likewise.
66383         * modules/mathl (Dependencies): Likewise.
66384         * modules/printf-frexpl (Dependencies): Likewise.
66385         * modules/signbit (Dependencies): Likewise.
66386         * modules/vasnprintf (Dependencies): Likewise.
66387         * doc/headers/float.texi: Update.
66388
66389 2007-05-19  Jim Meyering  <jim@meyering.net>
66390
66391         * lib/utimens.c (gl_futimens): Rename from futimens,
66392         now that glibc-2.6 declares futimens.
66393         * lib/utimens.h: Likewise.
66394
66395 2007-05-19  Bruno Haible  <bruno@clisp.org>
66396
66397         Avoid test failures on mingw.
66398         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66399         * tests/test-printf-posix.sh: Likewise.
66400         * tests/test-vfprintf-posix.sh: Likewise.
66401         * tests/test-vprintf-posix.sh: Likewise.
66402
66403 2007-05-19  Bruno Haible  <bruno@clisp.org>
66404
66405         Fix *printf result for NaN, Inf, -0.0 on mingw.
66406         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66407         * lib/vasnprintf.c: Include math.h and isnan.h.
66408         (is_infinite_or_zero): New function.
66409         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66410         values in the %f, %F, %e, %E, %g, %G directives.
66411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66413         gl_PRINTF_INFINITE and test its result. Invoke
66414         gl_PREREQ_VASNPRINTF_INFINITE.
66415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66422         * doc/functions/fprintf.texi: Update.
66423         * doc/functions/printf.texi: Update.
66424         * doc/functions/snprintf.texi: Update.
66425         * doc/functions/sprintf.texi: Update.
66426         * doc/functions/vfprintf.texi: Update.
66427         * doc/functions/vprintf.texi: Update.
66428         * doc/functions/vsnprintf.texi: Update.
66429         * doc/functions/vsprintf.texi: Update.
66430
66431 2007-05-19  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66434         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66435         Instead of multiplying with 10^k, set extra_zeroes to k.
66436         (scale10_round_long_double): Remove function.
66437
66438 2007-05-18  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66441         introduced on 2007-05-06.
66442
66443 2007-05-18  Bruno Haible  <bruno@clisp.org>
66444
66445         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66446         %g directives.
66447         * tests/test-vasprintf-posix.c (test_function): Likewise.
66448         * tests/test-snprintf-posix.h (test_function): Likewise.
66449         * tests/test-sprintf-posix.h (test_function): Likewise.
66450
66451 2007-05-18  Bruno Haible  <bruno@clisp.org>
66452
66453         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66454         (strmatch): New function.
66455         (test_function): Test the %f directive on numbers of various exponents.
66456         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66457         (strmatch): New function.
66458         (test_function): Test the %f directive on numbers of various exponents.
66459         * tests/test-snprintf-posix.h (strmatch): New function.
66460         (test_function): Test the %f directive on numbers of various exponents.
66461         * tests/test-sprintf-posix.h (strmatch): New function.
66462         (test_function): Test the %f directive on numbers of various exponents.
66463         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66464         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66465         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66466         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66467
66468 2007-05-18  Bruno Haible  <bruno@clisp.org>
66469
66470         Add support for 'long double' number output.
66471         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66472         * lib/vasnprintf.c: Include math.h and float+.h.
66473         (mp_limb_t): New type.
66474         (GMP_LIMB_BITS): New macro.
66475         (mp_twolimb_t): New type.
66476         (GMP_TWOLIMB_BITS): New macro.
66477         (mpn_t): New type.
66478         (multiply, divide, convert_to_decimal, decode_long_double,
66479         scale10_round_long_double, scale10_round_decimal_long_double,
66480         floorlog10l): New functions.
66481         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66482         for the %f, %F, %e, %E, %g, %G directives.
66483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66485         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66486         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66494         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66495         * modules/snprintf-posix (Depends-on): Likewise.
66496         * modules/sprintf-posix (Depends-on): Likewise.
66497         * modules/vasnprintf-posix (Depends-on): Likewise.
66498         * modules/vasprintf-posix (Depends-on): Likewise.
66499         * modules/vfprintf-posix (Depends-on): Likewise.
66500         * modules/vsnprintf-posix (Depends-on): Likewise.
66501         * modules/vsprintf-posix (Depends-on): Likewise.
66502         * modules/vasnprintf (Files): Add lib/float+.h.
66503         * doc/functions/fprintf.texi: Update.
66504         * doc/functions/printf.texi: Update.
66505         * doc/functions/snprintf.texi: Update.
66506         * doc/functions/sprintf.texi: Update.
66507         * doc/functions/vfprintf.texi: Update.
66508         * doc/functions/vprintf.texi: Update.
66509         * doc/functions/vsnprintf.texi: Update.
66510         * doc/functions/vsprintf.texi: Update.
66511
66512 2007-05-18  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66515
66516 2007-05-18  Bruno Haible  <bruno@clisp.org>
66517
66518         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66519         for printing 64-bit integers. Needed for mingw.
66520
66521 2007-05-18  Bruno Haible  <bruno@clisp.org>
66522
66523         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66524         gl_FUNC_FREXPL_WORKS.
66525         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66526
66527 2007-05-18  Bruno Haible  <bruno@clisp.org>
66528
66529         * modules/frexpl-nolibm-tests: New file.
66530
66531         * modules/frexpl-nolibm: New file.
66532         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66533
66534 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66537         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66538         GCC 4.2, which otherwise issues a lot of warnings.
66539         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66540         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66541         Likewise.
66542         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66543         * modules/iconv_open (iconv.h): Likewise.
66544         * modules/locale (locale.h): Likewise.
66545         * modules/netinet_in (netinet/in.h): Likewise.
66546         * modules/sys_select (sys_select.h): Likewise.
66547         * modules/sys_socket (sys/socket.h): Likewise.
66548         * modules/sys_stat (sys/stat.h): Likewise.
66549         * modules/sysexits (sysexits.h): Likewise.
66550         * modules/unistd (unistd.h): Likewise.
66551
66552 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66553
66554         * modules/closein-tests (Makefile.am): Distribute
66555         `test-closein.sh'.
66556
66557 2007-05-17  Bruno Haible  <bruno@clisp.org>
66558
66559         * tests/test-printf-posix.output: Renamed from
66560         tests/test-fprintf-posix.out.
66561         * modules/fprintf-posix-tests: Update.
66562         * modules/printf-posix-tests: Update.
66563         * modules/vfprintf-posix-tests: Update.
66564         * modules/vprintf-posix-tests: Update.
66565         * tests/test-fprintf-posix.sh: Update.
66566         * tests/test-printf-posix.sh: Update.
66567         * tests/test-vfprintf-posix.sh: Update.
66568         * tests/test-vprintf-posix.sh: Update.
66569         Reported by Ralf Wildenhues.
66570
66571 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66574         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66575         GCC 4.2, which otherwise issues a lot of warnings.
66576         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66577         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66578         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66579         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66580         it should no longer be needed.
66581         * lib/string_.h: Likewise.
66582         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66583         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66584         * modules/inttypes (inttypes.h): Likewise.
66585         * modules/math (math.h): Likewise.
66586         * modules/search (search.h): Likewise.
66587         * modules/signal (signal.h): Likewise.
66588         * modules/stdint (stdint.h): Likewise.
66589         * modules/stdio (stdio.h): Likewise.
66590         * modules/stdlib (stdlib.h): Likewise.
66591         * modules/string (string.h): Likewise.
66592         * modules/sys_time (sys/time.h): Likewise.
66593         * modules/time (time.h): Likewise.
66594         * modules/wchar (wchar.h): Likewise.
66595         * modules/wctype (wtype.h): Likewise.
66596
66597 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66598
66599         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66600
66601 2007-05-13  Bruno Haible  <bruno@clisp.org>
66602
66603         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66604         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66605         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66606         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66607         (gl_PREREQ_STRTOK_R): Don't require it here.
66608
66609 2007-05-13  Bruno Haible  <bruno@clisp.org>
66610
66611         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66612         when used in C++ mode.
66613
66614 2007-05-12  Bruno Haible  <bruno@clisp.org>
66615
66616         * lib/linebuffer.h: Tweak doc.
66617         * lib/linebuffer.c: Likewise.
66618
66619 2007-05-12  James Youngman  <jay@gnu.org>
66620
66621         * lib/linebuffer.c (readlinebuffer_delim): New function,
66622         like readlinebuffer, but use a caller-specified delimiter.
66623         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66624         as the delimiter.
66625         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66626
66627 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66628
66629         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66630         * modules/openat (Files): Remove openat-die.c.
66631         (Depends-on): Add openat-die.
66632         * modules/openat-die: New module.
66633
66634 2007-05-06  Bruno Haible  <bruno@clisp.org>
66635
66636         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66637         Update with info about Cygwin.
66638         * doc/functions/fprintf.texi: Update.
66639         * doc/functions/printf.texi: Update.
66640         * doc/functions/snprintf.texi: Update.
66641         * doc/functions/sprintf.texi: Update.
66642         * doc/functions/vfprintf.texi: Update.
66643         * doc/functions/vprintf.texi: Update.
66644         * doc/functions/vsnprintf.texi: Update.
66645         * doc/functions/vsprintf.texi: Update.
66646         Reported by Eric Blake.
66647
66648 2007-05-06  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66651         padding ourselves for the floating-point directives.
66652         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66655         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66656         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
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 width
66665         and some flags in the %f directive.
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-06  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66681         pass the ' flag character to sprintf or snprintf.
66682         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66685         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66686         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66694         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66695         flag.
66696         * tests/test-sprintf-posix.h (test_function): Likewise.
66697         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66698         * tests/test-vasprintf-posix.c (test_function): Likewise.
66699         * doc/functions/fprintf.texi: Update.
66700         * doc/functions/printf.texi: Update.
66701         * doc/functions/snprintf.texi: Update.
66702         * doc/functions/sprintf.texi: Update.
66703         * doc/functions/vfprintf.texi: Update.
66704         * doc/functions/vprintf.texi: Update.
66705         * doc/functions/vsnprintf.texi: Update.
66706         * doc/functions/vsprintf.texi: Update.
66707
66708 2007-05-01  Bruno Haible  <bruno@clisp.org>
66709
66710         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66711
66712 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66715         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66716
66717 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66720         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66722
66723 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66724
66725         * lib/argp-help.c (struct hol_entry): New member `ord'.
66726         (HOL_ENTRY_PTRCMP): Use ord for comparison
66727         (hol_sort): Initialize ord.
66728
66729 2007-05-01  Bruno Haible  <bruno@clisp.org>
66730
66731         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66732         Reported by Eric Blake.
66733         * doc/gnulib.texi (Function Substitutes): Update.
66734
66735 2007-05-01  Bruno Haible  <bruno@clisp.org>
66736
66737         * doc/functions.texi: Remove file, now redundant through
66738         doc/functions/*.texi.
66739
66740 2007-05-01  Bruno Haible  <bruno@clisp.org>
66741
66742         * modules/argp (Depends-on): Add sleep.
66743
66744 2007-05-01  Bruno Haible  <bruno@clisp.org>
66745
66746         * modules/sleep-tests: New file.
66747         * tests/test-sleep.c: New file.
66748
66749         * modules/sleep: New file.
66750         * lib/sleep.c: New file.
66751         * m4/sleep.m4: New file.
66752         * lib/unistd_.h (sleep): New declaration.
66753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66754         HAVE_SLEEP.
66755         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66756         * doc/functions/sleep.texi: Document the sleep module.
66757
66758 2007-05-01  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/sigprocmask.h: Remove file.
66761         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66762         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66763         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66764         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66765         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66766         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66767         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66768         HAVE_SIGSET_T as a shell variable.
66769         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66770         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66771         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66772         (Depends-on): Add signal. Remove verify.
66773         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66774         (Include): Mention <signal.h> instead of sigprocmask.h.
66775         * NEWS: Mention the change.
66776         * lib/fatal-signal.c: Don't include sigprocmask.h.
66777
66778 2007-05-01  Bruno Haible  <bruno@clisp.org>
66779
66780         * modules/signal: New file.
66781         * lib/signal_.h: New file.
66782         * m4/signal_h.m4: New file.
66783
66784 2007-05-01  Bruno Haible  <bruno@clisp.org>
66785
66786         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66787         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66788         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66789         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66790
66791 2007-05-01  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66794         configure time.
66795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66796         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66797         * modules/sys_stat (Makefile.am): Substitute their values into
66798         sys/stat.h.
66799
66800 2007-05-01  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66803         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66804         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66805
66806 2007-05-01  Bruno Haible  <bruno@clisp.org>
66807
66808         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66809         'assert' module here.
66810
66811 2007-05-01  Bruno Haible  <bruno@clisp.org>
66812
66813         * doc/functions/*.texi: New files.
66814         * doc/functions/google-ranking.txt: New file.
66815         * doc/gnulib.texi (Function Substitutes): New chapter.
66816         (ctime, inet_ntoa): Remove sections.
66817         * doc/ctime.texi: Remove file.
66818         * doc/inet_ntoa.texi: Remove file.
66819         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66820         dependencies.
66821         (%.info): New rule, specifying a --reference-limit.
66822
66823 2007-05-01  Bruno Haible  <bruno@clisp.org>
66824
66825         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66826
66827 2007-05-01  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66830         the portability of 'mkdir' to mingw systems.
66831
66832 2007-05-01  Bruno Haible  <bruno@clisp.org>
66833
66834         * doc/headers/google-ranking.txt: New file.
66835
66836 2007-04-30  Eric Blake  <ebb9@byu.net>
66837
66838         Prefer fseeko to fseek.
66839         * modules/getpass (Depends-on): Add fseeko.
66840         * lib/getpass.c (getpass): Use fseeko, not fseek.
66841
66842 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66843
66844         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66845         assumes the sorting is stable, while most qsort implementations
66846         are not.  Use argument addresses to ensure they never compare as
66847         equal.
66848
66849         * tests/test-argp-2.sh (usage-indent test): Fix output
66850         (func_compare): Restore diff options
66851         * tests/test-argp.c: Restore #include "progname.h"
66852
66853 2007-04-29  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66857         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66859         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66860         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66861         (TESTS, check_PROGRAMS): Add test-snprintf.
66862         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66863         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66864         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66865         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66866         assertions that fail on HP-UX, OSF/1, or IRIX.
66867         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66868
66869 2007-04-29  Bruno Haible  <bruno@clisp.org>
66870
66871         * MODULES.html.sh (posix_functions): Remove 'contents'.
66872
66873 2007-04-29  Karl Berry  <karl@gnu.org>
66874
66875         * config/srclist.txt (gendocs_template_min): new entry.
66876
66877 2007-04-29  Bruno Haible  <bruno@clisp.org>
66878
66879         Work around fpurge bug on BSD systems.
66880         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66882         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66883         fpurge to rpl_fpurge if the system already has this function.
66884         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66885         the case where the system already has this function. Correct invariants
66886         on BSD systems.
66887         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66888         BSD systems.
66889
66890 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66891
66892         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66893         proposed by Sven Verdoolaege.
66894
66895         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66896         options.
66897         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66898         (usage and help tests): Update
66899
66900 2007-04-29  Bruno Haible  <bruno@clisp.org>
66901
66902         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66903         Print more information in case of failure. Disable a test on BeOS.
66904
66905 2007-04-29  Bruno Haible  <bruno@clisp.org>
66906
66907         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66908         This helps debugging on systems on which no gdb is available.
66909
66910 2007-04-29  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/freading.h: Improve comments.
66913         * lib/fwriting.h: Likewise.
66914         * tests/test-freading.c (main): Don't check freading immediately after
66915         repositioning. Needed for glibc.
66916
66917 2007-04-29  Bruno Haible  <bruno@clisp.org>
66918
66919         * lib/freading.c (freading): Trivial simplification.
66920
66921 2007-04-28  Bruno Haible  <bruno@clisp.org>
66922
66923         * tests/test-fwriting.c (main): Also test the interaction between
66924         fflush and fwriting.
66925         * modules/fwriting-tests (Depends-on): Add fflush.
66926
66927         * tests/test-freading.c (main): Also test the interaction between
66928         fflush and freading.
66929         * modules/freading-tests (Depends-on): Add fflush.
66930
66931 2007-04-28  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66934         fseeko and ftello.
66935         Suggested by Eric Blake.
66936
66937 2007-04-28  Jim Meyering  <jim@meyering.net>
66938
66939         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66940         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66941         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66942
66943 2007-04-27  Eric Blake  <ebb9@byu.net>
66944
66945         * doc/headers/assert.texi (assert.h): Document assert module use.
66946
66947 2007-04-27  Bruno Haible  <bruno@clisp.org>
66948
66949         * doc/headers/*.texi: New files.
66950         * doc/gnulib.texi (Header File Substitutes): New chapter.
66951         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66952         dependencies.
66953         (standards.info ,standards.html, standards.dvi): Update dependencies.
66954         (mostlyclean, clean): New targets.
66955
66956 2007-04-27  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66959         * modules/sysexits (Files, Makefile.am): Update.
66960
66961         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66962         * modules/sys_socket (Files, Makefile.am): Update.
66963
66964         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66965         * modules/sys_stat (Files, Makefile.am): Update.
66966
66967 2007-04-27  Eric Blake  <ebb9@byu.net>
66968
66969         * lib/freading.h: Improve comments.
66970         * lib/fwriting.h: Likewise.
66971         * lib/fflush.c: Likewise.
66972
66973         Fix closein for mingw.
66974         * modules/closein-tests: Add tests for closein.
66975         * tests/test-closein.c: New file.
66976         * tests/test-closein.sh: Likewise.
66977         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66978         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66979
66980 2007-04-27  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66983         version is < 6.
66984         * lib/math_.h [__DECC]: Likewise.
66985         * lib/stdio_.h [__DECC]: Likewise.
66986         * lib/stdlib_.h [__DECC]: Likewise.
66987         * lib/string_.h [__DECC]: Likewise.
66988         * lib/time_.h [__DECC]: Likewise.
66989         * lib/wchar_.h [__DECC]: Likewise.
66990         * lib/wctype_.h [__DECC]: Likewise.
66991
66992 2007-04-27  Bruno Haible  <bruno@clisp.org>
66993
66994         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66995
66996 2007-04-27  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/fflush.c: Add comments.
66999         * modules/fpurge-tests (Depends-on): Add fflush.
67000         * modules/freadable-tests (Depends-on): Likewise.
67001         * modules/fwritable-tests (Depends-on): Likewise.
67002
67003 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67004
67005         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67006         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67007         Report by Bruno Haible <bruno@clisp.org>.
67008
67009 2007-04-26  Eric Blake  <ebb9@byu.net>
67010
67011         Fix fflush on mingw.
67012         * modules/fflush (Depends-on): Add freading.
67013         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67014         but unread data.
67015
67016 2007-04-26  Eric Blake  <ebb9@byu.net>
67017         and Bruno Haible  <bruno@clisp.org>
67018
67019         Implement freading and fwriting.
67020         * lib/freading.c: New file.
67021         * lib/freading.h: Likewise.
67022         * m4/freading.m4: Likewise.
67023         * modules/freading: Likewise.
67024         * modules/freading-tests: Likewise.
67025         * tests/test-freading.c: Likewise.
67026         * lib/fwriting.c: New file.
67027         * lib/fwriting.h: Likewise.
67028         * m4/fwriting.m4: Likewise.
67029         * modules/fwriting: Likewise.
67030         * modules/fwriting-tests: Likewise.
67031         * tests/test-fwriting.c: Likewise.
67032         * MODULES.html.sh (File stream based Input/Output): Mention them.
67033
67034 2007-04-26  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67037         'long' when we assume it.
67038         Suggested by Eric Blake.
67039
67040 2007-04-26  Bruno Haible  <bruno@clisp.org>
67041
67042         Ensure fseeko, ftello are declared on glibc systems.
67043         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67044         * modules/fseeko (configure.ac-early): Likewise.
67045         * modules/ftello (configure.ac-early): Likewise.
67046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67047         AC_FUNC_FSEEKO for this.
67048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67049         (gl_CHECK_FSEEKO): Remove macro.
67050
67051 2007-04-26  Bruno Haible  <bruno@clisp.org>
67052
67053         * tests/test-fflush.c (main): Also check the ftell result after
67054         fflush and fseek/fseeko.
67055         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67056         file descriptor position cache in the stream.
67057         * lib/fseeko.c (rpl_fseeko): Likewise.
67058
67059 2007-04-26  Bruno Haible  <bruno@clisp.org>
67060
67061         * modules/fflush-tests (Depends-on): Add fseeko.
67062
67063 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67064             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67065
67066         * lib/argz_.h: ensure error_t definition is obtained in same
67067         mechanism system argz.h would have.
67068         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67069         argz facilities are known bad.  Err on the side of caution if
67070         cross-compiling.
67071
67072 2007-04-25  Eric Blake  <ebb9@byu.net>
67073
67074         * lib/fpurge.c (includes): Use stdlib.h for free.
67075         * tests/test-fflush.c (main): Also test fflush-fseeko.
67076
67077 2007-04-25  Bruno Haible  <bruno@clisp.org>
67078
67079         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67080         * lib/fseeko.c: New file.
67081         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67082         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67083         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67084         gl_FUNC_FSEEKO.
67085         (gl_FUNC_FSEEKO): Invoke it.
67086         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67087         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67088         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67089
67090 2007-04-25  Bruno Haible  <bruno@clisp.org>
67091
67092         * modules/fflush (Depends-on): Add ftello.
67093
67094 2007-04-25  Bruno Haible  <bruno@clisp.org>
67095
67096         * modules/ftello-tests: New file.
67097         * tests/test-ftello.c: New file.
67098
67099         * modules/ftello: New file.
67100         * m4/ftello.m4: New file.
67101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67102         HAVE_FTELLO.
67103         * lib/stdio_.h (ftello): New declaration.
67104         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67105         HAVE_FTELLO.
67106
67107 2007-04-25  Bruno Haible  <bruno@clisp.org>
67108
67109         * modules/fseeko-tests: New file.
67110         * tests/test-fseeko.c: New file.
67111
67112         * modules/fseeko: New file.
67113         * m4/fseeko.m4: New file.
67114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67115         HAVE_FSEEKO.
67116         * lib/stdio_.h (fseeko): New declaration.
67117         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67118         HAVE_FSEEKO.
67119
67120 2007-04-25  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67123
67124 2007-04-25  Bruno Haible  <bruno@clisp.org>
67125
67126         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67127         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67128         * tests/test-unistd.c: Likewise.
67129         * tests/test-fcntl.c: Likewise.
67130
67131 2007-04-23  Eric Blake  <ebb9@byu.net>
67132
67133         * lib/fflush.c: Fix missing include.
67134         Reported by Bruno Haible.
67135
67136 2007-04-23  Bruno Haible  <bruno@clisp.org>
67137
67138         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67139         Reported by Eric Blake.
67140
67141 2007-04-23  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67144
67145 2007-04-23  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67148
67149 2007-04-23  Bruno Haible  <bruno@clisp.org>
67150
67151         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67152         Needed on HP-UX 11.
67153
67154 2007-04-16  Eric Blake  <ebb9@byu.net>
67155
67156         Make fflush rely on fpurge.
67157         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67158         open coding all variants.
67159         * modules/fflush (Depends-on): Add fpurge and unistd.
67160         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67162
67163         Fix --with-tests compilation on cygwin.
67164         * modules/argmatch-tests (Makefile.am): List gnulib library first
67165         in LDADD.
67166         * modules/argp-tests (Makefile.am): Likewise.
67167         * modules/array-list-tests (Makefile.am): Likewise.
67168         * modules/array-oset-tests (Makefile.am): Likewise.
67169         * modules/avltree-list-tests (Makefile.am): Likewise.
67170         * modules/avltree-oset-tests (Makefile.am): Likewise.
67171         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67172         * modules/carray-list-tests (Makefile.am): Likewise.
67173         * modules/dirname-tests (Makefile.am): Likewise.
67174         * modules/frexp-tests (Makefile.am): Likewise.
67175         * modules/isnanl-tests (Makefile.am): Likewise.
67176         * modules/linked-list-tests (Makefile.am): Likewise.
67177         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67178         * modules/lock-tests (Makefile.am): Likewise.
67179         * modules/rbtree-list-tests (Makefile.am): Likewise.
67180         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67181         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67182         * modules/tls-tests (Makefile.am): Likewise.
67183         * modules/tsearch-tests (Makefile.am): Likewise.
67184         * modules/xvasprintf-tests (Makefile.am): Likewise.
67185
67186         Fix fpurge for cygwin.
67187         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67188         value.
67189         * modules/fpurge-tests (Depends-on): Clean up trash.
67190
67191 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67192
67193         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67194
67195         * m4/autobuild.m4: Re-indent.
67196
67197 2007-04-13  Bruno Haible  <bruno@clisp.org>
67198
67199         * modules/fpurge-tests: New file.
67200         * tests/test-fpurge.c: New file.
67201
67202         * modules/fpurge: New file.
67203         * lib/fpurge.h: New file.
67204         * lib/fpurge.c: New file.
67205         * m4/fpurge.m4: New file.
67206
67207 2007-04-13  Bruno Haible  <bruno@clisp.org>
67208
67209         * modules/fbufmode-tests: New file.
67210         * tests/test-fbufmode.c: New file.
67211
67212         * modules/fbufmode: New file.
67213         * lib/fbufmode.h: New file.
67214         * lib/fbufmode.c: New file.
67215         * m4/fbufmode.m4: New file.
67216
67217 2007-04-13  Bruno Haible  <bruno@clisp.org>
67218
67219         * modules/fwritable-tests: New file.
67220         * tests/test-fwritable.c: New file.
67221
67222         * modules/fwritable: New file.
67223         * lib/fwritable.h: New file.
67224         * lib/fwritable.c: New file.
67225         * m4/fwritable.m4: New file.
67226
67227 2007-04-13  Bruno Haible  <bruno@clisp.org>
67228
67229         * modules/freadable-tests: New file.
67230         * tests/test-freadable.c: New file.
67231
67232         * modules/freadable: New file.
67233         * lib/freadable.h: New file.
67234         * lib/freadable.c: New file.
67235         * m4/freadable.m4: New file.
67236
67237 2007-04-13  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67240         MOSTLYCLEANFILES.
67241
67242 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67245         gzip bootstrap.conf to avoid dragging in i18n machinery.
67246         (gnulib_tool_option): Use it.
67247
67248 2007-04-13  Bruno Haible  <bruno@clisp.org>
67249
67250         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67251         %F directives.
67252         * tests/test-vasprintf-posix.c (test_function): Likewise.
67253         * tests/test-snprintf-posix.h (test_function): Likewise.
67254         * tests/test-sprintf-posix.h (test_function): Likewise.
67255         * tests/test-fprintf-posix.h (test_function): Likewise.
67256         * tests/test-printf-posix.h (test_function): Likewise.
67257         * tests/test-fprintf-posix.out: Likewise.
67258
67259 2007-04-13  Bruno Haible  <bruno@clisp.org>
67260
67261         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67262         * modules/tls-tests (configure.ac): Likewise.
67263         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67264
67265 2007-04-13  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/tls.c (glthread_tls_get): Fix return type.
67268         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67269
67270 2007-04-12  Eric Blake  <ebb9@byu.net>
67271
67272         * modules/gettime (Depends-on): Remove gettime.
67273         Reported by Dmitry V. Levin.
67274
67275 2007-04-12  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/fflush (Include): Mention <stdio.h>.
67278         * modules/strtoimax (Include): Mention <inttypes.h>.
67279         * modules/strtoumax (Include): Likewise.
67280
67281 2007-04-12  Eric Blake  <ebb9@byu.net>
67282
67283         * .cvsignore: New file.
67284         * .gitignore: Likewise.
67285
67286 2007-04-12  Bruno Haible  <bruno@clisp.org>
67287
67288         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67289         not before, since $(LDADD) often contains libgnu.a.
67290         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67291         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67292         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67293         Needed on Cygwin.
67294
67295 2007-04-12  Eric Blake  <ebb9@byu.net>
67296
67297         Work around glibc's failure to flush stdin on fclose.
67298         * lib/closein.c (close_stdin): Flush stdin before closing.
67299
67300         Work around glibc's failure to reset seekable stdin on exit.
67301         * modules/closein: New module.
67302         * lib/closein.c: New file.
67303         * lib/closein.h: Likewise.
67304         * m4/closein.m4: Likewise.
67305         * MODULES.html.sh (File stream based Input/Output): Document it.
67306
67307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67308
67309         * gnulib-tool: Rename generated 'autobuild' script to
67310         'do-autobuild' in --create-megatestdir output.
67311
67312         * doc/gnulib.texi (Build robot for gnulib): Fix.
67313
67314 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67315
67316         * modules/sysexits (Depends-on): Add absolute-header.
67317
67318 2007-04-12  Eric Blake  <ebb9@byu.net>
67319
67320         No need to preserve errno on success.
67321         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67322         Reported by Bruno Haible.
67323
67324 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67325
67326         * MODULES.html.sh (Support for maintaining and releasing
67327         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67328
67329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67330
67331         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67332
67333 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67334
67335         * modules/autobuild: New module.
67336
67337         * m4/autobuild.m4: New file.
67338
67339 2007-04-11  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67342         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67349         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67350         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67352         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67353         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67358         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67359         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67369         Reported by Eric Blake.
67370
67371 2007-04-11  Bruno Haible  <bruno@clisp.org>
67372
67373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67374
67375 2007-04-10  Bruno Haible  <bruno@clisp.org>
67376
67377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67378         for NaN and Infinity. Needed on FreeBSD 6.1.
67379         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67380         regarding results for "%010a" of Infinity and NaN.
67381         * tests/test-vasprintf-posix.c (test_function): Likewise.
67382         * tests/test-snprintf-posix.h (test_function): Likewise.
67383         * tests/test-sprintf-posix.h (test_function): Likewise.
67384         * tests/test-fprintf-posix.h (test_function): Likewise.
67385         * tests/test-printf-posix.h (test_function): Likewise.
67386         * tests/test-fprintf-posix.out: Likewise.
67387
67388 2007-04-10  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/locale-tests: New file.
67391         * tests/test-locale.c: New file.
67392
67393         * modules/locale: New file.
67394         * lib/locale_.h: New file.
67395         * m4/locale_h.m4: New file.
67396
67397 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67398             Bruno Haible  <bruno@clisp.org>
67399
67400         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67401         be determined, test for availability of the copysignf, copysign,
67402         copysignl functions.
67403         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67404         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67405         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67406
67407 2007-04-09  Eric Blake  <ebb9@byu.net>
67408
67409         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67410         * modules/stdio (Makefile.am): Support fflush.
67411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67412         * modules/fflush: New file.
67413         * lib/fflush.c: Likewise.
67414         * m4/fflush.m4: Likewise.
67415         * modules/fflush-tests: New test.
67416         * tests/test-fflush.c: Likewise.
67417         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67418
67419 2007-04-06  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67422         (VASNPRINTF): Use signbit for faster determination whether to print a
67423         minus sign.
67424         * modules/vasnprintf (Files): Remove lib/float+.h.
67425         * modules/fprintf-posix (Depends-on): Add signbit.
67426         * modules/snprintf-posix (Depends-on): Likewise.
67427         * modules/sprintf-posix (Depends-on): Likewise.
67428         * modules/vasnprintf-posix (Depends-on): Likewise.
67429         * modules/vasprintf-posix (Depends-on): Likewise.
67430         * modules/vfprintf-posix (Depends-on): Likewise.
67431         * modules/vsnprintf-posix (Depends-on): Likewise.
67432         * modules/vsprintf-posix (Depends-on): Likewise.
67433
67434 2007-04-06  Bruno Haible  <bruno@clisp.org>
67435
67436         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67437         * tests/test-frexpl.c (main): Likewise.
67438         * tests/test-ldexpl.c (main): Likewise.
67439         * modules/frexp-tests (Depends-on): Add signbit.
67440         * modules/frexpl-tests (Depdends-on): Likewise.
67441         * modules/ldexpl-tests (Depdends-on): Likewise.
67442
67443 2007-04-06  Bruno Haible  <bruno@clisp.org>
67444
67445         * modules/signbit-tests: New file.
67446         * tests/test-signbit.c: New file.
67447
67448         * modules/signbit: New file.
67449         * lib/signbitf.c: New file.
67450         * lib/signbitd.c: New file.
67451         * lib/signbitl.c: New file.
67452         * m4/signbit.m4: New file.
67453         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67454         (signbit): New macro.
67455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67456         REPLACE_SIGNBIT.
67457         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67458         REPLACE_FREXPL into math.h.
67459
67460 2007-04-06  Bruno Haible  <bruno@clisp.org>
67461
67462         * modules/isnanf-nolibm-tests: New file.
67463         * tests/test-isnanf.c: New file.
67464
67465         * modules/isnanf-nolibm: New file.
67466         * lib/isnanf.h: New file.
67467         * lib/isnanf.c: New file.
67468         * lib/isnan.c: Consider the USE_FLOAT macro.
67469         * m4/isnanf.m4: New file.
67470
67471 2007-04-06  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67474         (Link): New section.
67475
67476         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67477
67478 2007-04-06  Bruno Haible  <bruno@clisp.org>
67479
67480         Assume the 'long double' type.
67481         * m4/longdouble.m4: Remove file.
67482         * config/srclist.txt: Don't mention longdouble.m4.
67483         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67484         * lib/float+.h: Likewise.
67485         * lib/frexp.c: Likewise.
67486         * lib/printf-args.h: Likewise.
67487         * lib/printf-args.c: Likewise.
67488         * lib/printf-frexp.c: Likewise.
67489         * lib/printf-parse.c: Likewise.
67490         * lib/vasnprintf.c: Likewise.
67491         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67492         * m4/intl.m4: Likewise.
67493         * m4/isnanl.m4: Likewise.
67494         * m4/printf.m4: Likewise.
67495         * m4/printf-frexpl.m4: Likewise.
67496         * m4/vasnprintf.m4: Likewise.
67497         * modules/allocsa (Files): Remove m4/longdouble.m4.
67498         * modules/gettext (Files): Likewise.
67499         * modules/relocatable-prog-wrapper (Files): Likewise.
67500         * modules/vasnprintf (Files): Likewise.
67501         * modules/isnanl (Files): Likewise.
67502         (Include): Simplify.
67503         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67504         (Include): Simplify.
67505         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67506         (Include): Simplify.
67507         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67509         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67510         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67511         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67512         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67513         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67514         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67515         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67516         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67517         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67518         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67519         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67520         * tests/test-isnanl.c: Likewise.
67521         * tests/test-snprintf-posix.h: Likewise.
67522         * tests/test-sprintf-posix.h: Likewise.
67523         * tests/test-vasnprintf-posix.c: Likewise.
67524         * tests/test-vasnprintf-posix2.c: Likewise.
67525         * tests/test-vasprintf-posix.c: Likewise.
67526
67527 2007-04-06  Bruno Haible  <bruno@clisp.org>
67528
67529         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67530         * lib/math_.h [__DECC]: Include the overridden include file through
67531         #include_next, outside the double-inclusion guard.
67532         * lib/stdio_.h [__DECC]: Likewise.
67533         * lib/stdlib_.h [__DECC]: Likewise.
67534         * lib/string_.h [__DECC]: Likewise.
67535         * lib/time_.h [__DECC]: Likewise.
67536         * lib/wchar_.h [__DECC]: Likewise.
67537         * lib/wctype_.h [__DECC]: Likewise.
67538         * lib/inttypes_.h [__DECC]: Likewise.
67539         Reported by Albert Chin <china@thewrittenword.com> in
67540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67541
67542 2007-04-04  Eric Blake  <ebb9@byu.net>
67543
67544         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67545         1.5.x.
67546
67547 2007-04-04  Bruno Haible  <bruno@clisp.org>
67548
67549         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67550         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67551
67552 2007-04-04  Bruno Haible  <bruno@clisp.org>
67553
67554         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67555         results for "%010a" of Infinity and NaN.
67556         * tests/test-vasprintf-posix.c (test_function): Likewise.
67557         * tests/test-snprintf-posix.h (test_function): Likewise.
67558         * tests/test-sprintf-posix.h (test_function): Likewise.
67559         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67560         * tests/test-printf-posix.h (test_function): Likewise.
67561         * tests/test-fprintf-posix.out: Update.
67562         Needed for FreeBSD 6.1.
67563
67564 2007-04-04  Bruno Haible  <bruno@clisp.org>
67565
67566         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67567         directly used by the gnulib modules nor by gnulib-tool.
67568
67569 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * DEPENDENCIES: Give overall description of version dependency
67572         desirability.  Use more-typical names for apps.
67573         Add shell, coreutils, diffutils, grep, tar, gzip.
67574
67575 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67576
67577         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67578
67579 2007-04-04  Karl Berry  <karl@gnu.org>
67580
67581         * MODULES.html.sh (func_module): missing '.
67582
67583 2007-04-03  Bruno Haible  <bruno@clisp.org>
67584
67585         * modules/argmatch-tests (Makefile.am): New variable
67586         test_argmatch_LDADD.
67587         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67588         * modules/array-list-tests (Makefile.am): New variable
67589         test_array_list_LDADD.
67590         * modules/array-oset-tests (Makefile.am): New variable
67591         test_array_oset_LDADD.
67592         * modules/avltree-list-tests (Makefile.am): New variable
67593         test_avltree_list_LDADD.
67594         * modules/avltree-oset-tests (Makefile.am): New variable
67595         test_avltree_oset_LDADD.
67596         * modules/avltreehash-list-tests (Makefile.am): New variable
67597         test_avltreehash_list_LDADD.
67598         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67599         test_canonicalize_lgpl_LDADD.
67600         * modules/carray-list-tests (Makefile.am): New variable
67601         test_carray_list_LDADD.
67602         * modules/dirname-tests (Makefile.am): New variable
67603         test_dirname_LDADD.
67604         * modules/linked-list-tests (Makefile.am): New variable
67605         test_linked_list_LDADD.
67606         * modules/linkedhash-list-tests (Makefile.am): New variable
67607         test_linkedhash_list_LDADD.
67608         * modules/rbtree-list-tests (Makefile.am): New variable
67609         test_rbtree_list_LDADD.
67610         * modules/rbtree-oset-tests (Makefile.am): New variable
67611         test_rbtree_oset_LDADD.
67612         * modules/rbtreehash-list-tests (Makefile.am): New variable
67613         test_rbtreehash_list_LDADD.
67614         * modules/xvasprintf-tests (Makefile.am): New variable
67615         test_xvasprintf_LDADD.
67616         Reported by Eric Blake.
67617
67618 2007-04-03  Eric Blake  <ebb9@byu.net>
67619
67620         * DEPENDENCIES: Weaken m4 requirements.
67621
67622 2007-04-03  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67625         * modules/isnanl-tests (configure.ac): Likewise.
67626
67627 2007-04-03  Ben Pfaff  <blp@gnu.org>
67628
67629         * modules/iconv_open: Add $(srcdir)/ to source directory
67630         references in Makefile fragments that call gperf, to fix VPATH
67631         builds.
67632
67633 2007-04-03  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67636         * lib/ldexpl.c: Undo last change.
67637
67638 2007-04-03  Bruno Haible  <bruno@clisp.org>
67639
67640         * modules/printf-frexpl (Depends-on): Undo last change.
67641         (Files): Add m4/ldexpl.m4.
67642
67643 2007-04-03  Bruno Haible  <bruno@clisp.org>
67644
67645         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67646         * modules/isnanl (Link): New section.
67647
67648         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67649         * modules/frexp (Link): New section.
67650
67651         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67652         * modules/frexpl (Link): New section.
67653
67654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67655         * modules/ldexpl (Link): New section.
67656
67657 2007-04-03  Bruno Haible  <bruno@clisp.org>
67658
67659         * modules/TEMPLATE-EXTENDED: New file.
67660         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67661
67662 2007-04-03  Bruno Haible  <bruno@clisp.org>
67663
67664         * DEPENDENCIES: New file.
67665         Suggested by Simon Josefsson.
67666
67667 2007-04-03  Bruno Haible  <bruno@clisp.org>
67668
67669         * doc/gnulib.texi: Escape @.
67670
67671 2007-04-03  James Youngman  <jay@gnu.org>
67672         and Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67675         birthtime on all systems that have birthtime, not just those which
67676         use st_birthtimensec rather than st_birthtim.  Putting zero in
67677         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67678         that the birth time is not available for files on an NFS mount.
67679
67680 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67681
67682         * modules/memxor: Move back from crypto/, suggested by Bruno.
67683         * modules/crypto/hmac-sha1: Fix memxor dependency.
67684
67685         * modules/crypto/gc: Moved from ../.
67686
67687 2007-04-02  Eric Blake  <ebb9@byu.net>
67688
67689         * lib/ldexpl.c (includes): Avoid libm.
67690
67691         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67692
67693 2007-04-02  Bruno Haible  <bruno@clisp.org>
67694
67695         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67696         on IRIX.
67697
67698 2007-04-02  Bruno Haible  <bruno@clisp.org>
67699
67700         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67701         x86 or x86_64 platforms running MacOS X.
67702         Reported by Ryan Schmidt <@ryandesign.com>.
67703
67704 2007-04-02  Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67707         i386.
67708
67709 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67710
67711         * modules/crypto/arcfour: Moved from ../.
67712         * modules/crypto/arcfour-tests: Moved from ../.
67713         * modules/crypto/arctwo: Moved from ../.
67714         * modules/crypto/arctwo-tests: Moved from ../.
67715         * modules/crypto/des: Moved from ../.
67716         * modules/crypto/des-tests: Moved from ../.
67717         * modules/crypto/gc-arcfour: Moved from ../.
67718         * modules/crypto/gc-arcfour-tests: Moved from ../.
67719         * modules/crypto/gc-arctwo: Moved from ../.
67720         * modules/crypto/gc-arctwo-tests: Moved from ../.
67721         * modules/crypto/gc-des: Moved from ../.
67722         * modules/crypto/gc-des-tests: Moved from ../.
67723         * modules/crypto/gc-hmac-md5: Moved from ../.
67724         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67725         * modules/crypto/gc-hmac-sha1: Moved from ../.
67726         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67727         * modules/crypto/gc-md2: Moved from ../.
67728         * modules/crypto/gc-md2-tests: Moved from ../.
67729         * modules/crypto/gc-md4: Moved from ../.
67730         * modules/crypto/gc-md4-tests: Moved from ../.
67731         * modules/crypto/gc-md5: Moved from ../.
67732         * modules/crypto/gc-md5-tests: Moved from ../.
67733         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67734         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67735         * modules/crypto/gc-random: Moved from ../.
67736         * modules/crypto/gc-rijndael: Moved from ../.
67737         * modules/crypto/gc-rijndael-tests: Moved from ../.
67738         * modules/crypto/gc-sha1: Moved from ../.
67739         * modules/crypto/gc-sha1-tests: Moved from ../.
67740         * modules/crypto/gc-tests: Moved from ../.
67741         * modules/crypto/hmac-md5: Moved from ../.
67742         * modules/crypto/hmac-md5-tests: Moved from ../.
67743         * modules/crypto/hmac-sha1: Moved from ../.
67744         * modules/crypto/hmac-sha1-tests: Moved from ../.
67745         * modules/crypto/md2: Moved from ../.
67746         * modules/crypto/md2-tests: Moved from ../.
67747         * modules/crypto/md4: Moved from ../.
67748         * modules/crypto/md4-tests: Moved from ../.
67749         * modules/crypto/md5: Moved from ../.
67750         * modules/crypto/md5-tests: Moved from ../.
67751         * modules/crypto/memxor: Moved from ../.
67752         * modules/crypto/rijndael: Moved from ../.
67753         * modules/crypto/rijndael-tests: Moved from ../.
67754         * modules/crypto/sha1: Moved from ../.
67755
67756 2007-03-30  James Youngman  <jay@gnu.org>
67757
67758         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67759         rename() to change the ctime of a file (because ctime is unaffected
67760         by rename on jfs2 on AIX 5.1).
67761         (main): Start by doing cleanup, in case a previous run failed leaving
67762         test files behind.
67763
67764 2007-03-31  Bruno Haible  <bruno@clisp.org>
67765
67766         Support old proprietary implementations of iconv.
67767         * modules/iconv_open: New file.
67768         * lib/iconv_.h: New file.
67769         * m4/iconv_h.m4: New file.
67770         * lib/iconv_open.c: New file.
67771         * lib/iconv_open-aix.gperf: New file.
67772         * lib/iconv_open-hpux.gperf: New file.
67773         * lib/iconv_open-irix.gperf: New file.
67774         * lib/iconv_open-osf.gperf: New file.
67775         * m4/iconv_open.m4: New file.
67776         * modules/linebreak (Depends-on): Add iconv_open.
67777         * modules/striconv (Depends-on): Likewise.
67778         * modules/striconveh (Depends-on): Likewise.
67779         * modules/unicodeio (Depends-on): Likewise.
67780         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67781         (iconv_t)(-1).
67782         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67783         conversion if cd is (iconv_t)(-1).
67784         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67785         is not possible.
67786
67787 2007-03-31  Bruno Haible  <bruno@clisp.org>
67788
67789         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67790         work on Solaris either. Protect also second use of "autodetect_jp".
67791
67792 2007-03-31  Bruno Haible  <bruno@clisp.org>
67793
67794         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67795         the function is not present.
67796
67797 2007-03-31  Bruno Haible  <bruno@clisp.org>
67798
67799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67800         the function is not present.
67801
67802 2007-03-31  Bruno Haible  <bruno@clisp.org>
67803
67804         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67805         a bug in HP-UX iconv_open().
67806
67807 2007-03-31  Bruno Haible  <bruno@clisp.org>
67808
67809         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67810         (Mathematics <math.h>): New section, add fpieee.
67811         (Input/output <stdio.h>): Add fseterr.
67812         (Mathematics <math.h>): New section, add printf-frexp.
67813         (Container data structures): Add sublist.
67814         (Core language properties): Add fpucw, inline.
67815         (Functions for greatest-width integer types <inttypes.h>): Add
67816         imaxabs, imaxdiv, inttypes.
67817         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67818         isnanl-nolibm, ldexp.
67819         (Mathematics <math.h>): New section, add printf-frexpl.
67820         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67821         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67822         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67823         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67824         (Unicode string functions): Add unistr/u*-mbtoucr.
67825         (Java): Add javacomp-script, javaexec-script.
67826         (C#): Add csharpcomp-script, csharpexec-script.
67827         (Support for building libraries and executables): Add havelib,
67828         relocatable-*.
67829         (Support for maintaining and releasing projects): Renamed from
67830         'Support for maintaining and release projects'. Add announce-gen.
67831
67832 2007-03-31  Bruno Haible  <bruno@clisp.org>
67833
67834         * README: Talk primarily about git.
67835         (git and CVS): Renamed from CVS.
67836         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67837         gnulib is available through git.
67838         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67839
67840 2007-03-30  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67843         * lib/poll_.h: Likewise.
67844         * lib/stat_.h: Likewise.
67845         * lib/sys_time_.h: Likewise.
67846         * lib/sysexit_.h: Likewise.
67847         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67848         * lib/stdbool_.h: Likewise.
67849         * lib/byteswap_.h: Add double-inclusion guard.
67850
67851 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67852
67853         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67854
67855 2007-03-30  Karl Berry  <karl@gnu.org>
67856
67857         * config/srclist-update: double space after USA in the license
67858         substitution, since that's how it's usually (?) written.
67859
67860 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67863         reported by Bruno Haible.
67864
67865 2007-03-29  Bruno Haible  <bruno@clisp.org>
67866
67867         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67868         a bug in AIX iconv().
67869
67870 2007-03-29  Bruno Haible  <bruno@clisp.org>
67871
67872         * modules/ldexpl-tests: New file.
67873         * tests/test-ldexpl.c: New file.
67874
67875 2007-03-29  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/ldexpl.c: Include fpucw.h.
67878         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67879         multiplication.
67880         * modules/ldexpl (Depends-on): Add fpucw.
67881
67882 2007-03-29  Bruno Haible  <bruno@clisp.org>
67883
67884         * modules/ldexpl: New file.
67885         * m4/ldexpl.m4: New file.
67886         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67887         set.
67888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67889         REPLACE_LDEXPL.
67890         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67891         REPLACE_LDEXPL.
67892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67893         gl_FUNC_LDEXPL_WORKS.
67894         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67895         * modules/mathl (Files): Remove lib/ldexpl.c.
67896         (Depends-on): Add ldexpl.
67897
67898 2007-03-29  Bruno Haible  <bruno@clisp.org>
67899
67900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67901
67902 2007-03-29  Bruno Haible  <bruno@clisp.org>
67903
67904         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67905         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67906         and possibly also HP-UX.
67907         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67908         work on AIX, IRIX, HP-UX, OSF/1.
67909         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67910         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67911         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67912         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67913         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67914         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67915
67916 2007-03-29  Bruno Haible  <bruno@clisp.org>
67917
67918         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67919
67920 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67923         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67924
67925 2007-03-29  Eric Blake  <ebb9@byu.net>
67926
67927         * lib/acl-internal.h: Remove redundant include.
67928         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67929         Cygwin when a file is locked.
67930
67931 2007-03-29  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67934         file.
67935         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67936
67937 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67940         try to remove a parent directory if the child couldn't be removed
67941         (except for the first rmdir, which could fail because the child
67942         doesn't exist).  Problem reported by Jeff Blaine in
67943         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67944
67945 2007-03-28  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/striconveh.c (utf8conv_carefully): New function.
67948         (mem_cd_iconveh_internal): Invoke it.
67949
67950 2007-03-28  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67953         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67954         input.
67955         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67956         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67957         unistr/u8-uctomb.
67958
67959 2007-03-28  Bruno Haible  <bruno@clisp.org>
67960
67961         * modules/unistr/u8-mbtoucr: New file.
67962         * lib/unistr/u8-mbtoucr.c: New file.
67963         * modules/unistr/u16-mbtoucr: New file.
67964         * lib/unistr/u16-mbtoucr.c: New file.
67965         * modules/unistr/u16-mbtoucr: New file.
67966         * lib/unistr/u16-mbtoucr.c: New file.
67967         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67968
67969 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67970             Bruno Haible  <bruno@clisp.org>
67971
67972         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67973         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67974         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67975
67976         * m4/stdio_h.m4: Add stubs for vasprintf too.
67977
67978         * modules/stdio: Support vasprintf in sed command.
67979
67980         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67981         vasprintf.h.  Add stdio module indicator.
67982
67983         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67984         vasprintf.h.
67985
67986         * lib/vasprintf.h: File removed.
67987
67988         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67989         * lib/vasprintf.c: Ditto.
67990         * lib/xvasprintf.c: Ditto.
67991         * tests/test-vasprintf-posix.c: Ditto.
67992         * tests/test-vasprintf.c: Ditto.
67993
67994 2007-03-27  Bruno Haible  <bruno@clisp.org>
67995
67996         Make vasnprintf multithread-safe.
67997         * lib/vasnprintf.c (decimal_point_char): New function.
67998         (VASNPRINTF): Use it.
67999         Suggested by Simon Josefsson.
68000
68001 2007-03-27  Eric Blake  <ebb9@byu.net>
68002
68003         Support sub-second birthtime on cygwin.
68004         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68005         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68006         (get_stat_birthtime): Also work with st_birthtim.
68007
68008 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68011         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68012         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68013         (get_stat_birthtime_ns): Simplify compile-time tests.
68014         (get_stat_birthtime): Change the API to look like
68015         get_stat_mtime etc., except return a negative tv_nsec on error.
68016         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68017         Don't check for "spare" fields.
68018         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68019         or for struct stat.st_birthtime, as these tests aren't used.
68020         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68021
68022 2007-03-27  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/stat-time.h: Include <sys/stat.h>.
68025
68026 2007-03-27  James Youngman  <jay@gnu.org>
68027
68028         * lib/stat-time.h (get_stat_birthtime): New function for
68029           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68030         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68031           and its variants.
68032         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68033         * modules/stat-time-test: New file.
68034         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68035
68036 2007-03-26  Bruno Haible  <bruno@clisp.org>
68037
68038         Better support of signalling NaNs.
68039         * lib/atanl.c: Include isnanl.h.
68040         (atanl): Perform test for NaN at the beginning of the function and
68041         through a call to isnanl.
68042         * lib/cosl.c: Include isnanl.h.
68043         (cosl): Perform test for NaN at the beginning of the function and
68044         through a call to isnanl.
68045         * lib/ldexpl.c: Include isnanl.h.
68046         (ldexpl): Perform test for NaN through a call to isnanl.
68047         * lib/logl.c: Include isnanl.h.
68048         (logl): Perform test for NaN at the beginning of the function and
68049         through a call to isnanl.
68050         * lib/sinl.c: Include isnanl.h.
68051         (sinl): Perform test for NaN at the beginning of the function and
68052         through a call to isnanl.
68053         * lib/sqrtl.c: Include isnanl.h.
68054         (sqrtl): Perform test for NaN at the beginning of the function and
68055         through a call to isnanl.
68056         * lib/tanl.c: Include isnanl.h.
68057         (tanl): Perform test for NaN at the beginning of the function and
68058         through a call to isnanl.
68059         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68060         * modules/mathl (Depends-on): Add isnanl.
68061
68062 2007-03-26  Eric Blake  <ebb9@byu.net>
68063
68064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68065         regression in logic sense of previous patch.
68066
68067 2007-03-26  Bruno Haible  <bruno@clisp.org>
68068
68069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68070         unportable shell command "if ! ...".
68071         Reported by Ralf Wildenhues.
68072
68073 2007-03-25  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68076         <sysexits.h> file, and only add EX_CONFIG.
68077         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68078         absolute file name and whether it is sufficient. Substitute also
68079         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68080         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68081         ABSOLUTE_SYSEXITS_H into sysexits.h.
68082
68083 2007-03-25  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68086         hints is NULL.
68087
68088 2007-03-25  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68091         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68092
68093 2007-03-25  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/vasnprintf.c: Include langinfo.h.
68096         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68097         multithread-safe.
68098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68107         Reported by Simon Josefsson.
68108
68109 2007-03-25  Bruno Haible  <bruno@clisp.org>
68110
68111         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68112         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68113         * modules/vasnprintf (Depends-on): Add stdint.
68114
68115 2007-03-25  Bruno Haible  <bruno@clisp.org>
68116
68117         * modules/fpieee: New file.
68118         * m4/fpieee.m4: New file.
68119         * modules/isnan-nolibm (Depends-on): Add fpieee.
68120         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68121         * modules/isnanl (Depends-on): Add fpieee.
68122
68123 2007-03-25  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68126
68127 2007-03-25  Bruno Haible  <bruno@clisp.org>
68128
68129         Avoid test failures on IRIX 6.5.
68130         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68131         (main): Use it.
68132         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68133         macros.
68134         (main): Use them.
68135
68136 2007-03-25  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68139         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68140         exists but doesn't work.
68141         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68142         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68144         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68145         math.h.
68146
68147 2007-03-25  Bruno Haible  <bruno@clisp.org>
68148
68149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68150         returns inf. Needed on IRIX 6.5.
68151
68152 2007-03-25  Bruno Haible  <bruno@clisp.org>
68153
68154         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68155         (main): Use isnanl instead of x != x idiom.
68156         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68157
68158         * tests/test-frexp.c: Include isnan.h.
68159         (main): Use isnan instead of x != x idiom.
68160         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68161
68162 2007-03-25  Bruno Haible  <bruno@clisp.org>
68163
68164         * tests/test-frexp.c (NaN): New function/macro.
68165         (main): Use it instead of 0.0 / 0.0.
68166         * tests/test-isnan.c (NaN): New function/macro.
68167         (main): Use it instead of 0.0 / 0.0.
68168         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68169         (test_function): Use it instead of 0.0 / 0.0.
68170         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68171         (test_function): Use it instead of 0.0 / 0.0.
68172         * tests/test-snprintf-posix.h (NaN): New function/macro.
68173         (test_function): Use it instead of 0.0 / 0.0.
68174         * tests/test-sprintf-posix.h (NaN): New function/macro.
68175         (test_function): Use it instead of 0.0 / 0.0.
68176         * tests/test-fprintf-posix.h (NaN): New function/macro.
68177         (test_function): Use it instead of 0.0 / 0.0.
68178         * tests/test-printf-posix.h (NaN): New function/macro.
68179         (test_function): Use it instead of 0.0 / 0.0.
68180
68181         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68182
68183 2007-03-25  Bruno Haible  <bruno@clisp.org>
68184
68185         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68186
68187 2007-03-25  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/regexec.c (merge_state_with_log): Make static.
68190
68191 2007-03-25  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/trigl.c (kernel_rem_pio2): Make static.
68194
68195 2007-03-25  Bruno Haible  <bruno@clisp.org>
68196
68197         * lib/sincosl.c (sincosl_table): Make static.
68198
68199 2007-03-25  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68202         if the compiler does not support C99.
68203
68204 2007-03-25  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/time (Makefile.am): Ensure all rule action lines start with a
68207         tab.
68208
68209 2007-03-24  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/tsearch-tests: New file.
68212         * tests/test-tsearch.sh: New file.
68213         * tests/test-tsearch.c: New file, mostly copied from glibc.
68214
68215         * modules/search-tests: New file.
68216         * tests/test-search.c: New file.
68217
68218         * modules/search: New file.
68219         * lib/search_.h: New file, incorporating lib/tsearch.h.
68220         * m4/search_h.m4: New file.
68221         * lib/tsearch.h: Remove file.
68222         * lib/tsearch.c: Include search.h instead of tsearch.h.
68223         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68224         HAVE_TSEARCH.
68225         * modules/tsearch (Files): Remove lib/tsearch.h.
68226         (Depends-on): Add search.
68227         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68228         (Include): Change tsearch.h into search.h.
68229
68230 2007-03-24  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/fpucw: New file.
68233         * lib/fpucw.h: New file.
68234         * lib/frexp.c: Include fpucw.h.
68235         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68236         (FUNC): Use them.
68237         * lib/printf-frexp.c: Include fpucw.h.
68238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68239         (FUNC): Use them.
68240         * lib/vasnprintf.c: Include fpucw.h.
68241         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68242         'long double' calculations.
68243         * tests/test-frexpl.c: Include fpucw.h.
68244         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68245         * tests/test-printf-frexpl.c: Include fpucw.h.
68246         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68247         * modules/frexpl (Depends-on): Add fpucw.
68248         * modules/printf-frexpl (Depends-on): Likewise.
68249         * modules/fprintf-posix (Depends-on): Likewise.
68250         * modules/snprintf-posix (Depends-on): Likewise.
68251         * modules/sprintf-posix (Depends-on): Likewise.
68252         * modules/vasnprintf-posix (Depends-on): Likewise.
68253         * modules/vasprintf-posix (Depends-on): Likewise.
68254         * modules/vfprintf-posix (Depends-on): Likewise.
68255         * modules/vsnprintf-posix (Depends-on): Likewise.
68256         * modules/vsprintf-posix (Depends-on): Likewise.
68257         * modules/frexpl-tests (Depends-on): Likewise.
68258         * modules/printf-frexpl-tests (Depends-on): Likewise.
68259
68260 2007-03-24  Bruno Haible  <bruno@clisp.org>
68261
68262         * lib/float+.h: New file.
68263         * lib/isnan.c: Include float+.h.
68264         (SIZE): New macro.
68265         (FUNC): Compare only SIZE bytes of the value.
68266         * lib/vasnprintf.c: Include float+.h.
68267         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68268         SIZEOF_LDBL or SIZEOF_DBL bytes.
68269         * modules/isnan-nolibm (Files): Add lib/float+.h.
68270         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68271         * modules/isnanl (Files): Add lib/float+.h.
68272         * modules/vasnprintf (Files): Add lib/float+.h.
68273
68274 2007-03-24  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68277         include isnanl-nolibm.h.
68278
68279 2007-03-24  Bruno Haible  <bruno@clisp.org>
68280
68281         * tests/test-read-file.c (main): Don't produce spurious output for
68282         expected situations. Make the test fail if it encountered unexpected
68283         results.
68284
68285 2007-03-24  Bruno Haible  <bruno@clisp.org>
68286
68287         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68288         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68289
68290 2007-03-24  Bruno Haible  <bruno@clisp.org>
68291
68292         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68293
68294 2007-03-24  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68297         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68298
68299         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68300         * modules/utf8-ucs4: Turn into a symbolic link to module
68301         unistr/u8-mbtouc.
68302
68303         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68304         utf8-ucs4-unsafe.
68305         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68306         unistr/u8-mbtouc-unsafe.
68307
68308         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68309         * modules/utf16-ucs4: Turn into a symbolic link to module
68310         unistr/u16-mbtouc.
68311
68312         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68313         utf16-ucs4-unsafe.
68314         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68315         unistr/u16-mbtouc-unsafe.
68316
68317         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68318         * modules/ucs4-utf8: Turn into a symbolic link to module
68319         unistr/u8-ubtomb.
68320
68321         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68322         * modules/ucs4-utf16: Turn into a symbolic link to module
68323         unistr/u16-ubtomb.
68324
68325 2007-03-24  Bruno Haible  <bruno@clisp.org>
68326
68327         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68328         Enable the function only if HAVE_INLINE.
68329         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68330         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68331         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68332         Enable the function only if HAVE_INLINE.
68333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68334         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68335         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68336         Enable the function only if HAVE_INLINE.
68337         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68338         Enable the function only if HAVE_INLINE.
68339         * modules/utf8-ucs4: Update.
68340         * modules/utf8-ucs4-unsafe: Update.
68341         * modules/utf16-ucs4: Update.
68342         * modules/utf16-ucs4-unsafe: Update.
68343         * modules/ucs4-utf8: Update.
68344         * modules/ucs4-utf16: Update.
68345
68346 2007-03-24  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/utf8-ucs4.h: Remove file.
68349         * lib/utf8-ucs4-unsafe.h: Remove file.
68350         * lib/utf16-ucs4.h: Remove file.
68351         * lib/utf16-ucs4-unsafe.h: Remove file.
68352         * lib/ucs4-utf8.h: Remove file.
68353         * lib/ucs4-utf16.h: Remove file.
68354         * lib/unistr.h: Include their previous contents.
68355         * m4/utf-ucs4.m4: Remove file.
68356         * m4/ucs4-utf.m4: Remove file.
68357         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68358         (Depends-on): Add unistr/base.
68359         (configure.ac): Remove gl_UTF_UCS4.
68360         (Makefile.am): Update.
68361         (Include): Change to unistr.h.
68362         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68363         (Depends-on): Add unistr/base.
68364         (configure.ac): Remove gl_UTF_UCS4.
68365         (Makefile.am): Update.
68366         (Include): Change to unistr.h.
68367         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68368         (Depends-on): Add unistr/base.
68369         (configure.ac): Remove gl_UTF_UCS4.
68370         (Makefile.am): Update.
68371         (Include): Change to unistr.h.
68372         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68373         (Depends-on): Add unistr/base.
68374         (configure.ac): Remove gl_UTF_UCS4.
68375         (Makefile.am): Update.
68376         (Include): Change to unistr.h.
68377         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68378         (Depends-on): Add unistr/base.
68379         (configure.ac): Remove gl_UCS4_UTF.
68380         (Makefile.am): Update.
68381         (Include): Change to unistr.h.
68382         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68383         (Depends-on): Add unistr/base.
68384         (configure.ac): Remove gl_UCS4_UTF.
68385         (Makefile.am): Update.
68386         (Include): Change to unistr.h.
68387         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68388         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68389         utf8-ucs4-unsafe.h.
68390         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68391         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68392         utf16-ucs4-unsafe.h.
68393         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68394         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68395         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68396         * lib/unistr/u8-strchr.c: Likewise.
68397         * lib/unistr/u8-strrchr.c: Likewise.
68398         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68399         * lib/unistr/u16-strchr.c: Likewise.
68400         * lib/unistr/u16-strrchr.c: Likewise.
68401         * lib/striconveh.c: Update.
68402         * lib/linebreak.c: Update.
68403
68404 2007-03-24  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68407         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68408
68409 2007-03-22  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68412
68413 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * MODULES.html.sh (File system functions): New module write-any-file.
68416         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68417         * m4/write-any-file.m4: New files.
68418
68419 2007-03-23  Eric Blake  <ebb9@byu.net>
68420
68421         * gnulib-tool: Rearrange space-tab sequences, since some editors
68422         like to eat them.
68423
68424 2007-03-23  Eric Blake  <ebb9@byu.net>
68425
68426         * lib/version-etc.c (version_etc_va): Update license wording to
68427         be more concise.  Recommended by Richard Stallman.
68428
68429 2007-03-22  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/poll.c (MSG_PEEK): New fallback definition.
68432
68433 2007-03-22  Bruno Haible  <bruno@clisp.org>
68434
68435         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68436         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68437         (main): Update.
68438         Fixes a compilation error on BeOS.
68439
68440 2007-03-22  Bruno Haible  <bruno@clisp.org>
68441
68442         * modules/frexpl-tests: New file.
68443         * tests/test-frexpl.c: New file.
68444
68445         * modules/frexpl: New file.
68446         * m4/frexpl.m4: New file.
68447         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68448         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68450         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68451         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68452         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68453
68454 2007-03-22  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/frexpl.c: Share code with lib/frexp.c.
68457         * modules/mathl (Files): Add lib/frexp.c.
68458         (Depends-on): Add isnanl-nolibm.
68459
68460 2007-03-22  Bruno Haible  <bruno@clisp.org>
68461
68462         * modules/printf-frexp (Files): Add m4/frexp.m4.
68463         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68464         only if the found frexp function actually works.
68465
68466 2007-03-22  Bruno Haible  <bruno@clisp.org>
68467
68468         * lib/frexp.c: Remove older implementation that uses divisions.
68469
68470 2007-03-21  Bruno Haible  <bruno@clisp.org>
68471
68472         * modules/frexp-tests: New file.
68473         * tests/test-frexp.c: New file.
68474
68475         * modules/frexp: New file.
68476         * lib/frexp.c: New file.
68477         * m4/frexp.m4: New file.
68478         * lib/math_.h (frexp): New declaration.
68479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68480         REPLACE_FREXP.
68481         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68482
68483 2007-03-21  Bruno Haible  <bruno@clisp.org>
68484
68485         * modules/isnanl-tests: New file.
68486         * tests/test-isnanl.c: New file.
68487
68488         * modules/isnanl: New file.
68489         * lib/isnanl.h: New file.
68490         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68491         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68492         gl_FUNC_ISNANL_WORKS.
68493         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68494         New macros.
68495
68496 2007-03-21  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68499         lib/isnanl.h.
68500         (Include): Update.
68501         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68502         * lib/vasnprintf.c: Update.
68503         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68504         tests/test-isnanl.h, remove tests/test-isnanl.c.
68505         (Makefile.am): Update.
68506         * tests/test-isnanl-nolibm.c: New file.
68507         * tests/test-isnanl.h: New file.
68508         * tests/test-isnanl.c: Remove file.
68509
68510 2007-03-21  Jim Meyering  <jim@meyering.net>
68511
68512         When trying to open ".", treat ESTALE like EACCES.
68513         * lib/savewd.c (savewd_save): Resort to forking not just upon
68514         failure with EACCES, but also when errno is ESTALE.
68515
68516 2007-03-20  Bruno Haible  <bruno@clisp.org>
68517
68518         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68519         Needed on AIX 5.1. Reported by Matthew Woehlke.
68520
68521 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         Suggestions by Bruno Haible:
68524         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68525         our own.
68526         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68527         * modules/acl (Depends-on): Add gettext.
68528
68529 2007-03-19  Bruno Haible  <bruno@clisp.org>
68530
68531         * modules/iconvme: Remove file.
68532         * lib/iconvme.h: Remove file.
68533         * lib/iconvme.c: Remove file.
68534         * m4/iconvme.m4: Remove file.
68535
68536 2007-03-19  Bruno Haible  <bruno@clisp.org>
68537
68538         * doc/relocatable-maint.texi: Break long shell script line.
68539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68540
68541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68544         handle file_has_acl.
68545         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68546         * lib/acl.c: Move header inclusions and related macro defns into
68547         lib/acl-internal.h.
68548         (S_ISLNK): Remove defn, since that's now done for us.
68549         (file_has_acl): Move to lib/file-has-acl.c.
68550         Call acl_trivial if available.  This is the crucial part of the fix.
68551         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68552         shared within the library.  Rewrite a bit, partly to make it compatible
68553         with the GNU coding style.
68554         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68555         Remove unnecessary double-quotes.
68556         Don't test for acl_to_text; the build will catch that.
68557         Replace acl_entries if it doesn't exist and it is needed.
68558         Check for -lsec and acl_trivial (as used on Solaris 10).
68559         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68560         lib/file-has-acl.c.
68561         (Depends-on): Add sys_stat, for S_ISLNK.
68562
68563 2007-03-19  Ben Pfaff  <blp@gnu.org>
68564
68565         * doc/gnulib.texi: Fix typos.
68566         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68567
68568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68571         If size is zero here, buf must be zero.
68572
68573 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68574
68575         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68576         <bruno@clisp.org>.
68577
68578 2007-03-18  Bruno Haible  <bruno@clisp.org>
68579
68580         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68581         Suggested by Eric Blake.
68582
68583 2007-03-18  Ben Pfaff  <blp@gnu.org>
68584
68585         * doc/relocatable.texi: Recommend using as prefix a directory
68586         that does not exist and will never be created.  Based on
68587         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68588         and others.
68589
68590 2007-03-17  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/fchownat.c: Include lchown.h.
68593
68594 2007-03-17  Bruno Haible  <bruno@clisp.org>
68595
68596         Fix endless loop when the given allocated size was > INT_MAX.
68597         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68598         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68599         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68600         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68601         * lib/sprintf.c (sprintf): Likewise.
68602
68603 2007-03-17  Bruno Haible  <bruno@clisp.org>
68604
68605         * tests/test-argp-2.sh (func_compare): Output a context diff.
68606
68607 2007-03-17  Bruno Haible  <bruno@clisp.org>
68608
68609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68610         locale's decimal-point character.
68611
68612 2007-03-17  Bruno Haible  <bruno@clisp.org>
68613
68614         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68615         before comparing it. Needed because on some platforms (e.g. x86) a
68616         'long double' occupies less bytes than sizeof (long double).
68617
68618 2007-03-17  Bruno Haible  <bruno@clisp.org>
68619
68620         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68621         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68622         * tests/test-getaddrinfo.c (simple): Likewise.
68623         * tests/test-read-file.c (main): Likewise.
68624
68625 2007-03-17  Bruno Haible  <bruno@clisp.org>
68626
68627         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68628
68629 2007-03-17  Bruno Haible  <bruno@clisp.org>
68630
68631         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68632         unused variable.
68633
68634 2007-03-17  Bruno Haible  <bruno@clisp.org>
68635
68636         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68637         * tests/test-c-strncasecmp.c: Likewise.
68638
68639 2007-03-17  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/stdlib (Depends-on): Add unistd.
68642         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68643         Needed for MacOS X 10.3.
68644
68645 2007-03-17  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68648
68649 2007-03-17  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68652
68653 2007-03-17  Bruno Haible  <bruno@clisp.org>
68654
68655         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68656         to reflect files copied from gnulib (with or without modifications).
68657         Suggested by Jim Meyering.
68658
68659 2007-03-17  Eric Blake  <ebb9@byu.net>
68660
68661         * NEWS: Document stdlib change from 2007-02-18.
68662
68663 2007-03-17  Jim Meyering  <jim@meyering.net>
68664
68665         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68666         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68667         someone uses a name containing shell meta-characters.
68668         Reported by Alfred M. Szmidt.
68669
68670         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68671
68672 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68673
68674         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68675         and copy gettext configuration files only if configure.ac contains
68676         a use of AM_GNU_GETTEXT_VERSION.
68677
68678 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68679
68680         * build-aux/bootstrap (gnulib_name): New variable.
68681         (gnulib_tool_options): Use it.
68682
68683 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68684
68685         * tests/test-des.c: Use new namespace.
68686
68687 2007-03-15  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68690         Reported by James Youngman <jay@gnu.org>.
68691
68692 2007-03-15  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68695         declared prototype. Needed with cc on OSF/1 5.1.
68696
68697 2007-03-15  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68700         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68701         (struct gl_list_implementation): Add dispose_fn argument to the
68702         'create_empty', 'create' methods.
68703         (struct gl_list_impl_base): Add field 'dispose_fn'.
68704         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68705         argument.
68706         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68707         dispose_fn argument.
68708         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68709         dispose_fn on the dropped values.
68710         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68711         dispose_fn argument.
68712         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68713         dropped values.
68714         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68715         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68716         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68717         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68718         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68719         argument.
68720         (gl_tree_list_free): Call dispose_fn on the dropped values.
68721         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68722         the dropped values.
68723         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68724         Add dispose_fn argument.
68725         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68726         Call dispose_fn on the dropped values.
68727         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68728         Add dispose_fn argument.
68729         (gl_sublist_create): Initialize the 'dispose_fn' field.
68730         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68731         * tests/test-array_list.c (main): Update.
68732         * tests/test-carray_list.c (main): Update.
68733         * tests/test-avltree_list.c (main): Update.
68734         * tests/test-rbtree_list.c (main): Update.
68735         * tests/test-avltreehash_list.c (main): Update.
68736         * tests/test-rbtreehash_list.c (main): Update.
68737         * tests/test-linked_list.c (main): Update.
68738         * tests/test-linkedhash_list.c (main): Update.
68739         * tests/test-array_oset.c (main): Update.
68740
68741 2007-03-15  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68744         (gl_oset_create_empty): Add dispose_fn argument.
68745         (struct gl_oset_implementation): Add dispose_fn argument to
68746         'create_empty' method.
68747         (struct gl_oset_impl_base): Add dispose_fn field.
68748         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68749         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68750         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68751         values.
68752         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68753         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68754         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68755         dropped value.
68756         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68757         dropped value.
68758         * tests/test-array_oset.c (main): Update.
68759         * tests/test-avltree_oset.c (main): Update.
68760         * tests/test-rbtree_oset.c (main): Update.
68761         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68762
68763 2007-03-13  Bruno Haible  <bruno@clisp.org>
68764
68765         * tests/test-stdbool.c (i): Update after last patch.
68766
68767 2007-03-12  Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68770         the iswprint macro. Needed on Solaris 2.5.1.
68771
68772 2007-03-12  Bruno Haible  <bruno@clisp.org>
68773
68774         * tests/test-printf-frexp.c (main): Declare x as volatile.
68775
68776 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68777
68778         * doc/gnulib.texi (Build robot for gnulib): New section.
68779
68780 2007-03-12  Jim Meyering  <jim@meyering.net>
68781
68782         * build-aux/bootstrap: New file.
68783         * build-aux/bootstrap.conf: New file, from coreutils.
68784
68785 2007-03-11  Bruno Haible  <bruno@clisp.org>
68786
68787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68788
68789 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68790
68791         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68792         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68793         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68794
68795 2007-03-11  Bruno Haible  <bruno@clisp.org>
68796
68797         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68798         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68799
68800 2007-03-11  Bruno Haible  <bruno@clisp.org>
68801
68802         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68803         formula. Needed for SunPRO C 5.0.
68804
68805 2007-03-11  Bruno Haible  <bruno@clisp.org>
68806
68807         * modules/long-options (Depends-on): Add getopt.
68808
68809 2007-03-11  Bruno Haible  <bruno@clisp.org>
68810
68811         * modules/modechange (Depends-on): Add stdbool.
68812
68813 2007-03-11  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/i-ring (Depends-on): Add stdbool.
68816
68817 2007-03-11  Bruno Haible  <bruno@clisp.org>
68818
68819         * modules/gc-des (Depends-on): Add stdbool.
68820
68821 2007-03-11  Bruno Haible  <bruno@clisp.org>
68822
68823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68824
68825 2007-03-11  Bruno Haible  <bruno@clisp.org>
68826
68827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68828
68829 2007-03-11  Bruno Haible  <bruno@clisp.org>
68830
68831         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68832
68833 2007-03-11  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/vasnprintf.c (sprintf): Undefine.
68836
68837 2007-03-11  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68840         initializers in SunPRO C and Compaq C compilers.
68841
68842 2007-03-11  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68845         decrementing code ANSI C compliant.
68846
68847 2007-03-11  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68850         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68851
68852 2007-03-11  Bruno Haible  <bruno@clisp.org>
68853
68854         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68855         <stdbool.h> substitute doesn't pass.
68856
68857 2007-03-11  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68860
68861 2007-03-11  Bruno Haible  <bruno@clisp.org>
68862
68863         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68864         script, for submission to autobuild.josefsson.org.
68865
68866 2007-03-10  Bruno Haible  <bruno@clisp.org>
68867
68868         * modules/canonicalize-lgpl-tests: New file.
68869         * tests/test-canonicalize-lgpl.sh: New file.
68870         * tests/test-canonicalize-lgpl.c: New file.
68871
68872         * modules/c-strcase-tests: New file.
68873         * tests/test-c-strcase.sh: New file.
68874         * tests/test-c-strcasecmp.c: New file.
68875         * tests/test-c-strncasecmp.c: New file.
68876
68877         * modules/atexit-tests: New file.
68878         * tests/test-atexit.sh: New file.
68879         * tests/test-atexit.c: New file.
68880
68881 2007-03-10  Bruno Haible  <bruno@clisp.org>
68882
68883         * tests/test-binary-io.sh: Use temporary filenames that are not so
68884         likely to clash with those of other tests (in a parallel make).
68885         * tests/test-binary-io.c: Likewise.
68886
68887 2007-03-10  Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68890         fallback; use #error instead.
68891         Suggested by Simon Josefsson.
68892
68893 2007-03-10  Bruno Haible  <bruno@clisp.org>
68894
68895         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68896         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68897         first and the last.
68898
68899 2007-03-10  Bruno Haible  <bruno@clisp.org>
68900
68901         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68902
68903 2007-03-10  Bruno Haible  <bruno@clisp.org>
68904
68905         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68906         "make distcheck".
68907         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68908         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68909         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68910
68911 2007-03-10  Bruno Haible  <bruno@clisp.org>
68912
68913         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68914         variable.
68915         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68916         variable.
68917
68918 2007-03-09  Eric Blake  <ebb9@byu.net>
68919         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68920
68921         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68922         types are not being provided by gnulib.
68923         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68924         types are supported.
68925
68926 2007-03-10  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/stdio_.h (__attribute__): New macro.
68929         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68930         vsprintf): Specify __attribute__ __format__ for GCC.
68931         Suggested by Eric Blake.
68932
68933 2007-03-09  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/printf-posix-tests: New file.
68936         * tests/test-printf-posix.sh: New file.
68937         * tests/test-printf-posix.c: New file.
68938
68939         * modules/printf-posix: New file.
68940         * lib/printf.c: New file.
68941         * m4/printf-posix-rpl.m4: New file.
68942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68943         REPLACE_PRINTF.
68944         * lib/stdio_.h (printf): New declaration.
68945         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68946         ____strfmon____): New macros.
68947         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68948         REPLACE_PRINTF.
68949
68950 2007-03-09  Bruno Haible  <bruno@clisp.org>
68951
68952         * tests/test-vasnprintf-posix2.sh: New file.
68953         * tests/test-vasnprintf-posix2.c: New file.
68954         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68955         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68956         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68957
68958         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68959         a locale dependent decimal point, rather than always '.'.
68960
68961 2007-03-09  Eric Blake  <ebb9@byu.net>
68962
68963         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68964         spite of platforms like Tandem/NSK that define it to -1.
68965
68966 2007-03-08  Bruno Haible  <bruno@clisp.org>
68967
68968         * modules/vprintf-posix-tests: New file.
68969         * tests/test-vprintf-posix.sh: New file.
68970         * tests/test-vprintf-posix.c: New file.
68971         * tests/test-printf-posix.h: New file.
68972
68973         * modules/vprintf-posix: New file.
68974         * lib/vprintf.c: New file.
68975         * m4/vprintf-posix.m4: New file.
68976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68977         REPLACE_VPRINTF.
68978         * lib/stdio_.h (vprintf): New declaration.
68979         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68980         REPLACE_VPRINTF.
68981
68982 2007-03-08  Bruno Haible  <bruno@clisp.org>
68983
68984         * modules/fprintf-posix-tests: New file.
68985         * tests/test-fprintf-posix.sh: New file.
68986         * tests/test-fprintf-posix.c: New file.
68987
68988         * modules/fprintf-posix: New file.
68989         * lib/fprintf.c: New file.
68990         * m4/fprintf-posix.m4: New file.
68991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68992         REPLACE_FPRINTF.
68993         * lib/stdio_.h (fprintf): New declaration.
68994         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68995         REPLACE_FPRINTF.
68996
68997 2007-03-08  Bruno Haible  <bruno@clisp.org>
68998
68999         * modules/vfprintf-posix-tests: New file.
69000         * tests/test-vfprintf-posix.sh: New file.
69001         * tests/test-vfprintf-posix.c: New file.
69002         * tests/test-fprintf-posix.h: New file.
69003         * tests/test-fprintf-posix.out: New file.
69004
69005         * modules/vfprintf-posix: New file.
69006         * lib/vfprintf.c: New file.
69007         * m4/vfprintf-posix.m4: New file.
69008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69009         REPLACE_VFPRINTF.
69010         * lib/stdio_.h (vfprintf): New declaration.
69011         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69012         REPLACE_VFPRINTF.
69013
69014 2007-03-08  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69017
69018 2007-03-08  Bruno Haible  <bruno@clisp.org>
69019
69020         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69021         instead of 'expr' invocations.
69022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69027         Suggested by Paul Eggert.
69028
69029 2007-03-08  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/fseterr-tests: New file.
69032         * tests/test-fseterr.c: New file.
69033
69034         * modules/fseterr: New file.
69035         * lib/fseterr.h: New file.
69036         * lib/fseterr.c: New file.
69037
69038 2007-03-08  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69041         * lib/getopt_.h: Likewise.
69042         * lib/mbswidth.h: Likewise.
69043         * lib/setenv.h: Likewise.
69044         * lib/vasnprintf.h: Likewise.
69045         * lib/vasprintf.h: Likewise.
69046         * lib/verror.h: Likewise.
69047         * lib/xsetenv.h: Likewise.
69048         * lib/xvasprintf.h: Likewise.
69049
69050 2007-03-08  Jim Meyering  <jim@meyering.net>
69051
69052         * users.txt: Add parted.
69053
69054         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69055
69056 2007-03-07  Bruno Haible  <bruno@clisp.org>
69057
69058         * m4/printf.m4: Make the shell script snippets copy&pastable.
69059
69060 2007-03-02  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/netinet_in_.h: New file.
69063         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69064         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69065         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69066         (Depends-on): Add absolute-header.
69067         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69068         into netinet/in.h.
69069
69070 2007-03-03  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/sys_select_.h: New file.
69073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69074         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69075         * modules/sys_select (Files): Add lib/sys_select_.h.
69076         (Depends-on): Add absolute-header.
69077         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69078         into sys/select.h.
69079
69080 2007-03-02  Bruno Haible  <bruno@clisp.org>
69081
69082         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69083         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69084         values.
69085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69086         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69087         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69088         * modules/sys_socket (Depends-on): Add absolute-header.
69089         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69090         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69091         (Include): Remove requirement of inclusion of <sys/types.h>.
69092
69093 2007-03-02  Bruno Haible  <bruno@clisp.org>
69094
69095         * lib/byteswap_.h (bswap_32): Fix formula.
69096
69097 2007-03-06  Bruno Haible  <bruno@clisp.org>
69098
69099         * modules/sprintf-posix-tests: New file.
69100         * tests/test-sprintf-posix.c: New file.
69101
69102         * modules/sprintf-posix: New file.
69103         * lib/sprintf.c: New file.
69104         * m4/sprintf-posix.m4: New file.
69105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69106         REPLACE_SPRINTF.
69107         * lib/stdio_.h (sprintf): New declaration.
69108         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69109         REPLACE_SPRINTF.
69110
69111 2007-03-06  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/vsprintf-posix-tests: New file.
69114         * tests/test-vsprintf-posix.c: New file.
69115         * tests/test-sprintf-posix.h: New file.
69116
69117         * modules/vsprintf-posix: New file.
69118         * lib/vsprintf.c: New file.
69119         * m4/vsprintf-posix.m4: New file.
69120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69121         REPLACE_VSPRINTF.
69122         * lib/stdio_.h (vsprintf): New declaration.
69123         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69124         REPLACE_VSPRINTF.
69125
69126 2007-03-06  Bruno Haible  <bruno@clisp.org>
69127
69128         * modules/vsnprintf (Depend-on): Remove minmax.
69129
69130 2007-03-06  Bruno Haible  <bruno@clisp.org>
69131
69132         * modules/snprintf-posix-tests: New file.
69133         * tests/test-snprintf-posix.c: New file.
69134
69135         * modules/snprintf-posix: New file.
69136         * m4/snprintf-posix.m4: New file.
69137         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69138         gl_FUNC_SNPRINTF.
69139         (gl_FUNC_SNPRINTF): Invoke it.
69140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69141         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69142         is set.
69143         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69144
69145 2007-03-06  Bruno Haible  <bruno@clisp.org>
69146
69147         * modules/vsnprintf-posix-tests: New file.
69148         * tests/test-vsnprintf-posix.c: New file.
69149         * tests/test-snprintf-posix.h: New file.
69150
69151         * modules/vsnprintf-posix: New file.
69152         * m4/vsnprintf-posix.m4: New file.
69153         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69154         gl_FUNC_VSNPRINTF.
69155         (gl_FUNC_VSNPRINTF): Invoke it.
69156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69157         * lib/stdio_.h (vsnprintf): Define as a replacement if
69158         REPLACE_VSNPRINTF is set.
69159         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69160
69161 2007-03-06  Bruno Haible  <bruno@clisp.org>
69162
69163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69165
69166 2007-03-06  Bruno Haible  <bruno@clisp.org>
69167
69168         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69169         (asinl): Declare also if HAVE_DECL_ASINL is set.
69170         (atanl): Declare also if HAVE_DECL_ATANL is set.
69171         (ceill): Declare also if HAVE_DECL_CEILL is set.
69172         (cosl): Declare also if HAVE_DECL_COSL is set.
69173         (expl): Declare also if HAVE_DECL_EXPL is set.
69174         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69175         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69176         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69177         (logl): Declare also if HAVE_DECL_LOGL is set.
69178         (sinl): Declare also if HAVE_DECL_SINL is set.
69179         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69180         (tanl): Declare also if HAVE_DECL_TANL is set.
69181         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69183         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69184         declaration of frexpl, ldexpl.
69185         * modules/printf-frexpl (Depends-on): Add math.
69186         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69187
69188 2007-03-05  Bruno Haible  <bruno@clisp.org>
69189
69190         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69191         frexpl and ldexpl are declared.
69192         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69193
69194 2007-03-05  Bruno Haible  <bruno@clisp.org>
69195
69196         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69197         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69198
69199 2007-03-05  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/stdio_.h: Include <stddef.h>.
69202
69203 2007-03-05  Bruno Haible  <bruno@clisp.org>
69204
69205         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69206
69207 2007-03-05  Bruno Haible  <bruno@clisp.org>
69208
69209         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69210         NetBSD 4, from Ralf Wildenhues.
69211
69212 2007-03-04  Bruno Haible  <bruno@clisp.org>
69213
69214         * lib/vasprintf.h: Update #if logic for the case when the functions
69215         exist but are overridden.
69216
69217 2007-03-04  Bruno Haible  <bruno@clisp.org>
69218
69219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69220         implementations: glibc-2.4 and MacOS X 10.3.
69221         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69222         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69223         * tests/test-vasprintf-posix.c (test_function): Likewise.
69224
69225 2007-03-04  Bruno Haible  <bruno@clisp.org>
69226
69227         * modules/vasprintf-posix-tests: New file.
69228         * tests/test-vasprintf-posix.c: New file.
69229
69230         * modules/vasprintf-posix: New file.
69231         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69232         defined.
69233         * m4/vasprintf-posix.m4: New file.
69234         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69235         gl_FUNC_VASPRINTF.
69236         (gl_FUNC_VASPRINTF): Invoke it.
69237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69238         here.
69239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69240
69241 2007-03-04  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69244         REPLACE_GETTIMEOFDAY.
69245         * modules/sys_time (Makefile.am): Likewise.
69246         * m4/sys_time_h.m4: Likewise.
69247         * m4/gettimeofday.m4: Likewise.
69248
69249 2007-03-04  Bruno Haible  <bruno@clisp.org>
69250
69251         * modules/vasnprintf-posix-tests: New file.
69252         * tests/test-vasnprintf-posix.c: New file.
69253
69254         * modules/vasnprintf-posix: New file.
69255         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69256         printf-frexpl.h.
69257         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69258         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69259         REPLACE_VASNPRINTF is defined.
69260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69261         gl_FUNC_VASNPRINTF.
69262         (gl_FUNC_VASNPRINTF): Invoke it.
69263         * m4/vasnprintf-posix.m4: New file.
69264         * m4/printf.m4: New file.
69265
69266 2007-03-04  Bruno Haible  <bruno@clisp.org>
69267
69268         Compile progreloc.c only if --enable-relocatable is specified.
69269         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69270         if --enable-relocatable was specified.
69271         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69272         lib_SOURCES.
69273
69274 2007-03-04  Jim Meyering  <jim@meyering.net>
69275
69276         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69277         Use it consistently, rather than enumerating errno constants.
69278
69279 2007-03-04  Bruno Haible  <bruno@clisp.org>
69280
69281         * modules/xvasprintf-tests: New file.
69282         * tests/test-xvasprintf.c: New file.
69283
69284         * modules/vasprintf-tests: New file.
69285         * tests/test-vasprintf.c: New file.
69286
69287         * modules/vasnprintf-tests: New file.
69288         * tests/test-vasnprintf.c: New file.
69289
69290         * modules/vsnprintf-tests: New file.
69291         * tests/test-vsnprintf.c: New file.
69292
69293         * modules/snprintf-tests: New file.
69294         * tests/test-snprintf.c: New file.
69295
69296 2007-03-04  Bruno Haible  <bruno@clisp.org>
69297
69298         Compile relocatable.c only if --enable-relocatable is specified.
69299         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69300         gl_RELOCATABLE_LIBRARY.
69301         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69302         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69303         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69304         gl_RELOCATABLE_LIBRARY.
69305         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69306         (Makefile.am): Remove lib_SOURCES.
69307         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69308         gl_RELOCATABLE_LIBRARY.
69309         (Makefile.am): Remove lib_SOURCES.
69310         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69311         always.
69312         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69313         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69314
69315 2007-03-04  Bruno Haible  <bruno@clisp.org>
69316
69317         * modules/argmatch-tests: New file.
69318         * tests/test-argmatch.c: New file.
69319
69320         * tests/test-allocsa.c (main): Halve the number of loop runs.
69321
69322         * modules/alloca-opt-tests: New file.
69323         * tests/test-alloca-opt.c: New file.
69324
69325 2007-03-04  Jim Meyering  <jim@meyering.net>
69326
69327         Work around difference between Linux ACLs and Solaris 10 ZFS.
69328         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69329         for EINVAL.
69330
69331 2007-03-03  Bruno Haible  <bruno@clisp.org>
69332
69333         * modules/relocatable-prog (Depends-on): Add back progreloc's
69334         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69335
69336 2007-03-03  Bruno Haible  <bruno@clisp.org>
69337
69338         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69339         * modules/relocatable-lib: New file.
69340
69341 2007-03-03  Bruno Haible  <bruno@clisp.org>
69342
69343         * modules/relocatable-prog: Renamed from modules/relocatable.
69344         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69345
69346 2007-03-03  Bruno Haible  <bruno@clisp.org>
69347
69348         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69349         m4/relocatable-lib.m4.
69350         (Depends-on): Remove 'relocatable'.
69351         (configure.ac): Add gl_RELOCATABLE_NOP.
69352
69353 2007-03-03  Bruno Haible  <bruno@clisp.org>
69354
69355         * modules/relocatable-prog-wrapper: New file.
69356         * modules/relocatable (Depends-on): Add it. Remove all other
69357         dependencies except progname.
69358         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69359
69360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69361         (gl_FUNC_STRERROR): Nop.
69362         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69363
69364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69365         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69366
69367         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69368         (gl_FUNC_READLINK): Update.
69369
69370         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69371
69372 2007-03-03  Bruno Haible  <bruno@clisp.org>
69373
69374         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69375         * modules/xreadlink (Depends-on): Add unistd.
69376         * modules/xreadlink-with-size (Depends-on): Likewise.
69377
69378 2007-03-03  Bruno Haible  <bruno@clisp.org>
69379
69380         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69381         extracted from gt_FUNC_SETENV.
69382         (gt_FUNC_SETENV): Remove macro.
69383         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69384         remove gt_FUNC_SETENV.
69385
69386 2007-03-03  Bruno Haible  <bruno@clisp.org>
69387
69388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69389         ENABLE_RELOCATABLE here.
69390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69391
69392 2007-03-03  Bruno Haible  <bruno@clisp.org>
69393
69394         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69395         * tests/test-rbtreehash_list.c: Include progname.h.
69396         (main): Call set_program_name.
69397
69398         * modules/rbtree-oset-tests (Depends-on): Add progname.
69399         * tests/test-rbtree_oset.c: Include progname.h.
69400         (main): Call set_program_name.
69401
69402         * modules/rbtree-list-tests (Depends-on): Add progname.
69403         * tests/test-rbtree_list.c: Include progname.h.
69404         (main): Call set_program_name.
69405
69406         * modules/linked-list-tests (Depends-on): Add progname.
69407         * tests/test-linked_list.c: Include progname.h.
69408         (main): Call set_program_name.
69409
69410 2007-03-03  Bruno Haible  <bruno@clisp.org>
69411
69412         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69413         All uses of __restrict changed to _Restrict_.
69414         * lib/glob_.h (__restrict): Remove macro.
69415
69416 2007-03-02  Bruno Haible  <bruno@clisp.org>
69417
69418         * modules/gettext (configure.ac): Require gettext infrastructure
69419         from version 0.16.1.
69420
69421 2007-03-02  Bruno Haible  <bruno@clisp.org>
69422
69423         * modules/linkedhash-list-tests (Depends-on): Add progname.
69424         * tests/test-linkedhash_list.c: Include progname.h.
69425         (main): Call set_program_name.
69426
69427         * modules/carray-list-tests (Depends-on): Add progname.
69428         * tests/test-carray_list.c: Include progname.h.
69429         (main): Call set_program_name.
69430
69431         * modules/avltreehash-list-tests (Depends-on): Add progname.
69432         * tests/test-avltreehash_list.c: Include progname.h.
69433         (main): Call set_program_name.
69434
69435         * modules/avltree-oset-tests (Depends-on): Add progname.
69436         * tests/test-avltree_oset.c: Include progname.h.
69437         (main): Call set_program_name.
69438
69439         * modules/avltree-list-tests (Depends-on): Add progname.
69440         * tests/test-avltree_list.c: Include progname.h.
69441         (main): Call set_program_name.
69442
69443         * modules/array-oset-tests (Depends-on): Add progname.
69444         * tests/test-array_oset.c: Include progname.h.
69445         (main): Call set_program_name.
69446
69447         * modules/array-list-tests (Depends-on): Add progname.
69448         * tests/test-array_list.c: Include progname.h.
69449         (main): Call set_program_name.
69450
69451         * modules/argp-tests (Depends-on): Add progname.
69452         * tests/test-argp.c: Include argp.h first. Include progname.h.
69453         (main): Call set_program_name.
69454
69455 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69456
69457         * doc/gnulib-tool.texi (Initial import): Reword description of
69458         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69459         limited effect even if defined after the first system include.
69460
69461 2007-03-01  Bruno Haible  <bruno@clisp.org>
69462
69463         * build-aux/config.libpath: Update to libtool-1.5.22.
69464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69465
69466 2007-03-01  Bruno Haible  <bruno@clisp.org>
69467
69468         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69469         foo_CFLAGS.
69470         Reported by Ralf Wildenhues.
69471
69472 2007-03-01  Bruno Haible  <bruno@clisp.org>
69473
69474         * build-aux/install-reloc: Remove object files left over by some
69475         compilers.
69476         Reported by Ralf Wildenhues.
69477
69478 2007-03-01  Bruno Haible  <bruno@clisp.org>
69479
69480         * build-aux/install-reloc: Break long lines.
69481
69482 2007-03-01  Bruno Haible  <bruno@clisp.org>
69483
69484         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69485         Reported by Ralf Wildenhues.
69486
69487 2007-03-01  Bruno Haible  <bruno@clisp.org>
69488
69489         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69490         include ordering constraints.
69491
69492 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69496         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69497         as another example.
69498         * lib/time_.h: Fix misspelling.
69499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69500         Require gl_HEADER_TIME_H_DEFAULTS.
69501         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69502         * m4/time_r.m4 (gl_TIME_R): Likewise.
69503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69504
69505 2007-03-01  Bruno Haible  <bruno@clisp.org>
69506
69507         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69508         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69509
69510 2007-03-01  Jim Meyering  <jim@meyering.net>
69511
69512         * modules/xreadlink (Maintainer): Add my name.
69513         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69514
69515 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69516             Bruno Haible  <bruno@clisp.org>
69517
69518         * build-aux/install-reloc: Compile also c-ctype.c.
69519         * build-aux/relocatable.sh.in: New file.
69520         * doc/relocatable.texi: New file.
69521         * doc/relocatable-maint.texi: New file.
69522         * doc/gnulib.texi: Include relocatable-maint.texi.
69523         * lib/progreloc.c: Include unistd.h unconditionally.
69524         * lib/relocwrapper.c: Include unistd.h unconditionally.
69525         Include c-ctype.h.
69526         (add_dotbin): Use c_tolower.
69527         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69528         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69529         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69530         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69531         to m4/relocatable-lib.m4.
69532         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69533         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69534         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69535         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69536         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69537         * modules/relocatable: New file.
69538         * modules/relocatable-lib: New file.
69539         * modules/relocatable-script: New file.
69540
69541 2007-02-28  Bruno Haible  <bruno@clisp.org>
69542
69543         Import --enable-relocatable infrastructure.
69544         * build-aux/config.libpath: New file, from GNU gettext.
69545         * build-aux/install-reloc: New file, from GNU gettext.
69546         * build-aux/reloc-ldflags: New file, from GNU gettext.
69547         * lib/relocatable.h: New file, from GNU gettext.
69548         * lib/relocatable.c: New file, from GNU gettext.
69549         * lib/relocwrapper.c: New file, from GNU gettext.
69550         * m4/relocatable.m4: New file, from GNU gettext.
69551
69552 2007-02-28  Bruno Haible  <bruno@clisp.org>
69553
69554         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69555
69556         * modules/xreadlink: New file, from GNU gettext with modifications.
69557         * lib/xreadlink.c: New file, from GNU gettext.
69558         * lib/xreadlink.h: Add comments.
69559         (xreadlink): New declaration.
69560
69561         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69562         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69563         lib/xreadlink-with-size.c.
69564         (configure.ac): Remove gl_XREADLINK invocation.
69565         (Makefile.am): Augment lib_SOURCES.
69566         * m4/xreadlink.m4: Remove file.
69567         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69568         (xreadlink_with_size): Renamed from xreadink.
69569         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69570         * modules/canonicalize (Depends-on): Replace xreadlink with
69571         xreadlink-with-size.
69572         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69573
69574 2007-02-25  Jim Meyering  <jim@meyering.net>
69575
69576         * build-aux/announce-gen: When complaining about excess arguments,
69577         list them.
69578
69579 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * README: Document signed integer overflow situation more
69582         accurately.
69583
69584 2007-02-25  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69587         'a' or 'A' conversion.
69588
69589 2007-02-25  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/filename: Renamed from modules/pathname.
69592         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69593         lib/concatpath.c with lib/concat-filename.c.
69594         (Makefile.am): Update.
69595         (Include): Replace pathname.h with filename.h.
69596         * lib/filename.h: Renamed from lib/pathname.h.
69597         (concatenated_filename): Renamed from concatenated_pathname.
69598         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69599         (concatenated_filename): Renamed from concatenated_pathname.
69600         * lib/findprog.c: Include filename.h instead of pathname.h.
69601         (find_in_path): Update.
69602         * lib/javacomp.c: Include filename.h instead of pathname.h.
69603         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69604         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69605         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69606         is_oldgcj_14_13_usable, is_javac_usable): Update.
69607         * lib/javaexec.c: Include filename.h instead of pathname.h.
69608         (execute_java_class): Update.
69609         * modules/findprog: Update.
69610         * modules/javacomp: Update.
69611         * modules/javaexec: Update.
69612         * MODULES.html.sh (File system functions): Add 'filename', remove
69613         'pathname'.
69614
69615 2007-02-25  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/printf-frexpl-tests: New file.
69618         * tests/test-printf-frexpl.c: New file.
69619
69620         * modules/printf-frexpl: New file.
69621         * lib/printf-frexpl.h: New file.
69622         * lib/printf-frexpl.c: New file.
69623         * m4/printf-frexpl.m4: New file.
69624
69625 2007-02-25  Bruno Haible  <bruno@clisp.org>
69626
69627         * modules/printf-frexp-tests: New file.
69628         * tests/test-printf-frexp.c: New file.
69629
69630         * modules/printf-frexp: New file.
69631         * lib/printf-frexp.h: New file.
69632         * lib/printf-frexp.c: New file.
69633         * m4/printf-frexp.m4: New file.
69634
69635 2007-02-25  Bruno Haible  <bruno@clisp.org>
69636
69637         Assume automake >= 1.10 for the tests.
69638         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69639         * modules/arctwo-tests: Likewise.
69640         * modules/argp-tests: Likewise.
69641         * modules/avltree-list-tests: Likewise.
69642         * modules/avltree-oset-tests: Likewise.
69643         * modules/avltreehash-list-tests: Likewise.
69644         * modules/carray-list-tests: Likewise.
69645         * modules/crc-tests: Likewise.
69646         * modules/des-tests: Likewise.
69647         * modules/gc-arcfour-tests: Likewise.
69648         * modules/gc-arctwo-tests: Likewise.
69649         * modules/gc-des-tests: Likewise.
69650         * modules/gc-hmac-md5-tests: Likewise.
69651         * modules/gc-hmac-sha1-tests: Likewise.
69652         * modules/gc-md2-tests: Likewise.
69653         * modules/gc-md4-tests: Likewise.
69654         * modules/gc-md5-tests: Likewise.
69655         * modules/gc-pbkdf2-sha1-tests: Likewise.
69656         * modules/gc-rijndael-tests: Likewise.
69657         * modules/gc-sha1-tests: Likewise.
69658         * modules/gc-tests: Likewise.
69659         * modules/getaddrinfo-tests: Likewise.
69660         * modules/hmac-md5-tests: Likewise.
69661         * modules/hmac-sha1-tests: Likewise.
69662         * modules/linked-list-tests: Likewise.
69663         * modules/linkedhash-list-tests: Likewise.
69664         * modules/lock-tests: Likewise.
69665         * modules/md2-tests: Likewise.
69666         * modules/md4-tests: Likewise.
69667         * modules/md5-tests: Likewise.
69668         * modules/rbtree-list-tests: Likewise.
69669         * modules/rbtree-oset-tests: Likewise.
69670         * modules/rbtreehash-list-tests: Likewise.
69671         * modules/read-file-tests: Likewise.
69672         * modules/rijndael-tests: Likewise.
69673         * modules/stdint-tests: Likewise.
69674         * modules/tls-tests: Likewise.
69675
69676 2007-02-24  Bruno Haible  <bruno@clisp.org>
69677
69678         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69679         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69680         function; instead check whether isnan with a double argument links.
69681         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69682         function; instead check whether isnan with a 'long double' argument
69683         links.
69684         Reported by Eric Blake <ebb9@byu.net>.
69685
69686 2007-02-24  Bruno Haible  <bruno@clisp.org>
69687
69688         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69689         defined.
69690         * lib/isnanl.c: Remove all code. Just include isnan.c.
69691         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69692
69693 2007-02-25  Jim Meyering  <jim@meyering.net>
69694
69695         Avoid conflicting types for 'unsetenv' on FreeBSD.
69696         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69697         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69698         in stdlib.h.
69699
69700 2007-02-24  Bruno Haible  <bruno@clisp.org>
69701
69702         * modules/isnanl-nolibm-tests: New file.
69703         * tests/test-isnanl.c: New file.
69704
69705         * modules/isnanl-nolibm: New file.
69706         * lib/isnanl.h: New file.
69707         * lib/isnanl.c: New file.
69708         * m4/isnanl.m4: New file.
69709
69710 2007-02-24  Bruno Haible  <bruno@clisp.org>
69711
69712         * modules/isnan-nolibm-tests: New file.
69713         * tests/test-isnan.c: New file.
69714
69715         * modules/isnan-nolibm: New file.
69716         * lib/isnan.h: New file.
69717         * lib/isnan.c: New file.
69718         * m4/isnan.m4: New file.
69719
69720 2007-02-24  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69723         assume that an exponent fits in 20 bits.
69724
69725 2007-02-24  Jim Meyering  <jim@meyering.net>
69726
69727         * m4/regex.m4: Update the description of the configure-time option,
69728         --without-included-regex, to state accurately what the defaults are,
69729         and perhaps to give people an idea why using this option is risky.
69730
69731 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69734         loops on small arguments.  This attempts to avoid the problem
69735         Bruno Haible reported for AIX 4.3.2 in
69736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69737
69738 2007-02-23  Bruno Haible  <bruno@clisp.org>
69739
69740         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69741         Needed for help2man.
69742
69743 2007-02-23  Karl Berry  <karl@gnu.org>
69744
69745         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69746         exists, foo.h should be cvs-ignored, not committed.
69747
69748 2007-02-23  Eric Blake  <ebb9@byu.net>
69749
69750         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69751         * lib/stat-time.h (includes): Likewise.
69752         * lib/utimecmp.c (includes): Likewise.
69753         * lib/utimens.h (includes): Likewise.
69754         * lib/getdate.y (includes): Also include "timespec.h" for use
69755         internal to the module.
69756         * modules/utimens (Depends-on): Revert yesterday's patch.
69757         * modules/nanosleep (Depends-on): Add missing dependency.
69758
69759 2007-02-22  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/glob.c: Don't include getlogin_r.h.
69762
69763 2007-02-22  Jim Meyering  <jim@meyering.net>
69764
69765         * modules/utimens (Depends-on): Add timespec, required for
69766         utimens.h's inclusion of timespec.h.
69767
69768 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69771         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69772         Schwab in
69773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69774         I'll try to think of a better way to fix the Solaris problem.
69775
69776         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69777         like glibc; on Solaris 10, it fails with errno == EINVAL.
69778         POSIX says the behavior is unspecified if the first argument is NULL,
69779         so play it safe and never pass NULL to the system getcwd.
69780
69781 2007-02-21  Jim Meyering  <jim@meyering.net>
69782
69783         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69784         of gettimeofday.  It would conflict with the one now always
69785         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69786         an IRIX 6.5 build failure.
69787
69788 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         Minor fixups to port to Solaris 10 with Sun C 5.8.
69791         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69792         * modules/getcwd (Depends-on): Add dirfd.
69793         * lib/putenv.c (putenv): #undef it.
69794         (rpl_putenv): New decl.
69795         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69796
69797 2007-02-20  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/stdio-tests: New file.
69800         * tests/test-stdio.c: New file.
69801
69802         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69803         (Depends-on): Add stdio.
69804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69805         (Include): Use <stdio.h> instead of vsnprintf.h.
69806         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69807         HAVE_DECL_VSNPRINTF.
69808         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69809
69810         * modules/snprintf (Files): Remove lib/snprintf.h.
69811         (Depends-on): Add stdio.
69812         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69813         (Include): Use <stdio.h> instead of snprintf.h.
69814         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69815         HAVE_DECL_SNPRINTF.
69816         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69817         * lib/getaddrinfo.c: Likewise.
69818
69819         * modules/stdio: New file.
69820         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69821         * lib/snprintf.h: Remove file.
69822         * lib/vsnprintf.h: Remove file.
69823         * lib/.cppi-disable: Remove snprintf.h.
69824         * m4/stdio_h.m4: New file.
69825         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69826
69827 2007-02-20  Jim Meyering  <jim@meyering.net>
69828
69829         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69830         used by e.g., mingw.  From Bruno Haible.
69831
69832 2007-02-19  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69835         warnings.
69836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69837
69838 2007-02-19  Bruno Haible  <bruno@clisp.org>
69839
69840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69841         from mingw users.
69842
69843 2007-02-19  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69846         warnings.
69847         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69848
69849 2007-02-19  Jim Meyering  <jim@meyering.net>
69850
69851         Don't use FD after a successful "fdopendir (fd)".
69852         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69853         Reset it by calling dirfd on the just-obtained DIR*.
69854
69855         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69856         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69857
69858 2007-02-18  Bruno Haible  <bruno@clisp.org>
69859
69860         * lib/readlink.c: Include <unistd.h>.
69861         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69862         HAVE_READLINK.
69863         * modules/readlink (Depends-on): Add unistd.
69864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69865         (Include): Add <unistd.h>.
69866
69867         * lib/getlogin_r.h: Remove file.
69868         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69869         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69870         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69871         HAVE_DECL_GETLOGIN_R.
69872         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69874         (Include): Use <unistd.h> instead of getlogin_r.h.
69875
69876         * lib/getcwd.h: Remove file.
69877         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69878         * lib/xgetcwd.c: Likewise.
69879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69880         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69881         * modules/getcwd (Files): Remove lib/getcwd.h.
69882         (Depends-on): Add unistd.
69883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69884         (Include): Use <unistd.h> instad of getcwd.h.
69885
69886         * lib/ftruncate.c: Include <unistd.h> first.
69887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69888         Set HAVE_FTRUNCATE.
69889         * modules/ftruncate (Depends-on): Add unistd.
69890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69891
69892         * lib/fchdir.c: Include <unistd.h> first.
69893         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69895         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69896         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69897         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69898
69899         * lib/dup2.c: Include <unistd.h> first.
69900         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69901         HAVE_DUP2.
69902         * modules/dup2 (Depends-on): Add unistd.
69903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69904
69905         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69906         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69907         REPLACE_CHOWN. Don't define chown as a macro here.
69908         * modules/chown (Depends-on): Add unistd.
69909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69910
69911         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69912         Add definition for GL_LINK_WARNING.
69913         (chown, dup2): New declarations.
69914         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69915         link warning.
69916         (ftruncate): New declaration.
69917         (getcwd): New declaration, taken from old getcwd.h.
69918         (getlogin_r): New declaration, taken from old getlogin_r.h.
69919         (readlink): New declaration.
69920         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69921         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69922         (gl_PREREQ_UNISTD): Remove macro.
69923         (gl_UNISTD_MODULE_INDICATOR): New macro.
69924         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69925         many new variables. Don't set UNISTD_H.
69926         * modules/unistd (Description): Change.
69927         (Depends-on): Add link-warning.
69928         (configure.ac): Update.
69929         (Makefile.am): Create unistd.h always. Substitute many new variables
69930         into it.
69931
69932 2007-02-18  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69935         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69936         HAVE_GETSUBOPT.
69937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69938         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69939         * lib/getsubopt.h: Remove file.
69940         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69941         (Depends-on): Add stdlib.
69942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69943         (Includes): Use <stdlib.h> instead of getsubopt.h.
69944         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69945         Set HAVE_GETSUBOPT.
69946         * lib/getsubopt.c: Don't include getsubopt.h.
69947
69948 2007-02-18  Bruno Haible  <bruno@clisp.org>
69949
69950         * modules/fchdir (Depends-on): Add dup2.
69951
69952 2007-02-18  Bruno Haible  <bruno@clisp.org>
69953
69954         * lib/stdlib_.h: Handle glibc's special invocation convention
69955         specially.
69956
69957 2007-02-18  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/stdlib-tests: New file.
69960         * tests/test-stdlib.c: New file.
69961
69962         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69963         (Depends-on): Add stdlib.
69964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69965         (Includes): Use <stdlib.h> instead of mkstemp.h.
69966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69967         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69968         * lib/mkstemp.c: Don't include mkstemp.h.
69969         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69970         * lib/stdlib--.h: Don't include mkstemp.h.
69971
69972         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69973         (Depends-on): Add stdlib.
69974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69975         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69976         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69977         HAVE_MKDTEMP.
69978         * lib/mkdtemp.c: Don't include mkdtemp.h.
69979         * lib/clean-temp.c: Don't include mkdtemp.h.
69980
69981         * modules/exit (Files): Remove lib/exit.h.
69982         (Depends-on): Add stdlib.
69983         (Makefile.am): Remove lib_SOURCES.
69984         (Include): Use <stdlib.h> instead of exit.h.
69985         * lib/argmatch.c: Don't include exit.h.
69986         * lib/execute.c: Likewise.
69987         * lib/pagealign_alloc.c: Likewise.
69988         * lib/pipe.c: Likewise.
69989         * lib/wait-process.c: Likewise.
69990         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69991         * lib/exitfail.c: Likewise.
69992         * lib/savewd.c: Likewise.
69993         * lib/xsetenv.c: Likewise.
69994
69995         * modules/stdlib: New file.
69996         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69997         and extra comments about mkstemp().
69998         * lib/exit.h: Remove file.
69999         * lib/mkdtemp.h: Remove file.
70000         * lib/mkstemp.h: Remove file.
70001         * m4/stdlib_h.m4: New file.
70002         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70003
70004 2007-02-18  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/math-tests: New file.
70007         * tests/test-math.c: New file.
70008
70009         * modules/math: New file.
70010         * modules/mathl (Files): Remove lib/mathl.h.
70011         (Depends-on): Add math.
70012         (Makefile.am): Don't mention mathl.h.
70013         (Include): Use <math.h> instead of mathl.h.
70014         * lib/math_.h: New file.
70015         * lib/mathl.h: Remove file.
70016         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70017         mathl.h.
70018         * lib/asinl.c: Likewise.
70019         * lib/atanl.c: Likewise.
70020         * lib/ceill.c: Likewise.
70021         * lib/cosl.c: Likewise.
70022         * lib/expl.c: Likewise.
70023         * lib/floorl.c: Likewise.
70024         * lib/frexpl.c: Likewise.
70025         * lib/ldexpl.c: Likewise.
70026         * lib/logl.c: Likewise.
70027         * lib/sincosl.c: Likewise.
70028         * lib/sinl.c: Likewise.
70029         * lib/sqrtl.c: Likewise.
70030         * lib/tanl.c: Likewise.
70031         * lib/trigl.c: Likewise.
70032         * m4/math_h.m4: New file.
70033         * MODULES.html.sh (Mathematics): Add math.
70034
70035 2007-02-17  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/wctype-tests: New file.
70038         * tests/test-wctype.c: New file.
70039
70040         * modules/wchar-tests: New file.
70041         * tests/test-wchar.c: New file.
70042
70043         * modules/unistd-tests: New file.
70044         * tests/test-unistd.c: New file.
70045
70046         * modules/time-tests: New file.
70047         * tests/test-time.c: New file.
70048
70049         * modules/sysexits-tests: New file.
70050         * tests/test-sysexits.c: New file.
70051
70052         * modules/sys_time-tests: New file.
70053         * tests/test-sys_time.c: New file.
70054
70055         * modules/sys_stat-tests: New file.
70056         * tests/test-sys_stat.c: New file.
70057
70058         * modules/sys_socket-tests: New file.
70059         * tests/test-sys_socket.c: New file.
70060
70061         * modules/sys_select-tests: New file.
70062         * tests/test-sys_select.c: New file.
70063
70064         * modules/string-tests: New file.
70065         * tests/test-string.c: New file.
70066
70067         * modules/stdbool-tests: New file.
70068         * tests/test-stdbool.c: New file.
70069
70070         * modules/netinet_in-tests: New file.
70071         * tests/test-netinet_in.c: New file.
70072
70073         * modules/inttypes-tests: New file.
70074         * tests/test-inttypes.c: New file.
70075
70076         * modules/fcntl-tests: New file.
70077         * tests/test-fcntl.c: New file.
70078
70079         * modules/byteswap-tests: New file.
70080         * tests/test-byteswap.c: New file.
70081
70082         * modules/arpa_inet-tests: New file.
70083         * tests/test-arpa_inet.c: New file.
70084
70085 2007-02-17  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70088         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70089         if the corresponding module is not enabled. Emit link warnings if
70090         the function is used nevertheless.
70091         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70092         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70093         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70094         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70095         * modules/inttypes (Depends-on): Add link-warning.
70096         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70097         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70098         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70099         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70100         * modules/imaxdiv (configure.ac): Likewise.
70101         * modules/strtoimax (configure.ac): Likewise.
70102         * modules/strtoumax (configure.ac): Likewise.
70103
70104 2007-02-17  Bruno Haible  <bruno@clisp.org>
70105
70106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70107         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70108         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70109         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70110
70111 2007-02-17  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/link-warning: New file.
70114         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70115         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70116         * modules/string (Depends-on): Add link-warning.
70117         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70118         string.h.
70119         * MODULES.html.sh (Support for building libraries and executables): Add
70120         link-warning.
70121
70122 2007-02-17  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70125         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70126         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70127         long lines.
70128
70129 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70130             Bruno Haible  <bruno@clisp.org>
70131
70132         * modules/tmpfile: New file.
70133         * lib/tmpfile.c: New file.
70134         * m4/tmpfile.m4: New file.
70135         * MODULES.html.sh (func_all_modules): New section "Input/output".
70136
70137 2007-02-15  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70140         (supports_delete_on_close): New function.
70141         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70142
70143 2007-02-14  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/mbspcasecmp-tests: New file.
70146         * tests/test-mbspcasecmp.sh: New file.
70147         * tests/test-mbspcasecmp.c: New file.
70148
70149         New module mbspcasecmp.
70150         * modules/mbspcasecmp: New file.
70151         * lib/mbspcasecmp.c: New file.
70152         * lib/string_.h (strncasecmp): Change warning message.
70153         (mbspcasecmp): New declaration.
70154         * m4/mbspcasecmp.m4: New file.
70155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70156         GNULIB_MBSPCASECMP.
70157         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70158         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70159
70160 2007-02-14  Bruno Haible  <bruno@clisp.org>
70161
70162         * modules/mbsncasecmp-tests: New file.
70163         * tests/test-mbsncasecmp.sh: New file.
70164         * tests/test-mbsncasecmp.c: New file.
70165
70166         New module mbsncasecmp.
70167         * modules/mbsncasecmp: New file.
70168         * lib/mbsncasecmp.c: New file.
70169         * lib/string_.h (mbsncasecmp): New declaration.
70170         * m4/mbsncasecmp.m4: New file.
70171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70172         GNULIB_MBSNCASECMP.
70173         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70174         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70175
70176 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70179         Verify that it doesn't overlap with our flags.
70180         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70181         do not have the desired effect in multibyte locales; instead, use
70182         mbscasecmp.
70183         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70184         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70185         we don't require GNU fnmatch ourselves (if our users require it, they
70186         should do so explicitly).
70187
70188         Fix regex code so it doesn't rely on strcasecmp.
70189         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70190         Otherwise, include gnulib's langinfo.h.
70191         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70192         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70193         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70194         * modules/regex (FILES): Remove m4/codeset.m4.
70195         (Depends-on): Add localcharset.  Remove strcase.
70196
70197 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70198
70199         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70201
70202 2007-02-13  Bruno Haible  <bruno@clisp.org>
70203
70204         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70206
70207 2007-02-12  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70210         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70211         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70212         time warning rather than a link error.
70213
70214 2007-02-12  Bruno Haible  <bruno@clisp.org>
70215
70216         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70219
70220 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70223         args, not 2.
70224
70225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         New module 'time', so that apps can include <time.h> as per
70228         POSIX and GNU instead of separate include files like time_r.h
70229         and timegm.h.  This implementation tries out a simpler approach
70230         for replacing decls in standard include files (as compared to
70231         the string module), somewhat as an experiment.
70232
70233         * config/srclist.txt: Comment out mktime.c for now.
70234         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70235         since it doesn't apply any more.  Use generic wording instead.
70236         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70237         'time'.
70238         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70239         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70240         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70241         Don't include <sys/types.h>; no longer needed since we assume C89.
70242         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70243         * lib/strftime.c: Likewise.
70244         * lib/time_r.c: Likewise.
70245         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70246         * lib/nanosleep.c: Include <time.h> first, to check interface.
70247         * lib/strptime.c: Likewise.
70248         * lib/time_r.c: Likewise.
70249         * lib/timegm.c: Likewise.
70250         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70251         needed.
70252         * lib/timegm.c: Don't include timegm.h; no longer needed.
70253         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70254         time.h now handles any problems in that area.
70255         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70256         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70257         that time.h defines struct timespec.
70258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70259         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70260         handles that.
70261         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70262         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70263         needed.  Set REPLACE_LOCALTIME.
70264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70265         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70266         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70267         nanosleep; time_h.m4 now does that.  Don't require
70268         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70269         module handles this now.
70270         * modules/getdate (Depends-on): Remove timespec.  Add time.
70271         * modules/nanosleep (Depends-on): Likewise.
70272         * modules/stat-time (Depends-on): Likewise.
70273         * modules/nanosleep (Include): Include time.h, not timespec.h.
70274         * modules/strptime (Files): Remove lib/strptime.h.
70275         (Depends-on): Add extensions, time.
70276         (Include): Include time.h, not strptime.h.
70277         * modules/time_r (Files): Remove lib/time_r.h.
70278         (Depends-on): Add time.
70279         (Include): Include time.h, not time_r.h.
70280         * modules/timegm: Likewise.
70281         * modules/timespec (Description): Now does timespec-related decls
70282         of our own, instead of struct timespec itself.
70283         (Depends-on): Add time; remove extensions.
70284         (Maintainer): Add self.
70285         * modules/utimecmp (Depends-on): Add time; remove timespec.
70286         * modules/utimens (Depends-on): Likewise.
70287         * modules/xnanosleep (Depends-on): Likewise.
70288
70289 2007-02-11  Bruno Haible  <bruno@clisp.org>
70290
70291         * lib/c-strstr.c: Include allocsa.h.
70292         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70293         * lib/c-strcasestr.c: Include allocsa.h.
70294         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70295         * lib/strcasestr.c: Include allocsa.h.
70296         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70297         * lib/mbsstr.c: Include allocsa.h.
70298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70299         allocsa/freesa instead of malloc/free.
70300         * lib/mbscasestr.c: Include allocsa.h.
70301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70302         allocsa/freesa instead of malloc/free.
70303         * modules/c-strstr (Depends-on): Add allocsa.
70304         * modules/c-strcasestr (Depends-on): Likewise.
70305         * modules/strcasestr (Depends-on): Likewise.
70306         * modules/mbsstr (Depends-on): Likewise.
70307         * modules/mbscasestr (Depends-on): Likewise.
70308
70309 2007-02-11  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70312
70313         * modules/mbsspn-tests: New file.
70314         * tests/test-mbsspn.sh: New file.
70315         * tests/test-mbsspn.c: New file.
70316
70317 2007-02-11  Bruno Haible  <bruno@clisp.org>
70318
70319         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70320
70321         * modules/mbspbrk-tests: New file.
70322         * tests/test-mbspbrk.sh: New file.
70323         * tests/test-mbspbrk.c: New file.
70324
70325 2007-02-11  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70328         unneeded cast.
70329
70330         * modules/mbscspn-tests: New file.
70331         * tests/test-mbscspn.sh: New file.
70332         * tests/test-mbscspn.c: New file.
70333
70334 2007-02-11  Bruno Haible  <bruno@clisp.org>
70335
70336         * modules/mbscasecmp-tests: New file.
70337         * tests/test-mbscasecmp.sh: New file.
70338         * tests/test-mbscasecmp.c: New file.
70339
70340 2007-02-11  Bruno Haible  <bruno@clisp.org>
70341
70342         Ensure O(n) worst-case complexity of mbscasestr.
70343         * lib/mbscasestr.c: Include stdbool.h.
70344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70345         functions.
70346         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70347         the bookkeeping indicates that it's worth it.
70348         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70349
70350         * modules/mbscasestr-tests: New file.
70351         * tests/test-mbscasestr1.c: New file.
70352         * tests/test-mbscasestr2.sh: New file.
70353         * tests/test-mbscasestr2.c: New file.
70354         * tests/test-mbscasestr3.sh: New file.
70355         * tests/test-mbscasestr3.c: New file.
70356         * tests/test-mbscasestr4.sh: New file.
70357         * tests/test-mbscasestr4.c: New file.
70358         * m4/locale-tr.m4: New file.
70359
70360 2007-02-11  Bruno Haible  <bruno@clisp.org>
70361
70362         Ensure O(n) worst-case complexity of mbsstr.
70363         * lib/mbsstr.c: Include stdbool.h.
70364         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70365         functions.
70366         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70367         bookkeeping indicates that it's worth it.
70368         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70369
70370         * modules/mbsstr-tests: New file.
70371         * tests/test-mbsstr1.c: New file.
70372         * tests/test-mbsstr2.sh: New file.
70373         * tests/test-mbsstr2.c: New file.
70374         * tests/test-mbsstr3.sh: New file.
70375         * tests/test-mbsstr3.c: New file.
70376         * m4/locale-fr.m4: New file.
70377
70378 2007-02-11  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/mbsrchr.c (mbsrchr): Fix bug.
70381
70382         * modules/mbsrchr-tests: New file.
70383         * tests/test-mbsrchr.sh: New file.
70384         * tests/test-mbsrchr.c: New file.
70385
70386 2007-02-11  Bruno Haible  <bruno@clisp.org>
70387
70388         * lib/mbschr.c (mbschr): Fix bug.
70389
70390         * modules/mbschr-tests: New file.
70391         * tests/test-mbschr.sh: New file.
70392         * tests/test-mbschr.c: New file.
70393         * m4/locale-zh.m4: New file.
70394
70395 2007-02-11  Bruno Haible  <bruno@clisp.org>
70396
70397         Support for copying multibyte string iterators.
70398         * lib/mbiter.h: Include <string.h>.
70399         (mbiter_multi_copy): New function.
70400         (mbi_copy): New macro.
70401         * lib/mbuiter.h: Include <string.h>.
70402         (mbuiter_multi_copy): New function.
70403         (mbui_copy): New macro.
70404
70405 2007-02-11  Bruno Haible  <bruno@clisp.org>
70406
70407         New module mbslen.
70408         * modules/mbslen: New file.
70409         * lib/mbslen.c: New file.
70410         * lib/string_.h (mbslen): New declaration.
70411         * m4/mbslen.m4: New file.
70412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70413         GNULIB_MBSLEN.
70414         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70415         * MODULES.html.sh (Internationalization functions): Add mbslen.
70416
70417 2007-02-11  Bruno Haible  <bruno@clisp.org>
70418
70419         Ensure O(n) worst-case complexity of strcasestr substitute.
70420         * lib/strcasestr.c: Include stdbool.h.
70421         (knuth_morris_pratt): New function.
70422         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70423         bookkeeping indicates that it's worth it.
70424         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70425
70426         * modules/strcasestr-tests: New file.
70427         * tests/test-strcasestr.c: New file.
70428
70429 2007-02-11  Bruno Haible  <bruno@clisp.org>
70430
70431         Ensure O(n) worst-case complexity of c_strcasestr.
70432         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70433         (knuth_morris_pratt): New function.
70434         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70435         the bookkeeping indicates that it's worth it.
70436         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70437
70438         * modules/c-strcasestr-tests: New file.
70439         * tests/test-c-strcasestr.c: New file.
70440
70441 2007-02-11  Bruno Haible  <bruno@clisp.org>
70442
70443         Ensure O(n) worst-case complexity of c_strstr.
70444         * lib/c-strstr.c: Include stdbool.h, string.h.
70445         (knuth_morris_pratt): New function.
70446         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70447         bookkeeping indicates that it's worth it.
70448         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70449
70450         * lib/c-strstr.c: Complete rewrite for maintainability.
70451
70452         * modules/c-strstr-tests: New file.
70453         * tests/test-c-strstr.c: New file.
70454
70455 2007-02-11  Bruno Haible  <bruno@clisp.org>
70456
70457         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70458         5.2.1 and earlier, whereby \055 was treated just like the range
70459         delimiter '-'.
70460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70461
70462 2007-02-08  Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/regex (Depends-on): Add stdbool.
70465         Reported by Dalibor Topic <robilad@kaffe.org>.
70466
70467 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70470         Prefer returning from main to exiting from it.
70471         Remove unnecessary parens after sizeof.
70472
70473 2007-02-05  Bruno Haible  <bruno@clisp.org>
70474
70475         New module mbssep.
70476         * modules/mbssep: New file.
70477         * lib/mbssep.c: New file.
70478         * lib/string_.h (strsep): Add a conditional link warning.
70479         (mbssep): New declaration.
70480         * m4/mbssep.m4: New file.
70481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70482         GNULIB_MBSSEP.
70483         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70484         * MODULES.html.sh (Internationalization functions): Add mbssep.
70485
70486 2007-02-05  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70489         Optimize search in case of 1 delimiter.
70490
70491 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70492
70493         * lib/acl.h: Include sys/types.h before sys/acl.h.
70494
70495 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70496
70497         Merge upstream fix for glibc bugzilla #3957:
70498
70499         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70500
70501         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70502         bit for RE_HAT_LISTS_NOT_NEWLINE.
70503         (build_charclass_op): Remove bogus comment.
70504
70505 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70506
70507         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70508
70509 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70512         * lib/memmem.c [!defined _LIBC]: Include config.h.
70513
70514 2007-02-04  Bruno Haible  <bruno@clisp.org>
70515
70516         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70517         warning message.
70518
70519 2007-02-04  Bruno Haible  <bruno@clisp.org>
70520
70521         New module mbstok_r.
70522         * modules/mbstok_r: New file.
70523         * lib/mbstok_r.c: New file.
70524         * lib/string_.h (strtok_r): Change argument names to match the
70525         comments. Add a conditional link warning.
70526         (mbstok_r): New declaration.
70527         * m4/mbstok_r.m4: New file.
70528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70529         GNULIB_MBSTOK_R.
70530         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70531         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70532
70533 2007-02-04  Bruno Haible  <bruno@clisp.org>
70534
70535         New module mbsspn.
70536         * modules/mbsspn: New file.
70537         * lib/mbsspn.c: New file.
70538         * lib/string_.h (strspn): Add a conditional link warning.
70539         (mbsspn): New declaration.
70540         * m4/mbsspn.m4: New file.
70541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70542         GNULIB_MBSSPN.
70543         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70544         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70545
70546 2007-02-04  Bruno Haible  <bruno@clisp.org>
70547
70548         New module mbspbrk.
70549         * modules/mbspbrk: New file.
70550         * lib/mbspbrk.c: New file.
70551         * lib/string_.h (strpbrk): Add a conditional link warning.
70552         (mbspbrk): New declaration.
70553         * m4/mbspbrk.m4: New file.
70554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70555         GNULIB_MBSPBRK.
70556         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70557         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70558
70559 2007-02-04  Bruno Haible  <bruno@clisp.org>
70560
70561         New module mbscspn.
70562         * modules/mbscspn: New file.
70563         * lib/mbscspn.c: New file.
70564         * lib/string_.h (strcspn): Add a conditional link warning.
70565         (mbscspn): New declaration.
70566         * m4/mbscspn.m4: New file.
70567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70568         GNULIB_MBSCSPN.
70569         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70570         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70571
70572 2007-02-04  Bruno Haible  <bruno@clisp.org>
70573
70574         New module mbscasestr, reduced goal of strcasestr.
70575         * modules/mbscasestr: New file.
70576         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70577         (mbscasestr): Renamed from strcasestr.
70578         * lib/strcasestr.c: Don't include mbuiter.h.
70579         (strcasestr): Remove support for multibyte locales.
70580         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70581         Change the conditional link warning.
70582         (mbscasestr): New declaration.
70583         * m4/mbscasestr.m4: New file.
70584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70585         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70586         REPLACE_STRCASESTR.
70587         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70589         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70590         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70591         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70592         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70593         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70594         (Depends-on): Remove mbuiter.
70595         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70596
70597 2007-02-04  Bruno Haible  <bruno@clisp.org>
70598
70599         Simplify handling of strncasecmp.
70600         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70601         the conditional link warning.
70602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70603         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70605         * modules/strcase (configure.ac): Don't invoke
70606         gl_STRING_MODULE_INDICATOR.
70607         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70608
70609 2007-02-04  Bruno Haible  <bruno@clisp.org>
70610
70611         New module mbscasecmp, reduced goal of strcasecmp.
70612         * modules/mbscasecmp: New file.
70613         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70614         (mbscasecmp): Renamed from strcasecmp.
70615         * lib/strcasecmp.c: Don't include mbuiter.h.
70616         (strcasecmp): Remove support for multibyte locales.
70617         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70618         Change the conditional link warning.
70619         (mbscasecmp): New declaration.
70620         * m4/mbscasecmp.m4: New file.
70621         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70622         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70623         REPLACE_STRCASECMP.
70624         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70626         GNULIB_MBSCASECMP.
70627         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70628         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70629         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70630         (Depends-on): Remove mbuiter.
70631         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70632
70633 2007-02-04  Bruno Haible  <bruno@clisp.org>
70634
70635         New module mbsstr. Remove module strstr.
70636         * modules/mbsstr: New file.
70637         * modules/strstr: Remove file.
70638         * lib/mbsstr.c: Renamed from lib/strstr.c.
70639         (mbsstr): Renamed from strstr.
70640         * lib/string_.h (strstr): Remove declaration. Change the conditional
70641         link warning.
70642         (mbsstr): New declaration.
70643         * m4/mbsstr.m4: New file.
70644         * m4/strstr.m4: Remove file.
70645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70646         REPLACE_STRSTR.
70647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70648         Don't initialize GNULIB_STRSTR.
70649         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70650         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70651         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70652         (Support for systems lacking ANSI C 89): Remove strstr.
70653
70654 2007-02-04  Bruno Haible  <bruno@clisp.org>
70655
70656         New module mbsrchr.
70657         * modules/mbsrchr: New file.
70658         * lib/mbsrchr.c: New file.
70659         * lib/string_.h (strrchr): Add a conditional link warning.
70660         (mbsrchr): New declaration.
70661         * m4/mbsrchr.m4: New file.
70662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70663         GNULIB_MBSRCHR.
70664         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70665         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70666
70667 2007-02-04  Bruno Haible  <bruno@clisp.org>
70668
70669         New module mbschr.
70670         * modules/mbschr: New file.
70671         * lib/mbschr.c: New file.
70672         * lib/string_.h (strchr): Add a conditional link warning.
70673         (mbschr): New declaration.
70674         * m4/mbschr.m4: New file.
70675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70676         GNULIB_MBSCHR.
70677         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70678         * MODULES.html.sh (Internationalization functions): Add mbschr.
70679
70680 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70683
70684         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70685
70686 2007-02-04  Bruno Haible  <bruno@clisp.org>
70687
70688         New module description section 'configure.ac-early'.
70689         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70690         (func_get_autoconf_early_snippet): New function.
70691         (func_import, func_create_testdir): Use it. Remove special cases for
70692         modules 'extensions' and 'lock'.
70693         * modules/extensions (configure.ac-early): Require
70694         gl_USE_SYSTEM_EXTENSIONS.
70695         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70696
70697 2007-02-04  Bruno Haible  <bruno@clisp.org>
70698
70699         Make use of gcj-4.3's -fsource and -ftarget option.
70700         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70701         and if so try the options -fsource and -ftarget.
70702         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70703         source_version, ftarget_option, target_version arguments.
70704         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70705         (is_envjavac_oldgcj_14_14_usable): Renamed from
70706         is_envjavac_gcj_14_14_usable.
70707         (is_envjavac_oldgcj_14_13_usable): Renamed from
70708         is_envjavac_gcj_14_13_usable.
70709         (is_gcj_present): Update.
70710         (is_gcj_43, is_gcj43_usable): New functions.
70711         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70712         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70713         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70714         try the options -fsource and -ftarget.
70715
70716 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70717
70718         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70719         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70720         larger value.
70721
70722 2007-02-03  Jim Meyering  <jim@meyering.net>
70723
70724         Give tools a better chance to allocate space for very large buffers.
70725         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70726
70727         Make pwd and readlink work also when run with an unreadable parent dir
70728         on systems with openat support.
70729         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70730         provided getcwd function, even when we have openat support.
70731         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70732
70733 2007-02-02  Bruno Haible  <bruno@clisp.org>
70734
70735         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70736         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70737         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70738         portability problems if one of these functions is only used on specific
70739         platforms.
70740         Reported by Paul Eggert.
70741
70742 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70745         is causing more trouble than it's curing.
70746         * lib/regex_internal.h (__mempcpy): Remove.
70747         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70748         (and make the code a tad smaller to boot).
70749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70750
70751 2007-02-02  Jim Meyering  <jim@meyering.net>
70752
70753         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70754         section, not in the Makefile.am: one.
70755
70756 2007-02-02  Eric Blake  <ebb9@byu.net>
70757
70758         * lib/strchrnul.c: Always include config.h first.
70759
70760         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70761         gnulib strstr is not necessary here.
70762
70763 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70764
70765         * m4/socklen.m4: Fix typo.
70766
70767 2007-02-02  Eric Blake  <ebb9@byu.net>
70768
70769         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70770         * modules/netinet_in (Makefile.am): Likewise.
70771
70772 2007-02-01  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/string_.h (GL_LINK_WARNING): New macro.
70775         (strcasecmp, strstr, strcasestr): If provided by the system,
70776         conditionally define as a macro that leads to a warning instead of to
70777         an error.
70778         (strncasecmp): Conditionally define as a macro that leads to a warning.
70779
70780 2007-02-01  Karl Berry  <karl@gnu.org>
70781
70782         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70783
70784 2007-02-01  Bruno Haible  <bruno@clisp.org>
70785
70786         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70787         renamings.
70788
70789 2007-02-01  Eric Blake  <ebb9@byu.net>
70790
70791         * modules/regex (Depends-on): Revert dependence on mempcpy.
70792         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70793         module's definition of mempcpy.
70794         Reported by Paul Eggert.
70795
70796 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70799         the symbol XYZ before redefining it.  This fixes a problem with
70800         programs that don't use XYZ, when compiled on systems that define
70801         XYZ to something else.
70802
70803 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70806         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70807         writeable to group or other and (2) is intended to have a special
70808         mode bit that is set or cleared.  In such a case, the directory
70809         should be neither group- nor other-writeable until the special
70810         mode bits are right.
70811
70812 2007-01-31  Eric Blake  <ebb9@byu.net>
70813
70814         * modules/mountlist (Depends-on): Add strstr.
70815
70816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70817         bug.
70818         * modules/string (Makefile.am): Remove redundant replacement.
70819         * modules/regex (Depends-on): Add mempcpy.
70820
70821 2007-01-31  Bruno Haible  <bruno@clisp.org>
70822
70823         New module description field 'Link'.
70824         * gnulib-tool (func_usage): Document --extract-link-directive.
70825         (sed_extract_prog): Recognize 'Link' directive.
70826         (func_get_link_directive): New function.
70827         (func_import): Show summary of link directives.
70828         Handle --extract-link-directive option.
70829         * modules/acl (Link): New section.
70830         * modules/clock-time (Link): New section.
70831         * modules/euidaccess (Link): New section.
70832         * modules/gettext (Link): New section.
70833         * modules/iconv (Link): New section.
70834         * modules/lock (Link): New section.
70835         * modules/nanosleep (Link): New section.
70836         * modules/readline (Link): New section.
70837
70838 2007-01-27  Bruno Haible  <bruno@clisp.org>
70839
70840         Enforce the use of gnulib modules for unportable <string.h> functions.
70841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70843         (gl_HEADER_STRING_H_BODY): Require it.
70844         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70845         the symbol XYZ to one that gives a link error.
70846         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70847         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70848         * modules/mempcpy (configure.ac): Likewise.
70849         * modules/memrchr (configure.ac): Likewise.
70850         * modules/stpcpy (configure.ac): Likewise.
70851         * modules/stpncpy (configure.ac): Likewise.
70852         * modules/strcase (configure.ac): Likewise.
70853         * modules/strcasestr (configure.ac): Likewise.
70854         * modules/strchrnul (configure.ac): Likewise.
70855         * modules/strdup (configure.ac): Likewise.
70856         * modules/strndup (configure.ac): Likewise.
70857         * modules/strnlen (configure.ac): Likewise.
70858         * modules/strpbrk (configure.ac): Likewise.
70859         * modules/strsep (configure.ac): Likewise.
70860         * modules/strstr (configure.ac): Likewise.
70861         * modules/strtok_r (configure.ac): Likewise.
70862
70863 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70864
70865         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70866
70867 2007-01-30  Jim Meyering  <jim@meyering.net>
70868
70869         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70870
70871 2007-01-29  Bruno Haible  <bruno@clisp.org>
70872
70873         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70874         * lib/execute.c: Likewise.
70875         * lib/pipe.c: Likewise.
70876         * lib/printf-args.h: Likewise.
70877         * lib/printf-args.c: Likewise.
70878         * lib/printf-parse.c: Likewise.
70879         * lib/vasnprintf.c: Likewise.
70880
70881 2007-01-29  Eric Blake  <ebb9@byu.net>
70882
70883         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70884         declaration.
70885
70886 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * lib/strptime.h (strptime): Use 'restrict' for args where
70889         POSIX requires this.
70890         * lib/strptime.c (strptime): Likewise.
70891         Change license notice from LGPL to GPL, since gnulib-tool will
70892         change this as needed.
70893         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70894         defined.
70895         Include "strptime.h" first, to check interface.
70896         Do not #undef _LIBC and _NL_CURRENT.
70897         Do not include <stdlib.h>; no longer needed.
70898         Include "time_r.h" and declare ptime_locale_status
70899         only if _LIBC is not defined.
70900         (__P): Remove unused macro.
70901         (match_string): Bring back glibc version, but use it only if _LIBC
70902         is defined.
70903         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70904         Remove unnecessary assertion and abort() call.
70905         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70906         * m4/strptime.m4: Fix serial number comment.
70907         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70908         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70909         (Depends-on): Add time_r.
70910
70911 2007-01-29  Bruno Haible  <bruno@clisp.org>
70912
70913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70914         strptime.
70915         * modules/strptime (Depends-on): Add stdbool.
70916         * lib/strptime.h: Include <time.h> always. Add comments.
70917
70918 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70919
70920         * modules/strptime: New file.
70921         * lib/strptime.h: New file.
70922         * lib/strptime.c: New file.
70923         * m4/strptime.m4: New file.
70924
70925 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * MODULES.html.sh: New module mpsort.
70928         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70929
70930         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70931         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70933         All uses changed.
70934         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70935         All uses changed.
70936         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70937         to _Restrict_.
70938         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70939         the parameter matches the prototype.
70940
70941 2007-01-28  Jim Meyering  <jim@meyering.net>
70942
70943         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70944         sys/time.h here, reverting that part of the previous patch:
70945         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70946
70947 2007-01-28  Bruno Haible  <bruno@clisp.org>
70948
70949         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70950         value of $(SYS_TIME_H).
70951         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70952         remove it conditionally, too. [added by Jim Meyering]
70953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70956         GETTIMEOFDAY_REPLACEMENT to 1.
70957
70958 2007-01-28  Bruno Haible  <bruno@clisp.org>
70959
70960         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70961         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70963         Set UNISTD_H instead of UNISTD_H2.
70964         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70965
70966 2007-01-28  Bruno Haible  <bruno@clisp.org>
70967
70968         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70969         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70970
70971 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70972
70973         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70974         (func_create_testdir): Ensure C locale for `grep' and `tr'
70975         character ranges.
70976         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70977         ACLOCAL_AMFLAGS parsing state machine.
70978
70979 2007-01-27  Bruno Haible  <bruno@clisp.org>
70980
70981         * modules/unistr/base: Update.
70982
70983 2007-01-27  Bruno Haible  <bruno@clisp.org>
70984
70985         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70986         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70987         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70988         modules/unistr/u32-mbtouc.
70989         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70990         * lib/unistr.h: Update.
70991         * lib/linebreak.c: Update.
70992         * modules/unistr/u32-mbtouc: Renamed from
70993         modules/unistr/u32-mbtouc-safe.
70994         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70995         * lib/unistr.h: Update.
70996         * lib/unistr/u32-to-u8.c: Update.
70997         * lib/unistr/u32-to-u16.c: Update.
70998
70999 2007-01-27  Bruno Haible  <bruno@clisp.org>
71000
71001         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71002         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71003         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71004         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71005         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71006         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71007         modules/unistr/u16-mbtouc.
71008         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71009         * lib/unistr.h: Update.
71010         * lib/linebreak.c: Update.
71011         * modules/linebreak: Update.
71012         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71013         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71014         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71015         * modules/unistr/u16-mbtouc: Renamed from
71016         modules/unistr/u16-mbtouc-safe.
71017         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71018         * lib/unistr.h: Update.
71019         * lib/unistr/u16-to-u8.c: Update.
71020         * modules/unistr/u16-to-u8: Update.
71021         * lib/unistr/u16-to-u32.c: Update.
71022         * modules/unistr/u16-to-u32: Update.
71023
71024 2007-01-27  Bruno Haible  <bruno@clisp.org>
71025
71026         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71027         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71028         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71029         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71030         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71031         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71032         modules/unistr/u8-mbtouc.
71033         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71034         * lib/unistr.h: Update.
71035         * lib/striconveh.c: Update.
71036         * modules/striconveh: Update.
71037         * lib/linebreak.c: Update.
71038         * modules/linebreak: Update.
71039         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71040         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71041         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71042         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71043         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71044         * lib/unistr.h: Update.
71045         * lib/striconveh.c: Update.
71046         * modules/striconveh: Update.
71047         * lib/unistr/u8-to-u16.c: Update.
71048         * modules/unistr/u8-to-u16: Update.
71049         * lib/unistr/u8-to-u32.c: Update.
71050         * modules/unistr/u8-to-u32: Update.
71051
71052 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71053
71054         Sync from Libtool.
71055         * lib/argz.c: Do not include strings.h nor memory.h, include
71056         string.h unconditionally.  Patch by Simon Josefsson.
71057
71058 2007-01-27  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71061         from gl_HEADER_STRING_H_BODY.
71062         (gl_HEADER_STRING_H_BODY): Require it.
71063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71068         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71071         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71073         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71075         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71078
71079 2007-01-27  Bruno Haible  <bruno@clisp.org>
71080
71081         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71082         check_PROGRAMS into noinst_PROGRAMS.
71083         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71084         check_PROGRAMS in this case.
71085         (func_import): Set for_test to false.
71086         (func_create_testdir): Set for_test to true.
71087
71088 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71089             Bruno Haible  <bruno@clisp.org>
71090
71091         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71092         (Depends-on): Add string.
71093         (Includes): Use <string.h> instead of strcasestr.h.
71094         * modules/string (Makefile.am): Also substitute the value of
71095         REPLACE_STRCASESTR.
71096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71097         assume strcasestr is declared in <string.h> not <strings.h>. Also
71098         set REPLACE_STRCASESTR.
71099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71100         REPLACE_STRCASESTR.
71101         * lib/strcasestr.h: Remove file.
71102         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71103         * lib/string_.h (strcasestr): New declaration.
71104
71105 2007-01-27  Bruno Haible  <bruno@clisp.org>
71106
71107         * lib/string_.h: Use 'extern'.
71108
71109 2007-01-27  Jim Meyering  <jim@meyering.net>
71110
71111         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71112         of set-but-not-used local, "q".
71113
71114         * lib/mempcpy.c: Include <config.h> before <string.h>.
71115         This fixes a compilation error on HP-UX, due to the system's
71116         "restrict"-using mempcpy prototype.
71117
71118 2007-01-26  Bruno Haible  <bruno@clisp.org>
71119
71120         Small optimization.
71121         * lib/javacomp.c: Include c-strstr.h.
71122          (is_envjavac_gcj): Use c_strstr instead of strstr.
71123         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71124
71125 2007-01-26  Bruno Haible  <bruno@clisp.org>
71126
71127         * MODULES.html.sh (Unicode string functions): Add the new modules.
71128
71129         * modules/uniconv/u32-strconv-to-locale: New file.
71130         * lib/uniconv/u32-strconv-to-locale.c: New file.
71131
71132         * modules/uniconv/u16-strconv-to-locale: New file.
71133         * lib/uniconv/u16-strconv-to-locale.c: New file.
71134
71135         * modules/uniconv/u8-strconv-to-locale: New file.
71136         * lib/uniconv/u8-strconv-to-locale.c: New file.
71137
71138         * modules/uniconv/u32-strconv-from-locale: New file.
71139         * lib/uniconv/u32-strconv-from-locale.c: New file.
71140
71141         * modules/uniconv/u16-strconv-from-locale: New file.
71142         * lib/uniconv/u16-strconv-from-locale.c: New file.
71143
71144         * modules/uniconv/u8-strconv-from-locale: New file.
71145         * lib/uniconv/u8-strconv-from-locale.c: New file.
71146
71147         * modules/uniconv/u32-strconv-to-enc: New file.
71148         * lib/uniconv/u32-strconv-to-enc.c: New file.
71149         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71150         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71151
71152         * modules/uniconv/u16-strconv-to-enc: New file.
71153         * lib/uniconv/u16-strconv-to-enc.c: New file.
71154         * lib/uniconv/u-strconv-to-enc.h: New file.
71155         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71156         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71157
71158         * modules/uniconv/u8-strconv-to-enc: New file.
71159         * lib/uniconv/u8-strconv-to-enc.c: New file.
71160         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71161         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71162
71163         * modules/uniconv/u32-strconv-from-enc: New file.
71164         * lib/uniconv/u32-strconv-from-enc.c: New file.
71165         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71166         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71167
71168         * modules/uniconv/u16-strconv-from-enc: New file.
71169         * lib/uniconv/u16-strconv-from-enc.c: New file.
71170         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71171         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71172
71173         * modules/uniconv/u8-strconv-from-enc: New file.
71174         * lib/uniconv/u8-strconv-from-enc.c: New file.
71175         * lib/uniconv/u-strconv-from-enc.h: New file.
71176         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71177         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71178
71179         * modules/uniconv/u32-conv-from-enc: New file.
71180         * lib/uniconv/u32-conv-from-enc.c: New file.
71181         * modules/uniconv/u32-conv-from-enc-tests: New file.
71182         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71183
71184         * modules/uniconv/u16-conv-from-enc: New file.
71185         * lib/uniconv/u16-conv-from-enc.c: New file.
71186         * lib/uniconv/u-conv-from-enc.h: New file.
71187         * modules/uniconv/u16-conv-from-enc-tests: New file.
71188         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71189
71190         * modules/uniconv/u8-conv-from-enc: New file.
71191         * lib/uniconv/u8-conv-from-enc.c: New file.
71192         * modules/uniconv/u8-conv-from-enc-tests: New file.
71193         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71194
71195         * modules/uniconv/base: New file.
71196         * lib/uniconv.h: New file.
71197
71198 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71199
71200         * doc/gnulib-tool.texi (Initial import): Update to match current
71201         behavior with strdup module.
71202         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71203         * lib/memmem.h: Remove; all uses removed.  This is now done
71204         by <string.h>.
71205         * lib/mempcpy.h: Likewise.
71206         * lib/memrchr.h: Likewise.
71207         * lib/stpcpy.h: Likewise.
71208         * lib/stpncpy.h: Likewise.
71209         * lib/strcase.h: Likewise.
71210         * lib/strchrnul.h: Likewise.
71211         * lib/strdup.h: Likewise.
71212         * lib/strndup.h: Likewise.
71213         * lib/strnlen.h: Likewise.
71214         * lib/strpbrk.h: Likewise.
71215         * lib/strsep.h: Likewise.
71216         * lib/strstr.h: Likewise.
71217         * lib/strtok_r.h: Likewise.
71218         * lib/string_.h: New file.
71219         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71220         Rely on <string.h> instead.
71221         * lib/canon-host.c: Likewise.
71222         * lib/chdir-long.c: Likewise.
71223         * lib/concatpath.c: Likewise.
71224         * lib/exclude.c: Likewise.
71225         * lib/fchdir.c: Likewise.
71226         * lib/getaddrinfo.c: Likewise.
71227         * lib/getcwd.c: Likewise.
71228         * lib/getsubopt.c: Likewise.
71229         * lib/glob.c: Likewise.
71230         * lib/hard-locale.c: Likewise.
71231         * lib/iconvme.c: Likewise.
71232         * lib/javacomp.c: Likewise.
71233         * lib/mempcpy.c: Likewise.
71234         * lib/memrchr.c: Likewise.
71235         * lib/regex_internal.h: Likewise.
71236         * lib/stpncpy.c: Likewise.
71237         * lib/strcasecmp.c: Likewise.
71238         * lib/strchrnul.c: Likewise.
71239         * lib/strdup.c: Likewise.
71240         * lib/striconv.c: Likewise.
71241         * lib/striconveh.c: Likewise.
71242         * lib/striconveha.c: Likewise.
71243         * lib/strncasecmp.c: Likewise.
71244         * lib/strndup.c: Likewise.
71245         * lib/strnlen.c: Likewise.
71246         * lib/strsep.c: Likewise.
71247         * lib/strstr.c: Likewise.
71248         * lib/strtok_r.c: Likewise.
71249         * lib/userspec.c: Likewise.
71250         * lib/w32spawn.h: Likewise.
71251         * lib/xstrndup.c: Likewise.
71252         * lib/mountlist.c (strstr): Remove decl.
71253         * m4/string_h.m4: New file.
71254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71255         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71258         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71259         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71260         Set REPLACE_STRCASECMP if necessary.
71261         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71263         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71265         HAVE_DECL_STRDUP if necessary.
71266         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71267         since gl_FUNC_STRNDUP does that now.
71268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71269         Check for decl here...
71270         (gl_PREREQ_STRNLEN): ... not here.
71271         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71272         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71273         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71275         necessary.
71276         * modules/string: New file.
71277         * modules/memmem (Files): Remove special-purpose include file.
71278         (Depends-on): Add string.
71279         (Include): Include <string.h>, not the removed file.
71280         * modules/mempcpy: Likewise.
71281         * modules/memrchr: Likewise.
71282         * modules/stpcpy: Likewise.
71283         * modules/stpncpy: Likewise.
71284         * modules/strcase: Likewise.
71285         * modules/strchrnul: Likewise.
71286         * modules/strdup: Likewise.
71287         * modules/strndup: Likewise.
71288         * modules/strnlen: Likewise.
71289         * modules/strpbrk: Likewise.
71290         * modules/strsep: Likewise.
71291         * modules/strstr: Likewise.
71292         * modules/strtok_r: Likewise.
71293         * tests/test-dirname.c: Don't include "strdup.h", since
71294         <string.h> now suffices.
71295         * tests/test-memmem.c: Don't include "memmem.h", since
71296         <string.h> now suffices.
71297
71298 2007-01-25  Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71301         *resultp is 0.
71302
71303         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71304         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71305         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71306         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71307
71308         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71309         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71310         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71311         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71312         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71313         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71314
71315 2007-01-24  Bruno Haible  <bruno@clisp.org>
71316
71317         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71319         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71320         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71321         gl_FUNC_FTS_CORE.
71322         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71323         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71326         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71327         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71328         gl_FUNC_FCHOWNAT.
71329         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71330         gl_FUNC_STRFTIME.
71331         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71332         Reported by Ralf Wildenhues.
71333
71334 2007-01-24  Bruno Haible  <bruno@clisp.org>
71335
71336         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71337         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71338         gl_GETADDRINFO.
71339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71340         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71341         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71342
71343 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71346         Don't use 'exit'; just return from 'main'.
71347         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71348
71349         * lib/fnmatch_.h: Readjust white space and comments to match
71350         glibc, to avoid spurious diffs.
71351
71352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71355         2004-12-01 change by Jakub Jelinek, since this code won't compile
71356         if !LIBC.  Problem reported by Bob Proulx.
71357
71358 2007-01-23  Bruno Haible  <bruno@clisp.org>
71359
71360         * lib/striconveh.c: Include c-strcaseeq.h.
71361         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71362         * modules/striconveh (Depends-on): Add c-strcaseeq.
71363
71364 2007-01-23  Bruno Haible  <bruno@clisp.org>
71365
71366         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71367
71368         * modules/c-strcaseeq: New file.
71369         * lib/c-strcaseeq.h: New file.
71370
71371         * modules/streq: New file.
71372         * lib/streq.h: New file.
71373
71374 2007-01-23  Bruno Haible  <bruno@clisp.org>
71375
71376         * modules/striconveha-tests: New file.
71377         * tests/test-striconveha.c: New file.
71378
71379         * lib/striconveha.h: Include <stdbool.h>.
71380         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71381         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71382         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71383         (mem_iconveha): New function.
71384         (str_iconveha_notranslit): Renamed from str_iconveha.
71385         (str_iconveha): New function.
71386         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71387         c-strcase.
71388
71389 2007-01-23  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71392         encodings without forgiving before trying any encoding with handler.
71393         (str_iconveha): Try all encodings without forgiving before trying any
71394         encoding with handler.
71395
71396 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         Import the following changes from libc.
71399
71400         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71401
71402         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71403
71404         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71405
71406         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71407         normal_bracket label.
71408
71409         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71410
71411         [BZ #361]
71412         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71413         to normal_bracket after fetching the next character.
71414
71415 2007-01-22  Bruno Haible  <bruno@clisp.org>
71416
71417         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71418         argument.
71419         * lib/striconveh.c (iconv_carefully_1): New function.
71420         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71421         argument.
71422         (str_cd_iconveh): Update.
71423         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71424         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71425         * tests/test-striconveh.c (MAGIC): New macro.
71426         (new_offsets): New function.
71427         (main): Test call with and without offsets.
71428
71429 2007-01-22  Bruno Haible  <bruno@clisp.org>
71430
71431         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71432         * modules/sys_select (Makefile.am): Likewise.
71433         * modules/sys_socket (Makefile.am): Likewise.
71434         * modules/sys_time (Makefile.am): Likewise.
71435
71436 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * modules/gettimeofday (License): Change from GPL to LGPL, since
71439         gettimeofday is a library function.
71440
71441 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71442
71443         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71444
71445 2007-01-21  Bruno Haible  <bruno@clisp.org>
71446
71447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71448
71449 2007-01-21  Bruno Haible  <bruno@clisp.org>
71450
71451         * modules/striconveha: New file.
71452         * lib/striconveha.h: New file.
71453         * lib/striconveha.c: New file.
71454         * MODULES.html.sh (Internationalization functions): Add striconveha.
71455         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71456         string.
71457         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71458
71459 2007-01-21  Bruno Haible  <bruno@clisp.org>
71460
71461         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71462         * lib/striconveh.c (str_iconveh): Likewise.
71463
71464 2007-01-21  Bruno Haible  <bruno@clisp.org>
71465
71466         * lib/striconveh.h (mem_iconveh): New declaration.
71467         * lib/striconveh.c (mem_iconveh): New function.
71468         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71469
71470 2007-01-21  Bruno Haible  <bruno@clisp.org>
71471
71472         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71473
71474         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71475         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71476         original result buffer.
71477         (str_cd_iconveh): Update.
71478         * tests/test-striconveh.c (main): Update.
71479
71480         * lib/striconv.h (mem_cd_iconv): Change specification.
71481         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71482         result buffer.
71483         (str_cd_iconv): Update.
71484         * tests/test-striconv.c (main): Update.
71485
71486 2007-01-21  Bruno Haible  <bruno@clisp.org>
71487
71488         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71489
71490 2007-01-20  Jim Meyering  <jim@meyering.net>
71491
71492         * lib/userspec.c (parse_with_separator): If a user or group string
71493         starts with "+", skip the corresponding name-to-ID look-up, since
71494         such a look-up must fail: user and group names may not include "+".
71495
71496 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71499         since we now assume the sys_time module.
71500         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71501         check for sys/time.h; no longer needed.
71502         * modules/poll (Depends-on): Depend on sys_time.
71503
71504 2007-01-18  Bruno Haible  <bruno@clisp.org>
71505
71506         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71508
71509         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71510         gettimeofday.
71511
71512         * tests/test-gettimeofday.c: Include <time.h>.
71513         (dummy): Remove variable.
71514
71515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71516         gl_HEADER_SYS_TIME_H.
71517         (gl_HEADER_SYS_TIME_H): New macro.
71518
71519         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71520         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71522         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71525         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71526         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71527         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71528         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71529         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71530
71531         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71532         last change; it caused a compilation error when cross-compiling to
71533         Cygwin.
71534
71535 2007-01-18  Jim Meyering  <jim@meyering.net>
71536
71537         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71538         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71539         than the race-prone "test -d sys || mkdir sys".
71540         (configure.ac): Use AC_PROG_MKDIR_P.
71541         * modules/sys_select: Likewise.
71542         * modules/sys_socket: Likewise.
71543         * modules/sys_time: Likewise.
71544
71545 2007-01-18  Eric Blake  <ebb9@byu.net>
71546
71547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71548         replace gettimeofday.
71549         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71550         name, to avoid infinite recursion.
71551
71552 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71555         module sys_time.
71556         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71557         assume timespec.h defines struct timeval.
71558         * lib/settime.c: Likewise.
71559         * lib/utimens.c: Likewise.
71560         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71561         since we now assume the gettimeofday module.
71562         * lib/tempname.c (__gen_tempname): Likewise.
71563         * lib/gettimeofday.h: Remove.
71564         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71565         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71566         Include <time.h>, for 'time()'.
71567         (localtime_buffer_addr): Also use this workaround if
71568         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71569         to simplify the uses.  All uses changed.
71570         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71571         that #undef is inside {}, and 'const' follows type name consistently.
71572         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71573         (gettimeofday): Do not use the maximum possible value for
71574         tv->tv_usec, since that might break usages other than ls.c.
71575         Instead, we'll leave ls.c alone.  This undoes today's patch
71576         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71577         we've never observed the problem but might as well keep the
71578         canary.
71579         * lib/nanosleep.c: Include timespec.h first, for interface check.
71580         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71581         now assume the sys_time module.
71582         * lib/tempname.c: Likewise.
71583         * lib/timespec.h: Likewise.
71584         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71585         needed.
71586         * lib/strftime.c: Likewise.
71587         * lib/timespec.h: Likewise.
71588         * lib/posixtm.c: Include posixtm.h first, for interface check.
71589         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71590         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71591         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71592         * lib/sys_time_.h: New file.
71593         * lib/timespec.h (struct timespec): Use long int, not long.
71594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71595         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71596         Remove obsolescent call to AC_HEADER_TIME.
71597         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71600         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71601         Likewise.
71602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71603         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71605         into the sys_time module.  Check for gettimeofday just once.
71606         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71607         for gettimeofday signature to just check the signature.  Merely
71608         compile it, since linking doesn't test signature.  Improve test for
71609         whether gettimeofday.o is actually needed.
71610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71611         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71612         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71613         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71615         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71616         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71617         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71618         than worrying about sys/time.h.
71619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71620         Don't bother worrying about TIME_WITH_SYS_TIME.
71621         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71622         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71623         * m4/sys_time_h.m4: New file.
71624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71625         Don't include sys/time.h.  Return from main rather than exiting.
71626         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71627         all uses changed.
71628         * modules/gethrxtime (Depends-on): Add sys_time.
71629         * modules/gettime (Depends-on): Likewise.
71630         * modules/gettimeofday (Depends-on): Likewise.
71631         * modules/nanosleep (Depends-on): Likewise.
71632         * modules/settime (Depends-on): Likewise.
71633         * modules/tempname (Depends-on): Likewise.
71634         * modules/utimens (Depends-on): Likewise.
71635         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71636         (Include): Change back to <sys/time.h>.
71637         (Maintainer): Add self.
71638         * modules/sys_time: New file.
71639         * modules/tempname (Depends-on): Add gettimeofday.
71640         * tests/test-gettimeofday.c: Include <sys/time.h>
71641         rather than gettimeofday.h.
71642
71643 2007-01-17  Bruno Haible  <bruno@clisp.org>
71644
71645         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71646         the license default to GPL.
71647         (func_create_testdir): Don't complain if a module is LGPL and its
71648         tests module depends on GPLed modules.
71649
71650 2007-01-17  Bruno Haible  <bruno@clisp.org>
71651
71652         * lib/gettimeofday.c (gettimeofday): Add code for the case
71653         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71654         maximum possible value for tv->tv_usec, rather than the minimum one.
71655
71656 2005-10-08  Martin Lambers  <marlam@marlam.de>
71657 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71658 2007-01-16  Bruno Haible  <bruno@clisp.org>
71659
71660         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71661         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71662         gl_FUNC_GETTIMEOFDAY.
71663         (Include): Add gettimeofday.h.
71664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71665         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71666         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71667         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71668         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71669         * lib/gettimeofday.h: New file.
71670         * lib/gettimeofday.c: Include <sys/timeb.h>.
71671         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71672         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71673         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71674         fall back on time().
71675
71676         * tests/test-gettimeofday.c: New file.
71677         * modules/gettimeofday-tests: New file.
71678
71679 2007-01-16  Eric Blake  <ebb9@byu.net>
71680
71681         * modules/fnmatch (Depends-on): Depend on wchar.
71682         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71683         * m4/fnmatch.m4: Likewise.
71684         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71685         * m4/mbchar.m4: Likewise.
71686         * modules/mbswidth (Depends-on): Depend on wchar.
71687         * lib/mbswidth.c: Assume <wchar.h>.
71688         * m4/mbswidth.m4: Likewise.
71689         * modules/quotearg (Depends-on): Depend on wchar.
71690         * lib/quotearg.c: Assume <wchar.h>.
71691         * m4/quotearg.m4: Likewise.
71692         * modules/regex (Depends-on): Depend on wchar.
71693         * lib/regex_internal.h: Assume <wchar.h>.
71694         * m4/regex.m4: Likewise.
71695         * modules/stdint (Depends-on): Depend on wchar.
71696         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71697         * m4/stdint.m4: Likewise.
71698         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71699         * modules/strftime (Depends-on): Depend on wchar.
71700         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71701         * modules/strtol (Depends-on): Depend on wchar.
71702         * lib/strtol.c: Assume <wchar.h>.
71703         * modules/wcwidth (Depends-on): Depend on wchar.
71704         * lib/wcwidth.h: Assume <wchar.h>.
71705         * m4/wcwidth.m4: Likewise.
71706
71707 2007-01-16  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/csharpexec-script: New, created from...
71710         * modules/csharpexec: ... this.
71711
71712 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71713
71714         * modules/javaexec-script: New, created from...
71715         * modules/javaexec: ... this.
71716
71717 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71718
71719         * modules/poll (Dependencies): Add sys_select.
71720
71721 2007-01-15  Jim Meyering  <jim@meyering.net>
71722
71723         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71724         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71725         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71726         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71727
71728 2007-01-15  Bruno Haible  <bruno@clisp.org>
71729
71730         * modules/striconveh: New file.
71731         * lib/striconveh.h: New file.
71732         * lib/striconveh.c: New file.
71733         * MODULES.html.sh (Internationalization functions): Add striconveh.
71734
71735         * modules/striconveh-tests: New file.
71736         * tests/test-striconveh.c: New file.
71737
71738 2007-01-15  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71741         not from GNU libiconv or GNU libc.
71742
71743 2007-01-15  Bruno Haible  <bruno@clisp.org>
71744
71745         * doc/gnulib-intro.texi (Copyright): Explain the different license
71746         terms for module descriptions, autoconf macros, tests, documentation.
71747
71748 2007-01-14  Bruno Haible  <bruno@clisp.org>
71749
71750         * modules/striconv-tests: New file.
71751         * tests/test-striconv.c: New file.
71752
71753 2007-01-14  Bruno Haible  <bruno@clisp.org>
71754
71755         * modules/iconv-tests: New file.
71756         * tests/test-iconv.c: New file.
71757
71758 2007-01-14  Bruno Haible  <bruno@clisp.org>
71759
71760         * gnulib-tool (func_get_license): For test modules, use the license of
71761         the main module.
71762
71763 2007-01-14  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71766         if iconv is found to exist.
71767
71768 2007-01-14  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/c-ctype-tests: New file.
71771         * tests/test-c-ctype.c: New file.
71772
71773 2007-01-14  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/binary-io-tests: New file.
71776         * tests/test-binary-io.sh: New file.
71777         * tests/test-binary-io.c: New file.
71778
71779 2007-01-14  Bruno Haible  <bruno@clisp.org>
71780
71781         * modules/array-oset-tests: New file.
71782         * tests/test-array_oset.c: New file.
71783
71784 2007-01-14  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/array-list-tests: New file.
71787         * tests/test-array_list.c: New file.
71788
71789 2007-01-14  Bruno Haible  <bruno@clisp.org>
71790
71791         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71792         and make.
71793         Reported by Simon Josefsson in
71794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71795
71796 2007-01-14  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/allocsa-tests: New file.
71799         * tests/test-allocsa.c: New file.
71800
71801 2007-01-14  Bruno Haible  <bruno@clisp.org>
71802
71803         * modules/fchdir (Depends-on): Add absolute-header.
71804         * modules/unistd (Depends-on): Likewise.
71805
71806 2006-12-30  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/fchdir: New file.
71809         * modules/unistd (Files): Add lib/unistd_.h.
71810         (Makefile.am): Generate unistd.h from unistd_.h.
71811         * lib/fchdir.c: New file.
71812         * lib/dirent_.h: New file.
71813         * lib/unistd_.h: New file.
71814         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71815         * m4/fchdir.m4: New file.
71816         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71817         (gl_HEADER_UNISTD): Invoke it.
71818         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71819         function.
71820         * lib/backupfile.c (opendir, closedir): Undefine.
71821         * lib/chown.c (open, close): Undefine.
71822         * lib/clean-temp.c (open, close): Undefine.
71823         * lib/copy-file.c (open, close): Undefine.
71824         * lib/execute.c (open, close): Undefine.
71825         * lib/fsusage.c (open, close): Undefine.
71826         * lib/gc-gnulib.c (open, close): Undefine.
71827         * lib/getcwd.c (opendir, closedir): Undefine.
71828         * lib/glob.c (opendir, closedir): Undefine.
71829         * lib/javacomp.c (open, close): Undefine.
71830         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71831         * lib/openat-proc.c (open, close): Undefine.
71832         * lib/pagealign_alloc.c (open, close): Undefine.
71833         * lib/pipe.c (open, close): Undefine.
71834         * lib/progreloc.c (open, close): Undefine.
71835         * lib/savedir.c (opendir, closedir): Undefine.
71836         * lib/utime.c (open, close): Undefine.
71837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71838
71839 2007-01-10  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71842
71843 2007-01-12  Eric Blake  <ebb9@byu.net>
71844
71845         Provide a robust <wchar.h>.  Further simplifications are now
71846         possible in other modules, but not included here.
71847         * modules/wchar: New module.
71848         * m4/wchar.m4: New file.
71849         * lib/wchar_.h: Likewise.
71850         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71851         of the new module.
71852         * MODULES.html.sh (Extended multibyte and wide character utilities):
71853         New section.
71854
71855 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71858         to a reasonable default for memory allocation.
71859         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71860         file system that reports garbage st_size values for symlinks.
71861         Problem reported by Liyang Hu.
71862
71863 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71864
71865         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71866         Emacs .#* auto-save files).
71867
71868 2007-01-11  Bruno Haible  <bruno@clisp.org>
71869
71870         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71871         directory.
71872
71873 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         Use @...@ consistently in lib/wctype_.h.
71876         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71877         on it being set to 1 or 0.
71878         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71879         go back to AC_SUBSTing it.
71880         * modules/wctype (Makefile.am): Undo previous change.
71881
71882 2007-01-10  Eric Blake  <ebb9@byu.net>
71883
71884         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71885         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71886         * modules/wctype (Makefile.am): Likewise.
71887         Reported by Chris McGuire.
71888
71889 2007-01-10  Jim Meyering  <jim@meyering.net>
71890
71891         fts.c: a small readability/maintainability improvement
71892         * lib/fts.c (fts_read): Make this code slightly more readable and
71893         maintainable by hoisting the "sp->fts_cur = p" assignments to
71894         immediately follow the statements that set P.  Derived from
71895         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71896
71897 2007-01-10  Eric Blake  <ebb9@byu.net>
71898
71899         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71900         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71903         Reported by Chris McGuire.
71904
71905 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71906
71907         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71908         in sed script.
71909
71910 2007-01-09  Bruno Haible  <bruno@clisp.org>
71911
71912         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71913         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71914         variables.
71915         (func_module): Use them.
71916
71917 2007-01-09  Bruno Haible  <bruno@clisp.org>
71918
71919         * modules/unistr/base: New file.
71920         * lib/unistr.h: New file.
71921
71922         * modules/unistr/u8-to-u16: New file.
71923         * lib/unistr/u8-to-u16.c: New file.
71924
71925         * modules/unistr/u8-to-u32: New file.
71926         * lib/unistr/u8-to-u32.c: New file.
71927
71928         * modules/unistr/u16-to-u8: New file.
71929         * lib/unistr/u16-to-u8.c: New file.
71930
71931         * modules/unistr/u16-to-u32: New file.
71932         * lib/unistr/u16-to-u32.c: New file.
71933
71934         * modules/unistr/u32-to-u8: New file.
71935         * lib/unistr/u32-to-u8.c: New file.
71936
71937         * modules/unistr/u32-to-u16: New file.
71938         * lib/unistr/u32-to-u16.c: New file.
71939
71940         * modules/unistr/u8-check: New file.
71941         * modules/unistr/u16-check: New file.
71942         * modules/unistr/u32-check: New file.
71943         * lib/unistr/u8-check.c: New file.
71944         * lib/unistr/u16-check.c: New file.
71945         * lib/unistr/u32-check.c: New file.
71946
71947         * modules/unistr/u8-chr: New file.
71948         * modules/unistr/u16-chr: New file.
71949         * modules/unistr/u32-chr: New file.
71950         * lib/unistr/u8-chr.c: New file.
71951         * lib/unistr/u16-chr.c: New file.
71952         * lib/unistr/u32-chr.c: New file.
71953
71954         * modules/unistr/u8-cmp: New file.
71955         * modules/unistr/u16-cmp: New file.
71956         * modules/unistr/u32-cmp: New file.
71957         * lib/unistr/u8-cmp.c: New file.
71958         * lib/unistr/u16-cmp.c: New file.
71959         * lib/unistr/u32-cmp.c: New file.
71960
71961         * modules/unistr/u8-cpy: New file.
71962         * modules/unistr/u16-cpy: New file.
71963         * modules/unistr/u32-cpy: New file.
71964         * lib/unistr/u8-cpy.c: New file.
71965         * lib/unistr/u16-cpy.c: New file.
71966         * lib/unistr/u32-cpy.c: New file.
71967         * lib/unistr/u-cpy.h: New file.
71968
71969         * modules/unistr/u8-cpy-alloc: New file.
71970         * modules/unistr/u16-cpy-alloc: New file.
71971         * modules/unistr/u32-cpy-alloc: New file.
71972         * lib/unistr/u8-cpy-alloc.c: New file.
71973         * lib/unistr/u16-cpy-alloc.c: New file.
71974         * lib/unistr/u32-cpy-alloc.c: New file.
71975         * lib/unistr/u-cpy-alloc.h: New file.
71976
71977         * modules/unistr/u8-endswith: New file.
71978         * modules/unistr/u16-endswith: New file.
71979         * modules/unistr/u32-endswith: New file.
71980         * lib/unistr/u8-endswith.c: New file.
71981         * lib/unistr/u16-endswith.c: New file.
71982         * lib/unistr/u32-endswith.c: New file.
71983         * lib/unistr/u-endswith.h: New file.
71984
71985         * modules/unistr/u8-mblen: New file.
71986         * modules/unistr/u16-mblen: New file.
71987         * modules/unistr/u32-mblen: New file.
71988         * lib/unistr/u8-mblen.c: New file.
71989         * lib/unistr/u16-mblen.c: New file.
71990         * lib/unistr/u32-mblen.c: New file.
71991
71992         * modules/unistr/u8-mbtouc: New file.
71993         * modules/unistr/u16-mbtouc: New file.
71994         * modules/unistr/u32-mbtouc: New file.
71995         * lib/unistr/u8-mbtouc.c: New file.
71996         * lib/unistr/u16-mbtouc.c: New file.
71997         * lib/unistr/u32-mbtouc.c: New file.
71998
71999         * modules/unistr/u8-mbtouc-safe: New file.
72000         * modules/unistr/u16-mbtouc-safe: New file.
72001         * modules/unistr/u32-mbtouc-safe: New file.
72002         * lib/unistr/u8-mbtouc-safe.c: New file.
72003         * lib/unistr/u16-mbtouc-safe.c: New file.
72004         * lib/unistr/u32-mbtouc-safe.c: New file.
72005
72006         * modules/unistr/u8-move: New file.
72007         * modules/unistr/u16-move: New file.
72008         * modules/unistr/u32-move: New file.
72009         * lib/unistr/u8-move.c: New file.
72010         * lib/unistr/u16-move.c: New file.
72011         * lib/unistr/u32-move.c: New file.
72012         * lib/unistr/u-move.h: New file.
72013
72014         * modules/unistr/u8-next: New file.
72015         * modules/unistr/u16-next: New file.
72016         * modules/unistr/u32-next: New file.
72017         * lib/unistr/u8-next.c: New file.
72018         * lib/unistr/u16-next.c: New file.
72019         * lib/unistr/u32-next.c: New file.
72020
72021         * modules/unistr/u8-prev: New file.
72022         * modules/unistr/u16-prev: New file.
72023         * modules/unistr/u32-prev: New file.
72024         * lib/unistr/u8-prev.c: New file.
72025         * lib/unistr/u16-prev.c: New file.
72026         * lib/unistr/u32-prev.c: New file.
72027
72028         * modules/unistr/u8-set: New file.
72029         * modules/unistr/u16-set: New file.
72030         * modules/unistr/u32-set: New file.
72031         * lib/unistr/u8-set.c: New file.
72032         * lib/unistr/u16-set.c: New file.
72033         * lib/unistr/u32-set.c: New file.
72034         * lib/unistr/u-set.h: New file.
72035
72036         * modules/unistr/u8-startswith: New file.
72037         * modules/unistr/u16-startswith: New file.
72038         * modules/unistr/u32-startswith: New file.
72039         * lib/unistr/u8-startswith.c: New file.
72040         * lib/unistr/u16-startswith.c: New file.
72041         * lib/unistr/u32-startswith.c: New file.
72042         * lib/unistr/u-startswith.h: New file.
72043
72044         * modules/unistr/u8-stpcpy: New file.
72045         * modules/unistr/u16-stpcpy: New file.
72046         * modules/unistr/u32-stpcpy: New file.
72047         * lib/unistr/u8-stpcpy.c: New file.
72048         * lib/unistr/u16-stpcpy.c: New file.
72049         * lib/unistr/u32-stpcpy.c: New file.
72050         * lib/unistr/u-stpcpy.h: New file.
72051
72052         * modules/unistr/u8-stpncpy: New file.
72053         * modules/unistr/u16-stpncpy: New file.
72054         * modules/unistr/u32-stpncpy: New file.
72055         * lib/unistr/u8-stpncpy.c: New file.
72056         * lib/unistr/u16-stpncpy.c: New file.
72057         * lib/unistr/u32-stpncpy.c: New file.
72058         * lib/unistr/u-stpncpy.h: New file.
72059
72060         * modules/unistr/u8-strcat: New file.
72061         * modules/unistr/u16-strcat: New file.
72062         * modules/unistr/u32-strcat: New file.
72063         * lib/unistr/u8-strcat.c: New file.
72064         * lib/unistr/u16-strcat.c: New file.
72065         * lib/unistr/u32-strcat.c: New file.
72066         * lib/unistr/u-strcat.h: New file.
72067
72068         * modules/unistr/u8-strchr: New file.
72069         * modules/unistr/u16-strchr: New file.
72070         * modules/unistr/u32-strchr: New file.
72071         * lib/unistr/u8-strchr.c: New file.
72072         * lib/unistr/u16-strchr.c: New file.
72073         * lib/unistr/u32-strchr.c: New file.
72074
72075         * modules/unistr/u8-strcmp: New file.
72076         * modules/unistr/u16-strcmp: New file.
72077         * modules/unistr/u32-strcmp: New file.
72078         * lib/unistr/u8-strcmp.c: New file.
72079         * lib/unistr/u16-strcmp.c: New file.
72080         * lib/unistr/u32-strcmp.c: New file.
72081
72082         * modules/unistr/u8-strcpy: New file.
72083         * modules/unistr/u16-strcpy: New file.
72084         * modules/unistr/u32-strcpy: New file.
72085         * lib/unistr/u8-strcpy.c: New file.
72086         * lib/unistr/u16-strcpy.c: New file.
72087         * lib/unistr/u32-strcpy.c: New file.
72088         * lib/unistr/u-strcpy.h: New file.
72089
72090         * modules/unistr/u8-strcspn: New file.
72091         * modules/unistr/u16-strcspn: New file.
72092         * modules/unistr/u32-strcspn: New file.
72093         * lib/unistr/u8-strcspn.c: New file.
72094         * lib/unistr/u16-strcspn.c: New file.
72095         * lib/unistr/u32-strcspn.c: New file.
72096         * lib/unistr/u-strcspn.h: New file.
72097
72098         * modules/unistr/u8-strdup: New file.
72099         * modules/unistr/u16-strdup: New file.
72100         * modules/unistr/u32-strdup: New file.
72101         * lib/unistr/u8-strdup.c: New file.
72102         * lib/unistr/u16-strdup.c: New file.
72103         * lib/unistr/u32-strdup.c: New file.
72104         * lib/unistr/u-strdup.h: New file.
72105
72106         * modules/unistr/u8-strlen: New file.
72107         * modules/unistr/u16-strlen: New file.
72108         * modules/unistr/u32-strlen: New file.
72109         * lib/unistr/u8-strlen.c: New file.
72110         * lib/unistr/u16-strlen.c: New file.
72111         * lib/unistr/u32-strlen.c: New file.
72112         * lib/unistr/u-strlen.h: New file.
72113
72114         * modules/unistr/u8-strmblen: New file.
72115         * modules/unistr/u16-strmblen: New file.
72116         * modules/unistr/u32-strmblen: New file.
72117         * lib/unistr/u8-strmblen.c: New file.
72118         * lib/unistr/u16-strmblen.c: New file.
72119         * lib/unistr/u32-strmblen.c: New file.
72120
72121         * modules/unistr/u8-strmbtouc: New file.
72122         * modules/unistr/u16-strmbtouc: New file.
72123         * modules/unistr/u32-strmbtouc: New file.
72124         * lib/unistr/u8-strmbtouc.c: New file.
72125         * lib/unistr/u16-strmbtouc.c: New file.
72126         * lib/unistr/u32-strmbtouc.c: New file.
72127
72128         * modules/unistr/u8-strncat: New file.
72129         * modules/unistr/u16-strncat: New file.
72130         * modules/unistr/u32-strncat: New file.
72131         * lib/unistr/u8-strncat.c: New file.
72132         * lib/unistr/u16-strncat.c: New file.
72133         * lib/unistr/u32-strncat.c: New file.
72134         * lib/unistr/u-strncat.h: New file.
72135
72136         * modules/unistr/u8-strncmp: New file.
72137         * modules/unistr/u16-strncmp: New file.
72138         * modules/unistr/u32-strncmp: New file.
72139         * lib/unistr/u8-strncmp.c: New file.
72140         * lib/unistr/u16-strncmp.c: New file.
72141         * lib/unistr/u32-strncmp.c: New file.
72142
72143         * modules/unistr/u8-strncpy: New file.
72144         * modules/unistr/u16-strncpy: New file.
72145         * modules/unistr/u32-strncpy: New file.
72146         * lib/unistr/u8-strncpy.c: New file.
72147         * lib/unistr/u16-strncpy.c: New file.
72148         * lib/unistr/u32-strncpy.c: New file.
72149         * lib/unistr/u-strncpy.h: New file.
72150
72151         * modules/unistr/u8-strnlen: New file.
72152         * modules/unistr/u16-strnlen: New file.
72153         * modules/unistr/u32-strnlen: New file.
72154         * lib/unistr/u8-strnlen.c: New file.
72155         * lib/unistr/u16-strnlen.c: New file.
72156         * lib/unistr/u32-strnlen.c: New file.
72157         * lib/unistr/u-strnlen.h: New file.
72158
72159         * modules/unistr/u8-strpbrk: New file.
72160         * modules/unistr/u16-strpbrk: New file.
72161         * modules/unistr/u32-strpbrk: New file.
72162         * lib/unistr/u8-strpbrk.c: New file.
72163         * lib/unistr/u16-strpbrk.c: New file.
72164         * lib/unistr/u32-strpbrk.c: New file.
72165         * lib/unistr/u-strpbrk.h: New file.
72166
72167         * modules/unistr/u8-strrchr: New file.
72168         * modules/unistr/u16-strrchr: New file.
72169         * modules/unistr/u32-strrchr: New file.
72170         * lib/unistr/u8-strrchr.c: New file.
72171         * lib/unistr/u16-strrchr.c: New file.
72172         * lib/unistr/u32-strrchr.c: New file.
72173
72174         * modules/unistr/u8-strspn: New file.
72175         * modules/unistr/u16-strspn: New file.
72176         * modules/unistr/u32-strspn: New file.
72177         * lib/unistr/u8-strspn.c: New file.
72178         * lib/unistr/u16-strspn.c: New file.
72179         * lib/unistr/u32-strspn.c: New file.
72180         * lib/unistr/u-strspn.h: New file.
72181
72182         * modules/unistr/u8-strstr: New file.
72183         * modules/unistr/u16-strstr: New file.
72184         * modules/unistr/u32-strstr: New file.
72185         * lib/unistr/u8-strstr.c: New file.
72186         * lib/unistr/u16-strstr.c: New file.
72187         * lib/unistr/u32-strstr.c: New file.
72188         * lib/unistr/u-strstr.h: New file.
72189
72190         * modules/unistr/u8-strtok: New file.
72191         * modules/unistr/u16-strtok: New file.
72192         * modules/unistr/u32-strtok: New file.
72193         * lib/unistr/u8-strtok.c: New file.
72194         * lib/unistr/u16-strtok.c: New file.
72195         * lib/unistr/u32-strtok.c: New file.
72196         * lib/unistr/u-strtok.h: New file.
72197
72198         * modules/unistr/u8-uctomb: New file.
72199         * modules/unistr/u16-uctomb: New file.
72200         * modules/unistr/u32-uctomb: New file.
72201         * lib/unistr/u8-uctomb.c: New file.
72202         * lib/unistr/u16-uctomb.c: New file.
72203         * lib/unistr/u32-uctomb.c: New file.
72204
72205         * MODULES.html.sh (Unicode string functions): Add the new modules.
72206
72207 2007-01-08  Bruno Haible  <bruno@clisp.org>
72208
72209         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72210         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72211         subdirectories.
72212
72213 2007-01-08  Karl Berry  <karl@gnu.org>
72214
72215         * doc/error.texi: mention that main() fns must set program_name
72216         when progname is used.
72217
72218 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72221         WCTYPE_H is empty, for the benefit of builds from non-distclean
72222         directories.  Problem reported by Eric Blake in
72223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72224
72225 2007-01-08  Bruno Haible  <bruno@clisp.org>
72226
72227         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72228         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72229         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72230         PROVIDE_CANONICALIZE_FILENAME_MODE.
72231         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72232
72233 2007-01-08  Bruno Haible  <bruno@clisp.org>
72234
72235         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72236         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72237         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72238         * lib/fts.c: Likewise.
72239         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72240
72241 2006-12-25  Bruno Haible  <bruno@clisp.org>
72242
72243         * modules/utf8-ucs4-safe: New file.
72244         * lib/utf8-ucs4-safe.h: New file.
72245         * lib/unistr/utf8-ucs4-safe.c: New file.
72246
72247         * modules/utf16-ucs4-safe: New file.
72248         * lib/utf16-ucs4-safe.h: New file.
72249         * lib/unistr/utf16-ucs4-safe.c: New file.
72250
72251         * MODULES.html.sh (Unicode string functions): Add the new modules.
72252
72253 2007-01-08  Bruno Haible  <bruno@clisp.org>
72254
72255         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72256         (Depends-on): Add unitypes.
72257         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72258         (u8_mbtouc_aux): Move out to separate file.
72259         (u8_mbtouc): Use ucs4_t, uint8_t types.
72260         * lib/unistr/utf8-ucs4.c: New file.
72261
72262         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72263         (Depends-on): Add unitypes.
72264         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72265         (u16_mbtouc_aux): Move out to separate file.
72266         (u16_mbtouc): Use ucs4_t, uint16_t types.
72267         * lib/unistr/utf16-ucs4.c: New file.
72268
72269         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72270         (Depends-on): Add unitypes.
72271         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72272         (u8_uctomb_aux): Move out to separate file.
72273         (u8_uctomb): Use ucs4_t, uint8_t types.
72274         * lib/unistr/ucs4-utf8.c: New file.
72275
72276         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72277         (Depends-on): Add unitypes.
72278         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72279         (u16_uctomb_aux): Move out to separate file.
72280         (u16_uctomb): Use ucs4_t, uint16_t types.
72281         * lib/unistr/ucs4-utf16.c: New file.
72282
72283 2006-12-25  Bruno Haible  <bruno@clisp.org>
72284
72285         * modules/unitypes: New file.
72286         * lib/unitypes.h: New file.
72287         * MODULES.html.sh (func_all_modules): New section "Unicode string
72288         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72289         this section. Add unitypes.
72290
72291 2007-01-08  Bruno Haible  <bruno@clisp.org>
72292
72293         Avoid variable names that conflict with those from libtool.
72294         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72295         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72296         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72297         library_names_spec to acl_library_names_spec, hardcode_* to
72298         acl_hardcode_*.
72299         Reported by Ralf Wildenhues.
72300
72301 2007-01-08  Bruno Haible  <bruno@clisp.org>
72302
72303         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72304         definition.
72305         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72306         definition.
72307         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72308         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72309         definition.
72310         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72311         definition.
72312         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72313         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72314         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72315         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72316         definition.
72317         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72318         definition.
72319         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72320         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72321         GC_USE_<algorithm>.
72322         * lib/gc-libgcrypt.c: Likewise.
72323         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72324         * modules/gc-arctwo (configure.ac): Likewise.
72325         * modules/gc-des (configure.ac): Likewise.
72326         * modules/gc-hmac-md5 (configure.ac): Likewise.
72327         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72328         * modules/gc-md2 (configure.ac): Likewise.
72329         * modules/gc-md4 (configure.ac): Likewise.
72330         * modules/gc-md5 (configure.ac): Likewise.
72331         * modules/gc-random (configure.ac): Likewise.
72332         * modules/gc-rijndael (configure.ac): Likewise.
72333         * modules/gc-sha1 (configure.ac): Likewise.
72334
72335 2007-01-08  Bruno Haible  <bruno@clisp.org>
72336
72337         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72338         macro definition.
72339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72340         definition.
72341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72342         definition.
72343         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72344         * modules/fcntl-safer (configure.ac): Likewise.
72345         * modules/fopen-safer (configure.ac): Likewise.
72346         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72347         GNULIB_FWRITEERROR macro definition.
72348
72349 2007-01-08  Bruno Haible  <bruno@clisp.org>
72350
72351         * m4/gnulib-common.m4: New file.
72352         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72353         (func_get_filelist): Add m4/gnulib-common.m4.
72354
72355 2007-01-08  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72358         command.
72359
72360 2007-01-08  Jim Meyering  <jim@meyering.net>
72361
72362         Use a more robust test for a "can't happen" condition.
72363         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72364         narrowed the st_size value.  Presuming the "can't happen" condition
72365         is true, that narrowing could conceivably convert an invalid st_size
72366         value into a valid one.  Instead, use a change based on Matthew
72367         Woehlke's original patch.
72368
72369         Slight readability improvement: use an assert-like macro
72370         in place of literal "abort ()" uses.
72371         * lib/fts.c (fts_assert): Define.
72372         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72373         Use this macro instead of a bare 'abort'.
72374
72375 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72378         simply work around them.
72379         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72380         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72381         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72382         declaring.
72383         Don't bother to define as macros, since the standard doesn't require it.
72384         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72385         longer worry about IRIX 5.3.
72386         (HAVE_WCTYPE_CTMP_BUG): Remove.
72387
72388 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72391         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72393         Problems reported by Georg Schwarz for IRIX 5.3.
72394
72395         * gnulib-tool (autoconf_minversion): Take the maximum version number
72396         found, not the minimum.  Problem reported by James Youngman.
72397
72398 2007-01-03  Karl Berry  <karl@gnu.org>
72399
72400         * doc/error.texi: new file, explaining interaction with progname.
72401         * doc/gnulib.texi: include it.  Update copyright.
72402
72403 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72404
72405         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72406         AC_CANONICAL_HOST, to improve autobuild outputs.
72407
72408 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72409             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72410
72411         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72412         sockets, server sockets, and other file descriptors.  Count errors
72413         to compute the return value.  Reorder the code a bit to be easier
72414         to follow.  Don't set event bits that were not requested (except
72415         POLLERR and POLLHUP).
72416
72417 2007-01-01  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72420
72421 2007-01-03  Jim Meyering  <jim@meyering.net>
72422
72423         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72424
72425 2007-01-02  Bruno Haible  <bruno@clisp.org>
72426
72427         * modules/settime (Include): Require timespec.h.
72428         * modules/nanosleep (Include): Likewise.
72429
72430 2007-01-01  Bruno Haible  <bruno@clisp.org>
72431
72432         * gnulib-tool (func_emit_copyright_notice): Bump year.
72433         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72434
72435 2007-01-01  Bruno Haible  <bruno@clisp.org>
72436
72437         Improve support for OpenBSD.
72438         * build-aux/config.rpath (libname_spec): Export.
72439         (library_names_spec): New variable. Export.
72440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72441         library_names_spec from the config.rpath output. Locate shared library
72442         through the name pattern in library_names_spec.
72443
72444 2007-01-01  Eric Blake  <ebb9@byu.net>
72445
72446         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72447
72448 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72451         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72452         assume the C locale, and avoid an "eval" that could cause trouble.
72453         Problem with SORT reported by Bob Proulx.
72454
72455         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72456         Define.  Trivial patch from Henning Nielsen Lund, originally
72457         sent to bug-grep@gnu.org today.
72458
72459 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72462         struct stat.  Problem reported by Henning Nielsen Lund.
72463         * lib/acl.c: Include acl.h first, to check interface.  Don't
72464         bother to include sys/types.h and sys/stat.h again.
72465
72466 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         Import the following change from libc; problem reported by
72469         Sven Verdoolaege.
72470
72471         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72472
72473         [BZ #1373]
72474         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72475
72476 2006-12-28  Jim Meyering  <jim@meyering.net>
72477
72478         * build-aux/announce-gen: Do not assume that the package
72479         builds any of tar.gz, tar.bz2, and .xdelta files.
72480         Suggestion from Simon Josefsson.
72481
72482 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72483
72484         * modules/announce-gen: New file.
72485
72486 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72489         handles its gotchas now.
72490         * lib/mbswidth.c: Likewise.
72491         * lib/wcwidth.h: Likewise.
72492         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72493         and iswcntrl; the wctype module does this stuff now.
72494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72496         * modules/mbchar (Depends-on): Add wctype.
72497         * modules/mbswidth (Depends-on): Likewise.
72498         * modules/wcwidth (Depends-on): Likewise.
72499
72500 2006-12-27  Eric Blake  <ebb9@byu.net>
72501
72502         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72503         module uses more than what <wctype.h> is required to provide.
72504
72505 2006-12-26  Eric Blake  <ebb9@byu.net>
72506
72507         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72508
72509 2006-12-26  Eric Blake  <ebb9@byu.net>
72510
72511         * modules/absolute-header: New module.
72512         * modules/fcntl (Depends-on): Depend on it.
72513         * modules/inttypes (Depends-on): Likewise.
72514         * modules/stdint (Depends-on): Likewise.
72515         * modules/sys_stat (Depends-on): Likewise.
72516         * modules/wctype (Depends-on): Likewise.
72517         * MODULES.html.sh (Support for building libraries and
72518         executables): Document it.
72519
72520 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * gnulib-tool (SED): Remove, undoing previous change.
72523         The problem was that it broke coreutils on Solaris, because
72524         "sed --posix" leaked into a makefile.
72525         (sed): New alias, if 'alias' and GNU sed.
72526
72527 2006-12-24  Jim Meyering  <jim@meyering.net>
72528
72529         Work around an fchownat bug in glibc-2.4:
72530         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72531         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72532         in spite of the -P option.
72533         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72534         New macros.
72535         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72536         * modules/openat (Files): Add lib/fchownat.c.
72537         * lib/openat.c (fchownat): Don't define here.  Move to...
72538         * lib/fchownat.c: ...this new file.
72539
72540 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         Fix bug reported by Bruno Haible in
72543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72544         where quotearg.c didn't compile on Mac OS X 10.2 because it
72545         lacks <wchar.h> and wint_t.
72546         * lib/wctype_.h (__wctype_wint_t): New type.
72547         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72548         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72549         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72550         Arg is now of type __wctype_wint_t, not wint_t.
72551         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72552         substitute HAVE_WINT_T.
72553         * modules/wctype (Files): Add m4/wint_t.m4.
72554         (wctype.h): Substitute HAVE_WINT_T.
72555
72556 2006-12-23  Bruno Haible  <bruno@clisp.org>
72557
72558         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72559
72560 2006-12-23  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72563         S_ISLNK.
72564         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72565         mingw.
72566
72567 2006-12-22  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/copy-file.c: Include acl.h.
72570         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72571         Close the file descriptors only after being done with copy_acl.
72572         * modules/copy-file (Depends-on): Add acl.
72573
72574 2006-12-22  Bruno Haible  <bruno@clisp.org>
72575
72576         * gnulib-tool (SED): New variable.
72577         Use $SED instead of sed everywhere.
72578
72579 2006-12-22  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/no-c++: New file.
72582         * m4/no-c++.m4: New file.
72583         * MODULES.html.sh (Support for building libraries and executables):
72584         Add no-c++.
72585
72586 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72589         Include <limits.h>, and use its INT_MAX to rewrite the
72590         j loop so that it does not overflow 'int'.  Problem reported by
72591         Ralf Wildenhues in
72592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72593         Play it safe by shifting left by 1 rather than multiplying by 2,
72594         as GCC is less likely to optimize this away when the value
72595         is signed (when it assumes overflow leads to undefined behavior).
72596         Also, don't assume time_t uses two's complement.
72597
72598 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * MODULES.html.sh: New module wctype.
72601         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72602         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72603         <wctype.h>, since the new wctype module should fix this.
72604         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72605         the wctype module should arrange for it.
72606         * lib/regex_internal.h: Likewise.
72607         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72608         since the wctype module should handle this now.
72609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72610         * modules/fnmatch (Depends-on): Add wctype.
72611         * modules/quotearg (Depends-on): Likewise.
72612         * modules/regex (Depends-on): Likewise.
72613
72614 2006-12-19  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72617         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72618
72619 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72620
72621         * modules/savewd (Depends-on): Fix dependency on fcntl.
72622
72623 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72626         conforms to C99, rather than relying on the user's environment
72627         setting of STDINT_H.
72628
72629 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72630         and Eric Blake  <ebb9@byu.net>
72631
72632         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72633         This is more consistent with the other defines here.
72634         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72635         Port to z/OS.  Problem reported by Paul Gilmartin.
72636         Change local vars to use gl_ prefix rather than ac_.
72637         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72638         with other defines.
72639         * modules/double-slash-root: New module.
72640         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72641         (Depends-on): Add double-slash-root.
72642         * MODULES.html.sh (File system functions): Mention new module.
72643
72644 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72647         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72648         This is for the benefit of gzip, which doesn't do i18n.
72649
72650 2006-12-12  Jim Meyering  <jim@meyering.net>
72651
72652         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72653         Reported by Andreas Schwab <schwab@suse.de>.
72654
72655 2006-12-12  Bruno Haible  <bruno@clisp.org>
72656
72657         Merge these changes.
72658         2006-09-05  Bruno Haible  <bruno@clisp.org>
72659         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72660         iconv_alloc succeeded.
72661         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72662         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72663         test for " && dest " at the end - dest is always != NULL there. Call
72664         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72665         with 2xNULL arguments, also to flush the state storage. Handle the
72666         IRIX iconv behaviour. Realloc the final result, to throw away unused
72667         memory.
72668
72669 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72672         and fchmodat unconditionally, since glibc 2.4 has them.
72673         Problem reported by Arkadiusz Miskiewicz.
72674
72675 2006-12-10  Bruno Haible  <bruno@clisp.org>
72676
72677         * gnulib-tool (func_import): Show the include files only for those
72678         modules that are copied and specified.
72679         Reported by Karl Berry.
72680
72681 2006-12-08  Jim Meyering  <jim@meyering.net>
72682
72683         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72684         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72685
72686         * build-aux/announce-gen: Add two new options, both optional:
72687         --bootstrap-tools=TOOL_LIST
72688               a comma-separated list of tools, e.g.,
72689               autoconf,automake,bison,gnulib
72690         --gnulib-snapshot-date=DATE
72691               if gnulib is in the bootstrap tool list,
72692               then report this as the snapshot date.
72693               If not specified, use the current date/time.
72694               If you specify a date here, be sure it's UTC.
72695
72696 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72697
72698         * tests/test-argp-2.sh: Fix test to match actual output.
72699         (func_compare): Fix sed script to be portable.
72700
72701 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72704         workaround for this case.  It is not autoconfigured now; offhand
72705         it's hard to see how to autoconfigure it.
72706
72707 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72710         a directory that is about to be chowned.  Such a directory's
72711         initial file permissions should permit the owner only and this
72712         should not be changed until after the chown, since the group and
72713         other bits would be incorrect if they granted permission before
72714         the chown.
72715
72716         Fix porting problem for iswctype reported by Georg Schwarz in:
72717         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72718         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72719         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72721         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72722
72723 2006-12-03  Jim Meyering  <jim@meyering.net>
72724
72725         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72726         p->fts_statp may not yet be defined.
72727         (fts_read): Instead, set it in the caller, once p->fts_statp is
72728         sure to be defined, and corresponds to a top-level directory.
72729         This bug made du -x fail.  Here's the coreutils test case:
72730         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72731         Reported by Mike Frysinger.
72732
72733 2006-12-01  Jim Meyering  <jim@meyering.net>
72734
72735         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72736         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72737         Reported by Simon Josefsson.
72738
72739 2006-11-30  Jim Meyering  <jim@meyering.net>
72740
72741         * m4/warning.m4: Use the all-permissive copyright notice
72742         recommended by RMS (rather than LGPL).
72743         * m4/vararrays.m4: Likewise.
72744         * m4/flexmember.m4: Likewise.
72745
72746 2006-11-29  Bruno Haible  <bruno@clisp.org>
72747
72748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72749         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72750         using +=.
72751         Reported by Simon Josefsson <simon@josefsson.org>.
72752
72753 2006-11-28  James Youngman <jay@gnu.org>
72754
72755         * README: Advise users that they might find the bug-gnulib@gnu.org
72756         and autotools-announce@gnu.org mailing lists useful.
72757
72758 2006-11-28  Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/ptrdiff_max.m4: Remove file.
72761
72762 2006-11-21  Bruno Haible  <bruno@clisp.org>
72763
72764         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72765         _AC_COMPUTE_INT.
72766         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72767         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72768         _AC_COMPUTE_INT.
72769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72770         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72771         _AC_COMPUTE_INT.
72772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72773
72774 2006-11-28  Jim Meyering  <jim@meyering.net>
72775
72776         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72777         warning from "gcc -Wshadow" about shadowing the builtin.
72778
72779 2006-11-27  Bruno Haible  <bruno@clisp.org>
72780
72781         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72782         _AC_COMPUTE_INT.
72783         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72784
72785 2006-11-27  Bruno Haible  <bruno@clisp.org>
72786             Paul Eggert  <eggert@cs.ucla.edu>
72787
72788         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72789
72790 2006-11-26  Bruno Haible  <bruno@clisp.org>
72791
72792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72793         noinst_LTLIBRARIES.
72794
72795 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72796             Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72799         if compiling with "gcc -ansi".
72800
72801 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         Fix some incompatibilities with gcc -ansi -pedantic.
72804         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72805         if compiling pedantically with GCC, unless it's C99 or later.
72806         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72807         it mishandles gcc -ansi -pedantic as well.
72808         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72809         if gcc -pedantic.
72810         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72811         initializers for struct if -pedantic, unless it's C99 or later.
72812
72813 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72814
72815         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72816         Don't close an fd more than once. Identical atimes indicate
72817         success, not failure.
72818
72819 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72820
72821         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72822
72823 2006-11-23  Jim Meyering  <jim@meyering.net>
72824
72825         * build-aux/announce-gen: New file.  From coreutils.
72826
72827 2006-11-22  Jim Meyering  <jim@meyering.net>
72828
72829         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72830         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72831         (fts_read): Use a temporary to narrow the overused st_size member
72832         before using it in a switch statement.  Reported by Matthew Woehlke.
72833
72834         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72836
72837 2006-11-20  Bruno Haible  <bruno@clisp.org>
72838
72839         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72840         changequote instead of pairs of brackets.
72841         Reported by Andreas Schwab <schwab@suse.de>.
72842
72843 2006-11-21  Jim Meyering  <jim@meyering.net>
72844
72845         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72846         so as to remain compatible with older compilers.
72847         Patch from Michael Deutschmann.
72848
72849 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * MODULES.html.sh (File system functions): Add openat.
72852
72853         * lib/openat.h (rpl_fstatat): New macro, if
72854         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72855         (fstatat): Define to rpl_fstatat under the same conditions,
72856         unless COMPILING_FSTATAT.
72857         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72858         seems to have the bug.
72859         * lib/fstatat.c: New file.
72860         * modules/openat (Files): Add it.
72861
72862 2006-11-20  Bruno Haible  <bruno@clisp.org>
72863
72864         * Makefile: New file.
72865
72866 2006-11-20  Jim Meyering  <jim@meyering.net>
72867
72868         The beginnings of syntax-related checks for gnulib.
72869         * lib/Makefile: New file.
72870         * lib/t-idcache: New script.  Ensure that the two halves of
72871         idcache.c stay in sync.
72872
72873         * lib/idcache.c: Adjust comments in user- and group- portions to
72874         be more accurate, and to be consistent with one another.
72875
72876 2006-11-20  Jim Meyering  <jim@meyering.net>
72877
72878         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72879         continue using the flexible array member (thus, this module performs
72880         half as many malloc calls), with the addition that...
72881         (getgroup, getuser): Consistently record a non-match via an empty
72882         "name" string, and map an empty string match to a NULL return value.
72883         * modules/idcache (Depends-on): Re-add flexmember.
72884
72885         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72886         (getuidbyname, getgroup, getgidbyname): Likewise.
72887
72888         Use cleaner syntax: NULL rather than 0.
72889         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72890
72891 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72894         It mishandled the case where the group was missing.
72895         Problem reported by Greg Schafer.
72896         * modules/idcache: Likewise.
72897
72898 2006-11-18  Jim Meyering  <jim@meyering.net>
72899
72900         * check-module (%exempt_header): Add exception for some
72901         conditionally-included headers.
72902
72903         * modules/i-ring (Depends-on): Add verify.
72904         (License): Change to LGPL.
72905
72906 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72909         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72910         and inttostr.h.  Use snprintf rather than uinttostr, so that
72911         LGPLed code doesn't depend on GPLed.
72912
72913 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72914
72915         * modules/inline (License): Change from GPL to LGPL.
72916
72917 2006-11-17  Jim Meyering  <jim@meyering.net>
72918
72919         * modules/d-type (License): Switch to LGPL.
72920
72921 2006-11-15  Bruno Haible  <bruno@clisp.org>
72922
72923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72924
72925 2006-11-15  Eric Blake  <ebb9@byu.net>
72926
72927         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72928         the module dependency.
72929
72930 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72931             Bruno Haible  <bruno@clisp.org>
72932
72933         * gnulib-tool (func_create_testdir): Add license consistency check.
72934
72935 2006-11-15  Eric Blake  <ebb9@byu.net>
72936
72937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72938         random "(cached)" in configure output.
72939
72940 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72941
72942         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72943         test for conforming inttypes.h is both announced and cached.
72944
72945         * MODULES.html.sh (seen_modules, seen_files): New variables.
72946         (func_module): Rewrite to use a few less gnulib-tool and sed
72947         invocations.  Avoid a couple of quadratic algorithms for ...
72948         (missed_modules, missed_files): ... these, with ...
72949         (func_append, func_tmpdir): ... these new functions, from
72950         gnulib-tool.  Analogously, install traps for cleanup.
72951
72952         * tests/test-gc.c (main): Remove unused variables.
72953         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72954
72955 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * modules/inttostr (License): Change to LGPL.
72958
72959 2006-11-14  Eric Blake  <ebb9@byu.net>
72960
72961         * modules/tempname (License): Change to LGPL.
72962
72963 2006-11-14  Eric Blake  <ebb9@byu.net>
72964
72965         * doc/functions.texi (Function Portability): *printf functions on
72966         Cygwin now understand all POSIX size specifiers.
72967
72968 2006-11-14  Bruno Haible  <bruno@clisp.org>
72969
72970         * modules/c-ctype (License): Change to LGPL.
72971
72972 2006-11-12  Bruno Haible  <bruno@clisp.org>
72973
72974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72975         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72976         for GNOME libraries, for which the include files are installed in
72977         subdirectories of $prefix/include.
72978
72979 2006-11-12  Bruno Haible  <bruno@clisp.org>
72980
72981         * m4/lib-link.m4: Require at least autoconf-2.54.
72982         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72983         name to underscores for the --with option.
72984
72985 2006-11-13  Bruno Haible  <bruno@clisp.org>
72986
72987         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72988         the tests directory.
72989         Reported by Ralf Wildenhues.
72990
72991 2006-11-13  Bruno Haible  <bruno@clisp.org>
72992
72993         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72994         (func_emit_initmacro_end): Undo the override here.
72995         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72996         Works around the famous automake error in coreutils.
72997
72998 2006-11-13  Eric Blake  <ebb9@byu.net>
72999
73000         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73001         element, not its node.
73002
73003 2006-11-12  Bruno Haible  <bruno@clisp.org>
73004
73005         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73006         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73007
73008 2006-11-12  Bruno Haible  <bruno@clisp.org>
73009
73010         * gnulib-tool: New option --local-symlink.
73011         (func_usage): Document it.
73012         (lsymbolic): New variable.
73013         (func_import, func_create_testdir): If --symlink was not specified,
73014         test whether --local-symlink was specified and the file comes from
73015         the local_gnulib_dir.
73016
73017 2006-11-12  Bruno Haible  <bruno@clisp.org>
73018
73019         * gnulib-tool (func_ln): New function.
73020         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73021
73022 2006-11-12  Bruno Haible  <bruno@clisp.org>
73023
73024         Finish support for source files in subdirectories.
73025         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73026         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73027         AUTOMAKE_OPTIONS.
73028         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73029
73030 2006-11-12  Bruno Haible  <bruno@clisp.org>
73031
73032         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73033         EXTRA_lib_SOURCES augmentation.
73034         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73035
73036 2006-11-12  Jim Meyering  <jim@meyering.net>
73037
73038         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73039         file descriptors.  This also averts a failure on systems with
73040         native openat support when a traversed directory lacks "x" access.
73041         * lib/fts_.h: Include "i-ring.h"
73042         (struct FTS) [fts_fd_ring]: New member.
73043         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73044         (FCHDIR): Add parentheses.
73045         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73046         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73047         When descending, rather than simply closing the previous
73048         fts_cwd_fd value, push that file descriptor onto the ring.
73049         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73050         (fts_open): Initialize the new fd_ring member.
73051         (fts_close): Clear the ring.
73052         (fts_safe_changedir): When possible, use our new fd_ring to skip
73053         the diropen and fstat and dev/ino comparison that would normally
73054         accompany a virtual `chdir ("..")'.
73055
73056         * modules/fts (Depends-on): Add i-ring.
73057         * modules/i-ring: New module.
73058         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73059         * m4/i-ring.m4: New file.
73060
73061 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73062
73063         * gnulib-tool (func_create_testdir): Fix replacement of
73064         `build-aux' in configure.ac.  Run autotools in gltests
73065         subdirectory.
73066         (func_create_testdir, func_create_megatestdir, test): There is
73067         no need for '--force' in most autotool invocations in a new
73068         tree.  Actually fail the whole test if any of the tools, or the
73069         configure or make stages fail.
73070
73071         Sync from Automake.
73072         * build-aux/gnupload: Revert last change.  Add pointer to upload
73073         instructions of the GNU Maintenance Instructions.
73074         Suggestion by Karl Berry.
73075
73076 2006-11-10  Jim Meyering  <jim@meyering.net>
73077
73078         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73079
73080 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73081
73082         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73083         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73084         (bind_textdomain_codeset) [! ENABLE_NLS]:
73085         Evaluate all the arguments.  That way, callers get compatible behavior
73086         if the arguments have side effects.  Also, it avoids some GCC
73087         diagnostics in some cases; Joel E. Denny reported problems when Bison
73088         was configured with --enable-gcc-warnigs.
73089
73090 2006-11-10  Jim Meyering  <jim@meyering.net>
73091
73092         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73093         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73094         account.
73095
73096 2006-11-10  Jim Meyering  <jim@meyering.net>
73097
73098         * modules/inline: New file/module.
73099         * modules/xalloc (Files): Remove m4/inline.m4.
73100         (Depends-on): Add inline, instead.
73101         * modules/oset: Likewise.
73102         * modules/list: Likewise.
73103
73104 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73107         Problem reported by Matthew Woehlke.
73108
73109 2006-11-09  Bruno Haible  <bruno@clisp.org>
73110
73111         * lib/tempname.c (gen_tempname): Remove variant that invokes
73112         __gen_tempname.
73113         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73114         __gen_tempname.
73115
73116 2006-11-08  Bruno Haible  <bruno@clisp.org>
73117
73118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73119         to 'yes' instead of 'cross-compiling'.
73120
73121 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * lib/quotearg.h (quotearg_free): New decl.
73124         * lib/quotearg.c (quotearg_free): New function.
73125         (slot0, nslots, slotvec0, slotvec):
73126         Now file-scope so that quotearg_free can get at them.
73127
73128 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73129
73130         Sync from Automake.
73131         * build-aux/gnupload: Add missing 'gnu' to example URL.
73132         Report by Karl Berry.
73133
73134 2006-11-08  Bruno Haible  <bruno@clisp.org>
73135
73136         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73137         Suggested by Paul Eggert.
73138
73139 2006-11-08  Jim Meyering  <jim@meyering.net>
73140
73141         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73142         It's already included if !_LIBC.
73143         (fts_safe_changedir): Add a comment.
73144
73145 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73148         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73149         Matthew Woehlke.
73150
73151         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73152         definitions up, to avoid colliding with change below.
73153         (static_inline) [HAVE_INLINE]: New macro.
73154         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73155         Provide extern decls when !HAVE_INLINE.  Do not define unless
73156         static_inline is defined, either by us or by xmalloc.c.  Use
73157         static_inline rather than static inline.
73158         (XCALLOC): Optimize sizeof(T) = 1 case.
73159         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73160
73161 2006-11-07  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73165         AC_C_INLINE.
73166         * modules/xalloc (Files): Add m4/inline.m4.
73167
73168 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73169
73170         * README: Fix typo.
73171         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73172         (Miscellanous Notes): ...from this.
73173
73174 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73177         Mention that offsetof should be used instead of sizeof.
73178         From Bruno Haible.
73179
73180 2006-11-07  Bruno Haible  <bruno@clisp.org>
73181
73182         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73183
73184 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73189         (gl_tree_add_before, gl_tree_add_after):
73190         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73191         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73192         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73193         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73194         (gl_linked_add_after, gl_linked_add_at): Likewise.
73195         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73196         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73197         (gl_tree_add_before, gl_tree_add_after): Likewise.
73198         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73200         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73201
73202 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73203
73204         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73205
73206 2006-11-06  Bruno Haible  <bruno@clisp.org>
73207
73208         * m4/inline.m4: New file.
73209         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73210         * modules/list (Files): Add m4/inline.m4.
73211         * modules/oset (Files): Likewise.
73212
73213 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * lib/idcache.c: Include <stddef.h>, for offsetof.
73216         (struct userid.name): Change from char * to a flexible array member.
73217         All uses changed.
73218         * modules/idcache (Depends-on): Add flexmember.
73219
73220         * MODULES.html.sh (Core language properties): New module flexmember.
73221         * modules/flexmember, m4/flexmember.m4: New files.
73222
73223         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73224         inline functions that are identical with the old xnmalloc_inline,
73225         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73226         that we can avoid some unnecessary integer multiplications and
73227         divisions in the common case where the element size is known at
73228         compile time.
73229         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73230         needed.
73231         (xnboundedmalloc): Remove.
73232         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73233         arguments, for consistency with rest of this header.
73234         (xcharalloc): Rewrite using XNMALLOC.
73235         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73236         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73237         versions have been moved to lib/xalloc.h and renamed to be the
73238         non-*_inline versions.
73239         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73240         and xnrealloc functions, since those functions are now inline and
73241         now call us.
73242         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73243         renaming described above.
73244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73245         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73246         captures the dependency in AC_C_INLINE.
73247
73248         New module canonicalize-lgpl, proposed by Charles Wilson in
73249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73250         with a few small changes afterwards.
73251         * MODULES.html.sh (File system functions): New module
73252         canonicalize-lgpl.
73253         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73254         and canonicalize_file_name.
73255         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73256         * modules/canonicalize-lgpl: New files.
73257
73258 2006-11-05  Bruno Haible  <bruno@clisp.org>
73259
73260         * gnulib-tool (func_import, func_create_testdir): Create directories
73261         also for files in subdirectories of lib/.
73262
73263 2006-11-05  Bruno Haible  <bruno@clisp.org>
73264
73265         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73266         ANSI C compliant.
73267
73268 2006-11-03  Bruno Haible  <bruno@clisp.org>
73269
73270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73271         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73272         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73273         (xnboundedmalloc): New inline function.
73274         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73275         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73276         xmalloc.
73277         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73278         xmalloc.
73279         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73280         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73281         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73282         xmalloc.
73283         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73284         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73285         xmalloc.
73286         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73287         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73288         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73289         xmalloc.
73290         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73291         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73293         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73294         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73295         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73296         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73297
73298 2006-11-03  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/c-ctype.h [C++]: Define functions without name mangling.
73301         * lib/fwriteerror.h [C++]: Likewise.
73302         * lib/gcd.h [C++]: Likewise.
73303         * lib/linebreak.h [C++]: Likewise.
73304
73305 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73308         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73309         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73311         Check for functions and headers just once.
73312         Check for declaration of canonicalize_file_name.
73313         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73314
73315 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73316
73317         * gnulib-tool (func_import): Fix typo in actioncmd.
73318
73319 2006-11-02  Bruno Haible  <bruno@clisp.org>
73320
73321         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73322         newline sequence in the Makefile.am snippet as a space, like "make"
73323         does.
73324         Reported by Roger Persson <perrog@gmail.com>.
73325
73326 2006-11-01  Bruno Haible  <bruno@clisp.org>
73327
73328         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73329         already declared in <string.h>.
73330         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73331
73332 2006-11-01  Bruno Haible  <bruno@clisp.org>
73333
73334         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73335         * lib/strcase.h: Include <string.h>.
73336         (strcasecmp): Define to rpl_strcasecmp here.
73337
73338 2006-11-01  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73341
73342 2006-11-01  Eric Blake  <ebb9@byu.net>
73343
73344         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73345
73346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73347
73348 2006-10-29  Bruno Haible  <bruno@clisp.org>
73349
73350         Make it compile in C++ mode.
73351         * lib/full-write.c (full_rw): Add a cast.
73352
73353 2006-11-01  Bruno Haible  <bruno@clisp.org>
73354
73355         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73356         be POSIX compliant.
73357         Reported by Roger Persson <perrog@gmail.com>.
73358
73359 2006-11-01  Eric Blake  <ebb9@byu.net>
73360
73361         * lib/getopt_.h: Fix comments.
73362
73363 2006-10-31  Eric Blake  <ebb9@byu.net>
73364
73365         * modules/tmpdir (Depends-on): Add sys_stat.
73366         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73367         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73368         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73369         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73370         tempname.
73371
73372 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         Avoid some C++ diagnostics reported by Bruno Haible.
73375         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73376         xmalloc.
73377         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73378         (struct slotvec): Move to top level.
73379         (quotearg_n_options): Rewrite to avoid xmalloc.
73380         * lib/xalloc.h (xcharalloc): New function.
73381         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73382         [defined __cplusplus]: Add function template that provides result
73383         type propagation.  This part of the change is from Bruno Haible.
73384
73385 2006-10-29  Bruno Haible  <bruno@clisp.org>
73386
73387         Make it compile in C++ mode.
73388         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73389         * lib/strnlen1.c (strnlen1): Cast memchr result.
73390         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73391         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73392         (create_temp_dir): Rename local variable 'template'.
73393         (compile_csharp_using_sscli): Add cast.
73394         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73395         * lib/findprog.c (find_in_path): Likewise.
73396         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73397         * lib/wait-process.c (register_slave_subprocess): Likewise.
73398
73399 2006-10-22  Bruno Haible  <bruno@clisp.org>
73400
73401         * modules/tsearch: New file.
73402         * lib/tsearch.h: New file.
73403         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73404         * m4/tsearch.m4: New file.
73405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73406
73407 2006-10-29  Eric Blake  <ebb9@byu.net>
73408
73409         * lib/arcfour.c: Assume config.h.
73410         * lib/arctwo.c: Likewise.
73411         * lib/base64.c: Likewise.
73412         * lib/check-version.c: Likewise.
73413         * lib/crc.c: Likewise.
73414         * lib/des.c: Likewise.
73415         * lib/gc-gnulib.c: Likewise.
73416         * lib/gc-libgcrypt.c: Likewise.
73417         * lib/gc-pbkdf2-sha1.c: Likewise.
73418         * lib/getaddrinfo.c: Likewise.
73419         * lib/getdelim.c: Likewise.
73420         * lib/getline.c: Likewise.
73421         * lib/hmac-md5.c: Likewise.
73422         * lib/hmac-sha1.c: Likewise.
73423         * lib/iconvme.c: Likewise.
73424         * lib/md2.c: Likewise.
73425         * lib/md4.c: Likewise.
73426         * lib/memxor.c: Likewise.
73427         * lib/read-file.c: Likewise.
73428         * lib/readline.c: Likewise.
73429         * lib/rijndael-alg-fst.c: Likewise.
73430         * lib/rijndael-api-fst.c: Likewise.
73431         * lib/xgetdomainname.c: Likewise.
73432
73433 2006-10-28  Eric Blake  <ebb9@byu.net>
73434
73435         * lib/xstrndup.c: Assume config.h.
73436
73437 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73440         stat-macros.h is now for our own macros, whereas stat_h is for
73441         macros in the <sys/stat.h> name space.
73442         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73443         (STAT_MACROS_H): Remove.
73444         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73445         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73446         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73447         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73448         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73449         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73450         Move these macros to ...
73451         * lib/stat_.h: here.  Don't include stat-macros.h.
73452         * lib/canonicalize.c: Don't include stat-macros.h.
73453         * lib/chown.c: Likewise.
73454         * lib/euidaccess.c: Likewise.
73455         * lib/file-type.c: Likewise.
73456         * lib/filemode.c: Likewise.
73457         * lib/glob.c: Likewise.
73458         * lib/isapipe.c: Likewise.
73459         * lib/lchown.c: Likewise.
73460         * lib/lstat.c: Likewise.
73461         * lib/mkdir-p.c: Likewise.
73462         * lib/rmdir.c: Likewise.
73463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73465         unless mkdir isn't declared, to speed up 'configure'.
73466         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73467         would define all the S_* symbols.
73468         * modules/canonicalize (Depends-on):
73469         Depend on sys_stat, not stat-macros.
73470         * modules/chown: Likewise.
73471         * modules/euidaccess: Likewise.
73472         * modules/filemode: Likewise.
73473         * modules/file-type: Likewise.
73474         * modules/glob: Likewise.
73475         * modules/isapipe: Likewise.
73476         * modules/lchown: Likewise.
73477         * modules/lstat: Likewise.
73478         * modules/mkancesdirs: Likewise.
73479         * modules/rmdir: Likewise.
73480         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73481         * modules/modechange: Likewise.
73482         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73483         (configure.ac): Remove gl_STAT_MACROS.
73484         * modules/sys_stat (Depends-on): Remove stat-macros.
73485
73486 2006-10-27  Bruno Haible  <bruno@clisp.org>
73487
73488         * m4/signed.m4: Remove file.
73489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73490         invocation.
73491         * modules/vasnprintf (Files): Remove m4/signed.m4.
73492
73493 2006-10-27  Bruno Haible  <bruno@clisp.org>
73494
73495         Update to GNU gettext 0.16.
73496         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73497         m4/inttypes-h.m4, m4/signed.m4.
73498         * m4/gettext.m4: Update to GNU gettext 0.16.
73499         * m4/intl.m4: New file, from GNU gettext.
73500         * m4/intldir.m4: New file, from GNU gettext.
73501         * config/srclist.txt: Update
73502
73503 2006-10-27  Eric Blake  <ebb9@byu.net>
73504
73505         * MODULES.html.sh: Document tempname.
73506         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73507         dependencies.
73508         (Files): Move lib/tempname.c...
73509         * modules/tempname: ...to this new module.
73510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73511         (gl_PREREQ_TEMPNAME): Move...
73512         * m4/tempname.m4: ...to this new file.
73513         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73514         * modules/sys_stat (Depends-on): Add stat-macros.
73515         * lib/stat_.h (includes): Pick up stat macros.
73516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73517         if stat macros are broken.
73518         * lib/tempname.c (includes): No need to include "stat-macros.h".
73519         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73520         (direxists, __path_search) [!_LIBC]: Don't compile these in
73521         gnulib; the tmpdir module covers that.
73522         * lib/tempname.h: New file.
73523
73524 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         * COPYING: Explain how gnulib-tool converts licence headers.
73527         Almost all wording by Eric Blake.
73528
73529 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * lib/mbchar.h (is_basic_table): Make read-only.
73532         * lib/mbchar.c (is_basic_table): Likewise.
73533         Reported by John Darrington.
73534
73535 2006-10-25  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/progname.h (set_program_name): Undefine before defining.
73538
73539 2006-10-25  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73542         false for non-gcc C++ compilers.
73543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73544
73545 2006-10-24  Bruno Haible  <bruno@clisp.org>
73546
73547         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73548         iconv implementations like Irix iconv.
73549
73550 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * modules/vararrays: New file.
73553         * m4/vararrays.m4: New file, taken from diffutils.
73554         * MODULES.html.sh: New module vararrays.
73555
73556 2006-10-24  Karl Berry  <karl@gnu.org>
73557
73558         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73559         Don't call GNU Unix.
73560
73561 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73562
73563         * users.txt: Add Libtool.
73564
73565         Sync from Libtool:
73566
73567         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73570         to gnulib's policy of including config.h unconditionally.
73571
73572 2006-10-24  Bruno Haible  <bruno@clisp.org>
73573
73574         * modules/wcwidth (Files): Add m4/wint_t.m4.
73575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73576         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73577
73578 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73581         to pacify GCC with some -W flags enabled.  Problem reported by
73582         Bruno Haible.
73583
73584 2006-10-24  Jim Meyering  <jim@meyering.net>
73585
73586         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73587         Reported by Karl Berry.
73588
73589 2006-10-23  Bruno Haible  <bruno@clisp.org>
73590
73591         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73592
73593 2006-10-24  Bruno Haible  <bruno@clisp.org>
73594
73595         * lib/gl_list.h: Use C comment style, not C++ comment style.
73596
73597 2006-10-23  Eric Blake  <ebb9@byu.net>
73598
73599         * lib/getaddrinfo.c (includes): Add missing include.
73600
73601 2006-10-23  Bruno Haible  <bruno@clisp.org>
73602             Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         Ability to rename obstack_free.
73605         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73606         obstack_free.
73607         (obstack_free): Invoke the __obstack_free macro.
73608         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73609
73610 2006-10-23  Bruno Haible  <bruno@clisp.org>
73611             Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73614         __argc, __argv from the declaration. (They are defined as macros on
73615         mingw.)
73616
73617 2006-10-22  Bruno Haible  <bruno@clisp.org>
73618
73619         * doc/gnulib-intro.texi: New file.
73620         * doc/gnulib.texi: Include it.
73621
73622 2006-10-21  Bruno Haible  <bruno@clisp.org>
73623
73624         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73625         "Introduction", "Miscellanous Notes", "Particular Modules".
73626
73627 2006-10-21  Bruno Haible  <bruno@clisp.org>
73628
73629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73630         Change mostlyclean-local rule to avoid sh syntax error from bash
73631         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73632
73633 2006-10-23  Jim Meyering  <jim@meyering.net>
73634
73635         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73636         in place of snprintf.
73637
73638         * modules/inttostr (Files): Add lib/uinttostr.c.
73639         * lib/uinttostr.c (inttostr): New file/function.
73640         * lib/inttostr.h (uinttostr): Declare.
73641         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73642         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73643         Add uinttostr.
73644         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73645
73646 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * lib/canonicalize.c (ELOOP): Define if not already defined.
73649         Problem reported by Bruno Haible in
73650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73651
73652 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73655         Problem reported by Perry Smith and Ville Laurikari.
73656
73657         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73658         uses.
73659
73660 2006-10-19  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73663         for mingw.
73664
73665 2006-10-19  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73668         Needed for mingw.
73669
73670 2006-10-19  Bruno Haible  <bruno@clisp.org>
73671
73672         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73673
73674 2006-10-19  Bruno Haible  <bruno@clisp.org>
73675
73676         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73677         it.
73678
73679 2006-10-19  Bruno Haible  <bruno@clisp.org>
73680
73681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73682         invocation.
73683
73684 2006-10-19  Bruno Haible  <bruno@clisp.org>
73685
73686         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73687         mountlist by default.
73688
73689 2006-10-16  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/c-strstr.c: Include c-strstr.h.
73692
73693 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73694
73695         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73696         in a slash.
73697
73698 2006-10-18  Bruno Haible  <bruno@clisp.org>
73699
73700         * lib/lock.h [C++]: Wrap definitions in extern "C".
73701
73702 2006-10-18  Bruno Haible  <bruno@clisp.org>
73703
73704         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73705         gl_LIBOBJS list.
73706
73707 2006-10-18  Bruno Haible  <bruno@clisp.org>
73708
73709         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73710
73711 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * lib/xstrtol.h: Include gettext.h.
73714         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73715         Problem reported by Eric Blake.
73716         * modules/xstrtol (Depends-on): Add gettext-h.
73717
73718 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73719
73720         * lib/strftime.c (advance): New macro.
73721         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73722         incomplete type, so you can't add 0 to it.  Problem and patch
73723         reported by Eelco Dolstra for dietlibc.
73724
73725 2006-10-18  Jim Meyering  <jim@meyering.net>
73726
73727         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73728         type for a local, and rename it: s/up/user_proc/.
73729
73730 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73731
73732         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73733         READ_UTMP_USER_PROCESS.
73734         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73735
73736 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73739         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73740
73741 2006-10-17  Eric Blake  <ebb9@byu.net>
73742
73743         * lib/sigprocmask.c (sigprocmask): Fix typo.
73744
73745         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73746
73747         * modules/clean-temp (Makefile.am): Don't add to make output...
73748         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73749         config.h.
73750
73751 2006-10-17  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73754         differently if DEFAULT_TEXT_DOMAIN is set.
73755
73756 2006-10-16  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/clean-temp.c: Include fwriteerror.h.
73759
73760 2006-10-16  Bruno Haible  <bruno@clisp.org>
73761
73762         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73763
73764 2006-10-16  Bruno Haible  <bruno@clisp.org>
73765
73766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73767         * lib/sigprocmask.h: Include <sys/types.h>.
73768         (sigset_t): Use the system's definition if present.
73769
73770 2006-10-17  Eric Blake  <ebb9@byu.net>
73771
73772         * lib/xvasprintf.c (includes): Assume config.h.
73773         * lib/xasprintf.c (includes): Likewise.
73774
73775 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73778         at least as wide as intmax_t.
73779
73780 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73781
73782         (Imported from Automake.)
73783         * build-aux/gnupload: Update to version 1.1 of directive file.
73784
73785 2006-10-16  Eric Blake  <ebb9@byu.net>
73786
73787         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73788         match Automake 1.10a.
73789
73790 2006-10-14  Bruno Haible  <bruno@clisp.org>
73791
73792         * modules/sigprocmask: New file.
73793         * lib/sigprocmask.h: New file.
73794         * lib/sigprocmask.c: New file.
73795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73796         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73797         request sigprocmask.o.
73798         (gl_PREREQ_SIGPROCMASK): New macro.
73799         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73800         (Depends-on): Add sigprocmask.
73801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73802         gt_SIGNALBLOCKING. Test for 'raise' only once.
73803         * lib/fatal-signal.c: Include sigprocmask.h.
73804         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73805         unblock_fatal_signals): Define always.
73806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73807         sigprocmask.
73808
73809 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         Sync from Automake.
73812         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73813         which incorrectly sets the mode of an existing destination
73814         directory.  In some cases the unpatched install-sh could do the
73815         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73816         system.  We hope this is rare in practice, but it's clearly worth
73817         fixing.  Problem reported by Alex Unleashed in
73818         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73819         Also, don't bother to check for -m bugs unless we're using -m;
73820         suggested by Stepan Kasal.
73821
73822 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73823
73824         Sync from Automake.
73825         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73826         `-c' flag, so they appear at the same position as in %FASTDEP%
73827         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73828         which ignores unknown options only after the first non-option.
73829         Bug report against M4 by Nelson H. F. Beebe.
73830
73831 2006-10-13  Jim Meyering  <jim@meyering.net>
73832
73833         Fix a bug in yesterday's change.
73834         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73835         p->fts_statp->st_dev would be used uninitialized.
73836         Ensures that we always call fts_stat on the very first entry.
73837         Miklos Szeredi reported that find -xdev stopped working.
73838
73839 2006-10-12  Bruno Haible  <bruno@clisp.org>
73840
73841         * gnulib-tool (func_get_automake_snippet): Append an automatically
73842         computed EXTRA_DIST augmentation.
73843         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73844         * modules/alloca-opt (Makefile.am): Likewise.
73845         * modules/allocsa (Makefile.am): Likewise.
73846         * modules/arcfour (Makefile.am): Likewise.
73847         * modules/arctwo (Makefile.am): Likewise.
73848         * modules/argmatch (Makefile.am): Likewise.
73849         * modules/argz (Makefile.am): Likewise.
73850         * modules/atexit (Makefile.am): Likewise.
73851         * modules/backupfile (Makefile.am): Likewise.
73852         * modules/byteswap (Makefile.am): Likewise.
73853         * modules/c-strtod (Makefile.am): Likewise.
73854         * modules/c-strtold (Makefile.am): Likewise.
73855         * modules/calloc (Makefile.am): Likewise.
73856         * modules/canon-host (Makefile.am): Likewise.
73857         * modules/canonicalize (Makefile.am): Likewise.
73858         * modules/chdir-long (Makefile.am): Likewise.
73859         * modules/chdir-safer (Makefile.am): Likewise.
73860         * modules/check-version (Makefile.am): Likewise.
73861         * modules/chown (Makefile.am): Likewise.
73862         * modules/cloexec (Makefile.am): Likewise.
73863         * modules/close-stream (Makefile.am): Likewise.
73864         * modules/closeout (Makefile.am): Likewise.
73865         * modules/crc (Makefile.am): Likewise.
73866         * modules/csharpexec (Makefile.am): Likewise.
73867         * modules/cycle-check (Makefile.am): Likewise.
73868         * modules/des (Makefile.am): Likewise.
73869         * modules/dev-ino (Makefile.am): Likewise.
73870         * modules/dirfd (Makefile.am): Likewise.
73871         * modules/dirname (Makefile.am): Likewise.
73872         * modules/dup2 (Makefile.am): Likewise.
73873         * modules/eealloc (Makefile.am): Likewise.
73874         * modules/error (Makefile.am): Likewise.
73875         * modules/euidaccess (Makefile.am): Likewise.
73876         * modules/exclude (Makefile.am): Likewise.
73877         * modules/exitfail (Makefile.am): Likewise.
73878         * modules/fcntl-safer (Makefile.am): Likewise.
73879         * modules/fcntl (Makefile.am): Likewise.
73880         * modules/file-type (Makefile.am): Likewise.
73881         * modules/fileblocks (Makefile.am): Likewise.
73882         * modules/filemode (Makefile.am): Likewise.
73883         * modules/filenamecat (Makefile.am): Likewise.
73884         * modules/fnmatch (Makefile.am): Likewise.
73885         * modules/fopen-safer (Makefile.am): Likewise.
73886         * modules/fpending (Makefile.am): Likewise.
73887         * modules/fprintftime (Makefile.am): Likewise.
73888         * modules/free (Makefile.am): Likewise.
73889         * modules/fsusage (Makefile.am): Likewise.
73890         * modules/ftruncate (Makefile.am): Likewise.
73891         * modules/fts (Makefile.am): Likewise.
73892         * modules/gc-arcfour (Makefile.am): Likewise.
73893         * modules/gc-des (Makefile.am): Likewise.
73894         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73895         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73896         * modules/gc-md4 (Makefile.am): Likewise.
73897         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73898         * modules/gc-sha1 (Makefile.am): Likewise.
73899         * modules/gc (Makefile.am): Likewise.
73900         * modules/getaddrinfo (Makefile.am): Likewise.
73901         * modules/getcwd (Makefile.am): Likewise.
73902         * modules/getdelim (Makefile.am): Likewise.
73903         * modules/getdomainname (Makefile.am): Likewise.
73904         * modules/getgroups (Makefile.am): Likewise.
73905         * modules/gethostname (Makefile.am): Likewise.
73906         * modules/gethrxtime (Makefile.am): Likewise.
73907         * modules/getline (Makefile.am): Likewise.
73908         * modules/getloadavg (Makefile.am): Likewise.
73909         * modules/getlogin_r (Makefile.am): Likewise.
73910         * modules/getndelim2 (Makefile.am): Likewise.
73911         * modules/getopt (Makefile.am): Likewise.
73912         * modules/getpagesize (Makefile.am): Likewise.
73913         * modules/getpass-gnu (Makefile.am): Likewise.
73914         * modules/getpass (Makefile.am): Likewise.
73915         * modules/getsubopt (Makefile.am): Likewise.
73916         * modules/gettime (Makefile.am): Likewise.
73917         * modules/gettimeofday (Makefile.am): Likewise.
73918         * modules/getugroups (Makefile.am): Likewise.
73919         * modules/getusershell (Makefile.am): Likewise.
73920         * modules/glob (Makefile.am): Likewise.
73921         * modules/group-member (Makefile.am): Likewise.
73922         * modules/hard-locale (Makefile.am): Likewise.
73923         * modules/hash (Makefile.am): Likewise.
73924         * modules/hmac-md5 (Makefile.am): Likewise.
73925         * modules/hmac-sha1 (Makefile.am): Likewise.
73926         * modules/human (Makefile.am): Likewise.
73927         * modules/idcache (Makefile.am): Likewise.
73928         * modules/imaxabs (Makefile.am): Likewise.
73929         * modules/imaxdiv (Makefile.am): Likewise.
73930         * modules/inet_ntop (Makefile.am): Likewise.
73931         * modules/inet_pton (Makefile.am): Likewise.
73932         * modules/intprops (Makefile.am): Likewise.
73933         * modules/inttostr (Makefile.am): Likewise.
73934         * modules/inttypes (Makefile.am): Likewise.
73935         * modules/isapipe (Makefile.am): Likewise.
73936         * modules/javaversion (Makefile.am): Likewise.
73937         * modules/lchmod (Makefile.am): Likewise.
73938         * modules/lchown (Makefile.am): Likewise.
73939         * modules/localcharset (Makefile.am): Likewise.
73940         * modules/long-options (Makefile.am): Likewise.
73941         * modules/lstat (Makefile.am): Likewise.
73942         * modules/malloc (Makefile.am): Likewise.
73943         * modules/mathl (Makefile.am): Likewise.
73944         * modules/mbchar (Makefile.am): Likewise.
73945         * modules/md2 (Makefile.am): Likewise.
73946         * modules/md4 (Makefile.am): Likewise.
73947         * modules/md5 (Makefile.am): Likewise.
73948         * modules/memcasecmp (Makefile.am): Likewise.
73949         * modules/memchr (Makefile.am): Likewise.
73950         * modules/memcmp (Makefile.am): Likewise.
73951         * modules/memcoll (Makefile.am): Likewise.
73952         * modules/memcpy (Makefile.am): Likewise.
73953         * modules/memmem (Makefile.am): Likewise.
73954         * modules/memmove (Makefile.am): Likewise.
73955         * modules/mempcpy (Makefile.am): Likewise.
73956         * modules/memrchr (Makefile.am): Likewise.
73957         * modules/memset (Makefile.am): Likewise.
73958         * modules/memxor (Makefile.am): Likewise.
73959         * modules/mkancesdirs (Makefile.am): Likewise.
73960         * modules/mkdir-p (Makefile.am): Likewise.
73961         * modules/mkdir (Makefile.am): Likewise.
73962         * modules/mkdtemp (Makefile.am): Likewise.
73963         * modules/mkstemp (Makefile.am): Likewise.
73964         * modules/mktime (Makefile.am): Likewise.
73965         * modules/modechange (Makefile.am): Likewise.
73966         * modules/mountlist (Makefile.am): Likewise.
73967         * modules/nanosleep (Makefile.am): Likewise.
73968         * modules/obstack (Makefile.am): Likewise.
73969         * modules/openat (Makefile.am): Likewise.
73970         * modules/pagealign_alloc (Makefile.am): Likewise.
73971         * modules/pathmax (Makefile.am): Likewise.
73972         * modules/physmem (Makefile.am): Likewise.
73973         * modules/poll (Makefile.am): Likewise.
73974         * modules/posixtm (Makefile.am): Likewise.
73975         * modules/posixver (Makefile.am): Likewise.
73976         * modules/putenv (Makefile.am): Likewise.
73977         * modules/quote (Makefile.am): Likewise.
73978         * modules/quotearg (Makefile.am): Likewise.
73979         * modules/raise (Makefile.am): Likewise.
73980         * modules/read-file (Makefile.am): Likewise.
73981         * modules/readline (Makefile.am): Likewise.
73982         * modules/readlink (Makefile.am): Likewise.
73983         * modules/readtokens (Makefile.am): Likewise.
73984         * modules/readutmp (Makefile.am): Likewise.
73985         * modules/realloc (Makefile.am): Likewise.
73986         * modules/regex (Makefile.am): Likewise.
73987         * modules/rename-dest-slash (Makefile.am): Likewise.
73988         * modules/rename (Makefile.am): Likewise.
73989         * modules/rijndael (Makefile.am): Likewise.
73990         * modules/rmdir (Makefile.am): Likewise.
73991         * modules/rpmatch (Makefile.am): Likewise.
73992         * modules/safe-read (Makefile.am): Likewise.
73993         * modules/safe-write (Makefile.am): Likewise.
73994         * modules/same-inode (Makefile.am): Likewise.
73995         * modules/same (Makefile.am): Likewise.
73996         * modules/save-cwd (Makefile.am): Likewise.
73997         * modules/savedir (Makefile.am): Likewise.
73998         * modules/setenv (Makefile.am): Likewise.
73999         * modules/settime (Makefile.am): Likewise.
74000         * modules/sha1 (Makefile.am): Likewise.
74001         * modules/sig2str (Makefile.am): Likewise.
74002         * modules/snprintf (Makefile.am): Likewise.
74003         * modules/stat-macros (Makefile.am): Likewise.
74004         * modules/stat-time (Makefile.am): Likewise.
74005         * modules/stdbool (Makefile.am): Likewise.
74006         * modules/stdint (Makefile.am): Likewise.
74007         * modules/stdlib-safer (Makefile.am): Likewise.
74008         * modules/stpcpy (Makefile.am): Likewise.
74009         * modules/stpncpy (Makefile.am): Likewise.
74010         * modules/strcase (Makefile.am): Likewise.
74011         * modules/strcasestr (Makefile.am): Likewise.
74012         * modules/strchrnul (Makefile.am): Likewise.
74013         * modules/strcspn (Makefile.am): Likewise.
74014         * modules/strdup (Makefile.am): Likewise.
74015         * modules/strerror (Makefile.am): Likewise.
74016         * modules/strftime (Makefile.am): Likewise.
74017         * modules/strndup (Makefile.am): Likewise.
74018         * modules/strnlen (Makefile.am): Likewise.
74019         * modules/strpbrk (Makefile.am): Likewise.
74020         * modules/strsep (Makefile.am): Likewise.
74021         * modules/strstr (Makefile.am): Likewise.
74022         * modules/strtod (Makefile.am): Likewise.
74023         * modules/strtoimax (Makefile.am): Likewise.
74024         * modules/strtok_r (Makefile.am): Likewise.
74025         * modules/strtol (Makefile.am): Likewise.
74026         * modules/strtoll (Makefile.am): Likewise.
74027         * modules/strtoul (Makefile.am): Likewise.
74028         * modules/strtoull (Makefile.am): Likewise.
74029         * modules/strtoumax (Makefile.am): Likewise.
74030         * modules/strverscmp (Makefile.am): Likewise.
74031         * modules/sys_socket (Makefile.am): Likewise.
74032         * modules/sys_stat (Makefile.am): Likewise.
74033         * modules/sysexits (Makefile.am): Likewise.
74034         * modules/time_r (Makefile.am): Likewise.
74035         * modules/timegm (Makefile.am): Likewise.
74036         * modules/timespec (Makefile.am): Likewise.
74037         * modules/tmpfile-safer (Makefile.am): Likewise.
74038         * modules/trim (Makefile.am): Likewise.
74039         * modules/unistd-safer (Makefile.am): Likewise.
74040         * modules/unlinkdir (Makefile.am): Likewise.
74041         * modules/unlocked-io (Makefile.am): Likewise.
74042         * modules/userspec (Makefile.am): Likewise.
74043         * modules/utime (Makefile.am): Likewise.
74044         * modules/utimecmp (Makefile.am): Likewise.
74045         * modules/utimens (Makefile.am): Likewise.
74046         * modules/vasnprintf (Makefile.am): Likewise.
74047         * modules/vasprintf (Makefile.am): Likewise.
74048         * modules/vsnprintf (Makefile.am): Likewise.
74049         * modules/xalloc (Makefile.am): Likewise.
74050         * modules/xgetcwd (Makefile.am): Likewise.
74051         * modules/xnanosleep (Makefile.am): Likewise.
74052         * modules/xreadlink (Makefile.am): Likewise.
74053         * modules/xstrtod (Makefile.am): Likewise.
74054         * modules/xstrtol (Makefile.am): Likewise.
74055         * modules/xstrtold (Makefile.am): Likewise.
74056         * modules/yesno (Makefile.am): Likewise.
74057         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74058
74059 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         * modules/error (Makefile.am): Distribute files through
74062         EXTRA_DIST, not lib_SOURCES.
74063
74064 2006-10-12  Eric Blake  <ebb9@byu.net>
74065
74066         * modules/error (Makefile.am): Distribute files in /lib.
74067         * modules/obstack (Makefile.am): Likewise.
74068
74069 2006-10-12  Bruno Haible  <bruno@clisp.org>
74070
74071         * modules/acl (Makefile.am): Distribute all files in lib/ through
74072         EXTRA_DIST.
74073         * modules/arcfour (Makefile.am): Likewise.
74074         * modules/arctwo (Makefile.am): Likewise.
74075         * modules/argmatch (Makefile.am): Likewise.
74076         * modules/argz (Makefile.am): Likewise.
74077         * modules/atexit (Makefile.am): Likewise.
74078         * modules/backupfile (Makefile.am): Likewise.
74079         * modules/c-strtod (Makefile.am): Likewise.
74080         * modules/c-strtold (Makefile.am): Likewise.
74081         * modules/calloc (Makefile.am): Likewise.
74082         * modules/canon-host (Makefile.am): Likewise.
74083         * modules/canonicalize (Makefile.am): Likewise.
74084         * modules/chdir-long (Makefile.am): Likewise.
74085         * modules/chdir-safer (Makefile.am): Likewise.
74086         * modules/check-version (Makefile.am): Likewise.
74087         * modules/chown (Makefile.am): Likewise.
74088         * modules/cloexec (Makefile.am): Likewise.
74089         * modules/close-stream (Makefile.am): Likewise.
74090         * modules/closeout (Makefile.am): Likewise.
74091         * modules/crc (Makefile.am): Likewise.
74092         * modules/cycle-check (Makefile.am): Likewise.
74093         * modules/des (Makefile.am): Likewise.
74094         * modules/dirfd (Makefile.am): Likewise.
74095         * modules/dirname (Makefile.am): Likewise.
74096         * modules/dup2 (Makefile.am): Likewise.
74097         * modules/euidaccess (Makefile.am): Likewise.
74098         * modules/exclude (Makefile.am): Likewise.
74099         * modules/exitfail (Makefile.am): Likewise.
74100         * modules/fcntl-safer (Makefile.am): Likewise.
74101         * modules/file-type (Makefile.am): Likewise.
74102         * modules/fileblocks (Makefile.am): Likewise.
74103         * modules/filemode (Makefile.am): Likewise.
74104         * modules/filenamecat (Makefile.am): Likewise.
74105         * modules/fnmatch (Makefile.am): Likewise.
74106         * modules/fopen-safer (Makefile.am): Likewise.
74107         * modules/fpending (Makefile.am): Likewise.
74108         * modules/fprintftime (Makefile.am): Likewise.
74109         * modules/free (Makefile.am): Likewise.
74110         * modules/fsusage (Makefile.am): Likewise.
74111         * modules/ftruncate (Makefile.am): Likewise.
74112         * modules/fts (Makefile.am): Likewise.
74113         * modules/gc (Makefile.am): Likewise.
74114         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74115         * modules/getaddrinfo (Makefile.am): Likewise.
74116         * modules/getcwd (Makefile.am): Likewise.
74117         * modules/getdelim (Makefile.am): Likewise.
74118         * modules/getdomainname (Makefile.am): Likewise.
74119         * modules/getgroups (Makefile.am): Likewise.
74120         * modules/gethostname (Makefile.am): Likewise.
74121         * modules/gethrxtime (Makefile.am): Likewise.
74122         * modules/getline (Makefile.am): Likewise.
74123         * modules/getloadavg (Makefile.am): Likewise.
74124         * modules/getlogin_r (Makefile.am): Likewise.
74125         * modules/getopt (Makefile.am): Likewise.
74126         * modules/getpass (Makefile.am): Likewise.
74127         * modules/getpass-gnu (Makefile.am): Likewise.
74128         * modules/getsubopt (Makefile.am): Likewise.
74129         * modules/gettime (Makefile.am): Likewise.
74130         * modules/gettimeofday (Makefile.am): Likewise.
74131         * modules/getugroups (Makefile.am): Likewise.
74132         * modules/getusershell (Makefile.am): Likewise.
74133         * modules/glob (Makefile.am): Likewise.
74134         * modules/group-member (Makefile.am): Likewise.
74135         * modules/hard-locale (Makefile.am): Likewise.
74136         * modules/hash (Makefile.am): Likewise.
74137         * modules/hmac-md5 (Makefile.am): Likewise.
74138         * modules/hmac-sha1 (Makefile.am): Likewise.
74139         * modules/human (Makefile.am): Likewise.
74140         * modules/idcache (Makefile.am): Likewise.
74141         * modules/imaxabs (Makefile.am): Likewise.
74142         * modules/imaxdiv (Makefile.am): Likewise.
74143         * modules/inet_ntop (Makefile.am): Likewise.
74144         * modules/inet_pton (Makefile.am): Likewise.
74145         * modules/inttostr (Makefile.am): Likewise.
74146         * modules/isapipe (Makefile.am): Likewise.
74147         * modules/lchown (Makefile.am): Likewise.
74148         * modules/long-options (Makefile.am): Likewise.
74149         * modules/lstat (Makefile.am): Likewise.
74150         * modules/malloc (Makefile.am): Likewise.
74151         * modules/mathl (Makefile.am): Likewise.
74152         * modules/mbchar (Makefile.am): Likewise.
74153         * modules/md2 (Makefile.am): Likewise.
74154         * modules/md4 (Makefile.am): Likewise.
74155         * modules/md5 (Makefile.am): Likewise.
74156         * modules/memcasecmp (Makefile.am): Likewise.
74157         * modules/memchr (Makefile.am): Likewise.
74158         * modules/memcmp (Makefile.am): Likewise.
74159         * modules/memcoll (Makefile.am): Likewise.
74160         * modules/memcpy (Makefile.am): Likewise.
74161         * modules/memmem (Makefile.am): Likewise.
74162         * modules/memmove (Makefile.am): Likewise.
74163         * modules/mempcpy (Makefile.am): Likewise.
74164         * modules/memrchr (Makefile.am): Likewise.
74165         * modules/memset (Makefile.am): Likewise.
74166         * modules/memxor (Makefile.am): Likewise.
74167         * modules/mkancesdirs (Makefile.am): Likewise.
74168         * modules/mkdir (Makefile.am): Likewise.
74169         * modules/mkdir-p (Makefile.am): Likewise.
74170         * modules/mkdtemp (Makefile.am): Likewise.
74171         * modules/mkstemp (Makefile.am): Likewise.
74172         * modules/mktime (Makefile.am): Likewise.
74173         * modules/modechange (Makefile.am): Likewise.
74174         * modules/mountlist (Makefile.am): Likewise.
74175         * modules/nanosleep (Makefile.am): Likewise.
74176         * modules/openat (Makefile.am): Likewise.
74177         * modules/pagealign_alloc (Makefile.am): Likewise.
74178         * modules/physmem (Makefile.am): Likewise.
74179         * modules/poll (Makefile.am): Likewise.
74180         * modules/posixtm (Makefile.am): Likewise.
74181         * modules/posixver (Makefile.am): Likewise.
74182         * modules/putenv (Makefile.am): Likewise.
74183         * modules/quote (Makefile.am): Likewise.
74184         * modules/quotearg (Makefile.am): Likewise.
74185         * modules/raise (Makefile.am): Likewise.
74186         * modules/read-file (Makefile.am): Likewise.
74187         * modules/readline (Makefile.am): Likewise.
74188         * modules/readlink (Makefile.am): Likewise.
74189         * modules/readtokens (Makefile.am): Likewise.
74190         * modules/readutmp (Makefile.am): Likewise.
74191         * modules/realloc (Makefile.am): Likewise.
74192         * modules/regex (Makefile.am): Likewise.
74193         * modules/rename (Makefile.am): Likewise.
74194         * modules/rename-dest-slash (Makefile.am): Likewise.
74195         * modules/rijndael (Makefile.am): Likewise.
74196         * modules/rmdir (Makefile.am): Likewise.
74197         * modules/rpmatch (Makefile.am): Likewise.
74198         * modules/safe-read (Makefile.am): Likewise.
74199         * modules/safe-write (Makefile.am): Likewise.
74200         * modules/same (Makefile.am): Likewise.
74201         * modules/save-cwd (Makefile.am): Likewise.
74202         * modules/savedir (Makefile.am): Likewise.
74203         * modules/setenv (Makefile.am): Likewise.
74204         * modules/settime (Makefile.am): Likewise.
74205         * modules/sha1 (Makefile.am): Likewise.
74206         * modules/sig2str (Makefile.am): Likewise.
74207         * modules/snprintf (Makefile.am): Likewise.
74208         * modules/stdlib-safer (Makefile.am): Likewise.
74209         * modules/stpcpy (Makefile.am): Likewise.
74210         * modules/stpncpy (Makefile.am): Likewise.
74211         * modules/strcase (Makefile.am): Likewise.
74212         * modules/strcasestr (Makefile.am): Likewise.
74213         * modules/strchrnul (Makefile.am): Likewise.
74214         * modules/strcspn (Makefile.am): Likewise.
74215         * modules/strdup (Makefile.am): Likewise.
74216         * modules/strerror (Makefile.am): Likewise.
74217         * modules/strftime (Makefile.am): Likewise.
74218         * modules/strndup (Makefile.am): Likewise.
74219         * modules/strnlen (Makefile.am): Likewise.
74220         * modules/strpbrk (Makefile.am): Likewise.
74221         * modules/strsep (Makefile.am): Likewise.
74222         * modules/strstr (Makefile.am): Likewise.
74223         * modules/strtod (Makefile.am): Likewise.
74224         * modules/strtoimax (Makefile.am): Likewise.
74225         * modules/strtok_r (Makefile.am): Likewise.
74226         * modules/strtol (Makefile.am): Likewise.
74227         * modules/strtoll (Makefile.am): Likewise.
74228         * modules/strtoul (Makefile.am): Likewise.
74229         * modules/strtoull (Makefile.am): Likewise.
74230         * modules/strtoumax (Makefile.am): Likewise.
74231         * modules/strverscmp (Makefile.am): Likewise.
74232         * modules/time_r (Makefile.am): Likewise.
74233         * modules/timegm (Makefile.am): Likewise.
74234         * modules/tmpfile-safer (Makefile.am): Likewise.
74235         * modules/unistd-safer (Makefile.am): Likewise.
74236         * modules/unlinkdir (Makefile.am): Likewise.
74237         * modules/userspec (Makefile.am): Likewise.
74238         * modules/utime (Makefile.am): Likewise.
74239         * modules/utimecmp (Makefile.am): Likewise.
74240         * modules/utimens (Makefile.am): Likewise.
74241         * modules/vasnprintf (Makefile.am): Likewise.
74242         * modules/vasprintf (Makefile.am): Likewise.
74243         * modules/vsnprintf (Makefile.am): Likewise.
74244         * modules/xalloc (Makefile.am): Likewise.
74245         * modules/xgetcwd (Makefile.am): Likewise.
74246         * modules/xnanosleep (Makefile.am): Likewise.
74247         * modules/xreadlink (Makefile.am): Likewise.
74248         * modules/xstrtod (Makefile.am): Likewise.
74249         * modules/xstrtol (Makefile.am): Likewise.
74250         * modules/xstrtold (Makefile.am): Likewise.
74251         * modules/yesno (Makefile.am): Likewise.
74252
74253 2006-10-12  Jim Meyering  <jim@meyering.net>
74254
74255         * m4/getloadavg.m4: Revert the change below.
74256
74257         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74258         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74259         fail with a symlink, which is what coreutils' ./bootstrap now
74260         creates by default.
74261
74262 2006-10-12  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74265         mingw.
74266         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74267         MSVC and mingw explicitly.
74268
74269 2006-10-11  Simon Josefsson  <jas@extundo.com>
74270             Bruno Haible  <bruno@clisp.org>
74271
74272         Add support for multiple gnulib-tool invocations in the scope of a
74273         single configure.ac file.
74274         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74275         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74276         with the same contents as the _LIBADD variable.
74277         (func_emit_initmacro_start, func_emit_initmacro_end,
74278         func_emit_initmacro_done): New functions.
74279         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74280         gl_LIBOBJS and gl_LTLIBOBJS.
74281
74282 2006-10-11  Bruno Haible  <bruno@clisp.org>
74283
74284         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74285         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74286         autoreconf. Instead, invoke autopoint explicitly but move back the
74287         *.m4 files from gnulib.
74288
74289 2006-10-11  Bruno Haible  <bruno@clisp.org>
74290
74291         * gnulib-tool (func_usage): Make module names after --create-testdir
74292         optional.
74293         (func_create_testdir): If no module was specified, use nearly all
74294         modules.
74295
74296 2006-10-12  Jim Meyering  <jim@meyering.net>
74297
74298         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74299         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74300         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74301         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74302         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74303         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74304         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74305         (fts_set_stat_required): New function.
74306         (fts_open): Defer the calls to fts_stat, if possible or requested.
74307         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74308         into fts_stat itself.
74309         (fts_read): Perform any required (deferred) fts_stat call.
74310         (fts_build): Likewise, for the directory we're about to open and read.
74311         In the readdir loop, carefully decide whether each entry will require
74312         an eventual call to fts_stat, using dirent.d_type info if available.
74313         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74314         a command line argument into this function.  Update all callers.
74315         Map a return value of FTS_DOT to FTS_D for a command line argument.
74316         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74317         Thanks to Miklos Szeredi for his tenacity and for the initial
74318         bug report about "find" failing on a FUSE-based file system.
74319
74320         * lib/fts.c (fts_open): Use consistent indentation.
74321
74322 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74325         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74326         reported by Jim Meyering.  All uses of cache variables renamed
74327         to match Autoconf's.
74328         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74329         the other one.
74330
74331         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74332         Fix misspelling in diagnostic.
74333
74334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74337         defined.  Problem reported by Matthew Woehlke.
74338
74339         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74340         Add support for Tandem NonStop R series.
74341         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74342         Use new macro.
74343
74344         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74345         (has_trailing_slash): Omit size arg; all callers changed.
74346         Omit 'inline', since it doesn't help performance and we'd
74347         need to configure it.
74348         Don't count //, ///, etc. as having a trailing slash.
74349         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74350         (rpl_rename_dest_slash): On failure, use rename's errno rather
74351         than (in some cases) an incorrect or junk errno.
74352         Simplify code by removing need to compute length; this does
74353         cause it to make two passes instead of one over the file name,
74354         but it's worth it.
74355
74356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74357         change, since Autoconf's version may no longer be appropriate now
74358         that we are using CVS Autoconf's version.  Add support for Tandem.
74359
74360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74361             Bruno Haible  <bruno@clisp.org>
74362
74363         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74364         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74365         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74366         gl_AC_TYPE_LONG_LONG.
74367
74368         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74369         instead of HAVE_LONG_LONG.
74370         * lib/printf-args.c (printf_fetchargs): Likewise.
74371         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74374         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74375         gl_AC_TYPE_LONG_LONG.
74376
74377 2006-10-11  Bruno Haible  <bruno@clisp.org>
74378
74379         * m4/longlong.m4: Add comments.
74380         * m4/ulonglong.m4: Likewise.
74381
74382 2006-10-10  Bruno Haible  <bruno@clisp.org>
74383
74384         Make it possible to #define stpcpy, strdup to aliases.
74385         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74386         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74387
74388 2006-10-10  Bruno Haible  <bruno@clisp.org>
74389
74390         Make it possible to #define gcd to an alias.
74391         * lib/gcd.c: Include config.h.
74392
74393 2006-10-10  Bruno Haible  <bruno@clisp.org>
74394
74395         Make it possible to #define c_isascii to an alias.
74396         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74397         defined. Undefine the macros before defining them, to avoid gcc
74398         warnings.
74399         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74400         define NO_C_CTYPE_MACROS early.
74401
74402 2006-10-10  Bruno Haible  <bruno@clisp.org>
74403
74404         Make it possible to #define set_program_name to an alias.
74405         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74406         ENABLE_RELOCATABLE early.
74407
74408 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74411         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74412         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74413         More generally, don't assume that 64-bit signed int is available
74414         if unsigned int is, and vice versa.
74415         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74416         unsigned symbols, not on their signed counterparts.
74417         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74418         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74419         (UINT64_C, UINTMAX_C):
74420         Likewise.
74421         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74422         unsigned counterparts.
74423         (Have_long_long, Unsigned): New macros.
74424         (Int): Renamed from INT.
74425         (strtoimax): Use the new macros.
74426         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74427         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74428         * modules/inttypes (inttypes.h): Substitute
74429         HAVE_UNSIGNED_LONG_LONG_INT.
74430         * modules/stdint (stdint.h): Likewise.
74431         (Files): Add m4/ulonglong.m4.
74432
74433 2006-10-10  Bruno Haible  <bruno@clisp.org>
74434
74435         Fix a gcc -Wshadow warning.
74436         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74437         to 'bucket'.
74438         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74439         gl_linked_indexof_from_to): Likewise.
74440         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74441         Likewise.
74442         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74443         Likewise.
74444         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74445         Reported by Eric Blake.
74446
74447 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74450         for NetBSD.  Problem reported by Bruno Haible.
74451
74452 2006-10-09  Jim Meyering  <jim@meyering.net>
74453
74454         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74455         Patch from Bruno Haible.
74456
74457 2006-10-09  Jim Meyering  <jim@meyering.net>
74458
74459         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74460         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74461         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74462
74463 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         Don't include <config.h> twice; this doesn't work in some cases,
74466         e.g., when config.h has "#define intmax_t long long int" and
74467         we include <config.h>, <inttypes.h>, <config.h> in that order.
74468         Problem reported by Matthew Woehlke in:
74469         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74470         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74471         * lib/fts-cycle.c: Don't include config.h.
74472         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74473         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74474         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74475         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74476         inttypes.h.
74477         * lib/xstrtoumax.c: Likewise.
74478         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74479         __strtol and the like, so that this module is more like its siblings.
74480         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74481         Remove; no longer needed now that we assume gnulib inttypes.h.
74482
74483 2006-10-08  Bruno Haible  <bruno@clisp.org>
74484
74485         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74486         option.
74487
74488 2006-10-07  Jim Meyering  <jim@meyering.net>
74489
74490         * modules/inttypes (inttypes.h): Revert what seems to have been
74491         an inadvertent part of today's change: use "|", not "/" in the
74492         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74493
74494 2006-10-07  Bruno Haible  <bruno@clisp.org>
74495
74496         * modules/sublist: New file.
74497
74498 2006-10-07  Bruno Haible  <bruno@clisp.org>
74499
74500         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74501         * modules/argz (argz.h): Likewise.
74502         * modules/arpa_inet (arpa/inet.h): Likewise.
74503         * modules/byteswap (byteswap.h): Likewise.
74504         * modules/configmake (configmake.h): Likewise.
74505         * modules/fcntl (fcntl.h): Likewise.
74506         * modules/fnmatch (fnmatch.h): Likewise.
74507         * modules/getopt (getopt.h): Likewise.
74508         * modules/glob (glob.h): Likewise.
74509         * modules/inttypes (inttypes.h): Likewise.
74510         * modules/netinet_in (netinet/in.h): Likewise.
74511         * modules/poll (poll.h): Likewise.
74512         * modules/stdbool (stdbool.h): Likewise.
74513         * modules/stdint (stdint.h): Likewise.
74514         * modules/sys_select (sys/select.h): Likewise.
74515         * modules/sys_socket (sys/socket.h): Likewise.
74516         * modules/sys_stat (sys/stat.h): Likewise.
74517         * modules/sysexits (sysexits.h): Likewise.
74518         * modules/unistd (unistd.h): Likewise.
74519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74520         Add a "DO NOT EDIT" comment to the generated file.
74521         (func_import): Likewise for gnulib-comp.m4.
74522
74523 2006-10-07  Bruno Haible  <bruno@clisp.org>
74524
74525         * lib/gl_sublist.h: New file.
74526         * lib/gl_sublist.c: New file.
74527
74528 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74531         name (relative to the original working directory) and the file
74532         name component (relative to the temporary working directory).  All
74533         callers changed.
74534         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74535         * lib/mkdir-p.c (make_dir_parents): Likewise.
74536         * lib/mkdir-p.h (make_dir_parents): Likewise.
74537
74538 2006-10-06  Eric Blake  <ebb9@byu.net>
74539
74540         Define several macros for use by the clean-temp module.
74541         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74542         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74543         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74544
74545         * lib/clean-temp.h (close_stream_temp): New declaration.
74546         * lib/clean-temp.c (includes): Pull in headers according to what
74547         other modules are in use.
74548         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74549
74550 2006-10-06  Bruno Haible  <bruno@clisp.org>
74551
74552         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74553         instead of fopen, fwriteerror.
74554
74555 2006-10-06  Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74558         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74559         int.
74560         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74561         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74562         Return an error indicator.
74563         Suggested by Eric Blake.
74564
74565 2006-10-06  Bruno Haible  <bruno@clisp.org>
74566
74567         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74568         Reported by Eric Blake.
74569
74570 2006-10-06  Bruno Haible  <bruno@clisp.org>
74571
74572         * modules/closeout (Description): Mention stderr too.
74573
74574 2006-10-06  Bruno Haible  <bruno@clisp.org>
74575         and Paul Eggert  <eggert@cs.ucla.edu>
74576
74577         * lib/closeout.c (close_stdout): Also close stderr.
74578         * lib/closeout.h: Update comment.
74579
74580 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74584         * lib/dirchownmod.c: Include lchown.h.
74585         * lib/lchown.c: Don't include files that lchown.h now includes.
74586         Don't declare chown, since lchown.h now does that.
74587         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74588         (lchown): Define to rpl_chown if lchown is declared but
74589         does not exist.  Declare using a prototype if lchown is not
74590         declared.  Add a copyright notice.
74591         * lib/mkstemp.h: Include <unistd.h>.
74592         * lib/openat.c: Include lchown.h.
74593
74594         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74595         we now test for that separately.
74596         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74597         rather than O_NOFOLLOW, when testing whether it's possible to
74598         avoid a race condition reliably.
74599         * lib/savewd.c (savewd_chdir): Likewise.
74600
74601         Remove macros that are no longer needed now that stdint.h is
74602         reliable.
74603         * lib/fsusage.c (UINTMAX_MAX): Remove.
74604         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74605         * lib/utimecmp.c (SIZE_MAX): Remove.
74606
74607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74608
74609         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74610         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74611         O_NOATIME works.
74612
74613 2006-10-05  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/gl_list.h (gl_sortedlist_search_from_to,
74616         gl_sortedlist_indexof_from_to): New declarations.
74617         (gl_list_implementation): New fields sortedlist_search_from_to,
74618         sortedlist_indexof_from_to.
74619         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74620         inline functions.
74621         * lib/gl_list.c (gl_sortedlist_search_from_to,
74622         gl_sortedlist_indexof_from_to): New functions.
74623         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74624         function.
74625         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74626         (gl_array_sortedlist_search_from_to): New function.
74627         (gl_array_list_implementation): Update.
74628         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74629         function.
74630         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74631         (gl_carray_sortedlist_search_from_to): New function.
74632         (gl_carray_list_implementation): Update.
74633         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74634         gl_linked_sortedlist_indexof_from_to): New functions.
74635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74637         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74638         gl_tree_sortedlist_indexof_from_to): New functions.
74639         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74641         Update.
74642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74643         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74644         Update.
74645
74646 2006-10-05  Bruno Haible  <bruno@clisp.org>
74647
74648         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74649         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74650         (struct gl_list_implementation): Add fields search_from_to,
74651         indexof_from_to. Remove fields search, indexof.
74652         (gl_list_search): Use the search_from_to method.
74653         (gl_list_search_from, gl_list_search_from_to): New functions.
74654         (gl_list_indexof): Use the indexof_from_to method.
74655         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74656         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74657         (gl_list_search_from, gl_list_search_from_to): New functions.
74658         (gl_list_indexof): Use the indexof_from_to method.
74659         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74660         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74661         gl_array_indexof. Add start_index, end_index arguments.
74662         (gl_array_search_from_to): Renamed from gl_array_search. Add
74663         start_index, end_index arguments.
74664         (gl_array_remove, gl_array_list_implementation): Update.
74665         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74666         gl_carray_indexof. Add start_index, end_index arguments.
74667         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74668         start_index, end_index arguments.
74669         (gl_carray_remove, gl_carray_list_implementation): Update.
74670         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74671         gl_linked_search. Add start_index, end_index arguments.
74672         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74673         start_index, end_index arguments.
74674         (gl_linked_remove): Update.
74675         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74676         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74677         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74678         field to 'size_t'.
74679         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74680         gl_tree_search. Add start_index, end_index arguments.
74681         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74682         start_index, end_index arguments.
74683         (gl_tree_remove): Update.
74684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74686         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74687         function.
74688         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74689         gl_tree_search. Add start_index, end_index arguments.
74690         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74691         start_index, end_index arguments.
74692         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74693         Update.
74694         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74695
74696 2006-10-05  Bruno Haible  <bruno@clisp.org>
74697
74698         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74699
74700         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74701         fwriteerror_temp): New declarations.
74702         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74703         (descriptors): New variable.
74704         (cleanup): First, close the descriptors.
74705         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74706         fclose_temp, fwriteerror_temp): New functions.
74707
74708 2006-10-04  Jim Meyering  <jim@meyering.net>
74709
74710         * lib/fts.c (fts_open): Tiny comment change.
74711
74712 2006-10-04  Bruno Haible  <bruno@clisp.org>
74713
74714         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74715         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74716         gl_LOCK_BODY.
74717         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74718         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74719         gl_LOCK_EARLY_BODY.
74720         (gl_LOCK): Require gl_LOCK_BODY.
74721
74722 2006-10-04  Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74725         (gl_oset_search_atleast): New declaration.
74726         (struct gl_oset_implementation): Add field 'search_atleast'.
74727         (gl_oset_search_atleast): New inline function.
74728         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74729         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74730         (gl_array_oset_implementation): Update.
74731         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74732         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74733         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74734
74735 2006-10-04  Bruno Haible  <bruno@clisp.org>
74736
74737         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74738
74739 2006-10-03  Bruno Haible  <bruno@clisp.org>
74740
74741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74742         from gl_avltreehash_list_implementation.
74743
74744 2006-10-03  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/gl_oset.c (gl_oset_add): Fix return type.
74747
74748 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74749
74750         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74751
74752 2006-10-02  Eric Blake  <ebb9@byu.net>
74753
74754         * modules/strnlen (Depends-on): Add extensions.
74755
74756 2006-10-02  Eric Blake  <ebb9@byu.net>
74757
74758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74759         definition in 2.60+.
74760
74761 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74762
74763         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74764         checks.
74765
74766 2006-10-02  Bruno Haible  <bruno@clisp.org>
74767
74768         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74769         to the AUTOMAKE_OPTIONS.
74770         Reported by Jim Meyering.
74771
74772 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         Work around bug in Solaris 10 /proc file system:
74775         /proc/self/fd/NNN/.. isn't the parent directory of
74776         the directory whose file descriptor is NNN.  This needs to
74777         be worked around at run time, not compile time, since a
74778         program might be built on Solaris 8, where things work, and
74779         run on Solaris 10.
74780         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74781         to use the following interface instead:
74782         (OPENAT_BUFFER_SIZE): New macro.
74783         (openat_proc_name): New function.
74784         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74785         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74786         Likewise.
74787         * lib/openat-proc.c: New file.
74788         * modules/openat (Files): Add lib/openat-proc.c.
74789         (Depends-on): Add same-inode, stdbool.
74790         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74791
74792 2006-09-29  Bruno Haible  <bruno@clisp.org>
74793
74794         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74795         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74796         argument. Set stdout_closed before testing for ferror, not after.
74797         (fwriteerror, fwriteerror_no_ebadf): New functions.
74798
74799 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74800
74801         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74802
74803 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74804
74805         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74806         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74807
74808 2006-09-28  Jim Meyering  <jim@meyering.net>
74809
74810         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74811         Include <unistd.h>.
74812
74813 2006-09-28  Bruno Haible  <bruno@clisp.org>
74814
74815         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74816         * modules/linkedhash-list (Depends-on): Likewise.
74817         * modules/rbtreehash-list (Depends-on): Likewise.
74818
74819 2006-09-28  Bruno Haible  <bruno@clisp.org>
74820
74821         * lib/strndup.h: Simplify the redefinition of strndup.
74822         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74824
74825 2006-09-28  Bruno Haible  <bruno@clisp.org>
74826
74827         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74828         * lib/gl_linkedhash_list.c: Likewise.
74829         * lib/gl_rbtreehash_list.c: Likewise.
74830
74831 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74834         getaddrinfo.
74835
74836         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74837         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74838         it causes <stdio_ext.h> to cause a compile-time error.
74839         Problem reported by Nelson H. F. Beebe.
74840         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74841         of HAVE_DECL___PENDING.
74842
74843         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74844         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74845         declaration.
74846
74847 2006-09-27  Jim Meyering  <jim@meyering.net>
74848
74849         This file could end up with a definition for a function
74850         named __strndup, rather than rpl_strndup on a system with
74851         incomplete weak_alias support.
74852         * lib/strndup.c (strndup): Rename from __strndup.
74853         Remove #defines that used to map __strndup to strndup.
74854         Don't use K&R prototypes.
74855         Remove LIBC-related code, since this file is not sync'd with glibc.
74856         * lib/strndup.h: Revamp, accordingly.
74857         * m4/strndup.m4: Modernize.
74858
74859 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * modules/savewd (Depends-on): Add 'raise'.
74862         * lib/savewd.c: Include <signal.h>, for 'raise'.
74863
74864 2006-09-26  Jim Meyering  <jim@meyering.net>
74865
74866         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74867         when we detect Darwin 8.7.0's acl_get_file bug.
74868         Rearrange to perform the new (below) run-test while $LIBS
74869         contains any acl-related library.  Set USE_ACL at the end.
74870         (gl_ACL_GET_FILE): New function.
74871
74872 2006-09-26  Eric Blake  <ebb9@byu.net>
74873
74874         * lib/verror.c: Include <config.h> unconditionally.
74875
74876 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * modules/clock-time (Maintainer): Add self.
74879         * modules/getlogin_r (Depends-on): Add extensions.
74880
74881 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74882
74883         * modules/clock-time: New module.
74884         * modules/nanosleep (Depends-on): Add clock-time.
74885         * modules/gethrxtime (Depends-on): Likewise.
74886         * modules/gettime (Depends-on): Likewise.
74887         * modules/settime (Depends-on): Likewise.
74888
74889         * modules/fts-lgpl: Depend on openat.
74890         * modules/mkancesdirs: Depend on savewd.
74891         * modules/mkdir-p: Likewise.
74892
74893 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74894
74895         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74896
74897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74898         `gl_have_arbitrary_file_name_length_limit' to
74899         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74900         actually works between configure runs.
74901
74902 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74903             Bruno Haible  <bruno@clisp.org>
74904
74905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74906
74907 2006-09-25  Jim Meyering  <jim@meyering.net>
74908
74909         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74910         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74911
74912 2006-09-25  Eric Blake  <ebb9@byu.net>
74913
74914         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74915         exec's in 2006-09-18 patch when shuffling fds.
74916
74917 2006-09-25  Bruno Haible  <bruno@clisp.org>
74918
74919         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74920         Reported by Jim Meyering.
74921
74922 2006-09-24  Jim Meyering  <jim@meyering.net>
74923
74924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74925         compare a pointer against a literal "0".  That caused failures with
74926         at least HP-UX's hpcc.
74927
74928 2006-09-22  Simon Josefsson  <jas@extundo.com>
74929
74930         * modules/gc-sha1:
74931         * modules/gc-md4:
74932         * modules/gc-hmac-sha1:
74933         * modules/gc-hmac-md5:
74934         * modules/gc-des:
74935         * modules/gc-arcfour: Distribute more files.
74936
74937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74938
74939         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74940         (gl_linked_iterator_from_to): Initialize struct completely.
74941         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74942         (gl_tree_iterator_from_to): Likewise
74943         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74944         * lib/gl_array_list.c [lint] (gl_array_iterator)
74945         (gl_array_iterator_from_to): Likewise.
74946         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74947         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74948         (gl_carray_iterator_from_to): Likewise.
74949
74950         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74951         * lib/md4.c (md4_process_block): Remove unused variable.
74952         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74953         parentheses for clarity.
74954
74955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74956
74957         * modules/bison-i18n (Depends-on): Add gettext.
74958
74959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74960
74961         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74963         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74964         also add missing comma that caused broken test.
74965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74966         stdlib.h, for `abort'.
74967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74968         variables.
74969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74970         include unistd.h if present, for `rmdir'.
74971         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74972         variables.
74973         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74974         in the process include standard headers for prototypes.
74975         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74976         gets declared on GNU/Linux.
74977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74978         unistd.h, for `rmdir'.
74979         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74980
74981         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74982         always true.
74983         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74984
74985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74986
74987 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74988
74989         * gnulib-tool (func_version): Create output all at once.  This
74990         may help avoid triggering unnecessary SIGPIPEs, and at any
74991         rate it doesn't hurt.
74992
74993 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74994             Bruno Haible  <bruno@clisp.org>
74995
74996         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74998         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74999
75000         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75001         (gl_FUNC_VASPRINTF): Invoke it.
75002
75003 2006-09-22  Bruno Haible  <bruno@clisp.org>
75004
75005         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75006         getloadavg.c as first argument.
75007
75008 2006-09-22  Bruno Haible  <bruno@clisp.org>
75009
75010         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75011         at the beginning of the gl_INIT macro.
75012         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75013         gl_GETLOADAVG.
75014
75015 2006-09-22  Bruno Haible  <bruno@clisp.org>
75016
75017         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75018         module.
75019         Suggested by Ralf Wildenhues.
75020
75021 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         Import this patch from libc:
75024
75025         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75026
75027         * lib/regex_internal.c (re_string_reconstruct): Handle
75028         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75029         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75030         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75031         re_string_context_at.
75032
75033         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75034         now requires it.
75035         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75036         gl_REGEX now does it for us.
75037         (gl_REGEX): Add test taken from
75038         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75039
75040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75041         Check that large offsets work.  Modernize Autoconf usages.
75042         Prefer "yes" to mean a good thing rather than a bad.
75043         Don't put "#define mkstemp" in config.h, as this might interfere
75044         with standard system headers that "#define mkstemp mkstemp64".
75045
75046         * modules/mkstemp (Depends-on): Add extensions, so that
75047         mkstemp is visible on some platforms.
75048         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75049         (Include): Change to "mkstemp.h" from <stdlib.h>.
75050         (Files): Add mkstemp.h.
75051
75052         * lib/mkstemp.h: New file, since some standard headers
75053         #define mkstemp.
75054         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75055         Include "mkstemp.h".
75056         Make the _LIBC code resemble glibc original more,
75057         e.g., use K&R style.
75058         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75059         (mkstemp): Remove, since mkstemp.h does this for us.
75060         * lib/stdlib--.h: Include mkstemp.h.
75061
75062         Import this patch from libc:
75063
75064         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75065
75066         * lib/tempname.c (__gen_tempname): Change attempts_min
75067         into a macro.  Use preprocessor to decide how to initialize
75068         attempts [Coverity CID 67].
75069
75070 2006-09-20  Bruno Haible  <bruno@clisp.org>
75071
75072         * lib/mkdtemp.c: Import from libc.
75073         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75074                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75075                 attempts_min into a macro.  Use preprocessor to decide how to
75076                 initialize attempts [Coverity CID 67].
75077         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75078                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75079                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75080
75081 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75082
75083         * gnulib-tool (func_exit): New function, to allow to pass the
75084         exit status portably through the trap.  Use everywhere.
75085         (--help, --version): Signal a write error.
75086         (trap): catch SIGPIPE, for write errors.
75087         Exit at the end of the trap, with the correct exit status.
75088
75089 2006-09-19  Karl Berry  <karl@gnu.org>
75090
75091         * doc/gnulib.texi: note about the license texinfo files.
75092
75093 2006-09-19  Eric Blake  <ebb9@byu.net>
75094
75095         * gnulib-tool: Avoid space-tab.
75096
75097 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75100         that prevented coreutils 6.1 from building.  Problem reported
75101         by Petter Reinholdtsen.
75102
75103 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * gnulib-tool (avoidlist): Fix typo that broke options like
75106         --avoid=lock that are used by coreutils bootstrap.
75107
75108 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75109
75110         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75111         more systematically.
75112
75113 2006-09-18  Jim Meyering  <jim@meyering.net>
75114
75115         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75116
75117 2006-09-18  Bruno Haible  <bruno@clisp.org>
75118
75119         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75120
75121 2006-09-18  Bruno Haible  <bruno@clisp.org>
75122
75123         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75124         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75125         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75126         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75127         * m4/gettext.m4: Require autoconf >= 2.52.
75128         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75129         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75130         of gl_cv_header_inttypes_h.
75131
75132 2006-09-18  Bruno Haible  <bruno@clisp.org>
75133
75134         * lib/javaversion.c: Include configmake.h.
75135
75136 2006-09-18  Bruno Haible  <bruno@clisp.org>
75137
75138         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75139         avoid that the while loops be executed in a subshell.
75140
75141 2006-09-18  Bruno Haible  <bruno@clisp.org>
75142
75143         * MODULES.html.sh (func_module): Break long lines.
75144         Suggested by Bruce Korb <bkorb@gnu.org>.
75145
75146 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75147
75148         Speed up by a factor of 1.12.
75149         * gnulib-tool (nl): New variable.
75150         (func_import): Rewrite include directive extraction to only read each
75151         directive once.
75152
75153 2006-09-17  Bruno Haible  <bruno@clisp.org>
75154
75155         * modules/javaversion (Makefile.am): Remove DEFS setting.
75156         (Depends-on): Add configmake, for PKGDATADIR definition.
75157
75158 2006-09-17  Bruno Haible  <bruno@clisp.org>
75159
75160         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75161
75162 2006-09-17  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75165         (func_modules_transitive_closure, func_modules_add_dummy,
75166         func_modules_to_filelist, func_import, func_create_testdir,
75167         func_create_megatestdir, ...): Use it wherever possible.
75168         Suggested by Ralf Wildenhues.
75169
75170 2006-09-16  Karl Berry  <karl@gnu.org>
75171
75172         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75173         to avoid sectioning errors.
75174         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75175         [ifinfo]: blank line after @center-ed titles.
75176         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75177         Spell FSF address consistently with others.
75178         (These changes approved by rms.)
75179
75180 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75181
75182         Speed up by a factor of 1.61.
75183         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75184         already checked module names again.
75185
75186 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75187
75188         Speed up by a factor of 1.13.
75189         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75190         for new_files, and the input to func_add_or_update.
75191
75192 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75193
75194         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75195         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75196
75197 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * modules/mkancesdirs (Depends-on): Add fcntl.
75200         * modules/savewd: New file.
75201         * MODULES.html.sh (File system functions): Add savewd.
75202
75203         * modules/configmake (Makefile.am): Add support for the
75204         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75205
75206 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75207
75208         * m4/savewd.m4: New file.
75209
75210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75213         (dirchownmod): New arg FD.  All callers changed.
75214         Use FD rather than opening the directory ourself, as opening is
75215         now the caller's responsibility.
75216         * lib/dirchownmod.h: Likewise.
75217         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75218         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75219         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75220         (test_dir): Remove.
75221         (mkancesdirs): Return length of prefix of FILE that has already
75222         been made, or -2 if there is a child doing the work.  Redo
75223         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75224         ".", and treat ".." specially since it might stray back into
75225         already-created areas.  Use a subprocess if necessary.  New arg
75226         WD; all users changed.  MAKE_DIR function should now return 1
75227         if it creates a directory that is not readable.  Return -2 if
75228         a child process is spun off.
75229         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75230         Adjust signature to match code.
75231         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75232         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75233         all users changed.
75234         * lib/savewd.c, lib/savewd.h: New files.
75235
75236 2006-09-15  Jim Meyering  <jim@meyering.net>
75237
75238         * modules/rename-dest-slash: New module.
75239         * MODULES.html.sh (posix_compat): Add it here.
75240
75241         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75242
75243 2006-09-15  Jim Meyering  <jim@meyering.net>
75244
75245         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75246         file.
75247
75248         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75249
75250 2006-09-15  Jim Meyering  <jim@meyering.net>
75251
75252         * lib/rename-dest-slash.c (has_trailing_slash): Use
75253         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75254         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75255         test before testing whether SRC is a directory.
75256         Suggestions from Bruno Haible.
75257
75258         Avoid a warning about an unused variable.
75259         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75260         into the #ifdef block where it's used.
75261
75262         * lib/rename-dest-slash.c: New file.
75263
75264 2006-09-14  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/allocsa.c: Include <config.h> unconditionally.
75267         * lib/asnprintf.c: Likewise.
75268         * lib/asprintf.c: Likewise.
75269         * lib/c-strcasecmp.c: Likewise.
75270         * lib/c-strcasestr.c: Likewise.
75271         * lib/c-strncasecmp.c: Likewise.
75272         * lib/c-strstr.c: Likewise.
75273         * lib/classpath.c: Likewise.
75274         * lib/clean-temp.c: Likewise.
75275         * lib/concatpath.c: Likewise.
75276         * lib/copy-file.c: Likewise.
75277         * lib/csharpcomp.c: Likewise.
75278         * lib/csharpexec.c: Likewise.
75279         * lib/execute.c: Likewise.
75280         * lib/fatal-signal.c: Likewise.
75281         * lib/findprog.c: Likewise.
75282         * lib/fwriteerror.c: Likewise.
75283         * lib/gl_array_list.c: Likewise.
75284         * lib/gl_array_oset.c: Likewise.
75285         * lib/gl_avltree_list.c: Likewise.
75286         * lib/gl_avltree_oset.c: Likewise.
75287         * lib/gl_avltreehash_list.c: Likewise.
75288         * lib/gl_carray_list.c: Likewise.
75289         * lib/gl_linked_list.c: Likewise.
75290         * lib/gl_linkedhash_list.c: Likewise.
75291         * lib/gl_list.c: Likewise.
75292         * lib/gl_oset.c: Likewise.
75293         * lib/gl_rbtree_list.c: Likewise.
75294         * lib/gl_rbtree_oset.c: Likewise.
75295         * lib/gl_rbtreehash_list.c: Likewise.
75296         * lib/imaxabs.c: Likewise.
75297         * lib/imaxdiv.c: Likewise.
75298         * lib/javacomp.c: Likewise.
75299         * lib/javaexec.c: Likewise.
75300         * lib/javaversion.c: Likewise.
75301         * lib/linebreak.c: Likewise.
75302         * lib/localcharset.c: Likewise.
75303         * lib/lock.c: Likewise.
75304         * lib/mbchar.c: Likewise.
75305         * lib/mbswidth.c: Likewise.
75306         * lib/mkdtemp.c: Likewise.
75307         * lib/pipe.c: Likewise.
75308         * lib/printf-args.c: Likewise.
75309         * lib/printf-parse.c: Likewise.
75310         * lib/progname.c: Likewise.
75311         * lib/progreloc.c: Likewise.
75312         * lib/readlink.c: Likewise.
75313         * lib/sh-quote.c: Likewise.
75314         * lib/stpcpy.c: Likewise.
75315         * lib/stpncpy.c: Likewise.
75316         * lib/strcasecmp.c: Likewise.
75317         * lib/strcasestr.c: Likewise.
75318         * lib/strcspn.c: Likewise.
75319         * lib/striconv.c: Likewise.
75320         * lib/strncasecmp.c: Likewise.
75321         * lib/strnlen1.c: Likewise.
75322         * lib/strstr.c: Likewise.
75323         * lib/strtok_r.c: Likewise.
75324         * lib/tls.c: Likewise.
75325         * lib/tmpdir.c: Likewise.
75326         * lib/unicodeio.c: Likewise.
75327         * lib/unsetenv.c: Likewise.
75328         * lib/vasnprintf.c: Likewise.
75329         * lib/vasprintf.c: Likewise.
75330         * lib/wait-process.c: Likewise.
75331         * lib/xallocsa.c: Likewise.
75332         * lib/xsetenv.c: Likewise.
75333         * lib/xstriconv.c: Likewise.
75334
75335 2006-09-13  Simon Josefsson  <jas@extundo.com>
75336
75337         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75338         that internally, suggested by Ralf Wildenhues
75339         <Ralf.Wildenhues@gmx.de>.
75340
75341 2006-09-13  Simon Josefsson  <jas@extundo.com>
75342
75343         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75344         @LIBOBJS@.
75345         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75346
75347 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75350         longer worry about uses that don't define HAVE_CONFIG_H.
75351         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75352         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75353         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75354         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75355         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75356         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75357         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75358         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75359         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75360         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75361         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75362         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75363         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75364         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75365         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75366         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75367         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75368         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75369         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75370         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75371         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75372         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75373         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75374         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75375         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75376         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75377         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75378         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75379         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75380         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75381         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75382         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75383         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75384         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75385         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75386         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75387         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75388         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75389         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75390         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75391         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75392         Likewise.
75393
75394 2006-09-13  Eric Blake  <ebb9@byu.net>
75395
75396         * lib/getopt.c: Fix typo in last commit.
75397
75398 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75399
75400         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75401         dgettext.
75402
75403 2006-09-12  Jim Meyering  <jim@meyering.net>
75404
75405         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75406         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75407         Reported by Nelson H. F. Beebe.
75408
75409 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75410
75411         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75412         program_invocation_name and program_invocation_short_name are
75413         initialized.
75414         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75415         and program_invocation_short_name to argp.h, so they are visible
75416         to user programs.
75417         * lib/argp.h: Likewise
75418
75419 2006-09-10  Bruno Haible  <bruno@clisp.org>
75420
75421         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75422         m4/inttypes_h.m4, m4/uintmax_t.m4.
75423
75424 2006-09-10  Bruno Haible  <bruno@clisp.org>
75425
75426         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75427         gl_AC_TYPE_UINTMAX_T.
75428
75429 2006-09-10  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75432
75433 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75434
75435         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75436         convention.  Text proposed by Bruno Haible.
75437         (struct argp_option): Document the use of N_() wrappers.
75438
75439         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75440         '\v', and translate the two parts separately, instead of feeding
75441         the whole string to gettext.  This allows to exclude
75442         '\v' from the strings visible to the translator by writing doc
75443         strings as N_("..") "\v" N_("..").
75444
75445 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         * config/srclist.txt: Undo latest change; the bug was fixed.
75448
75449 2006-09-09  Bruno Haible  <bruno@clisp.org>
75450
75451         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75452         assignments if building a library without libtool.
75453         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75454         in func_emit_lib_Makefile_am.
75455         (func_import): When building a static library libfoo.a, arrange to
75456         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75457         (func_create_testdir): Likewise.
75458         * modules/gc (configure.ac, Makefile.am): If building statically,
75459         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75460         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75461         * modules/striconv (configure.ac, Makefile.am): Likewise.
75462         Based on a suggestion by Ralf Wildenhues.
75463
75464 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75467         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75468         Also:
75469
75470         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75471         Add year_2050_test to catch glibc bug 2821
75472         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75473
75474         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75475         Prefer #ifdef to #if.
75476
75477         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75478         Return from 'main' instead of calling 'exit'.
75479
75480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75481
75482         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75483         returned the maximum time_t value rather than (time_t) -1.
75484         Problem originally reported by William Bardwell
75485         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75486
75487         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75488         Moved to here ...
75489         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75490         ... from here.
75491
75492 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75495         2821 is fixed.
75496
75497 2006-09-08  Jim Meyering  <jim@meyering.net>
75498
75499         Don't make generated files read-only.  That would bother too many
75500         people.  However, do retain the ability to work when targets are
75501         read-only: remove the destination and temporary files before writing
75502         them (when generated via sed or echo), or by using the -f option for
75503         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75504         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75505         * modules/byteswap, modules/configmake, modules/fcntl:
75506         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75507         * modules/localcharset, modules/netinet_in, modules/poll:
75508         * modules/stdbool, modules/stdint, modules/sys_select:
75509         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75510
75511 2006-09-08  Jim Meyering  <jim@meyering.net>
75512
75513         Avoid new build failure on FreeBSD 6.0.
75514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75515         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75516         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75517
75518 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75519
75520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75521
75522 2006-09-07  Jim Meyering  <jim@meyering.net>
75523
75524         Fix global typo in last change: use chmod u-w, not chmod u-x.
75525         Spotted by Paul Eggert and Bruce Korb.
75526         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75527         * modules/byteswap, modules/configmake, modules/fcntl:
75528         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75529         * modules/localcharset, modules/netinet_in, modules/poll:
75530         * modules/stdbool, modules/stdint, modules/sys_select:
75531         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75532
75533 2006-09-06  Jim Meyering  <jim@meyering.net>
75534
75535         Make generated files be read-only.
75536         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75537         Ensure that each generated file is now read-only.
75538         * modules/argz: Likewise.
75539         * modules/arpa_inet: Likewise.
75540         * modules/byteswap: Likewise.
75541         * modules/configmake: Likewise.
75542         * modules/fcntl: Likewise.
75543         * modules/fnmatch: Likewise.
75544         * modules/getopt: Likewise.
75545         * modules/glob: Likewise.
75546         * modules/inttypes: Likewise.
75547         * modules/netinet_in: Likewise.
75548         * modules/poll: Likewise.
75549         * modules/stdbool: Likewise.
75550         * modules/stdint: Likewise.
75551         * modules/sys_select: Likewise.
75552         * modules/sys_socket: Likewise.
75553         * modules/sys_stat: Likewise.
75554         * modules/sysexits: Likewise.
75555         * modules/localcharset: Same as above, but continue using temporary
75556         file named "t-$@" (why different?) rather than the "$@-t" used
75557         everywhere else.
75558
75559         * modules/sysexits (Makefile.am): Replace literal occurrences
75560         of "sysexit.h" more readable, and more consistent, "$@".
75561
75562 2006-09-06  Bruno Haible  <bruno@clisp.org>
75563
75564         * modules/striconv: New file.
75565         * modules/xstriconv: New file.
75566         * MODULES.html.sh (Internationalization functions): Add striconv,
75567         xstriconv.
75568
75569 2006-09-06  Bruno Haible  <bruno@clisp.org>
75570
75571         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75572         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75573         not using libtool correctly.
75574
75575 2006-09-06  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/striconv.h: New file.
75578         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75579         iconvstring.c.
75580         * lib/xstriconv.h: New file.
75581         * lib/xstriconv.c: New file.
75582
75583 2006-09-06  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75586         lib_..._LDFLAGS.
75587
75588 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75589
75590         * lib/argz_.h: Sync from Libtool.
75591
75592         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75593                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75594
75595         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75596
75597 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75598
75599         * modules/trim: New file.
75600
75601 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75602
75603         * lib/trim.h: New file.
75604         * lib/trim.c: New file.
75605
75606 2006-09-05  Bruno Haible  <bruno@clisp.org>
75607
75608         * MODULES.html.sh (String handling): Add trim.
75609
75610 2006-09-04  Karl Berry  <karl@gnu.org>
75611
75612         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75613         until next release.
75614
75615 2006-09-03  Bruno Haible  <bruno@clisp.org>
75616
75617         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75618         correctly.
75619
75620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75623         not gl_GETLOADAVG.  Omit unneeded semicolons.
75624         Problems reported by Ralf Wildenhues in
75625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75626         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75627         at the end, which is the usual gnulib style.
75628
75629         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75630         of doing all the work ourselves.
75631         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75632         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75633
75634 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75637         Problem reported by Ralf Wildenhues in
75638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75639
75640         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75641         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75642
75643 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75646         yesterday's patch by changing test -n to test -z.
75647
75648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75651         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75652         the former is now obsolescent.
75653
75654         * modules/chdir-long (Depends-on): Add fcntl.
75655
75656 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75657
75658         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75659         obsolescent, and programs should use gnulib instead.
75660         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75661         but with prefixes changed.
75662
75663 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75666         or stdbool.h, because they might not exist while configuring.
75667
75668         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75669         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75670         does that for us.
75671         (O_DIRECTORY): Remove.
75672
75673 2006-08-31  Eric Blake  <ebb9@byu.net>
75674
75675         * gnulib-tool: Don't let emacs change spaces to TAB.
75676
75677 2006-08-31  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool: When calling func_import more than once, do it in a
75680         subshell.
75681         Reported by Eric Blake <ebb9@byu.net>.
75682
75683 2006-08-31  Bruno Haible  <bruno@clisp.org>
75684
75685         * gnulib-tool (nl): Remove variable.
75686         (sed_transform_lib_file): Use more robust test for config-h module.
75687         (func_import): Fix typo in 2006-08-25 patch.
75688
75689 2006-08-31  Bruno Haible  <bruno@clisp.org>
75690
75691         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75692         specified, augment Makefile.am variables instead of assigning them.
75693
75694 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         Work around a bug in both the Linux and SunOS 64-bit kernels:
75697         nanosleep mishandles sleeps for longer than 2**31 seconds.
75698         Problem reported by Frank v Waveren in
75699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75701         Check for nanosleep bug.
75702         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75703
75704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         Work around a bug in both the Linux and SunOS 64-bit kernels:
75707         nanosleep mishandles sleeps for longer than 2**31 seconds.
75708         Problem reported by Frank v Waveren in
75709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75710         * lib/nanosleep.c (BILLION): New constant.
75711         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75712         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75713         implementation.
75714
75715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * modules/nanosleep (Depends-on): Add gettime.
75718
75719 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75720         and Simon Josefsson  <jas@extundo.com>
75721         and Oskar Liljeblad  <oskar@osk.mine.nu>
75722
75723         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75724         * gnulib-tool (func_import): New license type 'unmodifiable license
75725         text'.
75726         * modules/fdl: Use it.  Longer description.
75727         * module/gpl, module/lgpl: New files.
75728
75729 2006-08-30  Jim Meyering  <jim@meyering.net>
75730
75731         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75732         shadowing the parameter.
75733
75734 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75735
75736         Sync from Libtool:
75737
75738         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75739
75740         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75741         sharing with gnulib.  Report by Eric Blake.
75742
75743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * modules/isapipe: New file.
75746         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75747
75748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * modules/configmake (Makefile.am): Add a comment, and omit
75751         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75752         by Bruno Haible.
75753
75754 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * m4/isapipe.m4: New file.
75757
75758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * lib/isapipe.c, lib/isapipe.h: New files.
75761
75762 2006-08-29  Jim Meyering  <jim@meyering.net>
75763
75764         * modules/configmake (Makefile.am): Make configmake.h depend on
75765         Makefile.  Otherwise, a stale configmake.h could hang around.
75766
75767 2006-08-29  Eric Blake  <ebb9@byu.net>
75768
75769         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75770         resolution of upstream bug 3044.
75771
75772 2006-08-29  Bruno Haible  <bruno@clisp.org>
75773
75774         * modules/localcharset (Depends-on): Add configmake.
75775         (Makefile.am): Remove setting of LIBDIR through DEFS.
75776
75777 2006-08-29  Bruno Haible  <bruno@clisp.org>
75778
75779         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75780         defined.
75781
75782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * modules/fcntl: New file.
75785         * modules/chdir-safer (Depends-on): Add fcntl.
75786         * modules/fts: Likewise.
75787         * modules/mkdir-p: Likewise.
75788
75789         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75790         This undoes the most recent change, since we're now addressing the
75791         problem in a different way.
75792
75793         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75794         into output, since the output might be called Makefile.am even
75795         if $makefile_name is something different.
75796         (func_import): Use $makefile_am rather than
75797         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75798         empty.
75799
75800         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75801
75802 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75805         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75806         recent change to stdint.m4, since we're now addressing the problem in a
75807         different way.
75808
75809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         * m4/fcntl_h.m4: New file.
75812
75813 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/fcntl_.h: New file.
75816         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75817         the fcntl module.
75818         * lib/dirchownmod.c: Likewise.
75819         * lib/fts.c: Likewise.
75820
75821         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75822         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75823         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75824         just before including <inttypes.h>, to avoid circular inclusion.
75825
75826 2006-08-28  Jim Meyering  <jim@meyering.net>
75827
75828         * doc/visibility.texi: Actually read and correct the grammar of the
75829         sentence affected by yesterday's change.
75830
75831 2006-08-28  Eric Blake  <ebb9@byu.net>
75832
75833         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75834         needs wrapper.
75835
75836 2006-08-28  Eric Blake  <ebb9@byu.net>
75837
75838         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75839
75840 2006-08-28  Eric Blake  <ebb9@byu.net>
75841
75842         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75843
75844 2006-08-28  Bruno Haible  <bruno@clisp.org>
75845
75846         * modules/c-strstr: New file, from GNU gettext.
75847         * MODULES.html.sh (String handling): Add c-strstr.
75848
75849 2006-08-28  Bruno Haible  <bruno@clisp.org>
75850
75851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75852         macros.
75853         Reported by Eric Blake.
75854
75855 2006-08-28  Bruno Haible  <bruno@clisp.org>
75856
75857         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75858         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75859         * lib/vasprintf.c: Include errno.h, limits.h.
75860         (EOVERFLOW): New fallback definition.
75861         (vasprintf): Test here whether the string length is > INT_MAX.
75862         * lib/vsnprintf.c: Include errno.h, limits.h.
75863         (EOVERFLOW): New fallback definition.
75864         (vsnprintf): Fix bug when generated string was too long for the buffer.
75865         Test here whether the string length is > INT_MAX.
75866
75867 2006-08-28  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/inttypes_.h (SCNX*): Remove definitions.
75870         Reported by Eric Blake.
75871
75872 2006-08-28  Bruno Haible  <bruno@clisp.org>
75873
75874         * lib/c-strstr.h: New file, from GNU gettext.
75875         * lib/c-strstr.c: New file, from GNU gettext.
75876
75877 2006-08-28  Bruno Haible  <bruno@clisp.org>
75878
75879         * gnulib-tool: Reorder some statements.
75880
75881 2006-08-28  Bruno Haible  <bruno@clisp.org>
75882
75883         * gnulib-tool: New option --makefile-name.
75884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75885         $makefile_name.
75886         (func_import): Write $makefile_name to the cache file, and read it from
75887         there unless explicitly specified. Use $makefile_name as file name
75888         instead of Makefile.am. Adjust the recommendations accordingly.
75889
75890 2006-08-28  Bruno Haible  <bruno@clisp.org>
75891
75892         * gnulib-tool (func_verify_module): Check against misapplying patch.
75893
75894 2006-08-28  Bruno Haible  <bruno@clisp.org>
75895
75896         * gnulib-tool (func_relativize, func_relconcat): New functions.
75897         Give an error if --local-dir is given with --update.
75898         Remove trailing slashes from $local_gnulib_dir.
75899         (func_import): Store the relativized $local_gnulib_dir in
75900         gnulib-cache.m4, and read it from there if not specified explicitly.
75901
75902 2006-08-28  Bruno Haible  <bruno@clisp.org>
75903
75904         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75905         is the current directory. Respect also $local_gnulib_dir.
75906
75907 2006-08-28  Bruno Haible  <bruno@clisp.org>
75908             Simon Josefsson  <jas@extundo.com>
75909
75910         BeOS portability.
75911         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75912
75913 2006-08-27  Jim Meyering  <jim@meyering.net>
75914
75915         * doc/visibility.texi: Remove duplicate word: "pointer".
75916
75917 2006-08-26  Bruno Haible  <bruno@clisp.org>
75918
75919         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75920         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75921         (Makefile.am): Create inttypes.h from inttypes_.h.
75922         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75923
75924         * modules/imaxabs: New file.
75925
75926         * modules/imaxdiv: New file.
75927
75928 2006-08-26  Bruno Haible  <bruno@clisp.org>
75929
75930         * m4/inttypes.m4: New file.
75931         * m4/_inttypes_h.m4: Remove file.
75932         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75933         PRI_MACROS_BROKEN.
75934         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75935
75936         * m4/imaxabs.m4: New file.
75937
75938         * m4/imaxdiv.m4: New file.
75939
75940 2006-08-26  Bruno Haible  <bruno@clisp.org>
75941
75942         * lib/inttypes_.h: New file.
75943         * lib/inttypes.h: Remove file.
75944         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75945
75946         * lib/imaxabs.c: New file.
75947
75948         * lib/imaxdiv.c: New file.
75949
75950 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75951
75952         New config-h module, so that "make" output needn't be cluttered
75953         by -DHAVE_CONFIG_H.
75954         * MODULES.html.sh (Support for building libraries and executables):
75955         Add config-h.
75956         * modules/config-h: New file.
75957         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75958         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75959         the config-h module is used.
75960
75961         New configmake module, so that "make" output needn't be cluttered
75962         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75963         * MODULES.html.sh (Support for building libraries and executables):
75964         Add configmake.
75965         * modules/configmake: New file.
75966
75967 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * m4/config-h.m4: New file.
75970
75971 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * config/srclist.txt: Add elisp-comp.
75974
75975 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * MODULES.html.sh (Support for building libraries and executables):
75978         Add elisp-comp.
75979         * build-aux/elisp-comp: New file.
75980         * modules/elisp-comp: New file.
75981
75982 2006-08-24  Bruno Haible  <bruno@clisp.org>
75983
75984         * gnulib-tool (func_create_testdir): Use non-default values of
75985         sourcebase and m4base.
75986
75987 2006-08-24  Bruno Haible  <bruno@clisp.org>
75988
75989         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75990         HTML structure.
75991
75992 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * modules/openat (Depends-on): Add lchown.
75995
75996 2006-08-23  Bruno Haible  <bruno@clisp.org>
75997
75998         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75999         of gl_LOCK_EARLY instead of gl_LOCK.
76000
76001 2006-08-23  Bruno Haible  <bruno@clisp.org>
76002
76003         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76004         on OSF/1 to no.
76005         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76006
76007 2006-08-23  Bruno Haible  <bruno@clisp.org>
76008
76009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76010         as unusable.
76011
76012         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76013         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76014         (gl_LOCK): New macro.
76015
76016 2006-08-22  Simon Josefsson  <jas@extundo.com>
76017
76018         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76019         to md5 module.
76020
76021 2006-08-22  Simon Josefsson  <jas@extundo.com>
76022
76023         * MODULES.html.sh: Add "Support for maintaining and release
76024         projects".
76025
76026         * build-aux/gnupload: New file, from coreutils.
76027
76028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         Avoid the need for AC_LIBSOURCES in m4 macros.
76031         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76032         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76033         * modules/check-version (EXTRA_DIST): Add check-version.h.
76034         * modules/crc (EXTRA_DIST): Add crc.h.
76035         * modules/des (EXTRA_DIST): Add des.h.
76036         * modules/gc (EXTRA_DIST): Add gc.h.
76037         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76038         * modules/getline (EXTRA_DIST): Add getline.h.
76039         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76040         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76041         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76042         * modules/md2 (EXTRA_DIST): Add md2.h.
76043         * modules/md4 (EXTRA_DIST): Add md4.h.
76044         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76045         * modules/read-file (EXTRA_DIST): Add read-file.h.
76046         * modules/readline (EXTRA_DIST): Add readline.h.
76047         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76048         rijndael-api-fst.h.
76049
76050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76051
76052         * m4/rijndael.m4 (gl_ARCFOUR):
76053         * m4/arctwo.m4 (gl_ARCTWO):
76054         * m4/check-version.m4 (gl_CHECK_VERSION):
76055         * m4/crc.m4 (gl_CRC):
76056         * m4/des.m4 (gl_DES):
76057         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76058         * m4/gc.m4 (gl_GC):
76059         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76060         * m4/getline.m4 (gl_FUNC_GETLINE):
76061         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76062         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76063         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76064         * m4/md2.m4 (gl_MD2):
76065         * m4/md4.m4 (gl_MD4):
76066         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76067         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76068         * m4/readline.m4 (gl_FUNC_READLINE):
76069         * m4/rijndael.m4 (gl_RIJNDAEL):
76070         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76071         to get the necessary .h files and whatnot.
76072
76073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76076         gnulib rather than the other way around.
76077         * config/srclistvars.sh (COREUTILS): Remove.
76078
76079 2006-08-22  Jim Meyering  <jim@meyering.net>
76080
76081         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76082
76083         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76084
76085 2006-08-22  Eric Blake  <ebb9@byu.net>
76086
76087         * modules/regexprops-generic: New file.
76088         * MODULES.html.sh (Support for building documentation): List it.
76089
76090 2006-08-22  Eric Blake  <ebb9@byu.net>
76091
76092         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76093         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76094         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76095         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76096
76097 2006-08-22  Bruno Haible  <bruno@clisp.org>
76098
76099         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76100         and lib_LTLIBRARIES like the other lib_* variables.
76101
76102 2006-08-22  Bruno Haible  <bruno@clisp.org>
76103
76104         * build-aux/x-to-1.in: New file, from GNU gettext.
76105
76106 2006-08-22  Bruno Haible  <bruno@clisp.org>
76107
76108         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76109         <utmpx.h> exists.
76110
76111 2006-08-22  Bruno Haible  <bruno@clisp.org>
76112
76113         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76114         <utmpx.h> exists.
76115
76116 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         BeOS portability.
76119         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76120         exist.
76121         Problem reported by Bruno Haible.
76122
76123 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         Avoid the need for AC_LIBSOURCES in m4 macros.
76126         * modules/acl (EXTRA_DIST): Add acl.h.
76127         * modules/argmatch (Files): Add m4/argmatch.m4.
76128         (configure.ac): Add gl_ARGMATCH.
76129         (EXTRA_DIST): Renamed from lib_SOURCES, for
76130         consistency with the other modules.  Remove argmatch.c.
76131         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76132         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76133         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76134         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76135         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76136         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76137         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76138         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76139         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76140         * modules/closeout (EXTRA_DIST): Add closeout.h.
76141         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76142         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76143         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76144         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76145         dirname.h; remove basename.c and stripslash.c.
76146         * modules/exclude (EXTRA_DIST): Add exclude.h.
76147         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76148         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76149         * modules/file-type (EXTRA_DIST): Add file-type.h.
76150         * modules/filemode (EXTRA_DIST): Add filemode.h.
76151         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76152         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76153         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76154         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76155         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76156         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76157         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76158         * modules/getdate (EXTRA_DIST): Add getdate.c.
76159         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76160         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76161         * modules/getpass (EXTRA_DIST): Add getpass.h.
76162         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76163         * modules/group-member (EXTRA_DIST): Add group-member.h.
76164         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76165         * modules/hash (EXTRA_DIST): Add hash.h.
76166         * modules/human (EXTRA_DIST): Add human.h.
76167         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76168         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76169         * modules/lchown (EXTRA_DIST): Add lchown.h.
76170         * modules/long-options (EXTRA_DIST): Add long-options.h.
76171         * modules/lstat (EXTRA_DIST): Add lstat.h.
76172         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76173         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76174         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76175         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76176         * modules/memxor (EXTRA_DIST): Add memxor.h.
76177         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76178         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76179         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76180         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76181         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76182         * modules/physmem (EXTRA_DIST): Add physmem.h.
76183         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76184         * modules/posixver (EXTRA_DIST): Add posixver.h.
76185         * modules/quote (EXTRA_DIST): Add quote.h.
76186         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76187         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76188         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76189         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76190         regex_internal.h regexec.c.
76191         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76192         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76193         * modules/same (EXTRA_DIST): Add same.h.
76194         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76195         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76196         * modules/savedir (EXTRA_DIST): Add savedir.h.
76197         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76198         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76199         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76200         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76201         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76202         * modules/strdup (EXTRA_DIST): Add strdup.h.
76203         * modules/strftime (EXTRA_DIST): Add strftime.h.
76204         * modules/strndup (EXTRA_DIST): Add strndup.h.
76205         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76206         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76207         * modules/time_r (EXTRA_DIST): Add time_r.h.
76208         * modules/timespec (EXTRA_DIST): Add timespec.h.
76209         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76210         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76211         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76212         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76213         * modules/userspec (EXTRA_DIST): Add userspec.h.
76214         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76215         * modules/utimens (EXTRA_DIST): Add utimens.h.
76216         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76217         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76218         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76219         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76220         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76221         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76222         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76223         * modules/yesno (EXTRA_DIST): Add yesno.h.
76224
76225 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76228
76229         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76230         * m4/dev-ino.m4, same-inode.m4: Remove.
76231
76232         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76233         * m4/acl.m4 (AC_FUNC_ACL):
76234         * m4/backupfile.m4 (gl_BACKUPFILE):
76235         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76236         * m4/canon-host.m4 (gl_CANON_HOST):
76237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76239         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76240         * m4/cloexec.m4 (gl_CLOEXEC):
76241         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76242         * m4/closeout.m4 (gl_CLOSEOUT):
76243         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76244         * m4/dirname.m4 (gl_DIRNAME):
76245         * m4/exclude.m4 (gl_EXCLUDE):
76246         * m4/exitfail.m4 (gl_EXITFAIL):
76247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76248         * m4/file-type.m4 (gl_FILE_TYPE):
76249         * m4/filemode.m4 (gl_FILEMODE):
76250         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76251         * m4/fpending.m4 (gl_FUNC_FPENDING):
76252         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76253         * m4/fts.m4 (gl_FUNC_FTS):
76254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76255         * m4/getdate.m4 (gl_GETDATE):
76256         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76257         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76258         * m4/getpass.m4 (gl_FUNC_GETPASS):
76259         * m4/gettime.m4 (gl_GETTIME):
76260         * m4/getugroups.m4 (gl_GETUGROUPS):
76261         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76263         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76264         * m4/hash.m4 (gl_HASH):
76265         * m4/idcache.m4 (gl_IDCACHE):
76266         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76267         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76268         * m4/long-options.m4 (gl_LONG_OPTIONS):
76269         * m4/lstat.m4 (gl_FUNC_LSTAT):
76270         * m4/md5.m4 (gl_MD5):
76271         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76272         * m4/memcoll.m4 (gl_MEMCOLL):
76273         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76275         * m4/memxor.m4 (gl_MEMXOR):
76276         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76277         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76278         * m4/modechange.m4 (gl_MODECHANGE):
76279         * m4/mountlist.m4 (gl_MOUNTLIST):
76280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76281         * m4/openat.m4 (gl_FUNC_OPENAT):
76282         * m4/pathmax.m4 (gl_PATHMAX):
76283         * m4/physmem.m4 (gl_PHYSMEM):
76284         * m4/posixtm.m4 (gl_POSIXTM):
76285         * m4/posixver.m4 (gl_POSIXVER):
76286         * m4/quote.m4 (gl_QUOTE):
76287         * m4/quotearg.m4 (gl_QUOTEARG):
76288         * m4/readtokens.m4 (gl_READTOKENS):
76289         * m4/readutmp.m4 (gl_READUTMP):
76290         * m4/regex.m4 (gl_REGEX):
76291         * m4/safe-read.m4 (gl_SAFE_READ):
76292         * m4/safe-write.m4 (gl_SAFE_WRITE):
76293         * m4/same.m4 (gl_SAME):
76294         * m4/save-cwd.m4 (gl_SAVE_CWD):
76295         * m4/savedir.m4 (gl_SAVEDIR):
76296         * m4/settime.m4 (gl_SETTIME):
76297         * m4/sha1.m4 (gl_SHA1):
76298         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76299         * m4/stat-macros.m4 (gl_STAT_MACROS):
76300         * m4/stat-time.m4 (gl_STAT_TIME):
76301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76302         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76303         * m4/strdup.m4 (gl_FUNC_STRDUP):
76304         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76305         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76306         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76307         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76308         * m4/time_r.m4 (gl_TIME_R):
76309         * m4/timespec.m4 (gl_TIMESPEC):
76310         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76311         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76312         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76313         * m4/userspec.m4 (gl_USERSPEC):
76314         * m4/utimecmp.m4 (gl_UTIMECMP):
76315         * m4/utimens.m4 (gl_UTIMENS):
76316         * m4/xalloc.m4 (gl_XALLOC):
76317         * m4/xgetcwd.m4 (gl_XGETCWD):
76318         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76319         * m4/xreadlink.m4 (gl_XREADLINK):
76320         * m4/xstrtod.m4 (gl_XSTRTOD):
76321         * m4/yesno.m4 (gl_YESNO):
76322         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76323         to get the necessary .h files and whatnot.
76324
76325 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76326             Bruno Haible  <bruno@clisp.org>
76327
76328         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76329         /bin/sh understanding of '!' conditional negation.
76330
76331 2006-08-21  Jim Meyering  <jim@meyering.net>
76332
76333         * modules/openat (Depends-on): Really alphabetize.
76334
76335         * modules/acl (Depends-on): Add error and quote.
76336
76337         * check-module (find_included_lib_files): Add at-func.c to the
76338         ok-to-include-more-than-once white list.
76339
76340         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76341
76342 2006-08-21  Bruno Haible  <bruno@clisp.org>
76343
76344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76345         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76346         Reported by Martin Lambers <marlam@marlam.de>.
76347
76348 2006-08-21  Bruno Haible  <bruno@clisp.org>
76349
76350         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76351         specify an installation location, don't emit a noinst_LIBRARIES or
76352         noinst_LTLIBRARIES assignment.
76353
76354 2006-08-21  Bruno Haible  <bruno@clisp.org>
76355
76356         BeOS portability.
76357         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76358         BeOS has mbrtowc() but no <wctype.h>.
76359
76360 2006-08-21  Bruno Haible  <bruno@clisp.org>
76361
76362         BeOS portability.
76363         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76364         exist.
76365
76366 2006-08-21  Bruno Haible  <bruno@clisp.org>
76367
76368         BeOS portability.
76369         * lib/mbchar.h: Include <wctype.h> only if it exists.
76370
76371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         Remove files that are no longer needed by their respective modules.
76374         * m4/obstack.m4: Remove.
76375         * m4/strerror_r.m4: Remove.
76376         * m4/uint32_t.m4: Remove.
76377         * m4/uintptr_t.m4: Remove.
76378         * m4/ullong_max.m4: Remove.
76379         * m4/xstrtoimax.m4: Remove.
76380         * m4/xstrtoumax.m4: Remove.
76381
76382         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76383         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76384         dependencies now capture this.
76385
76386         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76387         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76388         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76389         * m4/human.m4 (gl_HUMAN): Likewise.
76390         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76391         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76392
76393         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76394
76395         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76396         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76397         stdint.
76398         * m4/human.m4 (gl_HUMAN): Likewise.
76399         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76403         * m4/xstrtol (gl_XSTRTOL): Likewise.
76404
76405         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76406         AC_TYPE_LONG_LONG_INT.
76407         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76408         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76409         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76410         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76411
76412         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76413         on stdbool.
76414
76415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76416         (gl_PREREQ_XSTRTOUL): Remove.
76417
76418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76419
76420         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76421         mode.
76422
76423 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         Add and change modules to make it easier for coreutils to use
76426         gnulib-tool.
76427         * modules/backupfile (Files): Remove m4/d-ino.m4.
76428         (Depends-on): Add d-ino.
76429         * modules/cycle-check (Depends-on): Add stdint.
76430         (lib_SOURCES): Add cycle-check.h.
76431         * modules/d-ino: New module.
76432         * modules/d-type: New module.
76433         * modules/error (Files): Remove m4/strerror_r.m4.
76434         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76435         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76436         m4/inttypes_h.m4, m4/uintmax_t.m4.
76437         (Depends-on): Add stdint.
76438         (lib_SOURCES): Add fsusage.h.
76439         * modules/getcwd (Files): Remove d-ino.m4.
76440         (Depends-on): Add d-ino.
76441         * modules/getndelim2 (Depends-on): Add stdint.
76442         * modules/glob (Files): Remove m4/d-type.m4.
76443         (Depends-on): Add d-type.
76444         * modules/host-os: New module.
76445         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76446         m4/inttypes_h.m4, m4/uintmax_t.m4.
76447         * Depends-on: Add stdint.
76448         (lib_SOURCES): Add human.h.
76449         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76450         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76451         m4/uintmax_t.m4, m4/ulonglong.m4.
76452         (Depends-on): Add stdint.
76453         (EXTRA_DIST): Add inttostr.h.
76454         * modules/lchmod: New module.
76455         * modules/link-follow: New module.
76456         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76457         (Depends-on): Add lchmod.
76458         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76459         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76460         (Depends-on): Add stdint.
76461         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76462         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76463         (Depends-on): Add stdint.
76464         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76465         * modules/perl: New module.
76466         * modules/regex (Depends-on): Add stdint.
76467         * modules/rmdir-errno: New module.
76468         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76469         m4/intmax_t.m4.
76470         (Depends-on): Add stdint.
76471         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76472         m4/uintmax_t.m4.
76473         (Depends-on): Add stdint.
76474         * modules/unlink-busy: New module.
76475         * modules/utimecmp (Depends-on): Add stdint.
76476         * modules/uptime: New module.
76477         * modules/winsz-ioctl: New module.
76478         * modules/winsz-termios: New module.
76479         * modules/xnanosleep (Depends-on): Add nanosleep.
76480         * modules/ullong_max: Remove.
76481         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76482         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76483         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76484         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76485         (Depends-on): Add inttypes.
76486         (lib_SOURCES): Add xstrtol.h.
76487         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76488         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76489         * MODULES.html.sh: Move 'assert' into the assert section.
76490         Move 'dummy' into the linking section.
76491         Remove ullong_max.
76492         Add section for compatibility checks for POSIX:2001 functions,
76493         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76494         winsz-ioctl, and winsz-termios into it.
76495         Add lchmod.
76496         Add top-level Misc section and put host-os, perl, and uptime
76497         into it.
76498
76499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76502         now assume the stdint module.  Do not include inttypes.h.
76503         * lib/fsusage.h: Likewise.
76504         * lib/getndelim2.c: Likewise.
76505         * lib/human.h: Likewise.
76506         * lib/inttostr.h: Likewise.
76507         * lib/obstack.c: Likewise.
76508         * lib/regex_internal.h: Likewise.
76509         * lib/tempname.c: Likewise.
76510         * lib/utimecmp.c: Likewise.
76511         * lib/xstrtol.h: Likewise.
76512
76513         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76514
76515         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76516         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76517         * lib/xtime.h: Likewise.
76518
76519 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * modules/openat (Files): Add lib/fchmodat.c.
76522         Fixes problem reported by Jay Youngman.
76523
76524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76527         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76528
76529 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76530             Bruno Haible  <bruno@clisp.org>
76531
76532         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76533         and is a script that invokes bison. Tighten the code. Add comments.
76534
76535 2006-08-18  Jim Meyering  <jim@meyering.net>
76536
76537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76538         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76539         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76540         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76541
76542 2006-08-18  Bruno Haible  <bruno@clisp.org>
76543
76544         * modules/bison-i18n: New file.
76545         * MODULES.html.sh (Internationalization functions): Add it.
76546
76547 2006-08-18  Bruno Haible  <bruno@clisp.org>
76548
76549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76550         sys/statvfs.h. When getmntinfo was found, check its declaration and
76551         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76552
76553 2006-08-18  Bruno Haible  <bruno@clisp.org>
76554
76555         * m4/bison-i18n.m4: New file, from bison.
76556
76557 2006-08-18  Bruno Haible  <bruno@clisp.org>
76558
76559         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76560         (ME_DUMMY): Treat "kernfs" as a dummy.
76561         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76562
76563 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         Update from coreutils.
76566
76567         2006-08-15  Jim Meyering  <jim@meyering.net>
76568
76569         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76570
76571         2006-01-17  Jim Meyering  <jim@meyering.net>
76572
76573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76574
76575         2006-01-11  Jim Meyering  <jim@meyering.net>
76576
76577         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76578         Check for the lchmod function.
76579
76580 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         Update from coreutils.
76583
76584         * lib/__fpending.h: Add copyright notice.
76585         * lib/fprintftime.h: Likewise.
76586         * lib/savedir.c: Use (C) in copyright notice.
76587         * lib/savedir.h: Likewise.
76588
76589         2006-08-15  Jim Meyering  <jim@meyering.net>
76590
76591         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76592         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76593         in support of the EXPECTED_ERRNO macro.
76594         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76595         definitions.  Instead, define the appropriate symbols and include
76596         "at-func.c".
76597         * lib/mkdirat.c (mkdirat): Likewise.
76598         * lib/fchmodat.c (fchmodat): Likewise.
76599         (ENOSYS): Remove definition.
76600         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76601         it.  Don't include "unistd--.h" -- it wasn't ever used.
76602
76603         2006-01-17  Jim Meyering  <jim@meyering.net>
76604
76605         Rewrite fts.c not to change the current working directory,
76606         by using openat, fstatat, fdopendir, etc..
76607
76608         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76609         (HAVE_OPENAT_SUPPORT): Define.
76610         [_LIBC] (fchdir): Don't undef or define; no longer used.
76611         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76612         Now, this `function' always succeeds, and consumes its file descriptor
76613         parameter -- so callers must not close such FDs.  Update callers.
76614         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76615         (diropen): Add parameter, SP.  Adjust all callers.
76616         Implement using diropen_fd, rather than open.
76617         (fts_open): Initialize new member, fts_cwd_fd.
76618         Remove fts_rft-setting code.
76619         (fts_close): Close fts_cwd_fd, if necessary.
76620         (__opendir2): Define in terms of opendir or opendirat,
76621         depending on whether the FST_NOCHDIR flag is set.
76622         (fts_build): Since fts_safe_changedir consumes its FD, and since
76623         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76624         and close the dup'd file descriptor upon failure.
76625         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76626         (fts_safe_changedir): Tweak semantics to reflect that this function
76627         now calls cwd_advance_fd and hence consumes its FD argument.
76628         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76629         [struct FTS] (fts_rft): Remove now-unused member.
76630         [struct FTS] (fts_cycle.state): Improve comment.
76631
76632         * lib/openat.c (openat_needs_fchdir): New function.
76633         * lib/openat.h (openat_needs_fchdir): Declare it.
76634
76635 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76638         Problem and fix reported by Pádraig Brady in
76639         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76640
76641 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76642
76643         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76644
76645 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * lib/memcoll.c (memcoll): Optimize for the common case where the
76648         arguments are bytewise equal.
76649
76650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * doc/regexprops-generic.texi: Add a copyright notice.
76653
76654 2006-08-15  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/tmpdir (License): Change to LGPL.
76657
76658 2006-08-15  Bruno Haible  <bruno@clisp.org>
76659
76660         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76661         module.
76662
76663 2006-08-14  Simon Josefsson  <jas@extundo.com>
76664
76665         * config/srclist.txt: Add gnupload.
76666
76667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76668
76669         Change copyright notice from LGPL 2 to GPL 2, since that's the
76670         standard form used in the gnulib repository.
76671         * tests/test-lock.c: Likewise.
76672         * tests/test-stdint.c: Likewise.
76673         * tests/test-tls.c: Likewise.
76674
76675         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76676         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76677         Add copyright notice.
76678
76679         * check-module: Add copyright notice.  Output a copyright
76680         notice if "--version" is specified.
76681         * modules/COPYING: New file.
76682         * tests/test-getaddrinfo.c: Add copyright notice.
76683         * tests/test-verify.c: Likewise.
76684
76685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         Change copyright notice from LGPL 2 to GPL 2, since that's the
76688         standard form used in the gnulib repository.
76689         * lib/lock.c: LGPL -> GPL.
76690         * lib/lock.h: Likewise.
76691         * lib/strnlen1.c: Likewise.
76692         * lib/strnlen1.h: Likewise.
76693         * lib/tls.c: Likewise.
76694         * lib/tls.h: Likewise.
76695         * lib/tmpdir.c: Likewise.
76696
76697         * lib/TODO: Remove; this belongs only in coreutils.
76698
76699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         Add copyright notices to long-enough files that lack them, since
76702         otherwise the files aren't clearly free.  Use the same notice that
76703         getdate.texi already uses.
76704         * doc/alloca-opt.texi: Add copyright notice.
76705         * doc/alloca.texi: Likewise.
76706         * doc/ctime.texi: Likewise.
76707         * doc/functions.texi: Likewise.
76708         * doc/gcd.texi: Likewise.
76709         * doc/gnulib-tool.texi: Likewise.
76710         * doc/inet_ntoa.texi: Likewise.
76711         * doc/visibility.texi: Likewise.
76712
76713         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76714         * doc/quote.texi: Add copyright notice.
76715
76716         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76717         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76718         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76719         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76720         is now obsolete, and give a pointer to the Sun list.
76721         Add copyright notice.
76722
76723 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         * config/srclistvars.sh: Add copyright notice.
76726
76727 2006-08-14  Eric Blake  <ebb9@byu.net>
76728
76729         Import the following change from libc:
76730
76731         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76732
76733         Upstream bug 2997.
76734         * lib/misc/error.c: Add space between program name and message if file
76735         name is missing.
76736
76737 2006-08-12  Karl Berry  <karl@gnu.org>
76738
76739         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76740         remove, these originate in gnulib now.
76741
76742 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76743
76744         * doc/Makefile (standards.info standards.html standards.dvi):
76745         Also depend on make-stds.texi.
76746
76747 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76750         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76751
76752         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76753         in wchar_t.  Problem reported by Eric Blake.
76754
76755         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76756         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76757         Also, help the compiler to keep LEN in a register.
76758
76759 2006-08-11  Eric Blake  <ebb9@byu.net>
76760
76761         * users.txt: Sort.  Add tar.
76762
76763 2006-08-11  Bruno Haible  <bruno@clisp.org>
76764
76765         * users.txt: New file.
76766
76767 2006-08-11  Bruno Haible  <bruno@clisp.org>
76768
76769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76770         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76771
76772 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * modules/snprintf (Depends-on): Remove minmax.
76775         (Maintainer): Add self and Bruno.
76776
76777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76780         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76781         (EOVERFLOW): Define if the system does not.
76782         Do not include "minmax.h"; it wasn't used.
76783         (snprintf): Don't assume size_t promotes to an unsigned type.
76784         Fix bug when generated string was too long for the buffer: the
76785         buffer's contents are supposed to be the initial prefix of the
76786         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76787         exceeds INT_MAX; do the check ourselves.
76788
76789         Import the following changes from libc:
76790
76791         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76792
76793         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76794         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76795         set wc to the byte which couldn't be converted.
76796         (re_string_reconstruct): Don't clear valid_raw_len before calling
76797         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76798         tip_context using re_string_context_at.
76799
76800         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76801
76802         * lib/posix/regex.h: g++ still cannot handled [restrict].
76803
76804         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76805
76806         * lib/posix/regex.h: Remove special handling for VMS.
76807
76808 2006-08-10  Jim Meyering  <jim@meyering.net>
76809
76810         * modules/same-inode: New module.
76811         * modules/dev-ino: New module.
76812         * modules/cycle-check: Depend on these modules, rather than simply
76813         including their .h files.
76814         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76815         required via m4/cycle-check.m4.
76816         * modules/same: Depend on new same-inode module, rather than
76817         including same-inode.h.
76818         * modules/chdir-safer: New file.
76819
76820         * modules/chown (Depends-on): Add stat-macros.
76821
76822 2006-08-10  Jim Meyering  <jim@meyering.net>
76823
76824         * m4/cycle-check.m4: New file.
76825         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76826         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76827
76828 2006-08-10  Eric Blake  <ebb9@byu.net>
76829
76830         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76831         in from original proposal.
76832
76833 2006-08-10  Eric Blake  <ebb9@byu.net>
76834         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76835
76836         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76837         namespace.
76838
76839 2006-08-10  Bruno Haible  <bruno@clisp.org>
76840
76841         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76842         as well.
76843
76844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         Sync from coreutils.
76847
76848         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76849
76850         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76851         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76852
76853 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * modules/restrict: Remove; no longer needed now that we assume
76856         Autoconf 2.59 or later.
76857         * MODULES.html.sh: Remove 'restrict'.
76858         * modules/argp (Depends-on): Remove 'restrict'.
76859         * modules/base64 (Depends-on): Likewise.
76860         * modules/gc (Depends-on): Likewise.
76861         * modules/getaddrinfo (Depends-on): Likewise.
76862         * modules/glob (Depends-on): Likewise.
76863         * modules/inet_ntop (Depends-on): Likewise.
76864         * modules/inet_pton (Depends-on): Likewise.
76865         * modules/memxor (Depends-on): Likewise.
76866         * modules/regex (Depends-on): Likewise.
76867         * modules/strtok_r (Depends-on): Likewise.
76868         * modules/time_r (Depends-on): Likewise.
76869
76870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76873         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76875         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76876         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76877         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76878         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76879         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76880
76881         Merge from coreutils.
76882         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76883         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76885         * m4/time_r.m4 (gl_TIME_R): Likewise.
76886
76887 2006-08-09  Karl Berry  <karl@gnu.org>
76888
76889         * config/srclist.txt: no more gettext-tools, per Bruno.
76890
76891 2006-08-08  Eric Blake  <ebb9@byu.net>
76892
76893         * modules/verror: New module.
76894         * MODULES.html.sh: Document it.
76895
76896 2006-08-08  Eric Blake  <ebb9@byu.net>
76897
76898         * lib/verror.h, lib/verror.c: New files.
76899
76900 2006-08-08  Eric Blake  <ebb9@byu.net>
76901
76902         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76903         verror_at_line output complies with GNU Coding Standards even when
76904         file is NULL.
76905
76906 2006-08-07  Bruno Haible  <bruno@clisp.org>
76907
76908         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76909         versions of AIX.
76910         Reported by Ralf Wildenhues.
76911
76912 2006-08-07  Bruno Haible  <bruno@clisp.org>
76913
76914         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76915         in an AC_DEFUN. Needed so that the autoconf snippets can use
76916         AC_REQUIRE.
76917
76918 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76919
76920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76921         Initialize pkgdata_DATA.
76922         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76923         overriding it.
76924
76925 2006-08-06  Eric Blake  <ebb9@byu.net>
76926
76927         * lib/error.h: Fold in some upstream changes from glibc.
76928         * lib/error.c: Likewise.
76929
76930 2006-08-04  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76933         Make the mostlyclean-local rule depend on mostlyclean-generic.
76934         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76935
76936 2006-07-31  Bruno Haible  <bruno@clisp.org>
76937
76938         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76939         <stdlib.h>, <string.h>.
76940
76941 2006-07-30  Bruno Haible  <bruno@clisp.org>
76942
76943         * modules/readlink (License): Change to LGPL.
76944
76945 2006-07-30  Bruno Haible  <bruno@clisp.org>
76946
76947         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76948         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76949         set PKGDATADIR to point to it.
76950
76951 2006-07-30  Bruno Haible  <bruno@clisp.org>
76952
76953         * modules/csharpexec (configure.ac): Comment out macro invocation.
76954         * modules/javaexec (configure.ac): Likewise.
76955         * modules/javacomp-script (configure.ac): Likewise.
76956
76957         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76958
76959 2006-07-30  Bruno Haible  <bruno@clisp.org>
76960
76961         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76962         linked-list.
76963
76964 2006-07-30  Bruno Haible  <bruno@clisp.org>
76965
76966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76967
76968 2006-07-30  Bruno Haible  <bruno@clisp.org>
76969
76970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76971         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76972         get removed.
76973
76974 2006-07-29  Bruno Haible  <bruno@clisp.org>
76975
76976         Make it possible for gnulib-tool to work with locally modified or
76977         augmented gnulib repositories.
76978         * gnulib-tool (func_usage): Document --local-dir option.
76979         (local_gnulib_dir): New variable.
76980         Handle --local-dir option.
76981         (func_lookup_file): New function.
76982         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76983         (func_get_description, func_get_filelist, func_get_description,
76984         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76985         func_get_automake_snippet, func_get_include_directive,
76986         func_get_license, func_get_maintainer): Use func_lookup_file.
76987         (func_import, func_create_testdir): Use func_lookup_file.
76988
76989 2006-07-29  Bruno Haible  <bruno@clisp.org>
76990
76991         * modules/setenv (Depends-on): Add unistd.
76992
76993 2006-07-29  Bruno Haible  <bruno@clisp.org>
76994
76995         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76996
76997 2006-07-29  Bruno Haible  <bruno@clisp.org>
76998
76999         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77000
77001 2006-07-29  Bruno Haible  <bruno@clisp.org>
77002
77003         * gnulib-tool (import, update): If there is no Makefile.am, look at
77004         aclocal.m4, instead of bailing out.
77005
77006 2006-07-29  Bruno Haible  <bruno@clisp.org>
77007
77008         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77009         Categorize the options by when they are useful.
77010
77011 2006-07-29  Bruno Haible  <bruno@clisp.org>
77012
77013         * gnulib-tool (func_usage): Document option --no-libtool.
77014         Handle option --no-libtool.
77015         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77016         for changed semantics of $libtool variable.
77017         (func_import): Likewise. If libtool is not used, show this through
77018         an option --no-libtool.
77019         (func_create_testdir): Update.
77020
77021 2006-07-29  Bruno Haible  <bruno@clisp.org>
77022
77023         * gnulib-tool (func_import): Extend error message about missing
77024         --doc-base.
77025
77026 2006-07-29  Bruno Haible  <bruno@clisp.org>
77027
77028         * gnulib-tool (func_import): Don't create the $docbase directory if
77029         there is no file to store there.
77030
77031 2006-07-29  Bruno Haible  <bruno@clisp.org>
77032
77033         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77034         relevant, look for configure.ac there, not in the current directory.
77035         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77036
77037 2006-07-29  Bruno Haible  <bruno@clisp.org>
77038
77039         * gnulib-tool (SORT): New variable.
77040         (func_usage): Undocument --assume-autoconf option.
77041         Remove --assume-autoconf option handling.
77042         (autoconf_minversion): Determine from the contents of configure.ac.
77043         (func_import): Remove autoconf_minversion handling.
77044         Suggested by Eric Blake.
77045
77046 2006-07-29  Bruno Haible  <bruno@clisp.org>
77047
77048         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77049
77050 2006-07-29  Bruno Haible  <bruno@clisp.org>
77051
77052         * config/srclist.txt (*setenv.[ch]): Remove rules.
77053
77054 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77055
77056         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77057
77058 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77059
77060         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77061         arpa/inet.h.
77062
77063 2006-07-28  Simon Josefsson  <jas@extundo.com>
77064
77065         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77066         * modules/inet_pton (Depends-on): Likewise.
77067
77068 2006-07-28  Simon Josefsson  <jas@extundo.com>
77069
77070         * m4/netinet_in_h.m4: New file.
77071
77072 2006-07-28  Simon Josefsson  <jas@extundo.com>
77073
77074         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77075         #include's.
77076
77077 2006-07-28  Simon Josefsson  <jas@extundo.com>
77078
77079         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77080         #include's.
77081
77082 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77083
77084         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77085         setgid on directories only if they set these bits.
77086         * lib/modechange.h: Remove obsolete comment about masks.
77087
77088 2006-07-28  Eric Blake  <ebb9@byu.net>
77089
77090         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77091         macro expansion.
77092
77093 2006-07-28  Bruno Haible  <bruno@clisp.org>
77094
77095         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77096
77097 2006-07-28  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77100
77101 2006-07-28  Bruno Haible  <bruno@clisp.org>
77102
77103         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77105         Define fallbacks.
77106         Avoids link error on FreeBSD 4.x.
77107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77108
77109         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77110         encoding.
77111         * lib/mbswidth.c (iswcntrl): Likewise.
77112
77113 2006-07-27  Bruno Haible  <bruno@clisp.org>
77114
77115         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77116         test.
77117
77118 2006-07-27  Bruno Haible  <bruno@clisp.org>
77119
77120         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77121         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77122         defined.
77123
77124 2006-07-26  Eric Blake  <ebb9@byu.net>
77125
77126         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77127
77128 2006-07-26  Eric Blake  <ebb9@byu.net>
77129
77130         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77131         like mingw that lack mkstemp.
77132         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77133         avoid compilation warning on mingw.
77134
77135 2006-07-26  Bruno Haible  <bruno@clisp.org>
77136
77137         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77138         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77139         INT_FAST*_MIN, INTPTR_MIN.
77140
77141 2006-07-25  Bruno Haible  <bruno@clisp.org>
77142
77143         * modules/version-etc (Depends-on): Add stdarg.
77144
77145 2006-07-25  Bruno Haible  <bruno@clisp.org>
77146
77147         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77148         complex commands.
77149
77150 2006-07-25  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77153         defined in <stdarg.h> or config.h.
77154
77155 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77156
77157         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77158         (gl_STDIO_SAFER): Remove.
77159
77160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77161
77162         * MODULES.html.sh (File stream based Input/Output):
77163         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77164         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77165         * modules/fopen-safer, modules/tmpfile-safer: New files.
77166         * modules/stdio-safer: Remove.
77167
77168 2006-07-24  Bruno Haible  <bruno@clisp.org>
77169
77170         * modules/tmpdir: New file.
77171         * MODULES.html.sh (File system functions): Add it.
77172
77173 2006-07-24  Bruno Haible  <bruno@clisp.org>
77174
77175         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77176         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77177
77178 2006-07-24  Bruno Haible  <bruno@clisp.org>
77179
77180         * modules/clean-temp: New file.
77181
77182 2006-07-24  Bruno Haible  <bruno@clisp.org>
77183
77184         * m4/tmpdir.m4: New file, from GNU gettext.
77185
77186 2006-07-24  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/tmpdir.h: New file, from GNU gettext.
77189         * lib/tmpdir.c: New file, from GNU gettext.
77190
77191 2006-07-24  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/clean-temp.h: New file, from GNU gettext.
77194         * lib/clean-temp.c: New file, from GNU gettext.
77195
77196 2006-07-23  Eric Blake  <ebb9@byu.net>
77197
77198         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77199         (Depends-on): Add binary-io.
77200
77201 2006-07-23  Eric Blake  <ebb9@byu.net>
77202
77203         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77204
77205 2006-07-23  Eric Blake  <ebb9@byu.net>
77206
77207         * lib/tmpfile-safer.c: New file.
77208         * lib/stdio-safer.h (fopen_safer): Add prototype.
77209         * lib/stdio--.h (tmpfile): Make safer.
77210
77211 2006-07-23  Bruno Haible  <bruno@clisp.org>
77212
77213         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77214         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77215         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77216         gl_linked_remove_at): Use it.
77217
77218 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77219         and Simon Josefsson <jas@extundo.com>
77220
77221         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77222
77223         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77224
77225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * modules/close-stream: New file.
77228         * modules/closeout (Description): Make it clear that it exits
77229         with a diagnostic on error.
77230         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77231         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77232
77233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         * m4/close-stream.m4: New file.
77236
77237 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * lib/close-stream.c, lib/close-stream.h: New files.
77240
77241 2006-07-22  Bruno Haible  <bruno@clisp.org>
77242
77243         Merge from GNU gettext 0.15.
77244
77245         2006-05-01  Bruno Haible  <bruno@clisp.org>
77246
77247                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77248
77249         2006-07-22  Bruno Haible  <bruno@clisp.org>
77250
77251                 * modules/javaversion: New file.
77252                 * MODULES.html.sh (Java): Add javaversion.
77253
77254         2006-03-12  Bruno Haible  <bruno@clisp.org>
77255
77256                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77257
77258         2005-12-04  Bruno Haible  <bruno@clisp.org>
77259
77260                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77261                 (untested).
77262
77263         2006-06-21  Bruno Haible  <bruno@clisp.org>
77264
77265                 Avoid warnings from recent versions of mcs.
77266                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77267                 -o, -L, -r any more. Use options documented since mcs-1.0
77268                 instead. Similarly for -g.
77269
77270         2005-12-04  Bruno Haible  <bruno@clisp.org>
77271
77272                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77273                 .resources, not .resource.
77274
77275         2005-07-09  Bruno Haible  <bruno@clisp.org>
77276
77277                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77278                 add a .dll suffix.
77279                 Reported by Mark Junker <mjscod@gmx.de>.
77280
77281         2006-07-22  Bruno Haible  <bruno@clisp.org>
77282
77283                 * modules/gettext: Upgrade to gettext-0.15.
77284                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77285                 m4/visibility.m4.
77286                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77287
77288 2006-07-22  Bruno Haible  <bruno@clisp.org>
77289
77290         Merge from GNU gettext 0.15.
77291
77292         2006-03-25  Bruno Haible  <bruno@clisp.org>
77293
77294                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77295
77296         2006-07-21  Bruno Haible  <bruno@clisp.org>
77297
77298                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77299                 "1.1".
77300
77301         2006-05-09  Bruno Haible  <bruno@clisp.org>
77302
77303                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77304                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77305                 for the conftestver execution.
77306
77307         2006-05-01  Bruno Haible  <bruno@clisp.org>
77308
77309                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77310                 optional target-version argument. Verify that the compiler
77311                 groks source of the specified source-version, or add -source
77312                 option as necessary. Verify that the compiler produces
77313                 bytecode in the specified target-version, or add -target and
77314                 -source options as necessary. Make the result of the test
77315                 available as variable CONF_JAVAC. Also log error output in
77316                 config.log.
77317
77318         2006-03-11  Bruno Haible  <bruno@clisp.org>
77319
77320                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77321
77322         2006-05-09  Bruno Haible  <bruno@clisp.org>
77323
77324                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77325                 CLASSPATH_SEPARATOR to a semicolon.
77326
77327         2006-03-12  Bruno Haible  <bruno@clisp.org>
77328
77329                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77330                 available as variable CONF_JAVA, for subsequent autoconf
77331                 tests. Also log error output in config.log.
77332
77333         2006-07-19  Bruno Haible  <bruno@clisp.org>
77334
77335                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77336                 that getline works on glibc2 systems. Needed to avoid trouble
77337                 in relocatable.c.
77338                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77339
77340         2005-12-04  Bruno Haible  <bruno@clisp.org>
77341
77342                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77343                 launcher (untested).
77344
77345         2005-12-04  Bruno Haible  <bruno@clisp.org>
77346
77347                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77348
77349         2006-07-22  Bruno Haible  <bruno@clisp.org>
77350
77351                 * gettext.m4: Update from GNU gettext-0.15.
77352                 * nls.m4: Likewise.
77353                 * po.m4: Likewise.
77354                 * inttypes-pri.m4: Likewise.
77355                 * inttypes-h.m4: Renamed from inttypes.m4.
77356                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77357
77358 2006-07-22  Bruno Haible  <bruno@clisp.org>
77359
77360         Merge from GNU gettext 0.15.
77361
77362         2005-07-05  Bruno Haible  <bruno@clisp.org>
77363
77364                 * printf-args.c (printf_fetchargs): Work around broken
77365                 definition of wint_t on mingw.
77366
77367         2005-02-12  Bruno Haible  <bruno@clisp.org>
77368
77369                 * xallocsa.h: Add extern "C" for C++.
77370
77371         2006-05-17  Bruno Haible  <bruno@clisp.org>
77372
77373                 Cygwin portability.
77374                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77375
77376         2006-04-30  Bruno Haible  <bruno@clisp.org>
77377
77378                 * progreloc.c: Include <mach-o/dyld.h> if available.
77379                 (find_executable): Use _NSGetExecutablePath when possible.
77380
77381         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77382
77383                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77384                 function.
77385
77386         2005-12-29  Bruno Haible  <bruno@clisp.org>
77387
77388                 * progreloc.c (set_program_name_and_installdir): Fix
77389                 compilation error.
77390
77391         2005-12-04  Bruno Haible  <bruno@clisp.org>
77392
77393                 Cygwin portability.
77394                 * progreloc.c: Include <windows.h> also on Cygwin.
77395                 (find_executable): Add support for Cygwin.
77396                 (set_program_name_and_installdir): Handle also platforms with
77397                 nonempty EXEEXT.
77398
77399         2006-07-11  Bruno Haible  <bruno@clisp.org>
77400
77401                 * javacomp.c: Fix a comment.
77402                 Reported by Jim Meyering.
77403
77404         2006-04-30  Bruno Haible  <bruno@clisp.org>
77405
77406                 * javacomp.h (compile_java_class): Add source_version,
77407                 target_version arguments.
77408                 * javacomp.c: Rewritten to choose only a compiler that
77409                 respects the specified source_version and target_version.
77410
77411         2006-06-27  Bruno Haible  <bruno@clisp.org>
77412
77413                 Assume correct S_ISDIR macro.
77414                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77415
77416         2006-07-22  Bruno Haible  <bruno@clisp.org>
77417
77418                 * javaversion.h: New file, from GNU gettext.
77419                 * javaversion.c: New file, from GNU gettext.
77420                 * javaversion.java: New file, from GNU gettext.
77421                 * javaversion.class: New file, from GNU gettext.
77422
77423         2006-05-17  Bruno Haible  <bruno@clisp.org>
77424
77425                 Cygwin portability.
77426                 * javaexec.c (execute_java_class): Test for jview program
77427                 also on Cygwin.
77428
77429         2006-04-09  Bruno Haible  <bruno@clisp.org>
77430
77431                 * fatal-signal.c: Don't include string.h.
77432                 (at_fatal_signal): Use a copying loop instead of memcpy.
77433
77434         2005-12-04  Bruno Haible  <bruno@clisp.org>
77435
77436                 * csharpexec.c: Add support for 'clix' launcher (untested).
77437                 (execute_csharp_using_sscli): New function.
77438                 (execute_csharp_program): Call it.
77439
77440         2006-06-21  Bruno Haible  <bruno@clisp.org>
77441
77442                 Avoid warnings from recent versions of mcs.
77443                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77444                 -o, -L, -r any more. Use options documented since mcs-1.0
77445                 instead. Similarly for -g.
77446
77447         2005-07-09  Bruno Haible  <bruno@clisp.org>
77448
77449                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77450                 add a .dll suffix.
77451                 Reported by Mark Junker <mjscod@gmx.de>.
77452
77453         2006-06-17  Bruno Haible  <bruno@clisp.org>
77454
77455                 * config.charset: Update for NetBSD 3.0.
77456
77457         2006-05-17  Bruno Haible  <bruno@clisp.org>
77458
77459                 Cygwin portability.
77460                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77461
77462         2006-05-16  Bruno Haible  <bruno@clisp.org>
77463
77464                 * localcharset.c [CYGWIN]: Include <windows.h>.
77465                 (get_charset_aliases): For Cygwin, return the same CPxxx
77466                 aliases list as under WIN32.
77467                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77468                 the environment variables. Fall back to GetACP().
77469
77470         2006-04-05  Bruno Haible  <bruno@clisp.org>
77471
77472                 * config.charset: Update Juan Manuel Guerrero's address.
77473
77474         2005-02-12  Bruno Haible  <bruno@clisp.org>
77475
77476                 * allocsa.h: Add extern "C" for C++.
77477
77478         2005-02-10  Bruno Haible  <bruno@clisp.org>
77479
77480                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77481                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77482
77483         2006-07-22  Bruno Haible  <bruno@clisp.org>
77484
77485                 * gettext.h: Update to GNU gettext-0.15.
77486
77487 2006-07-22  Bruno Haible  <bruno@clisp.org>
77488
77489         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77490         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77491         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77492
77493 2006-07-21  Eric Blake  <ebb9@byu.net>
77494
77495         * modules/stdlib-safer: New file.
77496         * MODULES.html.sh (File stream based Input/Output): Add
77497         stdlib-safer.
77498
77499 2006-07-21  Eric Blake  <ebb9@byu.net>
77500
77501         * lib/stdlib-safer.h: New file from coreutils, required by
77502         stdlib--.h.
77503
77504 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77507
77508 2006-07-20  Bruno Haible  <bruno@clisp.org>
77509
77510         * gnulib-tool: Recognize new option --assume-autoconf.
77511         (autoconf_minversion): New variable.
77512         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77513
77514 2006-07-20  Bruno Haible  <bruno@clisp.org>
77515
77516         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77517
77518 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77519
77520         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77521         Reindent and repaginate.
77522
77523 2006-07-19  Derek Price  <derek@ximbiot.com>
77524
77525         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77526         Correct grammar.
77527
77528 2006-07-17  Bruno Haible  <bruno@clisp.org>
77529
77530         * modules/list: New file.
77531         * modules/array-list: New file.
77532         * modules/carray-list, modules/carray-list-tests: New files.
77533         * modules/linked-list, modules/linked-list-tests: New files.
77534         * modules/avltree-list, modules/avltree-list-tests: New files.
77535         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77536         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77537         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77538         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77539         * modules/oset: New file.
77540         * modules/array-oset: New file.
77541         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77542         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77543         * tests/test-carray_list.c: New file.
77544         * tests/test-linked_list.c: New file.
77545         * tests/test-avltree_list.c: New file.
77546         * tests/test-rbtree_list.c: New file.
77547         * tests/test-linkedhash_list.c: New file.
77548         * tests/test-avltreehash_list.c: New file.
77549         * tests/test-rbtreehash_list.c: New file.
77550         * tests/test-avltree_oset.c: New file.
77551         * tests/test-rbtree_oset.c: New file.
77552         * MODULES.html.sh (Container data structures): New section.
77553
77554 2006-07-17  Bruno Haible  <bruno@clisp.org>
77555
77556         * m4/gl_list.m4: New file.
77557
77558 2006-07-17  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/gl_list.h: New file.
77561         * lib/gl_list.c: New file.
77562         * lib/gl_array_list.h: New file.
77563         * lib/gl_array_list.c: New file.
77564         * lib/gl_carray_list.h: New file.
77565         * lib/gl_carray_list.c: New file.
77566         * lib/gl_linked_list.h: New file.
77567         * lib/gl_linked_list.c: New file.
77568         * lib/gl_anylinked_list1.h: New file.
77569         * lib/gl_anylinked_list2.h: New file.
77570         * lib/gl_avltree_list.h: New file.
77571         * lib/gl_avltree_list.c: New file.
77572         * lib/gl_anyavltree_list1.h: New file.
77573         * lib/gl_anyavltree_list2.h: New file.
77574         * lib/gl_rbtree_list.h: New file.
77575         * lib/gl_rbtree_list.c: New file.
77576         * lib/gl_anyrbtree_list1.h: New file.
77577         * lib/gl_anyrbtree_list2.h: New file.
77578         * lib/gl_anytree_list1.h: New file.
77579         * lib/gl_anytree_list2.h: New file.
77580         * lib/gl_linkedhash_list.h: New file.
77581         * lib/gl_linkedhash_list.c: New file.
77582         * lib/gl_anyhash_list1.h: New file.
77583         * lib/gl_anyhash_list2.h: New file.
77584         * lib/gl_avltreehash_list.h: New file.
77585         * lib/gl_avltreehash_list.c: New file.
77586         * lib/gl_rbtreehash_list.h: New file.
77587         * lib/gl_rbtreehash_list.c: New file.
77588         * lib/gl_anytreehash_list1.h: New file.
77589         * lib/gl_anytreehash_list2.h: New file.
77590
77591         * lib/gl_oset.h: New file.
77592         * lib/gl_oset.c: New file.
77593         * lib/gl_array_oset.h: New file.
77594         * lib/gl_array_oset.c: New file.
77595         * lib/gl_avltree_oset.h: New file.
77596         * lib/gl_avltree_oset.c: New file.
77597         * lib/gl_rbtree_oset.h: New file.
77598         * lib/gl_rbtree_oset.c: New file.
77599         * lib/gl_anytree_oset.h: New file.
77600
77601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         * m4/mkancesdirs.m4: New file.
77604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77605         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77606         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77607         it.
77608
77609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77612         * lib/mkancesdirs.h: New files.
77613         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77614         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77615         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77616         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77617         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77618         callers changed.  Revamp internals significantly, by not
77619         attempting to create directories that are temporarily more
77620         permissive than the final results.  Do not attempt to use
77621         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77622         This removes some race conditions, fixes some bugs, and simplifies
77623         things.  Use new dirchownmod function to do owner and mode changes.
77624         * lib/mkdir-p.h: Likewise.
77625         * lib/modechange.c (octal_to_mode): New function.
77626         (struct mode_change): New member mentioned.
77627         (make_node_op_equals): New arg mentioned.  All callers changed.
77628         (mode_compile): Keep track of which mode bits the user has explicitly
77629         mentioned.
77630         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77631         New arg PMODE_BITS, to keep track of which mode bits the user
77632         mentioned; it treats S_ISUID and S_ISGID speciall.
77633         All callers changed.
77634         * lib/modechange.h: Likewise.
77635
77636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77637
77638         * MODULES.html.sh: Add mkancestors.
77639         * modules/mkancesdirs: New module.
77640         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77641         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77642         The chdir-safer and afs files are now orphans; I'll remove them
77643         unless someone speaks up.
77644         Add lib/dirchownmod.c, lib/dirchownmod.h.
77645         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77646         Add lchown, mkancesdirs.
77647         (Maintainer): Add self.
77648
77649 2006-07-15  Karl Berry  <karl@gnu.org>
77650
77651         * gnulib-tool: help message wording/arrangement.
77652
77653 2006-07-14  Simon Josefsson  <jas@extundo.com>
77654
77655         * doc/gnulib.texi (Libtool and Windows): New section.
77656
77657 2006-07-12  Simon Josefsson  <jas@extundo.com>
77658
77659         * modules/gendocs (License): Fix license, approved by Karl.
77660
77661 2006-07-12  Eric Blake  <ebb9@byu.net>
77662
77663         * MODULES.html.sh: Add gendocs.
77664
77665 2006-07-11  Eric Blake  <ebb9@byu.net>
77666
77667         * modules/fdl: New module, to install doc/fdl.texi.
77668         * MODULES.html.sh: Add new section for documentation modules.
77669         * gnulib-tool: Avoid space-tab.
77670         (--doc-base): New option, to manage files from doc.
77671
77672 2006-07-11  Eric Blake  <ebb9@byu.net>
77673
77674         * m4/absolute-header.m4: Fix comments to match recent change.
77675
77676 2006-07-11  Eric Blake  <ebb9@byu.net>
77677
77678         * gnulib-tool: List --doc-base before --tests-base.
77679
77680 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77681
77682         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77683
77684 2006-07-11  Bruno Haible  <bruno@clisp.org>
77685
77686         * README: Mention where to put documentation.
77687
77688 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77689
77690         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77691
77692 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77695         to stdint.m4.
77696
77697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77700         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77701         "no/such/file/stdint.h" when there is no such file, so that
77702         the resulting C code can be parsed by dodgy compilers.
77703         Problems reported by Bob Proulx.
77704
77705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77706
77707         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77708         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77709         macros into the GNU _D_EXACT_NAMLEN.
77710         * lib/savedir.c:  Likewise.
77711         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77712
77713 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77714         and Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77717         * m4/savedir.m4:
77718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77719         macros into the GNU _D_EXACT_NAMLEN.
77720
77721 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77722
77723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77724         around the absolute name, to work around a problem with the HP-UX
77725         11.23 native C compiler, reported by Bob Proulx.
77726
77727 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77728
77729         * doc/maintain.texi, make-stds.texi: Sync from
77730         <http://savannah.gnu.org/projects/gnustandards>.
77731
77732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77735
77736 2006-07-09  Jim Meyering  <jim@meyering.net>
77737
77738         * m4/glob.m4: Remove a doubled word in a comment.
77739
77740 2006-07-09  Jim Meyering  <jim@meyering.net>
77741
77742         * lib/argp-pv.c: Remove a doubled word in a comment.
77743         * lib/check-version.c (check_version): Likewise.
77744         * lib/javacomp.c (compile_java_class): Likewise.
77745
77746 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77749         for the benefit of people using Autoconf 2.60.  If you want to
77750         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77751         (or m4/onceonly.m4, if pre-2.57) manually.
77752
77753 2006-07-08  Jim Meyering  <jim@meyering.net>
77754
77755         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77756         comment.
77757         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77758         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77759         comment.
77760
77761 2006-07-08  Jim Meyering  <jim@meyering.net>
77762
77763         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77764
77765 2006-07-07  Simon Josefsson  <jas@extundo.com>
77766
77767         * tests/test-crc.c: Change expected crc value, the test vector
77768         were probably computed using the old broken crc.c?
77769
77770 2006-07-06  Simon Josefsson  <jas@extundo.com>
77771
77772         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77773         now the canonical place for the M4 file).
77774
77775         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77776         from the sys_socket dependency now.
77777
77778         * modules/inet_pton (Files): Ditto.
77779
77780         * modules/inet_ntop (Files): Ditto.
77781
77782 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77783
77784         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77785         not gl_PREREQ_GETUSERSHELL.
77786
77787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77788
77789         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77790         with only one argument, for Autoconf 2.60.
77791         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77792         expand to nothing, so add a shell command to avoid syntax error.
77793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77794
77795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77796
77797         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77798
77799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77802         no longer needed.  Check for isblank decl.
77803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77804         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77805         of existence.
77806
77807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/getloadavg.c: Use __VMS, not VMS.
77810         * lib/getopt.c: Likewise.
77811         * lib/getpagesize.h: Likewise.
77812         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77813         and probably does not work.
77814
77815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * lib/.cppi-disable: Add wcwidth.
77818         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77819         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77820         (ISGRAPH): Remove.  All uses changed to isgraph.
77821         (FOLD) [!defined _LIBC]: Remove special case.
77822         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77823         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77824         HAVE_ISBLANK.
77825         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77826         case.
77827
77828 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77829
77830         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77831         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77832         brackets.  Other minor changes to suppress some compiler
77833         warnings.
77834
77835 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77836         and Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77839         of invoking obsolescent AC_HEADER_DIRENT macro.
77840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77841         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77844         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77845         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77846         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77847         * m4/readdir.m4: Remove; no longer needed.
77848
77849 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77850         and Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77853         Don't worry about this obsolete case any more.
77854         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77855         directories.
77856         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77857         worry about this obsolete case any more.
77858         * lib/fts.c: Likewise.
77859         * lib/getcwd.c: Likewise.
77860         * lib/glob.h: Likewise.
77861         * lib/savedir.c: Likewise.
77862
77863 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77866         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77868         needed.
77869         All uses removed.
77870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77872         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77873         needed.
77874         * m4/getdate.m4 (gl_GETDATE): Likewise.
77875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77876         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77879         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77881         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77882         needed.
77883
77884 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         * lib/memcasecmp.c: Include <limits.h>.
77887         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77888         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77889         Don't assume isdigit succeeds only on '0' through '9'.
77890
77891 2006-07-05  Eric Blake  <ebb9@byu.net>
77892
77893         * modules/getaddrinfo (Depends-on): Add snprintf.
77894
77895 2006-07-05  Eric Blake  <ebb9@byu.net>
77896
77897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77898         to avoid 'header present but could not be compiled' on cygwin.
77899
77900 2006-07-05  Eric Blake  <ebb9@byu.net>
77901
77902         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77903         missing from netdb.h.
77904         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77905
77906 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77907
77908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77909         no longer needed.
77910         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77911         * m4/getdate.m4 (gl_GETDATE): Likewise.
77912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77913         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77914         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77915         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77917
77918 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77919
77920         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77921         All uses of is_space replaced by isspace.
77922         * lib/exit.h: Don't talk about STDC_HEADERS.
77923         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77924         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77925         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77926         replaced by isprint etc.
77927         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77928         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77929         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77930         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77931         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77932         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77933
77934 2006-07-05  Bruno Haible  <bruno@clisp.org>
77935
77936         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77937         the function exists, before testing against AIX.
77938         Reported by Martin Lambers <marlam@marlam.de>.
77939
77940 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77943         From Mark D. Baushke.
77944
77945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77948         to the absolute name, not just one, to bypass Sun C 5.8's
77949         "warning: #include of /usr/include/... may be non-portable".
77950
77951 2006-07-04  Eric Blake  <ebb9@byu.net>
77952
77953         * modules/dirname-tests: New test module.
77954         * tests/test-dirname.c: New file, replacing dirname.c
77955         TEST_DIRNAME section that was recently deleted.
77956
77957 2006-07-04  Bruno Haible  <bruno@clisp.org>
77958
77959         Assume ANSI C header files and <ctype.h> functions.
77960         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77961         (mbsnwidth): Use isprint, iscntrl instead.
77962
77963 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77964
77965         Merge from coreutils.
77966         * MODULES.html.sh: Add xstrtold.
77967         * modules/xstrtold: New file.
77968         * modules/cycle-check (Files): Add lib/same-inode.h.
77969         * modules/dirname (Files): Add m4/double-slash-root.m4.
77970         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77971         * modules/mkdir-p (Files): Add lib/same-inode.h.
77972         * modules/same (Files): Add lib/same-inode.h.
77973
77974 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77975
77976         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77977         This is to keep the terminology clean; POSIX talks about
77978         "absolute pathnames", not "full pathnames", but the GNU
77979         Coding Standards say to use "path" for something else;
77980         so use "absolute" to keep both sides happy.
77981         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77982         Set gl_absolute_header, not gl_full_header_path.
77983         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77984         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77985         All uses changed.
77986
77987         Merge from coreutils.
77988
77989         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77992         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77993         want to require the building of c-strtod.o.
77994         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77995         needs -lm directly.
77996         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77997
77998         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78001         --as-needed option if available.  Problem reported by Albert Chin in
78002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78003         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78004         cc merely issues a bunch of annoying warnings for --as-needed
78005         (this problem was reported by Bob Proulx).  Also, try linking with
78006         -lm to detect a bug in binutils 2.16 (this problem was reported
78007         by Ralf Wildenhues).
78008
78009         2006-06-18  Jim Meyering  <jim@meyering.net>
78010
78011         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78012         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78013         macro.
78014         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78015         also check for glibc-2.4's abort-inducing bug.
78016
78017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78018         Low-probability clean-up should be to use rmdir to get rid of
78019         the just-created directory, not unlink.
78020
78021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78022         configure fail, and request a bug report to inform us about it.
78023         Add a comment that, barring reports to the contrary, in 2007 we'll
78024         assume ftruncate is universally available.
78025
78026         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78029
78030         2006-03-12  Jim Meyering  <jim@meyering.net>
78031
78032         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78034         * m4/same.m4 (gl_SAME): Likewise.
78035         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78036
78037         2006-03-11  Eric Blake  <ebb9@byu.net>
78038
78039         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78040         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78041         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78043
78044 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78047         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78048         reported by Mark D. Baushke, one in
78049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78050
78051         Merge from coreutils.
78052
78053         * lib/.cppi-disable: Add stdint_.h.
78054         * lib/.cvsignore: Add stdint.h.
78055
78056         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78059         both double and long double versions.
78060         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78061         * lib/xstrtold.c: New file.
78062         * lib/xstrtod.h (xstrtold): New decl.
78063
78064         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * lib/filemode.c (setst): Remove.
78067         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78068         (arguably) clearer, and the generated code is a bit smaller on my
78069         Debian GNU/Linux stable x86 host.
78070
78071         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78074         Assume that filemode.h includes sys/types.h and sys/stat.h.
78075         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78076         (ftypelet): Reorder to put common cases first, for efficiency.
78077         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78078         to do 'M'.
78079         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78080         of 10, for compatibility with FreeBSD.  All callers changed.
78081         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78082         types that can't be deduced solely from st_mode.  First arg is now a
78083         const pointer.
78084         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78085         (strmode): Renamed from mode_string.
78086         (filemodestring): New decl.
78087         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78088         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78089         needed.
78090         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78091
78092         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78095         fsusage.h now does that.  Include fsusage.h first, to test interface.
78096         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78097         at most one method (the old code could have generated decls that
78098         didn't conform to C89, not that this was ever exercised).
78099         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78100
78101         2006-03-19  Jim Meyering  <jim@meyering.net>
78102
78103         Work even in a chroot where d_ino values for entries in "/"
78104         don't match the stat.st_ino values for the same names.
78105         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78106         number, iterate through all entries again, using lstat instead.
78107         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78108         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78109
78110         * lib/getcwd.c (__getcwd): Clarify a comment.
78111         Use memcpy in place of a call to strcpy.
78112
78113         2006-03-12  Jim Meyering  <jim@meyering.net>
78114
78115         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78116         matches that of the current directory (which we're about to chdir ".."
78117         out of), then save the dev-ino of the parent, instead.
78118
78119         * lib/same-inode.h (SAME_INODE): New file/macro.
78120         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78121         Include "same-inode.h", instead.
78122         * lib/same.c: Likewise.
78123         * lib/cycle-check.h: Include "same-inode.h".
78124         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78125         * lib/cycle-check.c (SAME_INODE): Remove definition.
78126         * lib/root-dev-ino.h: Include "same-inode.h".
78127
78128         2006-03-11  Eric Blake  <ebb9@byu.net>
78129
78130         * lib/same.c (same_name): s/base_name/last_component/
78131         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78132         * lib/filenamecat.c (file_name_concat): Likewise.
78133
78134         2006-03-11  Eric Blake  <ebb9@byu.net>,
78135                     Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78138         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78139         drive prefix.
78140         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78141         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78142         (last_component): New method.
78143         * lib/dirname.c (dir_len): Determine when drive letters need a
78144         subsequent slash.  Preserve // when it is special.
78145         (dir_name): Don't append dot when drive letter is absolute.
78146         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78147         * lib/basename.c (base_name): New semantics - malloc the result.
78148         Preserve // when it is special.  Preserve relative files that look
78149         like drive letters.
78150         (base_len): Preserve // when it is special.
78151         (last_component): New method, similar to old base_name semantics.
78152         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78153         base_name.  Strip redundant slashes from ///.
78154
78155 2006-07-03  Jim Meyering  <jim@meyering.net>
78156
78157         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78158         macro is used before the first cycle_check call.
78159
78160 2006-07-03  Eric Blake  <ebb9@byu.net>
78161
78162         * modules/dirname (Depends-on): Add xstrndup.
78163
78164 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78167         test cases, so that config.log is a bit easier to follow.
78168
78169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78172         both are 64 bits, since this seems to be the tradition, and this
78173         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78174         we ever run into a host that prefers long long to long in this
78175         case, we'll need another configure-time test.  Problem reported by
78176         Jim Meyering.
78177
78178 2006-07-02  Eric Blake  <ebb9@byu.net>
78179
78180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78181
78182 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * modules/inttypes (Depends-on): No longer depends on stdint.
78185         * modules/stdint (Description): Say more about assumptions.
78186         Say that the fast types might differ.  Say macros are used.
78187         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78188         (Makefile.am): Revise list of substituted symbols to match
78189         new stdint.m4.
78190         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78191         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78192         * tests/test-stdint.c (verify_same_types)
78193         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78194         the code conforms to C99/C89.
78195         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78196         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78197
78198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78201         but fix a bug, by requiring at least 64 bits.
78202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78203         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78204         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78205         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78206
78207         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78208         changes.  Make 2.59 a prerequisite.  Check and substitute for
78209         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78210         inttypes.h.  Do not use special include files; just use the
78211         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78212         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78213         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78214         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78215         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78216         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78217         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78218         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78219         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78220         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78221         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78222         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78223         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78224         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78225         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78226         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78227         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78228         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78229         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78230         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78231         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78232         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78233         not check for things that C99 does not require, e.g., int8_t.  If
78234         a test isn't needed unless <stdint.h> isn't working, and is
78235         unlikely to be needed for any other reason, then don't do it
78236         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78237         size_t, since we assume C89 freestanding at least.  Do not check
78238         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78239         the right thing even if the types are not defined.  Instead use:
78240         (gl_STDINT_TYPE_PROPERTIES): New macro.
78241         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78242         testing whether <sys/types.h> clashes, as Autoconf does this for
78243         us now.  All uses removed.
78244         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78245         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78246         (gl_CHECK_TYPE_SAME):
78247         Remove; no longer needed.
78248         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78249         exists, since we'll return 0 anyway in that case.
78250         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78251
78252 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78255         possible collision with system files.
78256         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78257         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78258         WCHAR_MIN and WCHAR_MAX in this case.
78259         (<stddef.h>): Do not include; no longer needed.
78260         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78261         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78262         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78263         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78264         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78265         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78266         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78267         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78268         !defined(__c99))]: Include in this case too, since it's harmless
78269         now.
78270         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78271         dangerous to do so.
78272         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78273         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78274         (_STDINT_MIN, _STDINT_MAX): New macros.
78275         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78276         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78277         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78278         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78279         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78280         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78281         macros, not typedefs; this simplifies things quite a bit.
78282         Use long int for all types narrower than int64_t.
78283         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78284         Define in terms of long long int or int64_t or long int,
78285         not int64_t or int32_t.  This saves some compile-time testing.
78286         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78287         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78288         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78289         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78290         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78291         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78292         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78293         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78294         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78295         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78296         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78297         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78298         undef any previous version and define our own version, for
78299         simplicity and consistency with the new macros for types.
78300         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78301         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78302         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78303         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78304         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78305         @WINT_T_SUFFIX@ to keep things simple here.
78306         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78307         Simplify by assuming typical 8/16/32/64 host, since we're
78308         already doing that elsewhere anyway.
78309         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78310         and assume long long int is 64 bits if available.  This
78311         speeds up 'configure'.
78312
78313 2006-07-01  Eric Blake  <ebb9@byu.net>
78314
78315         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78316         Reported by Andreas Buening.
78317
78318 2006-07-01  Eric Blake  <ebb9@byu.net>
78319
78320         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78321
78322 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78323
78324         * lib/getaddrinfo.c: fixed typo
78325
78326 2006-06-29  Jim Meyering  <jim@meyering.net>
78327
78328         * modules/strftime (Maintainer): Add my name, since with the
78329         FPRINTFTIME changes strftime.c has forked from glibc.
78330
78331 2006-06-29  Eric Blake  <ebb9@byu.net>
78332
78333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78334
78335 2006-06-29  Eric Blake  <ebb9@byu.net>
78336
78337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78338
78339 2006-06-29  Eric Blake  <ebb9@byu.net>
78340
78341         * lib/stat_.h: New file.
78342
78343 2006-06-29  Eric Blake  <ebb9@byu.net>
78344
78345         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78346         unused static function.
78347
78348 2006-06-29  Eric Blake  <ebb9@byu.net>
78349
78350         * doc/functions.texi (Function Portability): Document missing lstat
78351         on mingw.
78352
78353 2006-06-29  Eric Blake  <ebb9@byu.net>
78354
78355         * MODULES.html.sh: Add sys_stat.
78356         * modules/sys_stat: New module.
78357         * modules/mkstemp (Depends-on): Add sys_stat.
78358
78359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78360
78361         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78362
78363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78364
78365         * m4/c-bs-a.m4: Removed.
78366
78367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78368
78369         * lib/strftime.c: Assume strftime() exists.
78370
78371 2006-06-29  Derek Price  <derek@ximbiot.com>
78372
78373         * modules/c-bs-a: Removed - \a is C89.
78374         * MODULES.html.sh: Remove c-bs-a.
78375
78376 2006-06-29  Bruno Haible  <bruno@clisp.org>
78377
78378         * modules/wcwidth (License): Change to LGPL.
78379
78380 2006-06-28  Simon Josefsson  <jas@extundo.com>
78381
78382         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78383         on _WIN32.
78384
78385         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78386         getnameinfo.
78387
78388 2006-06-28  Simon Josefsson  <jas@extundo.com>
78389
78390         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78391
78392 2006-06-28  Simon Josefsson  <jas@extundo.com>
78393
78394         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78395         functions there.  It will succeed on Windows XP, but on Windows
78396         2000 and (presumably) earlier, it will fail, and use the internal
78397         re-implementation.
78398         (use_win32_p): New function.
78399         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78400         Support AI_NUMERICSERV to disable getservbyname.
78401         (getnameinfo): New function, only supports
78402         NI_NUMERICHOST|NI_NUMERICSERV for now.
78403
78404         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78405         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78406         getnameinfo.
78407
78408 2006-06-28  Eric Blake  <ebb9@byu.net>
78409
78410         * modules/wcwidth: New file.
78411         * modules/mbchar (Depends-on): Add wcwidth.
78412         * modules/mbswidth (Depends-on): Add wcwidth.
78413         * MODULES.html.sh: Add wcwidth.
78414
78415 2006-06-28  Eric Blake  <ebb9@byu.net>
78416
78417         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78419
78420 2006-06-28  Eric Blake  <ebb9@byu.net>
78421
78422         * lib/xvasprintf.h: Fix comments.
78423
78424 2006-06-28  Eric Blake  <ebb9@byu.net>
78425
78426         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78427         * lib/mbswidth.c (wcwidth): Move from here...
78428         * lib/wcwidth.h: ...to this new file.
78429
78430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78431
78432         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78433
78434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78435         it's obsolete.
78436         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78437
78438 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78439
78440         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78441         Autoconf 2.60 says this stuff was obsolete.
78442
78443 2006-06-28  Bruno Haible  <bruno@clisp.org>
78444
78445         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78446
78447 2006-06-28  Bruno Haible  <bruno@clisp.org>
78448
78449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78450         gt_TYPE_WCHAR_T.
78451
78452 2006-06-28  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78455         declaration for wcwidth.
78456         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78457
78458 2006-06-28  Bruno Haible  <bruno@clisp.org>
78459
78460         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78461         (mkdir): Define using _mkdir.
78462
78463 2006-06-28  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/getaddrinfo.h: Fix POSIX URL.
78466         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78467         _WIN32.
78468         (use_win32_p): Make static.
78469         (getaddrinfo): Reject service name if it is empty or does not consist
78470         solely of decimal digits, or if its value is > 65535.
78471         (getnameinfo): Remove useless casts.
78472
78473 2006-06-27  Simon Josefsson  <jas@extundo.com>
78474
78475         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78476         Eggert and Martin Lambers.
78477
78478 2006-06-27  Simon Josefsson  <jas@extundo.com>
78479
78480         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78481         Eggert and Martin Lambers.
78482
78483 2006-06-27  Bruno Haible  <bruno@clisp.org>
78484
78485         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78486         result to 0, not to empty.
78487         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78488
78489 2006-06-27  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78492
78493 2006-06-26  Simon Josefsson  <jas@extundo.com>
78494
78495         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78496         present.
78497
78498 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78501         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78503
78504 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78505
78506         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78507
78508 2006-06-26  Bruno Haible  <bruno@clisp.org>
78509
78510         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78511
78512 2006-06-26  Bruno Haible  <bruno@clisp.org>
78513
78514         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78515
78516 2006-06-26  Bruno Haible  <bruno@clisp.org>
78517
78518         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78519         SGI C compiler in pre-C99 mode.
78520         Suggested by Mark D. Baushke and Larry Jones.
78521
78522 2006-06-26  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78525         WCHAR_MAX.
78526         Reported by Mark D. Baushke and Larry Jones.
78527
78528 2006-06-26  Bruno Haible  <bruno@clisp.org>
78529
78530         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78531         in pre-C99 mode.
78532         Suggested by Mark D. Baushke and Larry Jones.
78533
78534 2006-06-23  Simon Josefsson  <jas@extundo.com>
78535             Bruno Haible  <bruno@clisp.org>
78536
78537         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78538         Emit mostlyclean-local rule.
78539         (func_emit_tests_Makefile_am): Likewise.
78540         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78541
78542 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78543
78544         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78545
78546 2006-06-23  Bruno Haible  <bruno@clisp.org>
78547
78548         * tests/test-stdint.c: Update to match ISO C 99 Technical
78549         Corrigendum 1.
78550
78551 2006-06-23  Bruno Haible  <bruno@clisp.org>
78552
78553         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78554
78555 2006-06-23  Bruno Haible  <bruno@clisp.org>
78556
78557         * lib/stdint_.h: Treat IRIX like OpenBSD.
78558
78559 2006-06-23  Bruno Haible  <bruno@clisp.org>
78560
78561         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78562         ISO C 99 Technical Corrigendum 1.
78563
78564 2006-06-22  Simon Josefsson  <jas@extundo.com>
78565
78566         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78567         MinGW.
78568
78569 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78572         needed.  Some compiler complained about some of them.  Problem reported
78573         by Larry Jones in
78574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78575
78576 2006-06-21  Simon Josefsson  <jas@extundo.com>
78577
78578         * tests/test-getaddrinfo.c: New file.
78579
78580         * modules/getaddrinfo-tests: New file.
78581
78582         * MODULES.html.sh: Add inet_pton.
78583
78584         * modules/inet_pton: New file.
78585
78586 2006-06-21  Simon Josefsson  <jas@extundo.com>
78587
78588         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78589         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78590         of using the (limited) gnulib implementation on Windows XP.
78591
78592         * m4/inet_pton.m4: New file.
78593
78594 2006-06-21  Simon Josefsson  <jas@extundo.com>
78595
78596         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78597         variable.
78598
78599         * lib/socket_.h: Don't define WINVER.
78600
78601         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78602         slightly modified to work in gnulib.
78603
78604 2006-06-21  Simon Josefsson  <jas@extundo.com>
78605
78606         * doc/gnulib.texi (Windows sockets): Add.
78607
78608 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78609
78610         * lib/read-file.c (fread_file): Start with buffer allocation of
78611         0 bytes rather than 1 byte; this simplifies the code.
78612         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78613         code to free buffer and save/restore errno.
78614         (internal_read_file): Remove unused local.
78615
78616 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78619         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78620         Problem reported by Denis Excoffier in
78621         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78622
78623 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78624
78625         * modules/sys_socket, modules/socklen: Include sys/types since
78626         FreeBSD 4.x's sys/socket.h needs it.
78627
78628 2006-06-19  Simon Josefsson  <jas@extundo.com>
78629
78630         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78631
78632 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78635
78636 2006-06-19  Bruno Haible  <bruno@clisp.org>
78637
78638         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78639         and FULL_PATH_INTTYPES_H in angle brackets.
78640         Reported by Mark D. Baushke <mdb@gnu.org>.
78641
78642 2006-06-17  Eric Blake  <ebb9@byu.net>
78643
78644         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78645         errno.
78646
78647 2006-06-17  Bruno Haible  <bruno@clisp.org>
78648
78649         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78650         <sys/inttypes.h>.
78651
78652 2006-06-17  Bruno Haible  <bruno@clisp.org>
78653
78654         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78655         whether errno is declared. Assume <errno.h> declares errno.
78656
78657 2006-06-17  Bruno Haible  <bruno@clisp.org>
78658
78659         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78660
78661 2006-06-17  Bruno Haible  <bruno@clisp.org>
78662
78663         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78664         problem on Solaris 2.5.1.
78665
78666 2006-06-16  Eric Blake  <ebb9@byu.net>
78667
78668         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78669         * lib/unicodeio.c [!defined errno]: Likewise.
78670         * lib/strtol.c [!defined errno]: Likewise.
78671         * lib/strtod.c [!defined errno]: Likewise.
78672
78673 2006-06-15  Eric Blake  <ebb9@byu.net>
78674
78675         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78676
78677 2006-06-15  Eric Blake  <ebb9@byu.net>
78678
78679         * config/srclist.txt (ssize_t.m4): Lose sync.
78680
78681 2006-06-15  Bruno Haible  <bruno@clisp.org>
78682
78683         * modules/stdint (Files): Include m4/full-header-path.m4,
78684         m4/size_max.m4, m4/wchar_t.m4.
78685         (Makefile.am): Many more substitutions.
78686         * modules/stdint-tests: New file.
78687         * tests/test-stdint.c: New file.
78688
78689 2006-06-15  Bruno Haible  <bruno@clisp.org>
78690
78691         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78692         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78693         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78694         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78695         gl_CHECK_TYPE_SAME): New macros.
78696
78697 2006-06-15  Bruno Haible  <bruno@clisp.org>
78698
78699         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78700
78701 2006-06-15  Bruno Haible  <bruno@clisp.org>
78702
78703         * lib/stdint_.h: Rewritten to be fully auto-configured.
78704         Fixes bug on HP-UX/IA64.
78705
78706 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * lib/getdate.y (__attribute__): Don't define if already defined.
78709         Problem reported by Larry Jones.
78710         * lib/utimens.c (__attribute__): Likewise.
78711
78712 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78715         reported by Andreas Schwab.
78716
78717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78718             Bruno Haible  <bruno@clisp.org>
78719
78720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78721         check for the declaration of strnlen and a run test that exposes the
78722         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78723         rpl_strndup.
78724
78725 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78726             Bruno Haible  <bruno@clisp.org>
78727
78728         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78729
78730 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78731
78732         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78733         compile test, for Tru64 4.0D.
78734
78735 2006-05-28  Karl Berry  <karl@gnu.org>
78736
78737         * config/srclist.txt (printf-args.c): lose sync.
78738
78739 2006-05-26  Martin Lambers  <marlam@marlam.de>
78740
78741         * lib/getpass.c: Updates the test for the native W32 API, and adds
78742         missing includes, thus fixing compilation warnings.
78743
78744 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78745
78746         * lib/exclude.c (exclude_fnmatch): New function.
78747         (excluded_file_name): Call exclude_fnmatch.
78748         * lib/exclude.h (excluded_file_name): New prototype
78749
78750 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * lib/tempname.c (small_open, large_open): New macros.
78753         (__open, __open64) [!_LIBC]: Remove.
78754         (__gen_tempname): Use small_open and large_open instead of __open
78755         and __open64.  This fixes a portability bug on HP-UX 11.11i
78756         reported by Simon Wing-Tang in
78757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78758
78759 2006-05-24  Bruno Haible  <bruno@clisp.org>
78760
78761         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78762         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78763         Reported by Thorsten Maerz <torte@netztorte.de> via
78764         Aaron Stone <aaron@serendipity.cx>.
78765
78766 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78769         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78770         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78771         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78772         not really conditional on the cache.
78773         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78774
78775 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78778         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78779         (my_usleep): Don't mishandle maximum value.
78780
78781 2006-05-19  Jim Meyering  <jim@meyering.net>
78782
78783         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78784
78785 2006-05-17  Bruno Haible  <bruno@clisp.org>
78786
78787         Cygwin portability.
78788         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78789
78790 2006-05-17  Bruno Haible  <bruno@clisp.org>
78791
78792         * lib/stdint_.h: Fix recognition of Cygwin.
78793
78794 2006-05-15  Bruno Haible  <bruno@clisp.org>
78795
78796         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78797         on libtool patch by Ralf Wildenhues.
78798
78799 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78802         test for C99 conformance; (bool) 0.5 is an integer constant
78803         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78804         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78805
78806 2006-05-11  Simon Josefsson  <jas@extundo.com>
78807
78808         * m4/xvasprintf.m4: Fix obvious typo.
78809
78810 2006-05-11  Jim Meyering  <jim@meyering.net>
78811
78812         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78813         James Lemley.
78814
78815 2006-05-10  Simon Josefsson  <jas@extundo.com>
78816
78817         * lib/md4.c: Typo fix, update copyright years.
78818         (K1, K2): Don't use L because it turn computations into 64-bit on
78819         64-bit platforms.
78820
78821 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78824         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78825         unwanted sign propagation, e.g., on hosts with 64-bit int.
78826         There still are some problems with reeelly weird theoretical hosts
78827         (e.g., 33-bit int) but it's not worth worrying about now.
78828         * lib/sha1.c (rol): Likewise.
78829         (K1, K2, K3, K4): Remove unnecessary L suffix.
78830
78831 2006-05-10  Bruno Haible  <bruno@clisp.org>
78832
78833         * lib/des.c: Cast to avoid warnings.
78834
78835 2006-05-09  Bruno Haible  <bruno@clisp.org>
78836
78837         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78838         (Depends-on): Depend also on xsize, stdarg.
78839         (configure.ac): Add gl_XVASPRINTF.
78840
78841 2006-05-09  Bruno Haible  <bruno@clisp.org>
78842
78843         * m4/xvasprintf.m4: New file.
78844
78845 2006-05-09  Bruno Haible  <bruno@clisp.org>
78846
78847         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78848         (EOVERFLOW): Define fallback value.
78849         (xstrcat): New function.
78850         (xvasprintf): Recognize the special case of a string concatenation.
78851
78852 2006-05-08  Eric Blake  <ebb9@byu.net>
78853
78854         * gnulib-tool (func_version): Base copyright year on CVS date.
78855         (func_emit_copyright_notice): New function.
78856         (func_emit_lib_Makefile_am): Use it.
78857         (func_emit_tests_Makefile_am): Likewise.
78858         (func_import): Likewise.
78859
78860 2006-05-08  Bruno Haible  <bruno@clisp.org>
78861
78862         * modules/stdarg: New file.
78863         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78864
78865 2006-05-08  Bruno Haible  <bruno@clisp.org>
78866
78867         * m4/stdarg.m4: New file, from GNU gettext.
78868
78869 2006-05-08  Bruno Haible  <bruno@clisp.org>
78870
78871         * config/srclist.txt (build-aux/config.rpath): different from latest
78872         release.
78873
78874 2006-05-08  Bruno Haible  <bruno@clisp.org>
78875
78876         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78877
78878 2006-05-05  Jim Meyering  <jim@meyering.net>
78879
78880         * m4/warning.m4: New file, derived from bison's file by the same name.
78881
78882 2006-05-03  Bruno Haible  <bruno@clisp.org>
78883
78884         * lib/stdint_.h: Shorter URL.
78885         * lib/inttypes.h: Likewise.
78886
78887 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78890
78891 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * lib/verify.h: Document the internals better.  Most of this change
78894         was written by Bruno Haible.
78895
78896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * doc/verify.texi: New file, partly based on a proposal by
78899         Bruno Haible.
78900
78901 2006-05-02  Bruno Haible  <bruno@clisp.org>
78902
78903         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78904         test from here...
78905         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78906
78907 2006-04-29  Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78910         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78911
78912 2006-04-29  Bruno Haible  <bruno@clisp.org>
78913
78914         * gnulib-tool: Make --update option actually work.
78915
78916 2006-04-29  Bruno Haible  <bruno@clisp.org>
78917
78918         * doc/gcd.texi: New file.
78919         * doc/gnulib.texi: Include it.
78920
78921 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78922
78923         * lib/getdate.y (get_date): When adding relative date, start with the
78924         initial time, not with the result of the first mktime call.
78925
78926 2006-04-25  Bruno Haible  <bruno@clisp.org>
78927
78928         * gnulib-tool (func_import): Output the include directives in three
78929         blocks, sorted separately.
78930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78931
78932 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78935         to define main with arguments, for C++.  Reported by Eric Blake.
78936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78937         Prefer 'int main ()' to 'int main (void)', for C++.
78938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78940         for 'main', for C99 and C++.
78941
78942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78945         Don't assume that exit status -1 is valid.
78946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78949         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78950         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78951         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78952         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78953         functions can be used without declaring them, or that you can
78954         exit with status -1.
78955         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78956
78957 2006-04-24  Karl Berry  <karl@gnu.org>
78958
78959         * config/srclist.txt (longdouble.m4): sync lost.
78960
78961 2006-04-24  Eric Blake  <ebb9@byu.net>
78962
78963         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78964
78965 2006-04-24  Bruno Haible  <bruno@clisp.org>
78966
78967         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78968         poll() implementation in AIX.
78969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78970
78971 2006-04-24  Bruno Haible  <bruno@clisp.org>
78972
78973         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78974         assigned exactly once.
78975
78976 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78977             Bruno Haible  <bruno@clisp.org>
78978
78979         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78980         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78981         for AM_CPPFLAGS.
78982
78983 2006-04-23  Bruno Haible  <bruno@clisp.org>
78984
78985         * modules/copy-file: Depend on unistd.
78986         * modules/execute: Likewise.
78987         * modules/fatal-signal: Likewise.
78988         * modules/findprog: Likewise.
78989         * modules/mkdtemp : Likewise.
78990         * modules/pipe: Likewise.
78991         * modules/wait-process: Likewise.
78992
78993 2006-04-23  Bruno Haible  <bruno@clisp.org>
78994
78995         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78996         condition was already detected.
78997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78998
78999 2006-04-23  Bruno Haible  <bruno@clisp.org>
79000
79001         * lib/copy-file.c: Include <unistd.h> unconditionally.
79002         * lib/execute.c: Likewise.
79003         * lib/fatal-signal.c: Likewise.
79004         * lib/findprog.c: Likewise.
79005         * lib/mkdtemp.c: Likewise.
79006         * lib/pipe.h: Likewise.
79007         * lib/pipe.c: Likewise.
79008         * lib/wait-process.h: Likewise.
79009
79010 2006-04-23  Bruno Haible  <bruno@clisp.org>
79011
79012         * gnulib-tool (func_usage): Fix --import description. Document
79013         --update.
79014         (func_import): Create temporary file in a temporary directory, if
79015         --dry-run is specified. Silence errors from 'grep' when there are no
79016         m4 files in $m4dir.
79017         (func_create_testdir): Silence errors from 'grep' when there are no
79018         m4 files in $m4dir.
79019         Reported by Karl Berry <karl@freefriends.org>.
79020
79021 2006-04-20  Bruno Haible  <bruno@clisp.org>
79022
79023         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79024         one argument, so that the code will be portable to Autoconf 2.60.
79025         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79027         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79028
79029 2006-04-19  Derek Price  <derek@ximbiot.com>
79030             Eric Blake  <ebb9@byu.net>
79031
79032         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79033         rather than "/full/path.h".  Update comment to match.  Shorten &
79034         generalize m4_translit call via AS_TR_CPP.
79035
79036 2006-04-19  Derek Price  <derek@ximbiot.com>
79037             Eric Blake  <ebb9@byu.net>
79038
79039         * lib/inttypes.h: Correct grammar in comment.
79040
79041 2006-04-18  Derek Price  <derek@ximbiot.com>
79042             Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * modules/inttypes: New file.
79045         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79046
79047 2006-04-18  Derek Price  <derek@ximbiot.com>
79048             Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79051         New files.
79052
79053 2006-04-18  Derek Price  <derek@ximbiot.com>
79054             Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * lib/inttypes.h: New file.
79057         * lib/strtoimax.c: Assume <inttypes.h>.
79058
79059 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79062         isn't mounted.  Problem reported by Kir Kolyshkin.
79063
79064 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79067         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79068         Derek R. Price.
79069         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79070         implementation.
79071
79072 2006-04-12  Eric Blake  <ebb9@byu.net>
79073
79074         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79075         is now done automatically by the corresponding Autoconf macro.
79076
79077 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79080         time_r.h.
79081
79082 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         Merge regex changes from libc, removing some of our
79085         POSIX-conformance changes that were rejected and redoing them in a
79086         less-intrusive way.
79087
79088         * lib/regcomp.c (re_compile_internal, init_dfa):
79089         Length arg is now size_t, not Idx.  All uses changed.
79090         (peek_token): Forward decl now says internal_function.
79091         (__re_error_msgid, __re_error_msgid_idx):
79092         Now static rather than extern with attribute_hidden.
79093         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79094         For some reason libc prefers K&R style defns for external functions.
79095         (regerror) [!defined _LIBC]: Likewise.
79096         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79097         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79098         (build_range_exp, build_collating_symbol):
79099         Use K&R-style defn.
79100         (re_compile_fastmap): Use '\0' to memset, not 0.
79101         (utf8_sb_map): Make the calculations more obvious.
79102         (init_dfa, parse_bracket_exp, build_charclass_op):
79103         Call calloc and cast result, as glibc does.
79104         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79105         (build_range_exp, build_collating_symbol):
79106         Now internal functions.
79107
79108         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79109
79110         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79111         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79112         Don't depend on VMS; depend on __VMS instead, for POSIX
79113         namespace cleanness.
79114         (regoff_t): Define to ssize_t, not long int.
79115
79116         Remove the REG_ macros named below.  Instead, make the old names
79117         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79118         __USE_GNU_REGEX.
79119         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79120         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79121         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79122         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79123         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79124         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79125         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79126         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79127         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79128         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79129         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79130         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79131         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79132         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79133         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79134         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79135         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79136         (REG_NREGS):
79137         Remove.  All uses replaced by the old RE_* names.
79138         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79139         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79140         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79141         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79142         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79143         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79144         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79145         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79146         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79147         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79148         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79149         Don't bother having these macros be independent of each others'
79150         values, since they no longer exist in the POSIX name space.
79151
79152         Rename the following member names back to their old names,
79153         unless !__USE_GNU_REGEX.  All uses changed back.
79154         (buffer): Renamed from re_buffer.
79155         (allocated): Renamed from re_allocated.
79156         (used): Renamed from re_used.
79157         (syntax): Renamed from re_syntax.
79158         (fastmap): Renamed from re_fastmap.
79159         (translate): Renamed from re_translate.
79160         (can_be_null): Renamed from re_can_be_null.
79161         (regs_allocated): Renamed from re_regs_allocated.
79162         (fastmap_accurate): Renamed from re_fastmap_accurate.
79163         (no_sub): Renamed from re_no_sub.
79164         (not_bol): Renamed from re_not_bol.
79165         (not_eol): Renamed from re_not_eol.
79166         (newline_anchor): Renamed from re_newline_anchor.
79167         (num_regs): Renamed from rm_num_regs.
79168         (start): Renamed from rm_start.
79169         (end): Renamed from rm_end.
79170
79171         (free_state): Move up a bit.
79172
79173         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79174         #define to be empty.
79175         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79176         when that is what is intended.
79177         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79178         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79179         (MAX): New macro.
79180         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79181         All uses changed back to re_malloc, etc.  It's now the caller's
79182         responsibility to check for overflow; all callers changed.
79183         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79184         (re_x2nrealloc): Remove.
79185         (free_state): Remove decl.
79186
79187         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79188         (re_set_registers, re_exec):
79189         Use K&R-style defn.
79190
79191         2006-01-31  Roland McGrath  <roland@redhat.com>
79192
79193         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79194         Reported by Mike Frysinger <vapier@gentoo.org>.
79195
79196         2006-01-15  Andreas Jaeger  <aj@suse.de>
79197
79198         [BZ #1950]
79199         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79200         build_wcs_upper_buffer change.
79201         (build_wcs_upper_buffer): Change return type.
79202
79203         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79204
79205         * lib/regex_internal.h: Include <stdint.h> if available.
79206
79207         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79208
79209         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79210
79211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79212
79213         * lib/regcomp.c: Adjust for changed secondary hash function.
79214
79215         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79216
79217         * lib/regex.h: Pretty printing.
79218         Clean up namespace a bit.
79219
79220         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79221
79222         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79223         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79224
79225         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79226                     Ulrich Drepper  <drepper@redhat.com>
79227
79228         [BZ #1302]
79229         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79230         changed.
79231         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79232
79233         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79234
79235         [BZ #281]
79236         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79237         * lib/regcomp.c: Remove unnecessary uses of
79238         unsigned RE_TRANSLATE_TYPE.
79239         * lib/regex_internal.h: Likewise.
79240         * lib/regex_internal.c: Likewise.
79241         * lib/regexec.c: Likewise.
79242         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79243
79244         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79245
79246         * lib/regexec.c (find_recover_state): Remove unnecessary
79247         initialization.
79248         (transit_state_bkref): Make DFA a const pointer.
79249         (get_subexp): Likewise.
79250         (check_arrival): Likewise.
79251         (update_cur_sifted_state): Likewise.
79252         (re_search_internal): Likewise.
79253         (prune_impossible_nodes): Likewise.
79254         (acquire_init_state_context): Likewise.
79255         (proceed_next_node): Likewise.
79256         (set_regs): Likewise.
79257         (free_fail_stack_return): Likewise.
79258         (check_arrival_expand_ecl): Mark DFA parameter as const.
79259         (check_arrival_expand_ecl_sub): Likewise.
79260         (check_subexp_limits): Likewise.
79261         (sub_epsilon_src_nodes):  Likewise.
79262         (add_epsilon_src_nodes):  Likewise.
79263         (merge_state_array): Likewise.
79264         (update_regs): Likewise.
79265         (build_trtable): Likewise.
79266         (sift_states_backward): Mark MCTX parameter as const.
79267         (build_sifted_states): Likewise.
79268         (update_cur_sifted_state): Likewise.
79269         (sift_states_mkref): Likewise.
79270         (check_arrival_expand_ecl): Mark eclosure as const.
79271         (check_dst_limits_calc_pos_1): Likewise.
79272         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79273         pointer.
79274
79275         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79276
79277         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79278         (transit_state_sb): Likewise.
79279         (transit_state_mb): Likewise.
79280         (sift_states_iter_mb): Likewise.
79281         (check_arrival_add_next_nodes): Likewise.
79282         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79283         [_LIBC] (re_search_2_stub): Use mempcpy.
79284
79285         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79286         mbrtowc for very simple UTF-8 case.
79287
79288         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79289         a pointer-to-const.
79290         (re_acquire_state_context): Likewise.
79291         * lib/regex_internal.h: Adjust prototypes.
79292
79293         * lib/regex.c: Prevent using C++ compilers.
79294
79295         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79296         (re_acquire_state_context): Likewise.
79297
79298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * modules/regex (Depends-on): Add ssize_t.
79301
79302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79305         translation table.
79306
79307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79310
79311 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79312             Bruno Haible  <bruno@clisp.org>
79313
79314         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79315         <sys/types.h> and <inttypes.h>.
79316
79317 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79318
79319         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79320         `__error_t_defined', so argp.h will not typedef the former.
79321
79322 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79325         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79326         glibc names.  Even if glibc is changed to conform to POSIX, the
79327         traditional names will be available anyway, since regex depends on
79328         the extensions module.  Also, fix a longstanding typo in the
79329         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79330         reported by Emanuele Giaquinta.  Also, change sense of cached
79331         variable, so that the message makes sense.
79332
79333 2006-03-24  Simon Josefsson  <jas@extundo.com>
79334
79335         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79336         including some doc fixes.
79337         (base64_encode_alloc): Fix +1 bug on allocation failures.
79338
79339 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79340
79341         * lib/base64.c (base64_encode): Do not read past end of array with
79342         unsanitized input on systems with CHAR_BIT > 8.
79343
79344 2006-03-24  Eric Blake  <ebb9@byu.net>
79345
79346         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79347
79348 2006-03-22  Karl Berry  <karl@gnu.org>
79349
79350         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79351         * config/srclistvars.sh (COREUTILS): new var.
79352
79353 2006-03-17  Jim Meyering  <jim@meyering.net>
79354
79355         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79356         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79357
79358 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79361         no longer needs it.  Instead, check that regoff_t is as least
79362         as wide as ptrdiff_t.
79363
79364         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79365         so that our regex.h stays compatible with the installed regex.
79366         This is helpful for installers who configure --without-included-regex.
79367         Problem reported by Emanuele Giaquinta.
79368
79369 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79372         Typedef to long int, not to off_, as POSIX will likely change
79373         in that direction.
79374
79375 2006-03-15  Eric Blake  <ebb9@byu.net>
79376
79377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79378
79379 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79380
79381         * lib/argp-help.c (validate_uparams): Fix typo
79382         * lib/argp-parse.c (argp_default_options): Consistently begin help
79383         messages with a lowercase letter.
79384
79385 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79388         overrun buffers and shouldn't be used (much as gets shouldn't be
79389         used).
79390         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79391
79392 2006-03-08  Simon Josefsson  <jas@extundo.com>
79393
79394         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79396
79397 2006-03-08  Simon Josefsson  <jas@extundo.com>
79398
79399         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79400         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79401
79402 2006-03-08  Simon Josefsson  <jas@extundo.com>
79403
79404         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79405         signal that configure disabled the device.
79406
79407 2006-03-08  Simon Josefsson  <jas@extundo.com>
79408
79409         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79410         languages.
79411
79412 2006-03-07  Simon Josefsson  <jas@extundo.com>
79413
79414         * modules/getopt (Depends-on): Add unistd.
79415
79416         * modules/unistd: New file.
79417
79418 2006-03-07  Simon Josefsson  <jas@extundo.com>
79419
79420         * modules/gc-random: New file.
79421
79422 2006-03-07  Simon Josefsson  <jas@extundo.com>
79423
79424         * m4/unistd_h.m4: New file.
79425
79426 2006-03-07  Simon Josefsson  <jas@extundo.com>
79427
79428         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79429         test to be side-effect free by storing the result in the cache
79430         variable gl_cv_lib_readline, and moving the assignment of
79431         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79432         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79433
79434 2006-03-07  Simon Josefsson  <jas@extundo.com>
79435
79436         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79437         error on missing devices (the functions will return an error).
79438
79439         * m4/gc.m4: Move random stuff to gc-random.m4
79440
79441 2006-03-07  Simon Josefsson  <jas@extundo.com>
79442
79443         * lib/unistd_.h: New file.
79444
79445 2006-03-07  Simon Josefsson  <jas@extundo.com>
79446
79447         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79448
79449 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79452         Problem reported by Juan Manuel Guerrero.
79453
79454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79457         the unistd module.
79458         * lib/getlogin_r.c: Likewise.
79459         * lib/getlogin_r.h: Likewise.
79460         * lib/glob.c: Likewise.
79461         * lib/pagealign_alloc.c: Likewise.
79462         * lib/unistd_.h: Remove; no longer needed.
79463
79464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79467         Add unistd.
79468         * modules/c-stack (Depends-on): Add unistd.
79469         * modules/getlogin_r: Likewise.
79470         * modules/glob: Likewise.
79471         * modules/pagealign_alloc: Likewise.
79472         * modules/unistd (Files): Remove lib/unistd_.h.
79473         (EXTRA_DIST): Remove.
79474         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79475         need unistd_.h.
79476         (MOSTLYCLEANFILES): Remove unistd.h-t.
79477
79478 2006-03-03  Simon Josefsson  <jas@extundo.com>
79479
79480         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79481
79482 2006-03-03  Simon Josefsson  <jas@extundo.com>
79483
79484         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79485         libidn and bison.
79486
79487 2006-03-03  Simon Josefsson  <jas@extundo.com>
79488
79489         * build-aux/maint.mk: Add indent target.
79490
79491 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79492
79493         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79494         our replacement poll.h in any case, to avoid a differing
79495         declaration from a system header.  Seen on AIX.
79496
79497 2006-03-01  Simon Josefsson  <jas@extundo.com>
79498
79499         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79500         <kasal@ucw.cz>.
79501
79502 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * modules/gettime (Depends-on): Add extensions module.
79505         * modules/nanosleep (Depends-on): Likewise.
79506         * modules/settime (Depends-on): Likewise.
79507
79508 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79511         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79512         pedantically.
79513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79514         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79515
79516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79517         not "==".  Reported by Ralf Wildenhues.
79518
79519 2006-03-01  Karl Berry  <karl@gnu.org>
79520
79521         * doc/Copyright/request-*: new files, synced from gnuorg.
79522
79523 2006-03-01  Karl Berry  <karl@gnu.org>
79524
79525         * config/srclist.txt (Copyright/*): new entries.
79526
79527 2006-02-28  Simon Josefsson  <jas@extundo.com>
79528
79529         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79530
79531 2006-02-27  Simon Josefsson  <jas@extundo.com>
79532
79533         * lib/base64.h: Indent #define's.  From Jim Meyering
79534         <jim@meyering.net>.
79535
79536 2006-02-27  Jim Meyering  <jim@meyering.net>
79537
79538         Revert the change of 2006-02-24, so these files can continue
79539         to be sync'd from gettext.
79540         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79541         of `config.h'.
79542
79543 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * modules/intprops: New file.
79546         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79547         Add intprops.
79548         * modules/getloadavg (Files): Remove lib/intprops.h.
79549         (Depends-on): Add intprops.
79550         * modules/human: Likewise.
79551         * modules/inttostr: Likewise.
79552         * modules/openat: Likewise.
79553         * modules/sig2str: Likewise.
79554         * modules/userspec: Likewise.
79555         * modules/utimecmp: Likewise.
79556         * modules/xnanosleep: Likewise.
79557         * modules/xstrtol: Likewise.
79558
79559 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79560
79561         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79562         * modules/lock-tests (TESTS): Use $(EXEEXT).
79563         * modules/tls-tests: Likewise.
79564         * modules/argp-tests: Likewise.
79565         (check_PROGRAMS): New var, replacing...
79566         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79567
79568 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79569
79570         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79571         `config.h'.
79572
79573 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79576
79577 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79578
79579         Sync from coreutils.
79580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79581         gl_CHDIR_SAFER.
79582
79583 2006-02-22  Jim Meyering  <jim@meyering.net>
79584
79585         Sync from coreutils.
79586         * m4/chdir-safer.m4: New file.
79587
79588 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79591         AT_FDCWD exceeds INT_MAX.
79592         * lib/openat.h (AT_FDCWD): Likewise.
79593
79594 2006-02-17  Eric Blake  <address@hidden>
79595
79596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79597
79598 2006-02-16  Simon Josefsson  <jas@extundo.com>
79599
79600         * modules/getaddrinfo (Depends-on): Add sys_socket.
79601
79602 2006-02-15  Simon Josefsson  <jas@extundo.com>
79603
79604         * build-aux/maint.mk: Add dsyntax-check rule.
79605
79606 2006-02-15  Eric Blake  <ebb9@byu.net>
79607
79608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79609         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79610         'present but cannot compile' warnings on cygwin.
79611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79612         use ws2tcpip.h if sys/socket.h works.
79613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79614         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79615
79616 2006-02-14  Simon Josefsson  <jas@extundo.com>
79617
79618         * modules/maintainer-makefile (Files): Rename.
79619
79620         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79621         and (the local) Makefile.cfg to maint-cfg.mk.
79622
79623         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79624         to the latter.
79625
79626         * modules/maintainer-makefile: New module.
79627
79628         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79629         severaly stripped to make it possible to build it up from scratch
79630         with reliable tests.
79631
79632         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79633         fixes to permit overriding the default actions when configure and
79634         makefile are not available.
79635
79636 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         Sync from coreutils.
79639         * modules/lstat (Depends-on): Don't depend on xalloc.
79640         (License): Change from GPL to LGPL, since this is now simply a
79641         replacement for a libc function.
79642
79643 2006-02-14  Jim Meyering  <jim@meyering.net>
79644
79645         Sync from coreutils.
79646
79647         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79648         failure on deficient systems, and simplify gnulib lgpl dependencies.
79649         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79650         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79651
79652         * lib/xalloc-die.c: Remove unused definition of N_.
79653
79654 2006-02-14  Jim Meyering  <jim@meyering.net>
79655
79656         Sync from coreutils.
79657         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79658         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79659         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79660         double-quote uses of that variable, to accommodate the rare case in
79661         which getmntent is available in none of the libraries checked.  This
79662         happens at least on FreeBSD 5.0.
79663
79664 2006-02-13  Simon Josefsson  <jas@extundo.com>
79665
79666         * gnulib-tool (Usage): Fix --import, from
79667         karl@freefriends.org (Karl Berry).
79668
79669 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79670
79671         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79672
79673 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79674
79675         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79676         "autoupdate" on 2005-12-12.
79677
79678 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * modules/closeout (Depends-on): Remove atexit.
79681
79682 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79685         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79686
79687 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79690         __EXTENSIONS__ if this causes compilation to fail.  Problem
79691         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79692         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79693
79694 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79697         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79699         All uses changed.
79700
79701 2006-01-26  Simon Josefsson  <jas@extundo.com>
79702
79703         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79704         prototype is visible on mingw32.
79705
79706         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79707         for mingw32.
79708
79709         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79710         mingw32).
79711
79712 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79715         attempt to open for write; this always fails, at least on POSIX
79716         hosts.  This reinstates the 2006-01-09 change, which was
79717         inadvertently removed.
79718
79719 2006-01-26  Bruno Haible  <bruno@clisp.org>
79720
79721         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79722         Reported by Paul Eggert.
79723
79724 2006-01-26  Bruno Haible  <bruno@clisp.org>
79725             Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         * lib/stdbool_.h (_Bool)
79728         [(! (defined __cplusplus || defined __BEOS__)
79729           && !defined __GNUC__
79730           && !(defined __HP_cc || defined __xlc__
79731                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79732                || defined __sgi))]:
79733         #define to signed char in these cases too; this simplifies
79734         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79735         etc., separately) and makes it more conservative.
79736
79737 2006-01-25  Simon Josefsson  <jas@extundo.com>
79738
79739         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79740         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79741         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79742
79743 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79744
79745         * lib/argp-namefrob.h: Bugfix. Remove stray #
79746
79747 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79750         so that we test the test.
79751         Check for yet another HP-UX cc bug involving *bool |= bool.
79752
79753 2006-01-25  Karl Berry  <karl@gnu.org>
79754
79755         * config/srclist.txt (vasnprintf.c): sync lost.
79756
79757 2006-01-25  Jim Meyering  <jim@meyering.net>
79758
79759         Sync from the stable (b5) branch of coreutils:
79760
79761         * lib/fts.c (fts_children): Don't let close() clobber errno from
79762         failed fchdir().
79763
79764         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79765         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79766         a dangling symlink.  That can also happen at least for ELOOP.
79767         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79768         FYI, this bug predates the inclusion of fts.c in coreutils.
79769
79770         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79771         in their own block, so pre-c99 compilers don't object.
79772
79773         Avoid the double-free (first in fts_read, second in fts_close) that
79774         would occur when an `active' directory is made inaccessible (e.g.,
79775         via chmod a-x) during a traversal.
79776         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79777         before returning.  Reproduce this failure by
79778         mkdir -p a/b; cd a; chmod a-x . b
79779         Reported by Stavros Passas.
79780
79781 2006-01-25  Jim Meyering  <jim@meyering.net>
79782
79783         * lib/fileblocks.c: Remove more useless parentheses.
79784         * lib/readutmp.h: Likewise.
79785
79786 2006-01-25  Bruno Haible  <bruno@clisp.org>
79787
79788         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79789         warnings.
79790         Reported by Paul Eggert.
79791
79792 2006-01-25  Bruno Haible  <bruno@clisp.org>
79793
79794         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79795         rid of a trap command. For Solaris sh.
79796         Reported by Mark D. Baushke <mdb@gnu.org>.
79797
79798 2006-01-24  Simon Josefsson  <jas@extundo.com>
79799
79800         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79801         Bruno.
79802
79803 2006-01-24  Karl Berry  <karl@gnu.org>
79804
79805         * config/srclist.txt (argp-namefrob.h): sync lost.
79806
79807 2006-01-24  Jim Meyering  <jim@meyering.net>
79808
79809         * modules/openat (Files): Add lib/intprops.h.
79810         From Mark D. Baushke.
79811
79812 2006-01-24  Jim Meyering  <jim@meyering.net>
79813
79814         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79815         Reported by Mark D. Baushke.
79816
79817 2006-01-24  Jim Meyering  <jim@meyering.net>
79818
79819         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79820
79821 2006-01-24  Bruno Haible  <bruno@clisp.org>
79822
79823         * modules/strnlen (Maintainer): Change from glibc to all.
79824
79825 2006-01-24  Bruno Haible  <bruno@clisp.org>
79826
79827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79828         Patch by Paul Eggert.
79829
79830 2006-01-24  Bruno Haible  <bruno@clisp.org>
79831
79832         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79833         already has it.
79834         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79835         2005-11-26.
79836
79837         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79838         'signed char' to avoid problems with the built-in _Bool type.
79839         Reported by Paul Eggert on 2005-11-26.
79840
79841 2006-01-24  Bruno Haible  <bruno@clisp.org>
79842
79843         * gnulib-tool (func_import): Avoid constructing complicated sed
79844         expressions inside backquote.
79845         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79846
79847 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79848
79849         These changes imported from libc.
79850         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79851         test and two separate function calls.
79852         * lib/strndup.c (__strndup): Add libc_hidden_def.
79853
79854 2006-01-23  Simon Josefsson  <jas@extundo.com>
79855
79856         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79857         Remove the test_*_SOURCES variable: automake infers it by default.
79858         * modules/tls-tests: Likewise.
79859
79860 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         Work around porting bugs reported by Dieter in
79863         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79864         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79865         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79866         Include "getopt.h" first, to check interface.
79867         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79868         !HAVE_DECL_GETENV.
79869         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79870         (__strndup): Revert to K&R-style function dfns, the glibc style.
79871         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79872         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79873         Include strnlen.h first, to get prototype properly.
79874         (strnlen): Renamed from __strnlen.
79875         Remove weak alias.
79876
79877 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79880
79881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * config/srclist.txt: Adjust to reflect glibc reorganization.
79884         This affects only comments.
79885
79886 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79887
79888          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79889          Reported by Bruce Korb <bkorb@gnu.org>.
79890
79891 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79894         to pacify gcc -Wswitch-default.
79895
79896 2006-01-22  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79899         temporary buffer for sprintf, take into account the precision also
79900         for 'd', 'i', 'u', 'o', 'x', 'X'.
79901
79902 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79903
79904         * modules/argp-tests: New module
79905         * tests/test-argp.c: New file
79906         * tests/test-argp-2.sh: New file
79907
79908 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79909
79910         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79911         (__argp_base_name): Removed
79912         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79913         typo.
79914         (__argp_base_name): Provide macro definition or extern declaration
79915         depending on the configuration
79916
79917 2006-01-20  Simon Josefsson  <jas@extundo.com>
79918
79919         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79920
79921 2006-01-20  Simon Josefsson  <jas@extundo.com>
79922
79923         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79924
79925 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79926
79927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79928         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79929         Suggested by Bruno Haible.
79930
79931 2006-01-20  Karl Berry  <karl@gnu.org>
79932
79933         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79934         until changes propagate, I guess.
79935
79936 2006-01-19  Simon Josefsson  <jas@extundo.com>
79937
79938         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79939
79940 2006-01-19  Simon Josefsson  <jas@extundo.com>
79941
79942         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79943
79944 2006-01-19  Simon Josefsson  <jas@extundo.com>
79945
79946         * gnulib-tool: Set check_PROGRAMS.
79947
79948         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79949         modules/des-tests, modules/gc-arcfour-tests,
79950         modules/gc-arctwo-tests, modules/gc-des-tests,
79951         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79952         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79953         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79954         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79955         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79956         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79957         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79958         test_*_SOURCES.
79959
79960 2006-01-18  Simon Josefsson  <jas@extundo.com>
79961
79962         * modules/socklen (Depends-on): Depend on sys_socket.
79963
79964 2006-01-18  Simon Josefsson  <jas@extundo.com>
79965
79966         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79967         modules/des-tests, modules/gc-arcfour-tests,
79968         modules/gc-arctwo-tests, modules/gc-des-tests,
79969         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79970         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79971         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79972         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79973         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79974         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79975         $(EXEEXT) to automake TESTS variable, for mingw32.
79976
79977 2006-01-17  Simon Josefsson  <jas@extundo.com>
79978
79979         * modules/socklen (Include): Need sys/socket.h.
79980
79981 2006-01-17  Bruno Haible  <bruno@clisp.org>
79982
79983         * modules/ssize_t (Include): Add <sys/types.h>.
79984
79985 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79988         it's not portable and it doesn't work with cross-compiles.
79989         Problem reported by Bruno Haible.  Fix missing-$ typo in
79990         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79991         -zignore from being used with Sun's C compiler.
79992
79993 2006-01-12  Simon Josefsson  <jas@extundo.com>
79994
79995         * lib/base64.c: Fix warning, reported by Bruno Haible
79996         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79997
79998 2006-01-12  Bruno Haible  <bruno@clisp.org>
79999
80000         * modules/ldd: New file.
80001         * build-aux/ldd.sh.in: New file.
80002         * MODULES.html.sh (Support for building libraries and executables): Add
80003         ldd.
80004
80005 2006-01-12  Bruno Haible  <bruno@clisp.org>
80006
80007         * m4/ldd.m4: New file.
80008
80009 2006-01-12  Bruno Haible  <bruno@clisp.org>
80010
80011         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80012         endless loop while replacing $auxdir with build-aux.
80013
80014 2006-01-11  Simon Josefsson  <jas@extundo.com>
80015
80016         * lib/stdint_.h (SIZE_MAX): Add missing (.
80017
80018 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         Sync from coreutils.
80021         * lib/md5.c: Fix commentary typos.
80022         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80023         * lib/md5.h (__attribute__): Remove; unused.
80024         * lib/sha1.c: Fix commentary to match md5 better.
80025         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80026         so that we don't need to worry about alignment.  All uses changed.
80027         This merges the 2005-10-28 md5 change into sha1.
80028
80029 2006-01-11  Jim Meyering  <jim@meyering.net>
80030
80031         Sync from coreutils.
80032         * lib/md5.c (OP): Fix spacing.
80033
80034 2006-01-11  Bruno Haible  <bruno@clisp.org>
80035
80036         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80037         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80038         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80039
80040 2006-01-11  Bruno Haible  <bruno@clisp.org>
80041
80042         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80043         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80044         the "early" section as well.
80045
80046 2006-01-11  Bruno Haible  <bruno@clisp.org>
80047
80048         Avoid "ar: no archive members specified" error on MacOS X.
80049         * gnulib-tool (func_modules_add_dummy): New function.
80050         (func_import, func_create_testdir): Invoke it.
80051
80052 2006-01-11  Bruno Haible  <bruno@clisp.org>
80053
80054         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80055         with $auxdir in AC_CONFIG_FILES statements.
80056
80057 2006-01-11  Bruno Haible  <bruno@clisp.org>
80058
80059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80060         Initialize also noinst_HEADERS to empty.
80061
80062 2006-01-11  Bruno Haible  <bruno@clisp.org>
80063
80064         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80065         variables.
80066         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80067         autoreconf.
80068
80069 2006-01-11  Bruno Haible  <bruno@clisp.org>
80070
80071         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80072         overridable by the user.
80073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80074
80075 2006-01-10  Simon Josefsson  <jas@extundo.com>
80076
80077         * modules/sys_socket: New file.
80078
80079 2006-01-10  Simon Josefsson  <jas@extundo.com>
80080
80081         * m4/sys_socket_h.m4: New file.
80082
80083 2006-01-10  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/socket_.h: New file.
80086
80087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * modules/readutmp (Maintainer): Add myself.
80090
80091 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80094         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80095         People who are still concerned with buggy memcmp implementations
80096         can invoke gl_FUNC_MEMCMP themselves.
80097
80098 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * lib/regex_internal.h (BITSET_WORD_BITS):
80101         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80102         preprocessor mishandles large unsigned values as if they were signed.
80103         Problem reported by Claudio Fontana in
80104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80105
80106 2006-01-10  Jim Meyering  <jim@meyering.net>
80107
80108         Avoid the double-free (first in fts_read, second in fts_close) that
80109         would occur when an `active' directory is made inaccessible (e.g.,
80110         via chmod a-x) during a traversal.
80111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80112         before returning.  Reproduce this failure by
80113         mkdir -p a/b; cd a; chmod a-x . b
80114         Reported by Stavros Passas.
80115
80116         Sync from coreutils.
80117         * lib/sha1.c: Tweak grammar in a comment.
80118
80119 2006-01-10  Jim Meyering  <jim@meyering.net>
80120
80121         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80122         Patch by Joerg Sonnenberger.
80123
80124 2006-01-10  Bruno Haible  <bruno@clisp.org>
80125
80126         * modules/readutmp: Depend on module free.
80127         * modules/strtok_r: Depend on module restrict.
80128
80129 2006-01-10  Bruno Haible  <bruno@clisp.org>
80130
80131         * modules/gettext (configure.ac): Add an invocation of
80132         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80133
80134 2006-01-10  Bruno Haible  <bruno@clisp.org>
80135
80136         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80137         Reported by Werner Lemberg <wl@gnu.org>.
80138
80139 2006-01-10  Bruno Haible  <bruno@clisp.org>
80140
80141         * lib/localcharset.c: Update from GNU gettext.
80142
80143 2006-01-10  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/argp.h (__const): Remove macro. Use const instead.
80146         * lib/argp-fmtstream.h (__const): Likewise.
80147         * lib/glob_.h (__const): Remove macro.
80148         * lib/glob-libc.h: Use const instead of __const.
80149
80150 2006-01-10  Bruno Haible  <bruno@clisp.org>
80151
80152         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80153         variable.
80154         Needed to avoid an automake error regarding the 'gettext' module.
80155
80156 2006-01-09  Simon Josefsson  <jas@extundo.com>
80157
80158         * modules/inet_ntop (Depends-on): Add restrict.
80159
80160 2006-01-09  Simon Josefsson  <jas@extundo.com>
80161
80162         * modules/gc-rijndael-tests (License): Put under LGPL.
80163
80164         * modules/gc-des-tests (License): Likewise.
80165
80166         * modules/gc-arcfour-tests (License): Likewise.
80167
80168         * modules/gc-arctwo-tests (License): Likewise.
80169
80170         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80171
80172         * modules/gc-hmac-sha1-tests (Files): Likewise.
80173
80174         * modules/gc-hmac-md5-tests (License): Likewise.
80175
80176         * modules/gc-sha1-tests (License): Likewise.
80177
80178         * modules/gc-md5-tests (License): Likewise.
80179
80180         * modules/gc-md4-tests (License): Likewise.
80181
80182         * modules/gc-md2-tests (License): Likewise.
80183
80184         * modules/gc-tests (License): Likewise.
80185
80186         * modules/des-tests (License): Likewise.
80187
80188         * modules/md4-tests (License): Likewise.
80189
80190         * modules/md2-tests (License): Likewise.
80191
80192 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         Sync from coreutils:
80195
80196         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80197         * modules/lib-ignore: New file.
80198         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80199         chdir-safer.m4, lchmod.m4.
80200         * modules/openat: Add mkdirat.c, openat-priv.h.
80201
80202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         Sync from coreutils.
80205         * m4/lib-ignore.m4: New file.
80206         * m4/lchmod.m4: New file.
80207
80208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         Sync from coreutils.
80211         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80212         for write access: POSIX says that must fail.
80213         * lib/fts.c (diropen): Likewise.
80214         * lib/save-cwd.c (save_cwd): Likewise.
80215         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80216         well, for minor improvements on hosts that lack O_DIRECTORY.
80217         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80218         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80219         Fall back on chown if open failed with EACCES.
80220
80221         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80222         Report an error at compile-time if only a 1-second nominal clock
80223         resolution is found.
80224
80225         * lib/lchmod.h: New file.
80226         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80227         (make_dir_parents): Use lchown rather than chown, and
80228         lchmod rather than chmod.
80229
80230         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80231         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80232         "proc" reported by n0dalus.
80233
80234         * lib/mountlist.c: Include <limits.h>.
80235         (dev_from_mount_options)
80236         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80237         New function.  It no longer assumes "dev=" has the System V meaning
80238         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80239         (read_file_system_list)
80240         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80241         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80242         dev= in that case.
80243
80244         * lib/posixtm.h (PDS_PRE_2000): New macro.
80245         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80246         allow_century.  All usages changed.  Reject dates outside the range
80247         1969-1999 if PDS_PRE_2000 is used.
80248
80249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         Sync from coreutils.
80252         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80253         (Time of day items): Mention the possibility of leap seconds.
80254         Problem reported by Dr. David Alan Gilbert.
80255
80256 2006-01-09  Jim Meyering  <jim@meyering.net>
80257
80258         Sync from coreutils.
80259
80260         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80261
80262         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80263
80264         * lib/modechange.c (mode_compile): Reject an invalid mode string
80265         that starts with an octal digit.  From Andreas Gruenbacher.
80266
80267         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80268         and dup to open_safer and dup_safer, respectively.
80269         (openat_permissive): Fix typo in comment.
80270
80271         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80272         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80273         (_): Remove; no longer needed.
80274         (openat): Renamed from rpl_openat; no need for rpl_openat
80275         since openat.h renames openat for us.
80276         Replace most of the body with a call to openat_permissive,
80277         to avoid duplicate code.
80278         Port to (probably hypothetical) environments were mode_t is
80279         wider than int.
80280         (openat_permissive): Require mode arg, so that we can check
80281         types better.  Put it just after flags.  Change cwd failure
80282         indicator from pointer-to-bool to pointer-to-errno-value.
80283         All callers changed.
80284         Invoke openat_save_fail and/or openat_restore_fail if
80285         cwd_errno is null, so that openat can call us.
80286         (openat_permissive, fdopendir, fstatat, unlinkat):
80287         Simplify errno handling to avoid some duplicate code,
80288         as it's OK to set errno on success.
80289         * lib/openat.h: Revamp code so that function macros depend on
80290         __OPENAT_PREFIX only, not also on AT_FDCWD.
80291         (openat_ro): Remove.  Caller changed to use openat_permissive.
80292         (openat_permissive): Now a macro, if not a function.
80293         (openat_restore_fail, openat_save_fail): Now always functions,
80294         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80295
80296         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80297         and openat.c.
80298         * lib/mkdirat.c: Include openat-priv.h.
80299         Remove definitions of macros defined therein.
80300         * lib/openat.c: Likewise.
80301
80302         * lib/mkdirat.c (mkdirat): New file and function.
80303         * lib/openat.h (mkdirat): Declare.
80304
80305         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80306
80307         * lib/openat.h (openat_permissive): Declare.
80308         (openat_ro): Define.
80309
80310         * lib/openat.c (EXPECTED_ERRNO): New macro.
80311         (openat_permissive): New function -- used in remove.c rewrite.
80312         (all functions): Set errno just before returning, only if there
80313         was an actual failure.
80314         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80315
80316         Emulate openat-family functions using Linux's procfs, if possible.
80317         Idea and some code based on Ulrich Drepper's glibc changes.
80318
80319         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80320         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80321         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80322         before falling back on save_cwd and restore_cwd.
80323         (fdopendir, fstatat, unlinkat): Likewise.
80324
80325         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80326         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80327
80328         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80329         as second argument to va_arg.  Otherwise, some versions of gcc
80330         warn that `if this code is reached, the program will abort'.
80331
80332 2006-01-09  Jim Meyering  <jim@meyering.net>
80333
80334         Sync from coreutils.
80335         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80336         Require openat-priv.h.
80337
80338 2006-01-09  Bruno Haible  <bruno@clisp.org>
80339
80340         * modules/strnlen (Include): Use strnlen.h.
80341
80342 2006-01-09  Bruno Haible  <bruno@clisp.org>
80343
80344         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80345
80346 2006-01-09  Bruno Haible  <bruno@clisp.org>
80347
80348         * lib/sysexit_.h (EX_OK): New macro.
80349         Suggested by Martin Lambers <marlam@marlam.de>.
80350
80351 2006-01-09  Bruno Haible  <bruno@clisp.org>
80352
80353         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80354         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80355
80356 2006-01-09  Bruno Haible  <bruno@clisp.org>
80357
80358         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80359         numbers.
80360
80361 2006-01-09  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80364         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80365         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80366         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80367
80368 2006-01-09  Bruno Haible  <bruno@clisp.org>
80369
80370         * build-aux/javacomp.sh.in: New file, moved from lib/.
80371         * modules/javacomp-script (Files): Update.
80372         (configure.ac): Add AC_CONFIG_FILES invocation.
80373         (EXTRA_DIST): Remove variable.
80374
80375         * build-aux/javaexec.sh.in: New file, moved from lib/.
80376         * modules/javaexec (Files): Update.
80377         (configure.ac): Add AC_CONFIG_FILES invocation.
80378         (EXTRA_DIST): Remove javaexec.sh.in.
80379
80380         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80381         * modules/csharpcomp-script (Files): Update.
80382         (configure.ac): Add AC_CONFIG_FILES invocation.
80383         (EXTRA_DIST): Remove variable.
80384
80385         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80386         * modules/csharpexec (Files): Update.
80387         (configure.ac): Add AC_CONFIG_FILES invocation.
80388         (EXTRA_DIST): Remove csharpexec.sh.in.
80389
80390 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80391
80392         Sync from coreutils.
80393
80394         Add POSIX ACL support
80395         * lib/acl.h (copy_acl, set_acl): Add declarations.
80396         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80397         systems other than Linux.
80398         (chmod_or_fchmod): New function: use fchmod when possible,
80399         and chmod otherwise.
80400         (file_has_acl): Add a POSIX ACL implementation, with a
80401         Linux-specific subcase.
80402         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80403         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80404         acls are unsupported.
80405         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80406         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80407         are unsupported.
80408
80409 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80410
80411         Sync from coreutils.
80412         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80413
80414 2006-01-07  Bruno Haible  <bruno@clisp.org>
80415
80416         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80417         gl_EARLY.
80418
80419 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80422         Problem reported for Mingw by Mark Junker.
80423
80424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * README: Gnulib normally doesn't generate a tarball.
80427
80428 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80431         long int, not int, for nanosecond counts, so that people who are
80432         used to POSIX struct timespec won't be surprised.  Reported by Jim
80433         Meyering.
80434
80435 2005-12-28  Bruno Haible  <bruno@clisp.org>
80436
80437         * build-aux/config.rpath: Update from GNU gettext.
80438
80439 2005-12-16  Jim Meyering  <jim@meyering.net>
80440
80441         * modules/fprintftime: New module.
80442         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80443
80444 2005-12-16  Jim Meyering  <jim@meyering.net>
80445
80446         * m4/fprintftime.m4: New file.
80447
80448 2005-12-16  Jim Meyering  <jim@meyering.net>
80449
80450         * lib/fprintftime.c, lib/fprintftime.h: New files.
80451
80452 2005-12-15  Simon Josefsson  <jas@extundo.com>
80453
80454         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80455         new m4/socklen.m4.
80456
80457 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80458
80459         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80460         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80461
80462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80463
80464         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80465         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80466         struct uparams is valid. Fall back to the default values if it is
80467         not.
80468
80469 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80470
80471         * modules/argp (Files): Add argp-pin.c
80472         (Depends-on): dirname
80473         (lib_SOURCES): Add argp-pin.c
80474
80475 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80476
80477         * m4/argp.m4:  Check if program_invocation_name and
80478         program_invocation_short_name are declared and define appropriate
80479         macros if they are not.
80480
80481 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80482
80483         * lib/argp-help.c (__argp_base_name): New function
80484         (__argp_short_program_name): Rewrite using __argp_base_name
80485         * lib/argp-namefrob.h: Define program_invocation_name and
80486         program_invocation_short_name if requested
80487         (__argp_base_name): Add prototype
80488         * lib/argp-parse.c (argp_def): Use gettext wrappers
80489         (argp_default_parser): Use __argp_base_name
80490         * lib/argp-pin.c: New file. Defines program_invocation_name and
80491         program_invocation_short_name on systems that lack them.
80492
80493 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80494
80495         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80496         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80497         porting problem reported by Georg Schwarz in
80498         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80499
80500 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80503         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80504         porting problem reported by Georg Schwarz in
80505         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80506
80507 2005-12-05  Bruno Haible  <bruno@clisp.org>
80508
80509         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80510         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80511         Reported by Mark Junker <mjscod@gmx.de>.
80512
80513 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80516         Use implementation from Albert Chin, with some
80517         comments/corrections by Stepan Kasal and myself.
80518
80519 2005-12-02  Bruno Haible  <bruno@clisp.org>
80520
80521         * gnulib-tool (func_import): Accept GPLed build tool modules when
80522         --lgpl is given.
80523         * modules/csharpcomp-script: New file.
80524         * modules/csharpcomp: Depend on it.
80525         * modules/javacomp-script: New file.
80526         * modules/javacomp: Depend on it.
80527         Suggested by Simon Josefsson.
80528
80529 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80532         statement, to work around an HP-UX 10.20 compiler bug reported by
80533         Peter O'Gorman.
80534
80535 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * modules/savedir (Depends-on): Add openat.
80538
80539 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80542         (uintmax_t) [defined uintmax_t]: Do not declare.
80543         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80544         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80545         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80546         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80547         sake of portability to weird hosts that C allows (though we don't
80548         know of any practical examples).
80549
80550         * lib/savedir.h (fdsavedir): New decl.
80551         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80552         contains most of the former guts of savedir.
80553         (savedir): Use savedirstream.
80554         Include "openat.h".
80555
80556 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         * modules/obstack (Files): Add m4/ulonglong.m4.
80559         Problem reported by Davide Angelocola.
80560
80561 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80564         coreutils no longer futzes with rounding modes.
80565
80566 2005-11-14  Jim Meyering  <jim@meyering.net>
80567
80568         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80569         replacement of mkstemp.
80570
80571 2005-11-10  Simon Josefsson  <jas@extundo.com>
80572
80573         * lib/readline.c: Remove EOL.
80574
80575 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * modules/gethrxtime (Depends-on): Add gettime.
80578
80579 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80582         or gettimeofday; no longer needed.
80583
80584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80585
80586         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80587         time business.
80588         (gethrxtime) [! (HAVE_NANOUPTIME
80589         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80590         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80591         our own approximation.
80592
80593 2005-11-08  Eric Blake  <ebb9@byu.net>
80594
80595         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80596
80597 2005-11-08  Eric Blake  <ebb9@byu.net>
80598
80599         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80600
80601 2005-11-04  Bruno Haible  <bruno@clisp.org>
80602
80603         * gnulib-tool: Implement --update mode.
80604
80605 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         Fix porting problem reported by Theodoros V. Kalamatianos.
80608         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80609         Don't assume that futimes failing means we must fail.
80610
80611 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80612
80613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80614         variables to suggest the intended function of the PATH_MAX check.
80615
80616 2005-10-30  Kean Johnston  <jkj@sco.com>
80617
80618         Trivial changes to support SCO systems.
80619         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80620         as PATH_MAX.
80621         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80622         where __ptr is null when no I/O is pending.
80623
80624 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80627         leave errno alone.  Problem reported by Dmitry V. Levin.
80628
80629 2005-10-28  Simon Josefsson  <jas@extundo.com>
80630
80631         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80632         Test more.
80633
80634         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80635
80636         * modules/md2, modules/md2-tests: New files.
80637
80638 2005-10-28  Simon Josefsson  <jas@extundo.com>
80639
80640         * m4/inet_ntop.m4: More tests.
80641
80642         * m4/gc-md2.m4, md2.m4: New file.
80643
80644 2005-10-28  Simon Josefsson  <jas@extundo.com>
80645
80646         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80647         "restrict" keywords, as per POSIX.  Protect the function
80648         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80649         Don't use K&R prototypes.  Check the sprintf return values.
80650         Re-define EAFNOSUPPORT if not present.  Indent.
80651
80652         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80653         suggested by Bruno Haible <bruno@clisp.org>.
80654
80655         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80656
80657         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80658
80659         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80660         libgcrypt).
80661
80662         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80663
80664         * lib/md2.h, lib/md2.c: New files.
80665
80666 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80667
80668         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80669         errno alone.  Problem reported by Frederic Jolliton.
80670
80671 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80672
80673         * modules/verify (License): Change from GPL to LGPL.  This is a
80674         tiny module and there are apparently near-equivalents that are
80675         under the BSD license.
80676
80677 2005-10-24  Simon Josefsson  <jas@extundo.com>
80678
80679         * modules/sha1: Relicense to LGPL.
80680
80681 2005-10-24  Simon Josefsson  <jas@extundo.com>
80682
80683         * lib/md4.h: Shrink buffer size, now that we changed the type.
80684
80685 2005-10-23  Simon Josefsson  <jas@extundo.com>
80686
80687         * gnulib-tool (func_import): Fix --tests-base.
80688
80689 2005-10-22  Simon Josefsson  <jas@extundo.com>
80690
80691         * modules/arcfour (Depends-on): Need stdint.
80692
80693 2005-10-22  Simon Josefsson  <jas@extundo.com>
80694
80695         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80696         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80697
80698 2005-10-22  Simon Josefsson  <jas@extundo.com>
80699
80700         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80701         suggested by Bruno Haible <bruno@clisp.org>.
80702
80703 2005-10-22  Simon Josefsson  <jas@extundo.com>
80704
80705         * lib/crc.h: Include stddef.h, for size_t.
80706
80707 2005-10-22  Simon Josefsson  <jas@extundo.com>
80708
80709         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80710         arcfour_context struct (simplify test vector testing in GNU
80711         Shishi).
80712
80713 2005-10-21  Simon Josefsson  <jas@extundo.com>
80714
80715         * modules/des, modules/des-tests: New files.
80716
80717         * modules/gc-des, modules/gc-des-tests: New files.
80718
80719         * tests/test-des.c, tests/test-gc-des.c: New file.
80720
80721 2005-10-21  Simon Josefsson  <jas@extundo.com>
80722
80723         * modules/arctwo, modules/arctwo-tests: New files.
80724
80725         * tests/test-arctwo.c: New file.
80726
80727         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80728
80729         * tests/test-gc-arctwo.c: New file.
80730
80731 2005-10-21  Simon Josefsson  <jas@extundo.com>
80732
80733         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80734         Bruno Haible <bruno@clisp.org>.
80735
80736         * m4/gc-des.m4: New file.
80737
80738 2005-10-21  Simon Josefsson  <jas@extundo.com>
80739
80740         * m4/arctwo.m4: New file.
80741
80742         * m4/gc-arctwo.m4: New file.
80743
80744 2005-10-21  Simon Josefsson  <jas@extundo.com>
80745
80746         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80747         block.
80748
80749 2005-10-21  Simon Josefsson  <jas@extundo.com>
80750
80751         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80752         <bruno@clisp.org>.
80753
80754         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80755
80756         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80757         Bruno Haible <bruno@clisp.org>.
80758
80759         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80760         <bruno@clisp.org>.
80761
80762 2005-10-21  Simon Josefsson  <jas@extundo.com>
80763
80764         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80765
80766 2005-10-21  Simon Josefsson  <jas@extundo.com>
80767
80768         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80769
80770 2005-10-21  Simon Josefsson  <jas@extundo.com>
80771
80772         * lib/des.h, lib/des.c: New files.
80773
80774         * lib/gc-gnulib.c: Support DES.c
80775
80776 2005-10-21  Simon Josefsson  <jas@extundo.com>
80777
80778         * lib/arctwo.h, lib/arctwo.c: New files.
80779
80780         * lib/gc-gnulib.c: Support ARCTWO.
80781
80782 2005-10-21  Simon Josefsson  <jas@extundo.com>
80783
80784         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80785         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80786
80787 2005-10-21  Simon Josefsson  <jas@extundo.com>
80788
80789         * gnulib-tool (func_import, func_create_testdir): Define automake
80790         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80791         Makefile.am snippet),
80792         suggested by Bruno Haible <bruno@clisp.org>.
80793
80794         * modules/gc (Makefile.am): Use it.
80795
80796 2005-10-21  Bruno Haible  <bruno@clisp.org>
80797
80798         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80799         patch.
80800
80801 2005-10-19  Simon Josefsson  <jas@extundo.com>
80802
80803         * tests/test-gc-rijndael.c: New file.
80804
80805         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80806
80807 2005-10-19  Simon Josefsson  <jas@extundo.com>
80808
80809         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80810         interface too.
80811
80812 2005-10-19  Simon Josefsson  <jas@extundo.com>
80813
80814         * tests/test-gc-arcfour.c: New file.
80815
80816         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80817
80818 2005-10-19  Simon Josefsson  <jas@extundo.com>
80819
80820         * modules/gc-md4, modules/gc-md4-tests: New file.
80821
80822         * tests/test-gc-md4.c: New file.
80823
80824 2005-10-19  Simon Josefsson  <jas@extundo.com>
80825
80826         * m4/gc-md4.m4: New file.
80827
80828 2005-10-19  Simon Josefsson  <jas@extundo.com>
80829
80830         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80831         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80832         <kasal@ucw.cz>.
80833
80834 2005-10-19  Simon Josefsson  <jas@extundo.com>
80835
80836         * m4/gc-arcfour.m4: New file.
80837
80838         * m4/gc-rijndael.m4: New file.
80839
80840 2005-10-19  Simon Josefsson  <jas@extundo.com>
80841
80842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80843
80844 2005-10-19  Simon Josefsson  <jas@extundo.com>
80845
80846         * lib/gc-gnulib.c: Support ARCFOUR.
80847
80848 2005-10-19  Simon Josefsson  <jas@extundo.com>
80849
80850         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80851         support.
80852
80853         * lib/gc.h: Add ECB enum type.
80854
80855         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80856
80857 2005-10-18  Simon Josefsson  <jas@extundo.com>
80858
80859         * tests/test-md5.c: New file.
80860
80861         * modules/md5-tests: New file.
80862
80863 2005-10-18  Simon Josefsson  <jas@extundo.com>
80864
80865         * tests/test-md4.c: New file.
80866
80867         * modules/md4, modules/md4-tests: New files.
80868
80869 2005-10-18  Simon Josefsson  <jas@extundo.com>
80870
80871         * m4/md4.m4: New file.
80872
80873 2005-10-18  Simon Josefsson  <jas@extundo.com>
80874
80875         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80876
80877 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80878
80879         * gnulib-tool (func_create_testdir): Omit the second check whether
80880         BUILT_SOURCES in nonempty.
80881
80882 2005-10-17  Simon Josefsson  <jas@extundo.com>
80883
80884         * tests/test-rijndael.c: New file.
80885
80886 2005-10-17  Simon Josefsson  <jas@extundo.com>
80887
80888         * modules/sha1: Depend on stdint instead of md5.
80889
80890         * modules/md5: Depend on stdint, remove uint32_t.
80891
80892 2005-10-17  Simon Josefsson  <jas@extundo.com>
80893
80894         * modules/gc-sha1-tests: New file.
80895
80896         * tests/test-gc-sha1.c: New file.
80897
80898 2005-10-17  Simon Josefsson  <jas@extundo.com>
80899
80900         * m4/md5.m4: Remove call to uint32_t.m4.
80901
80902 2005-10-17  Simon Josefsson  <jas@extundo.com>
80903
80904         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80905
80906         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80907         md5.h.
80908
80909         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80910
80911         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80912
80913 2005-10-17  Simon Josefsson  <jas@extundo.com>
80914
80915         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80916
80917 2005-10-17  Simon Josefsson  <jas@extundo.com>
80918
80919         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80920
80921 2005-10-17  Simon Josefsson  <jas@extundo.com>
80922
80923         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80924
80925         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80926
80927 2005-10-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80930         that it can also be used in a test.
80931
80932 2005-10-16  Bruno Haible  <bruno@clisp.org>
80933
80934         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80935         TESTS_ENVIRONMENT, so that individual tests can augment it.
80936
80937         * gnulib-tool (func_create_testdir): Use an intermediate target for
80938         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80939         macros, like $(ALLOCA_H), which cannot be passed through the command
80940         line.
80941
80942 2005-10-15  Simon Josefsson  <jas@extundo.com>
80943
80944         * modules/rijndael-tests: New file.
80945
80946         * modules/rijndael: New file.
80947
80948 2005-10-15  Simon Josefsson  <jas@extundo.com>
80949
80950         * m4/rijndael.m4: New file.
80951
80952 2005-10-15  Simon Josefsson  <jas@extundo.com>
80953
80954         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80955
80956         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80957
80958 2005-10-14  Simon Josefsson  <jas@extundo.com>
80959
80960         * tests/test-arcfour.c: New file.
80961
80962         * modules/arcfour, modules/arcfour-tests: New files.
80963
80964 2005-10-14  Simon Josefsson  <jas@extundo.com>
80965
80966         * m4/arcfour.m4: New file.
80967
80968 2005-10-14  Simon Josefsson  <jas@extundo.com>
80969
80970         * lib/arcfour.h, lib/arcfour.c: New files.
80971
80972 2005-10-14  Roland McGrath  <roland@redhat.com>
80973
80974         Import from libc.  [BZ #1331]
80975         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80976         macro argument.
80977         Reported by Matej Vela <vela@debian.org>.
80978
80979 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80982         include <wchar.h>; no longer needed.
80983
80984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80987
80988 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80989         and  Ulrich Drepper  <drepper@redhat.com>
80990
80991         Import from libc.
80992         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80993         instead of inline stream orientation test and two separate
80994         function calls.  Pay no attention to USE_IN_LIBIO.
80995
80996 2005-10-13  Simon Josefsson  <jas@extundo.com>
80997
80998         * modules/gc-hmac-md5-tests: New file.
80999
81000         * tests/test-gc-hmac-sha1.c: New file.
81001
81002         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81003
81004         * modules/gc-hmac-md5-tests: New file.
81005
81006         * tests/test-gc-md5.c: New file.
81007
81008         * modules/gc-md5-tests: New file.
81009
81010 2005-10-13  Simon Josefsson  <jas@extundo.com>
81011
81012         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81013         Move memory allocation outside of loop.
81014
81015 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81016
81017         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81018         intermediate directory is in a read-only file system.  Problem
81019         reported by Eric Blake.
81020
81021 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81022
81023         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81024
81025 2005-10-12  Simon Josefsson  <jas@extundo.com>
81026
81027         * tests/test-hmac-sha1.c: New file.
81028
81029         * modules/hmac-sha1-tests: New file.
81030
81031         * modules/hmac-sha1: New file.
81032
81033 2005-10-12  Simon Josefsson  <jas@extundo.com>
81034
81035         * modules/gc-sha1: New file.
81036
81037 2005-10-12  Simon Josefsson  <jas@extundo.com>
81038
81039         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81040
81041         * tests/test-gc-pbkdf2-sha1.c: New file.
81042
81043 2005-10-12  Simon Josefsson  <jas@extundo.com>
81044
81045         * modules/gc-md5, modules/gc-hmac-md5: New files.
81046
81047         * modules/gc (Files): Remove md5, memxor and hmac files.
81048
81049 2005-10-12  Simon Josefsson  <jas@extundo.com>
81050
81051         * m4/gc-pbkdf2-sha1.m4: New file.
81052
81053         * m4/gc-hmac-sha1.m4: New file.
81054
81055         * m4/gc-sha1: New file.
81056
81057         * m4/hmac-sha1.m4: New file.
81058
81059 2005-10-12  Simon Josefsson  <jas@extundo.com>
81060
81061         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81062
81063         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81064
81065 2005-10-12  Simon Josefsson  <jas@extundo.com>
81066
81067         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81068         suggested by Bruno Haible <bruno@clisp.org>.
81069
81070 2005-10-12  Simon Josefsson  <jas@extundo.com>
81071
81072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81073
81074 2005-10-12  Simon Josefsson  <jas@extundo.com>
81075
81076         * lib/gc-pbkdf2-sha1.c: New file.
81077
81078         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81079
81080 2005-10-12  Simon Josefsson  <jas@extundo.com>
81081
81082         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81083
81084         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81085
81086 2005-10-12  Simon Josefsson  <jas@extundo.com>
81087
81088         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81089         GC_USE_HMAC_MD5, respectively.
81090
81091         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81092         (gc_md5): Fix typo.
81093
81094         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81095
81096         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81097
81098         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81099
81100 2005-10-12  Bruno Haible  <bruno@clisp.org>
81101
81102         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81103         Reported by Stepan Kasal <kasal@ucw.cz>.
81104
81105 2005-10-11  Simon Josefsson  <jas@extundo.com>
81106
81107         * tests/test-crc.c: New file.
81108
81109         * modules/crc, modules/crc-tests: New files.
81110
81111 2005-10-11  Simon Josefsson  <jas@extundo.com>
81112
81113         * m4/crc.m4: New file.
81114
81115 2005-10-11  Simon Josefsson  <jas@extundo.com>
81116
81117         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81118
81119         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81120
81121         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81122
81123 2005-10-11  Simon Josefsson  <jas@extundo.com>
81124
81125         * lib/crc.h, lib/crc.c: New files.
81126
81127         * lib/gc.h (gc_hash_buffer): Add doc.
81128
81129 2005-10-11  Bruno Haible  <bruno@clisp.org>
81130
81131         * modules/c-strcasestr: New file.
81132         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81133
81134 2005-10-11  Bruno Haible  <bruno@clisp.org>
81135
81136         * modules/c-strcase: New file.
81137         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81138
81139 2005-10-11  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/strcasecmp.c: Include limits.h.
81142         (strcasecmp): Avoid integer overflow on exotic platforms.
81143         * lib/strncasecmp.c: Include limits.h.
81144         (strncasecmp): Avoid integer overflow on exotic platforms.
81145         Reported by Paul Eggert.
81146
81147 2005-10-11  Bruno Haible  <bruno@clisp.org>
81148
81149         * lib/c-strcasestr.h: New file, from GNU gettext.
81150         * lib/c-strcasestr.c: New file, from GNU gettext.
81151
81152 2005-10-11  Bruno Haible  <bruno@clisp.org>
81153
81154         * lib/c-strcase.h: New file, from GNU gettext.
81155         * lib/c-strcasecmp.c: New file, from GNU gettext.
81156         * lib/c-strncasecmp.c: New file, from GNU gettext.
81157
81158 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * modules/mempcpy (License): GPL -> LGPL.
81161         * modules/strchrnul (License): Likewise.
81162         * modules/sysexits (License): Likewise.
81163
81164 2005-10-08  Simon Josefsson  <jas@extundo.com>
81165
81166         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81167
81168 2005-10-07  Simon Josefsson  <jas@extundo.com>
81169
81170         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81171
81172 2005-10-06  Simon Josefsson  <jas@extundo.com>
81173
81174         * tests/test-hmac-md5.c: New file.
81175
81176         * modules/hmac-md5-tests: New file.
81177
81178         * modules/hmac-md5: New file.
81179
81180 2005-10-06  Simon Josefsson  <jas@extundo.com>
81181
81182         * m4/hmac-md5.m4: New file.
81183
81184         * m4/memxor.m4: Require gl_C_RESTRICT.
81185
81186 2005-10-06  Simon Josefsson  <jas@extundo.com>
81187
81188         * lib/memxor.c (memxor): Avoid casts and warnings.
81189
81190 2005-10-06  Simon Josefsson  <jas@extundo.com>
81191
81192         * lib/hmac-md5.c: New file.
81193
81194         * lib/hmac.h: New file.
81195
81196 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81199         promotes to int, not unsigned int, to catch the AIX 5.3
81200         compiler bug.
81201
81202 2005-10-05  Simon Josefsson  <jas@extundo.com>
81203
81204         * modules/memxor: New file.
81205
81206         * modules/iconv (Files): Move config.rpath to havelib, it is used
81207         there.
81208
81209         * modules/havelib (Files): Add config.rpath.
81210
81211 2005-10-05  Simon Josefsson  <jas@extundo.com>
81212
81213         * m4/memxor.m4: New file.
81214
81215 2005-10-05  Simon Josefsson  <jas@extundo.com>
81216
81217         * lib/memxor.c (memxor): Fix compiler error.
81218
81219         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81220         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81221
81222         * lib/memxor.h, lib/memxor.c: New files.
81223
81224         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81225         we assume all systems have it, suggested by Jim Meyering
81226         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81227         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81228         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81229         same reasons.
81230
81231 2005-10-05  Simon Josefsson  <jas@extundo.com>
81232
81233         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81234
81235 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81238         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81239         needed, since the source code now assumes these .h files.
81240
81241 2005-10-05  Derek Price  <derek@ximbiot.com>
81242
81243         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81244
81245 2005-10-05  Bruno Haible  <bruno@clisp.org>
81246
81247         * modules/stdint (License): Change to LGPL.
81248
81249 2005-10-04  Simon Josefsson  <jas@extundo.com>
81250
81251         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81252         D. Baushke" <mdb@gnu.org>.
81253
81254 2005-10-04  Bruno Haible  <bruno@clisp.org>
81255
81256         * lib/verify.h (verify_true): Provide alternative definition for C++.
81257
81258 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81261         (SSIZE_MAX): New macro, if not already defined.
81262         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81263         than 2 GiB.
81264
81265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81266
81267         Sync from coreutils.
81268         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81269         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81270         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81271         ULLONG_MAX doesn't work with 2.7.2.1.
81272
81273 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81276         From Ben Pfaff.
81277
81278         * modules/exclude (Depends-on): Depend on verify.
81279         * modules/strtoimax (Depends-on): Likewise.
81280         * modules/utimecmp (Depends-on): Likewise.
81281
81282 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * lib/exclude.c: Include verify.h.
81285         (verify): Remove.  All callers changed to use verify.h's version.
81286         * lib/strtoimax.c: Likewise.
81287         * lib/utimecmp.c: Likewis.e
81288
81289         Sync from coreutils.
81290         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81291         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81292         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81293         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81294         bother returning ENOSYS if settimeofday or stime fails; just let
81295         them return whatever errno they want to return.
81296         * lib/utimens.c: Include unistd.h, for dup2.
81297         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81298         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81299
81300 2005-10-02  Jim Meyering  <jim@meyering.net>
81301
81302         Sync from coreutils.
81303         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81304         from glibc-2.2.5 that fails for read-only files.
81305
81306 2005-10-02  Jim Meyering  <jim@meyering.net>
81307
81308         Sync from coreutils.
81309         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81310         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81311         `#if HAVE_CONFIG_H'.
81312         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81313         Remove AT_FDCWD test.
81314         Do not consume the fd unless successful.
81315         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81316         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81317         block, so that we don't even try to compile it if settimeofday is
81318         available.  This works around a compilation failure on OSF1 V5.1,
81319         due to stime requiring a `long int*' while tv_sec is `int'.
81320
81321 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81322
81323         Sync from coreutils.
81324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81325         against `yes', rather than just testing for nonempty.
81326
81327 2005-10-01  Simon Josefsson  <jas@extundo.com>
81328
81329         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81330         and Darwin.
81331
81332         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81333         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81334         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81335         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81336         Check if struct addrinfo is declared.
81337
81338 2005-10-01  Simon Josefsson  <jas@extundo.com>
81339
81340         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81341         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81342         AI_* and EAI_* definitions.  Protect function declarations.
81343
81344 2005-10-01  Jim Meyering  <jim@meyering.net>
81345
81346         Sync from coreutils.
81347
81348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81349         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81350         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81352         in the inet and nsl libraries.  Required on Solaris 5.7.
81353
81354 2005-10-01  Jim Meyering  <jim@meyering.net>
81355
81356         Sync from coreutils.
81357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81358         in the inet and nsl libraries.  Required on Solaris 5.7.
81359
81360 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81361
81362         * lib/getdelim.c (getdelim): Remove unused variables.
81363
81364 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81367         so that the code works even with ancient cpp.  Portability problem
81368         with GCC 2.7.2.1 reported by Thomas M.Ott.
81369
81370 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * modules/regex (Depends-on): Add strcase.
81373
81374         * modules/gethostname (Licence): Change from GPL to LGPL, since
81375         gethostname.c is a trivial implementation of a standard library
81376         function.
81377         * modules/poll (License): Change from GPL to LGPL, since it's
81378         derived from LGPL code.
81379
81380 2005-09-27  Jim Meyering  <jim@meyering.net>
81381
81382         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81383         HAVE_CONFIG_H.
81384
81385         * lib/intprops.h (signed_type_or_expr__): Define.
81386         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81387         for unsigned types.
81388
81389 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         * lib/verify.h (verify_expr): Remove, replacing with:
81392         (verify_true): New macro that returns true instead of void.
81393         (verify_type__): Remove.
81394         (verify): Use verify_true rather than verify_type__.
81395
81396 2005-09-26  Bruno Haible  <bruno@clisp.org>
81397
81398         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81399         is necessary.
81400         (lib_SOURCES): Remove mbchar.c.
81401         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81402         (Files): Add m4/mbrtowc.m4.
81403         * modules/mbiter: Likewise.
81404         * modules/mbuiter: Likewise.
81405
81406 2005-09-26  Bruno Haible  <bruno@clisp.org>
81407
81408         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81409         compile mbchar.c if they are not both present.
81410         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81411         * m4/mbiter.m4 (gl_MBITER): Likewise.
81412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81413         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81414         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81415
81416 2005-09-25  Jim Meyering  <jim@meyering.net>
81417
81418         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81419         also uses socklen_t.
81420
81421 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * lib/utimens.c (ENOSYS): Define if not already defined.
81424         (futimens): Support having a null PATH if the file descriptor
81425         is nonnegative.
81426
81427         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81428         Remove.
81429         (__attribute): Define to empty unless GCC 3.1 or later.
81430         This works around a core dump on OpenBSD 3.4, which has GCC
81431         2.95.3, which dumps core when given __attribute__(()).  It also
81432         simplifies other tests, since we really don't want to bother with
81433         worrying about which ancient version of GCC supported what.
81434         Original problem reported by Yoann Vandoorselaere, with part of
81435         the fix suggested by Derek Price.
81436
81437 2005-09-24  Jim Meyering  <jim@meyering.net>
81438
81439         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81440         so we can once again use a positive bitfield width of 1 -- now we
81441         don't have to explain why we were using a bitfield width of 2.
81442
81443 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81446         and similarly for the other external symbols.  Problem reported
81447         by James Gallager.
81448
81449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81450         bug reported by Jim Meyering.
81451
81452         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81454         not needed, since socklen is a prerequisite module.
81455
81456 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81457
81458         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81459         Problem reported by Eric Blake.
81460         (getaddrinfo): Initialize se so that it's not garbage.
81461         Redo internal storage allocation so that it doesn't make unportable
81462         assumptions about alignment.
81463         Fix a memory leak.
81464
81465         * lib/utimens.c (futimens): Use futimesat if available.
81466         Prefer it to futimes since it doesn't have the futimes bug.
81467
81468         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81469         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81470         Instead, declare a function that returns a pointer to an array,
81471         and use verify_type__ to declare the size of the array.
81472         Problem and germ of a solution reported by Bruno Haible.
81473         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81474         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81475
81476 2005-09-23  Jim Meyering  <jim@meyering.net>
81477
81478         Sync from coreutils.
81479         Correct build failure (socklen_t not defined) on at least
81480         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81482
81483 2005-09-23  Jim Meyering  <jim@meyering.net>
81484
81485         * modules/getaddrinfo (Depends-on): Add socklen.
81486
81487 2005-09-23  Bruno Haible  <bruno@clisp.org>
81488
81489         * tests/test-verify.c: New file.
81490
81491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         Sync from coreutils.
81494
81495         * modules/argmatch (Depends-on): Add verify.
81496         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81497         unistd-safer.
81498         * modules/save-cwd (Depends-on): Likewise.
81499
81500         * modules/openat (Files): Add lib/openat-die.c.
81501         (Depends-on): Remove error, exitfail.
81502         Add dirname.
81503
81504         * modules/verify: New file.
81505         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81506         with "verify" module.
81507
81508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         Sync from coreutils.
81511
81512         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81513         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81514         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81515         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81516         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81517         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81518         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81519         Don't bother checking for string.h, stdlib.h, unistd.h.
81520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81522         module's job.
81523         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81524         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81525
81526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81527         (gl_GETDATE): Use it.
81528
81529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81530
81531 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         Sync from coreutils.
81534
81535         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81536         stat-time.h.
81537         * lib/argmatch.h: Include verify.h
81538         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81539         (ARGMATCH_ASSERT): Remove; unused.
81540         * lib/canonicalize.c: Assume STDC_HEADERS.
81541         * lib/exclude.c: Include "strcase.h".
81542         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81543         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81544         and stdio-safer.h.
81545         (getusershell): Call fopen, not fopen_safer.
81546         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81547         Do not include unistd-safer.h.
81548         (save_cwd): Don't call fd_safer; no longer needed
81549         now that we include fcntl--.h.
81550
81551         * lib/getdate.y (relative_time): New type.
81552         (RELATIVE_TIME_0): New constant.
81553         (parser_control): Use relative_time instead of doing it ourselves.
81554         (%union): Add new relative_time rel member.
81555         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81556         Now typeless.
81557         (relunit, relunit_snumber): Now of type rel.
81558         (zone, rel, relunit, get_date): Adjust to above changes.
81559
81560         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81561         Do not include unistd-safer.h.
81562         (getloadavg): Don't call fd_safer; no longer needed
81563         now that we include fcntl--.h.
81564
81565         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81566         (make_dir_parents): Treat ENOSYS like EEXIST.
81567
81568         Improve quality of diagnostics on restore_cwd failure.
81569         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81570         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81571         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81572         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81573         each time through the loop.  Do not diagnose restore_cwd failure;
81574         that is the caller's job (and perhaps the caller does not care).
81575
81576         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81577         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81578         If the file already exists but is not a directory, don't bother
81579         to try to make its parents.
81580         Close potential file descriptor leak if we can't chdir("/") (!).
81581         Don't always return true if chdir($PWD) fails; return true only
81582         if the requested action was done successfully (except for the
81583         chdir($PWD)).
81584         Don't log final directory unless we actually made it.
81585         Refactor to avoid duplicate code to fix up permissions.
81586         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81587
81588         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81589         to make it a bit faster and (I hope) clearer.
81590         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81591         Fix bug in formats like %2N.
81592
81593         * lib/verify.h: New file.
81594
81595 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         Sync from coreutils.
81598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81599
81600 2005-09-22  Jim Meyering  <jim@meyering.net>
81601
81602         Sync from coreutils.
81603
81604         * m4/lstat.m4 (gl_FUNC_LSTAT):
81605         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81606         Remove obsolete comment.
81607         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81608         * m4/xstrtod.m4: Likewise.
81609
81610         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81611
81612 2005-09-22  Jim Meyering  <jim@meyering.net>
81613
81614         Sync from coreutils.
81615
81616         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81617
81618         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81619         the .tm_year member, since otherwise gcc-4.0 would now warn about
81620         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81621
81622         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81623         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81624
81625         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81626         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81627         when run in a time zone for which daylight savings time is in effect
81628         for the starting date.
81629
81630         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81631         stop us from restricting permissions of just-created absolute-named
81632         directories.
81633         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81634         to restore initial working directory.
81635         * lib/mkdir-p.c (make_dir_parents): New parameter:
81636         different_working_dir, to tell caller if/when we change the working
81637         directory and are unable to return to the initial one.
81638         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81639         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81640         `return false'.  This fixes a bug introduced on 2004-07-30.
81641
81642         * lib/openat.c (fdopendir): Be sure to close the supplied
81643         file descriptor before returning.  This makes our replacement
81644         implementation a little closer to Solaris's, where fdopendir
81645         ties the file descriptor to the returned DIR* pointer.
81646         * lib/openat.c (unlinkat): New function.
81647         * lib/openat.h (unlinkat): Add prototype.
81648         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81649         (openat_restore_fail): Rename from openat_restore_die.
81650         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81651
81652         Provide an alternative to exiting immediately upon save_cwd or
81653         restore_cwd failure.  Now, an application can arrange e.g.,
81654         to perform a longjump in that case.
81655         * lib/openat.c: Include dirname.h.
81656         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81657         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81658         and openat_restore_die rather than calling error directly.
81659         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81660
81661         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81662         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81663         define.
81664
81665         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81666         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81667                             int utc, int nanoseconds);
81668         Background:
81669         date should not have to allocate a megabyte of virtual memory to
81670         handle a format argument like +%1048575T.  When implemented with
81671         strftime, it must allocate such a buffer, use strftime to fill it
81672         in, print it, then free it.
81673         With fprintftime, it simply prints everything and exits.
81674         With no need for memory allocation, that's one fewer way to fail.
81675         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81676         optional field width, not before, so we accept %9:z, not %:9z.
81677         (my_strftime): Be sure to use L_('x') for literals.
81678
81679         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81680         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81681         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81682         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81683         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81684         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81685         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81686         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81687         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81688         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81689         * lib/xgethostname.c, lib/xreadlink.c:
81690         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81691
81692         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81693         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81694         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81695         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81696         and don't include <sys/file.h>).
81697
81698 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81699
81700         Sync from coreutils.
81701
81702         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81703         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81704         [!LDAV_DONE]: Avoid unused variable warning.
81705
81706 2005-09-21  Bruno Haible  <bruno@clisp.org>
81707
81708         * lib/unicodeio.h (unicode_to_mb): New declaration.
81709
81710 2005-09-20  Derek Price  <derek@ximbiot.com>
81711
81712         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81713         getaddrinfo.h.
81714
81715 2005-09-20  Bruno Haible  <bruno@clisp.org>
81716
81717         * gnulib-tool: Remove trailing slashes from the values specified for
81718         --source-base, --m4-base, --tests-base, --aux-dir.
81719         Suggested by Simon Josefsson <jas@extundo.com>.
81720
81721 2005-09-20  Bruno Haible  <bruno@clisp.org>
81722
81723         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81724         func_modules_to_filelist, func_import, func_create_testdir): Make all
81725         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81726         change when gnulib-tool is invoked in a different locale.
81727
81728 2005-09-19  Simon Josefsson  <jas@extundo.com>
81729
81730         * m4/socklen.m4: Fix typo.
81731
81732 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81733
81734         Use a consistent style for including <config.h>.
81735         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81736         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81737         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81738         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81739         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81740         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81741         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81742         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81743         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81744         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81745         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81746         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81747         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81748         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81749         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81750         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81751         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81752         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81753         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81754         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81755         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81756         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81757         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81758         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81759         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81760         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81761         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81762         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81763         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81764         lib/xstrtoumax.c, lib/yesno.c:
81765         Standardize inclusion of config.h.
81766         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81767         lib/inttostr.h:  Removed inclusion of config.h from header files.
81768         * lib/inttostr.c:  Adjusted in-tree users.
81769         * lib/timespec.h: Remove superfluous warning to include config.h.
81770         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81771         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81772         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81773         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81774         config.h with HAVE_CONFIG_H.
81775
81776 2005-09-19  Jim Meyering  <jim@meyering.net>
81777
81778         * modules/pathmax (License): Change to LGPL.
81779
81780 2005-09-19  Derek Price  <derek@ximbiot.com>
81781
81782         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81783
81784 2005-09-19  Bruno Haible  <bruno@clisp.org>
81785
81786         * gnulib-tool (import): Provide default for --tests-base.
81787
81788 2005-09-19  Bruno Haible  <bruno@clisp.org>
81789
81790         * doc/quote.texi: New file, extracted from gnulib.texi.
81791         * doc/ctime.texi: New file, extracted from gnulib.texi.
81792         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81793         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81794         * doc/gnulib.texi: Include them.
81795
81796 2005-09-18  Bruno Haible  <bruno@clisp.org>
81797
81798         Portability fix.
81799         * gnulib-tool (func_readlink): New function.
81800         (func_ln_if_changed): Use it.
81801
81802 2005-09-18  Bruno Haible  <bruno@clisp.org>
81803
81804         * gnulib-tool: Support --with-tests also with --import.
81805         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81806         (func_import): Use variables $testsbase and $inctests. Emit a
81807         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81808         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81809         SUBDIRS += $testsdir.
81810         (func_create_testdir): Update.
81811
81812 2005-09-18  Bruno Haible  <bruno@clisp.org>
81813
81814         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81815         instead of $dry_run.
81816         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81817         (func_ln_if_changed): Don't handle dry-run here.
81818         (func_import): In dry-run mode, detect more precisely which actions
81819         would be performed, and don't use "...ing" verbs.
81820
81821 2005-09-18  Bruno Haible  <bruno@clisp.org>
81822
81823         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81824         (func_import): Use join on two temporary files instead of three nested
81825         loops, in order to determine which files are new or old.
81826
81827 2005-09-18  Bruno Haible  <bruno@clisp.org>
81828
81829         * gnulib-tool (func_import): Comment out code that spits out the
81830         new files with --dry-run.
81831
81832 2005-09-18  Bruno Haible  <bruno@clisp.org>
81833
81834         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81835
81836 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81837
81838         * lib/stat-time.h: New file.
81839         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81840         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81841         in a different way.
81842         (timespec_cmp): New function.
81843         * lib/utimecmp.c: Include stat-time.h.
81844         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81845         members exist, not on the obsolescent ST_MTIM_NSEC.
81846         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81847
81848 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81849
81850         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81851
81852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * MODULES.html.sh (File system functions): Add stat-time.
81855         * modules/stat-time: New file.
81856         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81857         is now done in a different way, by the stat-time module.
81858         * modules/utimecmp (Depends-on): Add stat-time.
81859
81860 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * m4/st_mtim.m4: Remove.  Superseded by...
81863         * m4/stat-time.m4: New file.
81864         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81865         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81866
81867 2005-09-15  Derek Price  <derek@ximbiot.com>
81868
81869         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81870
81871 2005-09-15  Derek Price  <derek@ximbiot.com>
81872
81873         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81874         * lib/regex_internal.c: Ditto, using this...
81875         (__GNUC_PREREQ): ...new macro.
81876         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81877         using...
81878         (__GNUC_PREREQ): ...this new macro.
81879
81880         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81881
81882 2005-09-15  Derek Price  <derek@ximbiot.com>
81883             Paul Eggert  <eggert@cs.ucla.edu>
81884
81885         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81886         changes, consolidating in...
81887         * lib/regex_internal.h: ...this file.
81888
81889 2005-09-13  Jim Meyering  <jim@meyering.net>
81890
81891         * lib/canon-host.c: Filter through gnu indent and reword comments
81892         slightly.
81893         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81894
81895 2005-09-13  Derek Price  <derek@ximbiot.com>
81896
81897         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81898         failure.
81899         Reported by Jim Meyering  <jim@meyering.net>.
81900
81901 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81902
81903         * lib/base64.c: Typo.
81904         (base64_encode): Put b64str in initialized data section.
81905
81906 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         Merge glibc and coreutils changes into gnulib, plus a few
81909         extra fixes.
81910         * lib/md5.c: Use #error rather than a string.
81911         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81912         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81913         (__attribute__): Define to empty for non recent-GCC.
81914         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81915         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81916         Renamed from their non-__ counterparts, with new macros replacing
81917         them if not _LIBC.  Add __THROW attribute.
81918         (rol): Remove.
81919         (struct md5_ctx): Align buffer if using GCC.
81920         * lib/sha1.h (struct sha1_ctx): Likewise.
81921         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81922         The old name was backwards.
81923         (NOTSWAP): Remove; not used.
81924         (rol): New macro, moved here from md5.h.
81925         (sha1_process_block): Remove a FIXME that doesn't make sense.
81926
81927 2005-09-12  Derek Price  <derek@ximbiot.com>
81928
81929         Return usable errors from canon-host.
81930         * lib/canon-host.h: New file.
81931         * lib/canon-host.c (canon_host): Wrap...
81932         (canon_host_r): ...this new function, which now relies exclusively on
81933         getaddrinfo.
81934         (ch_strerror): New function.
81935         (last_cherror): New global.
81936         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81937         interface.
81938         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81939         void *.
81940         (freeaddrinfo): Free ai->ai_canonname when set.
81941
81942 2005-09-12  Derek Price  <derek@ximbiot.com>
81943
81944         Make canon-host require getaddrinfo.
81945         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81946         AC_LIBSOURCE canon-host.h.  Call...
81947         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81948         gl_GETADDRINFO.
81949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81950
81951 2005-09-12  Derek Price  <derek@ximbiot.com>
81952
81953         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81954         LGPL.
81955         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81956
81957 2005-09-12  Derek Price  <derek@ximbiot.com>
81958
81959         * lib/gai_strerror.c: Include config.h when available.  Include
81960         getaddrinfo.h before other headers to test interface.
81961         Reported by Larry Jones <lawrence.jones@ugs.com>.
81962
81963 2005-09-12  Derek Price  <derek@ximbiot.com>
81964             Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * modules/glob (Files): Add glob-libc.h.
81967
81968 2005-09-12  Derek Price  <derek@ximbiot.com>
81969             Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81972         glob_.h, glob-libc.h.
81973         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81974
81975 2005-09-12  Derek Price  <derek@ximbiot.com>
81976             Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81979         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81980         protecting things that should be done only in gnulib contexts.
81981         * lib/glob_.h: New file, containing only the glob things needed for
81982         gnulib.
81983         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81984         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81985         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81986         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81987         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81988         and to respect the namespace rules better.
81989
81990 2005-09-08  Simon Josefsson  <jas@extundo.com>
81991
81992         * modules/socklen: New file.
81993
81994 2005-09-08  Simon Josefsson  <jas@extundo.com>
81995
81996         * m4/socklen.m4: New file.
81997
81998 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * modules/utimens (Files): Add m4/utimbuf.m4, since
82001         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82002         Reported by Sergey Poznyakoff.
82003
82004 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82005
82006         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82007         definitions, since that's the preferred style in glibc.
82008         Fix a minor spacing issue, and update copyright notice to match
82009         glibc's.
82010
82011 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82012
82013         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82014
82015 2005-09-06  Simon Josefsson  <jas@extundo.com>
82016
82017         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82018         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82019
82020 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82023         warning.
82024
82025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * config/srclist.txt: Add glibc bug 1302.
82028
82029 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         Change bitset word type from unsigned int to unsigned long int,
82032         as this has better performance on typical 64-bit hosts.
82033         Port bitset code to hosts with unusual word sizes.
82034         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82035         (build_collating_symbol):
82036         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82037         argument is a bitset.  This is merely a style issue, but it makes
82038         it clearer that an entire array is expected.
82039         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82040         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82041         Port to the case where bitset_word is not the same as unsigned int.
82042         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82043         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82044         Likewise.
82045         * lib/regexec.c (check_dst_limits_calc_pos_1,
82046         check_subexp_matching_top):
82047         (build_trtable, group_nodes_into_DFAstates):
82048         Likewise.
82049         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82050         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82051         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82052         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82053         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82054         * lib/regcomp.c (optimize_subexps, lower_subexp):
82055         Work even if bitset_word has holes in its bitwise representation.
82056         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82057         * lib/regexec.c (check_dst_limits_calc_pos_1,
82058         check_subexp_matching_top):
82059         Likewise.
82060         * lib/regex_internal.c (re_string_reconstruct):
82061         Don't assume UCHAR_MAX == 255.
82062         * lib/regex_internal.h (bitset_set_all): Likewise.
82063         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82064         All uses changed.
82065         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82066         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82067         All uses changed.
82068         (BITSET_WORD_MAX): New macro.
82069         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82070         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82071         (bitset_empty, bitset_copy):
82072         Prefer sizeof (bitset) to multiplying it out ourselves.
82073         (bitset_not_merge): Remove; unused.
82074         (bitset_contain): Return bool, not unsigned int with one bit on.
82075         All callers changed.
82076         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82077         alignment than re_node_set; do this by defining a new internal
82078         type struct dests_alloc and using it to allocate memory.
82079
82080 2005-09-05  Bruno Haible  <bruno@clisp.org>
82081
82082         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82083         links.
82084
82085 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82086
82087         * modules/size_max (Makefile.am): Add size_max.h
82088
82089 2005-09-04  Derek Price  <derek@ximbiot.com>
82090
82091         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82092
82093 2005-09-03  Simon Josefsson  <jas@extundo.com>
82094
82095         * gnulib-tool: Fix typo.
82096
82097 2005-09-03  Simon Josefsson  <jas@extundo.com>
82098
82099         * config/srclist.txt: Add glibc bug 1293.
82100
82101 2005-09-03  Derek Price  <derek@ximbiot.com>
82102
82103         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82104         From Larry Jones <lawrence.jones@ugs.com>.
82105
82106 2005-09-02  Simon Josefsson  <jas@extundo.com>
82107
82108         * modules/socklen: New file.
82109
82110 2005-09-02  Simon Josefsson  <jas@extundo.com>
82111
82112         * modules/havelib: New module.
82113
82114         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82115         Use havelib.
82116
82117 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         Check for arithmetic overflow when calculating sizes, to prevent
82120         some buffer-overflow issues.  These patches are conservative, in the
82121         sense that when I couldn't determine whether an overflow was possible,
82122         I inserted a run-time check.
82123         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82124         macros.
82125         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82126         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82127         (re_xnrealloc, re_x2nrealloc): New inline functions.
82128         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82129         parse_bracket_exp):
82130         (build_equiv_class, build_charclass): Check for arithmetic overflow
82131         in size expression calculations.
82132         * lib/regex_internal.c (re_string_realloc_buffers):
82133         (build_wcs_upper_buffer, re_node_set_add_intersect):
82134         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82135         (re_dfa_add_node, register_state): Likewise.
82136         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82137         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82138         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82139         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82140
82141 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82144         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82145
82146 2005-09-02  Bruno Haible  <bruno@clisp.org>
82147
82148         Support for lib vs. lib64 distinction on biarch platforms.
82149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82150         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82152
82153 2005-09-02  Bruno Haible  <bruno@clisp.org>
82154
82155         * gnulib-tool (import): In the other first-use case, provide defaults
82156         as well.
82157
82158 2005-09-02  Bruno Haible  <bruno@clisp.org>
82159
82160         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82161         patches not yet found in the latest gettext release.
82162
82163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82164
82165         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82166         to avoid a collision with bits/local_lim.h in glibc.
82167         All uses changed.  Problem reported by Dmitry V. Levin in
82168         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82169
82170         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82171         bugs in int versus size_t comparisons.
82172         (re_string_context_at): Fix bug where the code assumed that
82173         Idx is signed.
82174
82175         Use bool where appropriate.
82176         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82177         All callers changed.
82178         (calc_eclosure_iter): Likewise, for ROOT arg.
82179         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82180         (build_charclass_op): Likewise, for NON_MATCH arg.
82181         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82182         (re_string_construct_common): Likewise, for ICASE arg.
82183         * lib/regexec.c (re_search_2_stub, re_search_stub):
82184         Likewise, for RET_LEN arg.
82185         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82186         (set_regs): Likewise, for FL_BACKTRACK arg.
82187         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82188         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82189         (calc_eclosure_iter, parse_bracket_exp):
82190         Use bool for internal variables that are booleans.
82191         * lib/regexec.c (re_search_internal, check_matching,
82192         proceed_next_node):
82193         (set_regs, build_sifted_states, sift_states_bkref):
82194         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82195         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82196         (find_collation_sequence_value):
82197         Likewise.
82198         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82199         (re_node_set_compare):
82200         Return bool, not int. All callers changed.
82201         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82202         (build_trtable, check_node_accept): Likewise.
82203         * lib/regex_internal.h: Include stdbool.h.
82204
82205         Fix bugs uncovered when converting to bool.
82206         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82207         failure instead of charging ahead blindly.
82208         * lib/regex_internal.c (register_state): Likewise.
82209         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82210         for freeing internal storage.
82211         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82212         bitset pieces used as boolean, to avoid undefined behavior
82213         on hosts that do int overflow checking.
82214
82215 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * config/srclist.txt: Add glibc bugs 1285-1287.
82218
82219 2005-09-01  Jim Meyering  <jim@meyering.net>
82220
82221         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82222         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82223         Require gl_STAT_MACROS, too.
82224
82225 2005-09-01  Bruno Haible  <bruno@clisp.org>
82226
82227         * gnulib-tool (import): In the first-use case, provide defaults.
82228
82229 2005-09-01  Bruno Haible  <bruno@clisp.org>
82230
82231         * gnulib-tool (func_import): Remove the .tmp files.
82232
82233 2005-09-01  Bruno Haible  <bruno@clisp.org>
82234
82235         * gnulib-tool (func_import): Fix handling of symbolic links.
82236
82237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82240         old glibc regex code mishandles strings longer than 2**31 bytes.
82241         This patch fixes this when the regex code is used in gnulib
82242         (i.e., outside glibc).
82243
82244         This patch should not affect the use of the regex code inside
82245         glibc.  No doubt this problem also needs to be handled for glibc
82246         as well, but the result will be an incompatible change to the
82247         glibc ABI, and the old ABI will have to be supported too.  That
82248         can be the the subject for another patch.
82249
82250         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82251         governing whether the rest of this patch is active.  By default,
82252         the macro is disabled and the patch has no effect.
82253         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82254         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82255         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82256         (re_match_2, re_set_registers): Use the new types.
82257         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82258         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82259         New macros.
82260         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82261         (re_string_context_at, bin_tree_t, re_dfastate_t):
82262         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82263         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82264         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82265         (re_string_char_size_at, re_string_wchar_at):
82266         (re_string_elem_size_at):
82267         Use the new types and macros to port to 64-bit hosts.
82268         Use unsigned types for internal values, so that the code
82269         mostly works even for arrays larger than SSIZE_MAX.
82270         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82271         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82272         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82273         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82274         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82275         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82276         (calc_inveclosure, parse_dup_op, build_range_exp):
82277         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82278         (fetch_number, create_token_tree, mark_opt_subexp):
82279         Likewise.
82280         * lib/regex_internal.c (re_string_construct_common,
82281         create_ci_newstate):
82282         (create_cd_newstate, re_string_allocate, re_string_construct):
82283         (re_string_realloc_buffers, build_wcs_upper_buffer):
82284         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82285         (re_string_reconstruct, re_string_peek_byte_case):
82286         (re_string_fetch_byte_case, re_string_context_at):
82287         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82288         (re_node_set_init_copy, re_node_set_add_intersect):
82289         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82290         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82291         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82292         (re_acquire_state, re_acquire_state_context, register_state):
82293         Likewise.
82294         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82295         search_cur_bkref_entry):
82296         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82297         (re_search_internal, re_search_2_stub, re_search_stub)
82298         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82299         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82300         (update_cur_sifted_state, check_dst_limits):
82301         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82302         (check_subexp_limits, sift_states_bkref, merge_state_array):
82303         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82304         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82305         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82306         (expand_bkref_cache, check_node_accept_bytes):
82307         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82308         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82309         (acquire_init_state_context, check_halt_node_context):
82310         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82311         (sift_states_backward, clean_state_log_if_needed):
82312         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82313         (find_recover_state, transit_state_sb, transit_state_mb):
82314         (transit_state_bkref, build_trtable, match_ctx_clean):
82315         Likewise.
82316         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82317         to work around an assumption that REG_MISSING is negative.
82318
82319         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82320         (seek_collating_symbol_entry) [defined _LIBC]:
82321         (lookup_collation_sequence_value) [defined _LIBC]:
82322         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82323         Use prototypes rather than old-style function definitions.
82324         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82325         (transit_state_sb) [0]:
82326         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82327
82328         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82329         rm_eo.
82330
82331         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82332         (optimize_subexps, lower_subexp):
82333         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82334         since the signed shift might overflow.  Use 1u<<31 instead.
82335         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82336         Likewise.
82337         * lib/regexec.c (check_dst_limits_calc_pos_1,
82338         check_subexp_matching_top): Likewise.
82339
82340         * lib/regcomp.c (optimize_subexps, lower_subexp):
82341         Use CHAR_BIT rather than 8, for clarity.
82342         * lib/regexec.c (check_dst_limits_calc_pos_1):
82343         (check_subexp_matching_top): Likewise.
82344         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82345         have to worry about portability issues when shifting it left.
82346         Remove no-longer-needed test for table_size > 0.
82347         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82348         in a word, as the resulting behavior is undefined.
82349         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82350         in one case, a <= should have been an <, and in another case the
82351         whole test was missing.
82352         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82353         the standard name CHAR_BIT.
82354         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82355         this is not true on one's complement and signed-magnitude hosts.
82356
82357         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82358         next_last_offset.
82359         (struct re_dfa_t): Remove unused member states_alloc.
82360         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82361
82362 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82365         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82366         and large-file glibc and in 32-bit large-file Solaris.
82367
82368 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82369
82370         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82371         lengths fit in regoff_t; this isn't true if regoff_t is the same
82372         width as size_t.
82373         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82374         (= START + RANGE) instead of RANGE.  This avoids overflow
82375         problems when regoff_t is the same width as size_t.
82376         All callers changed.
82377         (re_search_2_stub): Check for overflow when adding the
82378         sizes of the two strings.
82379         (re_search_stub): Check for overflow when adding START
82380         to RANGE; if it occurs, substitute the extreme value.
82381
82382 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82385
82386 2005-08-31  Jim Meyering  <jim@meyering.net>
82387
82388         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82389         a pointer-to-const.
82390         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82391         (register_state): Likewise.
82392         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82393         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82394         (group_nodes_into_DFAstates): Likewise.
82395
82396 2005-08-31  Jim Meyering  <jim@meyering.net>
82397
82398         * check-module: Add a FIXME comment.
82399
82400 2005-08-31  Eric Blake  <ebb9@byu.net>
82401
82402         * modules/unistd-safer (Files): Add unistd--.h.
82403         * modules/stdio-safer (Files): Add stdio--.h.
82404
82405 2005-08-31  Derek Price  <derek@ximbiot.com>
82406
82407         * lib/getdelim.c (getdelim): Return EOF on EOF.
82408         Reported by Larry Jones <lawrence.jones@ugs.com>.
82409
82410 2005-08-31  Bruno Haible  <bruno@clisp.org>
82411
82412         Avoid unnecessary diffs in the generated lib/Makefile.am.
82413         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82414         the generated files.
82415         (func_import): Don't set cmd.
82416
82417 2005-08-31  Bruno Haible  <bruno@clisp.org>
82418
82419         * lib/strstr.c: Include <stddef.h>, for NULL.
82420         * lib/strcasestr.c: Likewise.
82421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82422
82423 2005-08-31  Bruno Haible  <bruno@clisp.org>
82424
82425         * gnulib-tool: New option --macro-prefix.
82426         (func_import): Use macro_prefix.
82427         (import): Handle option --macro-prefix.
82428
82429 2005-08-31  Bruno Haible  <bruno@clisp.org>
82430
82431         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82432         Also use new variables cached_lgpl, cached_libtool.
82433
82434 2005-08-31  Bruno Haible  <bruno@clisp.org>
82435
82436         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82437         always instantiating them.
82438
82439 2005-08-31  Bruno Haible  <bruno@clisp.org>
82440
82441         * gnulib-tool (func_import): Read the previous cached settings
82442         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82443         earlier added by gnulib but are now dropped. Warn when a gnulib file
82444         overwrites a non-gnulib file.
82445
82446 2005-08-31  Bruno Haible  <bruno@clisp.org>
82447
82448         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82449         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82450         projects that don't keep autogenerated files in CVS. Put into
82451         actioncmd only the specified modules, not the transitive closure.
82452
82453 2005-08-31  Bruno Haible  <bruno@clisp.org>
82454
82455         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82456         Create directories that shall be filled.
82457         (import): Don't look for gl_* macros in configure.ac. Recurse across
82458         all directories containing a gnulib-cache.m4 files, if meaningful.
82459
82460 2005-08-31  Bruno Haible  <bruno@clisp.org>
82461
82462         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82463         (import): Set seen_libtool when we see gl_LIBTOOL.
82464
82465 2005-08-31  Bruno Haible  <bruno@clisp.org>
82466
82467         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82468         declaration macro definitions from generated gnulib.m4.
82469
82470 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82471
82472         * lib/iconvme.h: Add prototype for iconv_alloc.
82473
82474 2005-08-29  Simon Josefsson  <jas@extundo.com>
82475
82476         * lib/iconvme.c: Fix errno.
82477
82478 2005-08-29  Bruno Haible  <bruno@clisp.org>
82479
82480         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82481         that it works when the directory contains spaces.
82482
82483 2005-08-29  Bruno Haible  <bruno@clisp.org>
82484
82485         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82486
82487 2005-08-29  Bruno Haible  <bruno@clisp.org>
82488
82489         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82490         Emit more advice.
82491
82492 2005-08-29  Bruno Haible  <bruno@clisp.org>
82493         and Stepan Kasal  <kasal@ucw.cz>
82494
82495         * check-module: If more parameters are given, check each of them
82496         separately; add more exceptions, as noted by Jim Meyering.
82497         (check_module): New procedure.
82498         (%exempt_header): Now contains all exceptions.
82499
82500 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82501
82502         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82503
82504 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82505
82506         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82507
82508 2005-08-28  Bruno Haible  <bruno@clisp.org>
82509
82510         * m4/gnulib-tool.m4: New file.
82511
82512 2005-08-27  Jim Meyering  <jim@meyering.net>
82513
82514         * modules/unistd-safer (Files): Add pipe-safer.c.
82515         * modules/fcntl-safer (Files): Add creat-safer.c.
82516
82517 2005-08-27  Jim Meyering  <jim@meyering.net>
82518
82519         * m4/stdlib-safer.m4: New file.  From coreutils.
82520         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82521         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82522         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82523         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82524         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82525
82526 2005-08-27  Jim Meyering  <jim@meyering.net>
82527
82528         * lib/fopen-safer.c: Merge minor changes from coreutils.
82529         * lib/dup-safer.c: Likewise.
82530         * lib/fd-safer.c: Likewise.
82531
82532         Merge from coreutils.
82533         * lib/stdio--.h: New file.
82534         * lib/stdlib--.h: New file.
82535         * lib/mkstemp-safer.c: New file.
82536
82537         GNU tar needs these.
82538         * lib/pipe-safer.c: New file.
82539         * lib/creat-safer.c: New file.
82540         * lib/fcntl--.h (creat): Define to creat_safer.
82541         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82542         * lib/unistd--.h (pipe): Define to pipe_safer.
82543         * lib/unistd-safer.h: Declare pipe_safer.
82544
82545 2005-08-26  Simon Josefsson  <jas@extundo.com>
82546
82547         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82548         Haible <bruno@clisp.org>.
82549
82550 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         * lib/regex_internal.h: Remove all references to
82553         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82554         or better.
82555         (bitset_not, bitset_merge, bitset_not_merge):
82556         (bitset_mask, re_string_allocate, re_string_construct):
82557         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82558         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82559         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82560         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82561         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82562         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82563         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82564         (re_acquire_state_context):
82565         Remove unnecessary forward decls.
82566         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82567         Put __attribute at function definition,
82568         now that the function decl has been removed.
82569         * lib/regex_internal.c (re_string_peek_byte_case):
82570         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82571         Likewise.
82572
82573 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82574
82575         * m4/regex.m4: Add AC_PREREQ(2.50).
82576         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82577
82578 2005-08-25  Simon Josefsson  <jas@extundo.com>
82579
82580         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82581         __fsetlocking.
82582
82583 2005-08-25  Simon Josefsson  <jas@extundo.com>
82584
82585         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82586         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82587         GLIBC specific code.
82588
82589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         Make regex safe for g++.  This fixes one real bug (an "err"
82592         that should have been "*err").  g++ problem reported by
82593         Sam Steingold.
82594         * lib/regex_internal.h (re_calloc): New macro, consistent with
82595         re_malloc etc.  All callers of calloc changed to use re_calloc.
82596         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82597         not int.  All callers changed.
82598         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82599         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82600         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82601         (find_recover_state): Change "err" to "*err"; this fixes what
82602         appears to be a real bug.
82603         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82604         versus int.
82605
82606 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82607
82608         * modules/regex (Depends-on): Add malloc, since the code
82609         assumes that !malloc(0) means failure.
82610
82611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82612
82613         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82614
82615         alloca modernization/simplification for regex.
82616         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82617         needs to be at the start of the file, and can be moved into
82618         regex_internal.h and simplified.
82619         * lib/regex_internal.h: Include <alloca.h>.
82620         (__libc_use_alloca) [!defined _LIBC]: New macro.
82621         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82622         now works outside glibc.
82623
82624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * config/srclist.txt: Add glibc bugs 1241, 1245.
82627
82628 2005-08-25  Jim Meyering  <jim@meyering.net>
82629
82630         * lib/open-safer.c: Include <config.h>.
82631         Otherwise, we'd lose LARGEFILE support in any file using
82632         e.g. "fcntl--.h"
82633
82634 2005-08-25  Bruno Haible  <bruno@clisp.org>
82635
82636         * m4/minmax.m4: Require autoconf 2.52.
82637         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82638         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82639         alternatives of translit over the alphabet.
82640         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82641
82642 2005-08-24  Simon Josefsson  <jas@extundo.com>
82643
82644         * tests/test-getpass.c: New file.
82645
82646 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82647
82648         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82649         for GNU regex features.
82650
82651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82652
82653         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82654         * lib/regex.h (regerror): Likewise.
82655
82656         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82657         requires this.  (The code never needed it.)
82658
82659         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82660         All uses of recently-renamed identifiers changed to use the new,
82661         POSIX-compliant names.  The code will build and run just fine
82662         without these changes, but it's better to eat our own dog food
82663         and use the standard-conforming names.
82664
82665         * lib/regex.h: Fix a multitude of POSIX name space violations.
82666         These changes have an effect only for programs that define
82667         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82668         do not change anything for programs compiled in the normal way.
82669         Also, there is no effect on the ABI.
82670
82671         (_REGEX_SOURCE): New macro.
82672         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82673         defined and _GNU_SOURCE is not; this fixes a name space violation.
82674
82675         Rename the following macros to obey POSIX requirements.
82676         The old names are still visible as macros if _REGEX_SOURCE is defined.
82677         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82678         RE_BACKSLASH_ESCAPE_IN_LISTS.
82679         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82680         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82681         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82682         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82683         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82684         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82685         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82686         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82687         (REG_INTERVALS): renamed from RE_INTERVALS.
82688         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82689         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82690         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82691         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82692         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82693         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82694         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82695         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82696         RE_UNMATCHED_RIGHT_PAREN_ORD.
82697         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82698         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82699         (REG_DEBUG): renamed from RE_DEBUG.
82700         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82701         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82702         unusual, since we can't clash with the POSIX REG_ICASE.
82703         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82704         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82705         (REG_NO_SUB): renamed from RE_NO_SUB.
82706         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82707         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82708         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82709         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82710         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82711         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82712         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82713         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82714         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82715         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82716         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82717         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82718         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82719         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82720         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82721         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82722         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82723         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82724         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82725         (REG_FIXED): Renamed from REGS_FIXED.
82726         (REG_NREGS): Renamed from RE_NREGS.
82727
82728         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82729         of other REG_* macros, since POSIX says the user is allowed to
82730         #undef these macros selectively.
82731
82732         (reg_errcode_t): Update comment stating what other tables need
82733         to be consistent.
82734
82735         Rename the following enum values to obey POSIX requirements.
82736         The old names are still visible as macros.
82737         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82738         is not defined, since GNU is supposed to be a superset of POSIX as
82739         much as possible, and since we want reg_errcode_t to be a signed
82740         type for implementation consistency.
82741         (_REG_NOERROR): Renamed from REG_NOERROR.
82742         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82743         (_REG_BADPAT): Renamed from REG_BADPAT.
82744         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82745         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82746         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82747         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82748         (_REG_EBRACK): Renamed from REG_EBRACK.
82749         (_REG_EPAREN): Renamed from REG_EPAREN.
82750         (_REG_EBRACE): Renamed from REG_EBRACE.
82751         (_REG_BADBR): Renamed from REG_BADBR.
82752         (_REG_ERANGE): Renamed from REG_ERANGE.
82753         (_REG_ESPACE): Renamed from REG_ESPACE.
82754         (_REG_BADRPT): Renamed from REG_BADRPT.
82755         (_REG_EEND): Renamed from REG_EEND.
82756         (_REG_ESIZE): Renamed from REG_ESIZE.
82757         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82758         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82759         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82760         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82761         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82762
82763         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82764         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82765         changed.  But support the old name if the new one is not defined
82766         and if _REGEX_SOURCE.
82767
82768         Change the following member names in struct re_pattern_buffer.
82769         The old names are still supported if !_REGEX_SOURCE.
82770         The new names are always supported, regardless of _REGEX_SOURCE.
82771         (re_buffer): Renamed from buffer.
82772         (re_allocated): Renamed from allocated.
82773         (re_used): Renamed from used.
82774         (re_syntax): Renamed from syntax.
82775         (re_fastmap): Renamed from fastmap.
82776         (re_translate): Renamed from translate.
82777         (re_can_be_null): Renamed from can_be_null.
82778         (re_regs_allocated): Renamed from regs_allocated.
82779         (re_fastmap_accurate): Renamed from fastmap_accurate.
82780         (re_no_sub): Renamed from no_sub.
82781         (re_not_bol): Renamed from not_bol.
82782         (re_not_eol): Renamed from not_eol.
82783         (re_newline_anchor): Renamed from newline_anchor.
82784
82785         Change the following member names in struct re_registers.
82786         The old names are still supported if !_REGEX_SOURCE.
82787         The new names are always supported, regardless of _REGEX_SOURCE.
82788         (rm_num_regs): Renamed from num_regs.
82789         (rm_start): Renamed from start.
82790         (rm_end): Renamed from end.
82791
82792         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82793         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82794         Prepend __ to parameter names.
82795
82796         Undo yesterday's changes.
82797
82798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82801         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82802         lib/regex.c.
82803
82804 2005-08-24  Jim Meyering  <jim@meyering.net>
82805
82806         Sync from coreutils.
82807         * m4/fcntl-safer.m4: New file.
82808
82809         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82810         and object files for this module.
82811
82812 2005-08-24  Jim Meyering  <jim@meyering.net>
82813
82814         Sync from coreutils.
82815         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82816
82817 2005-08-24  Jim Meyering  <jim@meyering.net>
82818
82819         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82820         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82821
82822 2005-08-24  Jim Meyering  <jim@meyering.net>
82823
82824         * modules/fcntl-safer: New module.
82825         * modules/fts (Depends-on): Add fcntl-safer.
82826         * MODULES.html.sh (File descriptor based Input/Output):
82827         Add fcntl-safer.
82828
82829 2005-08-24  Bruno Haible  <bruno@clisp.org>
82830
82831         Support for unit test modules.
82832         * modules/README: Mention tests modules.
82833         * modules/TEMPLATE-TESTS: New file.
82834         * gnulib-tool: New options --extract-tests-module, --with-tests and
82835         --tests-base (unused for the moment).
82836         (testsbase, inctests): New variables.
82837         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82838         (func_verify_module): Exclude TEMPLATE-TESTS.
82839         (func_verify_nontests_module, func_verify_tests_module): New functions.
82840         (func_get_dependencies): Add implicit dependency for tests modules.
82841         (func_get_tests_module): New function.
82842         (func_modules_transitive_closure): When --with-tests was specified,
82843         include the unit tests as well, unless explicitly avoided.
82844         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82845         (func_emit_tests_Makefile_am): New function.
82846         (func_create_testdir): When --with-tests was specified, emit a
82847         tests/ directory.
82848         * MODULES.html.sh (Future developments): Update.
82849
82850 2005-08-24  Bruno Haible  <bruno@clisp.org>
82851
82852         * modules/tls-tests: New file.
82853         * tests/test-tls.c: New file, from GNU gettext.
82854
82855 2005-08-24  Bruno Haible  <bruno@clisp.org>
82856
82857         * modules/lock-tests: New file.
82858         * tests/test-lock.c: New file, from GNU gettext.
82859
82860 2005-08-24  Bruno Haible  <bruno@clisp.org>
82861
82862         * lib/lock.h: Add multiple inclusion guard.
82863         * lib/tls.h: Add multiple inclusion guard.
82864
82865 2005-08-24  Bruno Haible  <bruno@clisp.org>
82866
82867         * gnulib-tool: Add support for the --aux-dir option to
82868         --create-testdir, --create-megatestdir, --test, --megatest.
82869         (func_create_testdir, func_create_megatestdir): Optionally emit a
82870         AC_CONFIG_AUX_DIR directive.
82871         (create-testdir, create-megatestdir, test, megatest): Provide a
82872         default value for $auxdir.
82873
82874 2005-08-24  Bruno Haible  <bruno@clisp.org>
82875
82876         * gnulib-tool (import): Use compound statement instead of subshell
82877         where possible.
82878
82879 2005-08-24  Bruno Haible  <bruno@clisp.org>
82880
82881         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82882
82883 2005-08-24  Bruno Haible  <bruno@clisp.org>
82884
82885         * gnulib-tool (func_version): Update.
82886
82887 2005-08-24  Bruno Haible  <bruno@clisp.org>
82888
82889         * gnulib-tool (func_import, func_create_testdir,
82890         func_create_megatestdir): Quote all autoconf macro arguments.
82891
82892 2005-08-24  Bruno Haible  <bruno@clisp.org>
82893
82894         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82895         option --force, because --force causes the aclocal.m4 of each
82896         subdirectory to be newer than the corresponding config.h.in.
82897
82898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82901         All contents moved to gl_REGEX.
82902         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82903         assume that it does.
82904
82905 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         * lib/regex.h (REG_NOSYS)
82908         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82909         Define, since POSIX requires it as of 2001.
82910         (_REG_ENOSYS)
82911         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82912         New private symbol, used to keep the enum signed in all cases.
82913         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82914         Youngman in
82915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82916
82917         * lib/regex_internal.c (re_string_skip_chars, register_state):
82918         (calc_state_hash):
82919         Remove forward decls; no longer needed now that we use prototypes.
82920         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82921         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82922         (clean_state_log_if_needed): Likewise.
82923
82924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * config/srclist.txt: Add glibc bugs 1231-1233.
82927
82928 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         Fix problems reported by Sam Steingold in
82931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82932         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82933         assumed that reg_errcode_t is a signed type, which is not
82934         necessarily true if _XOPEN_SOURCE is not defined.
82935         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82936         since some compilers warn about it otherwise.
82937
82938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82941         (init_word_char, create_initial_state, duplicate_node_closure):
82942         (fetch_token, peek_token_bracket, build_range_exp):
82943         (build_collating_symbol): Remove forward decls; no longer needed
82944         now that we use prototypes.
82945
82946         * lib/regcomp.c:
82947         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82948         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82949         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82950         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82951         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82952         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82953         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82954         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82955         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82956         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82957         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82958         (build_charclass, build_charclass_op, fetch_number, create_tree):
82959         (create_token_tree, mark_opt_subexp, duplicate_tree):
82960         Use prototypes rather than old-style definitions.
82961
82962         * lib/regex_internal.c:
82963         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82964         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82965         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82966         (re_string_reconstruct, re_string_peek_byte_case):
82967         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82968         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82969         (re_node_set_init_copy, re_node_set_add_intersect):
82970         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82971         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82972         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82973         (re_acquire_state, re_acquire_state_context, register_state):
82974         (create_ci_newstate, create_cd_newstate, free_state):
82975         Likewise.
82976         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82977         re_search_2):
82978         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82979         (re_search_internal, prune_impossible_nodes):
82980         (acquire_init_state_context, check_matching, static):
82981         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82982         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82983         (update_regs, sift_states_backward, build_sifted_states):
82984         (clean_state_log_if_needed, merge_state_array):
82985         (update_cur_sifted_state, add_epsilon_src_nodes):
82986         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82987         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82988         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82989         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82990         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82991         (check_arrival, check_arrival_add_next_nodes):
82992         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82993         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82994         (check_node_accept_bytes, check_node_accept, extend_buffers):
82995         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82996         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82997         (sift_ctx_init):
82998         Likewise.
82999
83000         * lib/regex_internal.h:
83001         (re_string_allocate, re_string_construct, re_string_reconstruct):
83002         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83003         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83004         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83005         (re_string_context_at, re_string_peek_byte_case):
83006         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83007         is defined, since we now use prototypes always.
83008
83009         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83010         C89 or better.  All uses removed.
83011
83012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * config/srclist.txt: Add glibc bugs 1220-1227.
83015
83016 2005-08-20  Jim Meyering  <jim@meyering.net>
83017
83018         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83019         of unused local, dfa.
83020
83021 2005-08-20  Bruno Haible  <bruno@clisp.org>
83022
83023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83024
83025 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83028         (re_node_set_insert_last, re_dfa_add_node):
83029         Rename local variables to avoid GCC shadowing warnings.
83030
83031 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83034         [defined lint]: Suppress bogus uninitialized-variable warnings.
83035
83036         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83037         and let the caller return REG_ESPACE if out of space.  This
83038         removes an uninitialied-variable warning with GCC 4.0.1, and also
83039         avoids taking the address of a local variable.  All callers
83040         changed.
83041
83042 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83045         $LIBCSRC/posix/regexec.c.
83046         Add glibc bug 1217 for regcomp.c.
83047
83048 2005-08-19  Jim Meyering  <jim@meyering.net>
83049
83050         * lib/regexec.c (proceed_next_node): Redo local variables to
83051         avoid GCC shadowing warnings.
83052
83053 2005-08-18  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/strstr.c (strstr): Fix return value in multibyte case.
83056         * lib/strcasestr.c (strcasestr): Likewise.
83057
83058 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83061
83062 2005-08-17  Jim Meyering  <jim@meyering.net>
83063
83064         Make the %s format (seconds since the epoch) work for a negative
83065         number and when used with a zero-padded field width, e.g. %015s.
83066
83067         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83068         label so that it precedes the code to set `digits'.  Otherwise,
83069         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83070         print `00-22'.  Now, it prints `-0022', as it should.
83071
83072 2005-08-17  Bruno Haible  <bruno@clisp.org>
83073
83074         * modules/strstr (Files): Add m4/mbrtowc.m4.
83075         (Depends-on): Add mbuiter.
83076
83077 2005-08-17  Bruno Haible  <bruno@clisp.org>
83078
83079         * modules/strcasestr: New file.
83080         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83081         strcasestr.
83082
83083 2005-08-17  Bruno Haible  <bruno@clisp.org>
83084
83085         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83086
83087 2005-08-17  Bruno Haible  <bruno@clisp.org>
83088
83089         * modules/mbuiter: New file.
83090         * MODULES.html.sh (Extended multibyte and wide character utilities):
83091         Add mbuiter.
83092
83093 2005-08-17  Bruno Haible  <bruno@clisp.org>
83094
83095         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83096         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83097
83098 2005-08-17  Bruno Haible  <bruno@clisp.org>
83099
83100         * m4/strcasestr.m4: New file.
83101
83102 2005-08-17  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83105         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83106
83107 2005-08-17  Bruno Haible  <bruno@clisp.org>
83108
83109         * lib/strcasestr.h: New file.
83110         * lib/strcasestr.c: New file.
83111
83112 2005-08-17  Bruno Haible  <bruno@clisp.org>
83113
83114         * lib/strcasecmp.c: Use mbuiter.h.
83115
83116 2005-08-17  Bruno Haible  <bruno@clisp.org>
83117
83118         * lib/mbuiter.h: New file.
83119
83120 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83123         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83124         and gl_GETOPT are both invoked via different paths (as happens
83125         with GNU tar CVS because it uses both argp and getopt), the former
83126         wins.
83127
83128 2005-08-16  Bruno Haible  <bruno@clisp.org>
83129
83130         * modules/tls: New file.
83131         * MODULES.html.sh (Multithreading): Add tls.
83132
83133 2005-08-16  Bruno Haible  <bruno@clisp.org>
83134
83135         * modules/strnlen1: New file.
83136         * MODULES.html.sh (String handling): Add strnlen1.
83137
83138 2005-08-16  Bruno Haible  <bruno@clisp.org>
83139
83140         * modules/strcase (Files): Add m4/mbrtowc.m4.
83141         (Depends-on): Add strnlen1, mbchar.
83142
83143 2005-08-16  Bruno Haible  <bruno@clisp.org>
83144
83145         * modules/mbiter: New file.
83146         * MODULES.html.sh (Extended multibyte and wide character utilities):
83147         Add mbiter.
83148
83149 2005-08-16  Bruno Haible  <bruno@clisp.org>
83150
83151         * modules/mbfile: New file.
83152         * MODULES.html.sh (Extended multibyte and wide character utilities):
83153         Add mbfile.
83154
83155 2005-08-16  Bruno Haible  <bruno@clisp.org>
83156
83157         * modules/mbchar: New file.
83158         * MODULES.html.sh (Extended multibyte and wide character utilities):
83159         New section.
83160
83161 2005-08-16  Bruno Haible  <bruno@clisp.org>
83162
83163         * m4/tls.m4: New file, from GNU gettext.
83164
83165 2005-08-16  Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83168         always.
83169         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83170
83171 2005-08-16  Bruno Haible  <bruno@clisp.org>
83172
83173         * m4/mbiter.m4: New file.
83174
83175 2005-08-16  Bruno Haible  <bruno@clisp.org>
83176
83177         * m4/mbfile.m4: New file.
83178
83179 2005-08-16  Bruno Haible  <bruno@clisp.org>
83180
83181         * m4/mbchar.m4: New file.
83182
83183 2005-08-16  Bruno Haible  <bruno@clisp.org>
83184
83185         * lib/tls.h: New file, from GNU gettext.
83186         * lib/tls.c: New file, from GNU gettext.
83187
83188 2005-08-16  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/strnlen1.h: New file.
83191         * lib/strnlen1.c: New file.
83192
83193 2005-08-16  Bruno Haible  <bruno@clisp.org>
83194
83195         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83196         (mbi_init): Update.
83197         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83198         NUL byte, not after it.
83199
83200 2005-08-16  Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/strcase.h (strcasecmp): Add note in comments.
83203         * lib/strncasecmp.c: Use code from strcasecmp.c.
83204         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83205         (strcasecmp): Work correctly in multibyte locales.
83206
83207 2005-08-16  Bruno Haible  <bruno@clisp.org>
83208
83209         * lib/mbiter.h: New file.
83210
83211 2005-08-16  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/mbfile.h: New file.
83214
83215 2005-08-16  Bruno Haible  <bruno@clisp.org>
83216
83217         * lib/mbchar.h: New file.
83218         * lib/mbchar.c: New file.
83219
83220 2005-08-16  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83223         the valid ones. Makes the comparison operations transitive:
83224         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83225         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83226
83227 2005-08-15  Simon Josefsson  <jas@extundo.com>
83228
83229         * modules/ssize_t (License): Change to 'unlimited'.
83230
83231         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83232
83233 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83236         Add comments for each pending glibc patch.
83237
83238 2005-08-15  Bruno Haible  <bruno@clisp.org>
83239
83240         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83241         __cplusplus is defined.
83242
83243 2005-08-14  Jim Meyering  <jim@meyering.net>
83244
83245         Sync from coreutils.
83246
83247         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83248         Use the hash-table-based cycle-detection code not just when
83249         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83250         Reported by James Youngman in
83251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83252         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83253         FTS_TIGHT_CYCLE_CHECK.
83254         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83255         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83256         once again.
83257         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83258         * lib/fts.c (fd_safer): Remove decl.
83259         Include fcntl--.h rather than unistd-safer.h
83260         (fts_safe_changedir): Don't call fd_safer; no longer needed
83261         now that we include fcntl--.h.
83262
83263 2005-08-12  Simon Josefsson  <jas@extundo.com>
83264
83265         * modules/getndelim2: Use ssize_t module.
83266         * modules/getnline: Likewise.
83267         * modules/safe-read: Likewise.
83268         * modules/xreadlink: Likewise.
83269
83270         * modules/ssize_t: New file.
83271
83272 2005-08-12  Simon Josefsson  <jas@extundo.com>
83273
83274         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83275
83276 2005-08-12  Simon Josefsson  <jas@extundo.com>
83277
83278         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83279         ssize_t.
83280
83281 2005-08-12  Simon Josefsson  <jas@extundo.com>
83282
83283         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83284         readline, getdelim and check_version.
83285         (Support for systems lacking ISO C 99: Sizes of integer types):
83286         Add size_max.
83287
83288 2005-08-12  Bruno Haible  <bruno@clisp.org>
83289
83290         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83291
83292 2005-08-11  Simon Josefsson  <jas@extundo.com>
83293
83294         * modules/readline: New file.
83295
83296         * modules/strnlen (Files): Add strnlen.h.
83297
83298 2005-08-11  Simon Josefsson  <jas@extundo.com>
83299
83300         * m4/readline.m4: New file.
83301
83302 2005-08-11  Simon Josefsson  <jas@extundo.com>
83303
83304         * lib/readline.h, readline.c: New file.
83305
83306 2005-08-11  Simon Josefsson  <jas@extundo.com>
83307
83308         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83309         gl_AVOID.
83310
83311 2005-08-11  Bruno Haible  <bruno@clisp.org>
83312
83313         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83314
83315 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83316
83317         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83318
83319 2005-08-10  Simon Josefsson  <jas@extundo.com>
83320
83321         * tests/test-iconvme.c: New file.
83322
83323 2005-08-10  Simon Josefsson  <jas@extundo.com>
83324
83325         * m4/strnlen.m4: New file.
83326
83327         * m4/strndup.m4: Don't check for strnlen declaration, done in
83328         strnlen.m4.
83329
83330 2005-08-10  Simon Josefsson  <jas@extundo.com>
83331
83332         * lib/strndup.c: Use strnlen.h.
83333
83334         * lib/strnlen.h: New file.
83335
83336 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83337
83338         * README: Typos.
83339
83340 2005-08-02  Simon Josefsson  <jas@extundo.com>
83341
83342         * modules/readline: New file.
83343
83344 2005-08-02  Simon Josefsson  <jas@extundo.com>
83345
83346         * modules/getdelim: New file.
83347
83348         * modules/getline: Rewrite, don't use getndelim2.
83349
83350 2005-08-02  Simon Josefsson  <jas@extundo.com>
83351
83352         * m4/getline.m4: Separate out getdelim stuff into separate module.
83353
83354         * m4/getdelim.m4: New file.
83355
83356 2005-08-02  Simon Josefsson  <jas@extundo.com>
83357
83358         * lib/getline.h, getline.c: Rewrite.
83359
83360         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83361
83362 2005-07-31  Bruno Haible  <bruno@clisp.org>
83363
83364         * lib/lock.h (gl_lock_initializer): New macro.
83365         (gl_lock_define_initialized): Use it.
83366         (gl_rwlock_initializer): New macro.
83367         (gl_rwlock_define_initialized): Use it.
83368         (gl_recursive_lock_initializer): New macro.
83369         (gl_recursive_lock_define_initialized): Use it.
83370
83371 2005-07-30  Karl Berry  <karl@gnu.org>
83372
83373         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83374         Report from Ben Pfaff, regarding getopt.
83375
83376 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83379         normal way.
83380         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83381         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83382         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83383         (gl_GETOPT): Use the new macros.  Most of the implementation
83384         is moved to the new macros.  This is for programs like Emacs
83385         that don't want all the functionality of gl_GETOPT.
83386
83387 2005-07-26  Bruno Haible  <bruno@clisp.org>
83388
83389         * m4/lock.m4: Update from GNU gettext.
83390
83391 2005-07-26  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/lock.h: Update from GNU gettext.
83394         * lib/lock.c: Update from GNU gettext.
83395
83396 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83399         obsolescent AC_TRY_RUN.  Include the default includes files, for
83400         'exit'.
83401
83402 2005-07-24  Bruno Haible  <bruno@clisp.org>
83403
83404         * modules/visibility: New file.
83405         * MODULES.html.sh (Misc): Add visibility.
83406
83407 2005-07-24  Bruno Haible  <bruno@clisp.org>
83408
83409         * m4/visibility.m4: New file.
83410
83411 2005-07-24  Bruno Haible  <bruno@clisp.org>
83412
83413         * doc/visibility.texi: New file.
83414
83415 2005-07-22  Bruno Haible  <bruno@clisp.org>
83416
83417         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83418         $(ALLOCA_H), redundant through BUILT_SOURCES.
83419         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83420         redundant through BUILT_SOURCES.
83421         * modules/byteswap (Makefile.am): Remove explicit dependency on
83422         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83423         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83424         $(FNMATCH_H), redundant through BUILT_SOURCES.
83425         * modules/getopt (Makefile.am): Remove explicit dependency on
83426         $(GETOPT_H), redundant through BUILT_SOURCES.
83427         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83428         redundant through BUILT_SOURCES.
83429         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83430         redundant through BUILT_SOURCES.
83431         * modules/stdbool (Makefile.am): Remove explicit dependency on
83432         $(STDBOOL_H), redundant through BUILT_SOURCES.
83433         * modules/stdint (Makefile.am): Remove explicit dependency on
83434         $(STDINT_H), redundant through BUILT_SOURCES.
83435         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83436         Remove explicit dependency on $(SYSEXITS_H).
83437         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83438
83439 2005-07-18  Simon Josefsson  <jas@extundo.com>
83440
83441         * lib/check-version.c (check_version): Accept identical versions too.
83442
83443 2005-07-18  Bruno Haible  <bruno@clisp.org>
83444
83445         * modules/lock: New file.
83446         * MODULES.html.sh (Multithreading): New section.
83447
83448 2005-07-18  Bruno Haible  <bruno@clisp.org>
83449
83450         * m4/lock.m4: New file, from GNU gettext.
83451
83452 2005-07-18  Bruno Haible  <bruno@clisp.org>
83453
83454         * lib/lock.h: New file, from GNU gettext.
83455         * lib/lock.c: New file, from GNU gettext.
83456
83457 2005-07-18  Bruno Haible  <bruno@clisp.org>
83458
83459         * lib/lock.h (gl_once_t): New type.
83460         (gl_once_define, gl_once): New macros.
83461         * lib/lock.c (fresh_once): New variable.
83462         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83463         functions.
83464
83465 2005-07-16  Simon Josefsson  <jas@extundo.com>
83466
83467         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83468         workaround, suggested by Bruno.
83469
83470 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83471
83472         * modules/xalloc (Depends-on): Add xalloc-die.
83473         * modules/xvasprintf (Depends-on): Add xalloc-die.
83474
83475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83476
83477         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83478         with a minor change.
83479
83480 2005-07-15  Bruno Haible  <bruno@clisp.org>
83481
83482         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83483         When using lib/poll.c, define poll as rpl_poll.
83484
83485 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * modules/argp (Depends-on): Remove unlocked-io.
83488
83489 2005-07-14  Derek Price  <derek@ximbiot.com>
83490
83491         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83492         for glob symlink bug.
83493
83494 2005-07-14  Bruno Haible  <bruno@clisp.org>
83495
83496         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83497         Instead, test for *_unlocked function declarations directly.
83498
83499 2005-07-11  Simon Josefsson  <jas@extundo.com>
83500
83501         * modules/size_max: New file.
83502
83503         * modules/xsize: Depend on size_max module for size_max.m4.
83504
83505 2005-07-11  Simon Josefsson  <jas@extundo.com>
83506
83507         * lib/size_max.h: New file.
83508
83509 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83510
83511         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83512         copyright symbol and the year.
83513         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83514         (version_etc_va): Use parameterized copyright notice.
83515         Reword to conform to the current GNU coding standards.
83516
83517 2005-07-11  Karl Berry  <karl@gnu.org>
83518
83519         * doc/gnulib.texi (Quoting): new node.
83520         (Initial import): more info, from Patrice.
83521
83522 2005-07-11  Bruno Haible  <bruno@clisp.org>
83523
83524         * gnulib-tool (func_usage): Document option --avoid.
83525         (Command line options): Handle --avoid.
83526         (func_acceptable): New function.
83527         (func_modules_transitive_closure): Use it.
83528
83529 2005-07-11  Bruno Haible  <bruno@clisp.org>
83530
83531         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83532         Reported by Jim Meyering.
83533
83534 2005-07-10  Bruno Haible  <bruno@clisp.org>
83535
83536         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83537         Needed when size_t is smaller than 'unsigned int'.
83538         Reported by Paul Eggert.
83539
83540 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83541
83542         * modules/argp (Depends-on): Add unlocked-io
83543
83544 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83545
83546         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83547         block of defines.
83548
83549 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83550
83551         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83552         fix now.
83553
83554 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83555         and Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83558         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83559
83560 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * modules/regex (Files): Add lib/regex_internal.c,
83563         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83564         (Depends-on): Add extensions.
83565         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83566
83567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83568
83569         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83570         pathconf.
83571         * m4/same.m4 (gl_SAME): Likewise.
83572         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83573
83574         * m4/regex.m4: Adjust to new libc regex implementation.
83575         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83576         all the .c and .h parts of (the new) regex.
83577         Quote the m4 stuff better.
83578         Check for RE_ICASE bug of old gnulib.
83579         Check for REG_STARTEND of recent libc.
83580         Rename local variables from jm_* to gl_*.
83581         Quote operand of "test -f".
83582         Say "recent enough" version of libc, not "version 2".
83583         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83584         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83585         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83586         Remove check for btowc, isascii.
83587         Require AM_LANGINFO_CODESET.
83588
83589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83590
83591         * lib/regex.c, regex.h: Sync from libc.
83592         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83593         * lib/regexec.c:
83594         New files, synced from libc, except that regex_internal.h
83595         currently has a small porting fix.
83596
83597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83598
83599         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83600         regex_internal.c, regexec.c.
83601         Add regex_internal.h too, but as a comment, since the libc version
83602         is currently broken in gnulib mode.
83603
83604 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         Support programs like Emacs that use gnulib but not gettext.
83607         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83608         * modules/gettext-h: New file.
83609         * modules/gettext (Files): Remove lib/gettext.h.
83610         (Depends-on): Add gettext-h.
83611         (Makefile.am): Remove lib_SOURCES.
83612         * modules/argmatch, modules/c-stack, modules/closeout:
83613         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83614         * modules/execute, modules/file-type, modules/getaddrinfo:
83615         * modules/getopt, modules/human, modules/javacomp:
83616         * modules/javaexec, modules/mkdir-p, modules/obstack:
83617         * modules/openat, modules/pagealign_alloc, modules/pipe:
83618         * modules/quotearg, modules/regex, modules/rpmatch:
83619         * modules/unicodeio, modules/userspec, modules/version-etc:
83620         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83621         * modules/xsetenv:
83622         Depend on gettext-h, not gettext.
83623
83624 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * gnulib-tool (func_import): Add support for 'public domain' license.
83627         * modules/alloca, modules/atexit, modules/memmove:
83628         Now public domain, not GPL.
83629         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83630         * modules/realloc, modules/strerror, modules/strtod:
83631         Now LGPL, not GPL.
83632
83633 2005-07-05  Bruno Haible  <bruno@clisp.org>
83634
83635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83636         autoconf CVS. Needed for mingw.
83637
83638 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83639
83640         Remove the dependency of the strftime module on the tzset module.
83641         * modules/strftime (Depends-on): Remove dependency on tzset.
83642
83643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         Remove the dependency of the strftime module on the tzset module.
83646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83647         gl_FUNC_TZSET_CLOBBER.
83648
83649 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83650
83651         Remove the dependency of the strftime module on the tzset module.
83652         * lib/strftime.c (my_strftime)
83653         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83654         Copy the input structure, to work around some of the bug with
83655         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83656         Solaris releases, you should also use the tzset module, but we won't
83657         require it as a dependency any more since we don't want LGPLed code
83658         to depend on GPLed code.
83659
83660 2005-07-02  Jim Meyering  <jim@meyering.net>
83661
83662         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83663         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83664         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83665         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83666
83667 2005-07-02  Jim Meyering  <jim@meyering.net>
83668
83669         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83670
83671 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83674         declares only 'struct timespec;' (!).
83675
83676 2005-07-01  Jim Meyering  <jim@meyering.net>
83677
83678         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83679         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83680         * lib/save-cwd.c, tempname.c:
83681         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83682         and don't include <sys/file.h>).
83683
83684 2005-06-29  Jim Meyering  <jim@meyering.net>
83685
83686         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83687         type name.  Use the variable name instead.
83688         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83689         Likewise.
83690
83691 2005-06-28  Simon Josefsson  <jas@extundo.com>
83692
83693         * modules/check-version (Files): Add check-version.m4.
83694
83695 2005-06-28  Simon Josefsson  <jas@extundo.com>
83696
83697         * m4/check-version.m4: New file, suggested by Jim Meyering
83698         <jim@meyering.net>.
83699
83700 2005-06-28  Simon Josefsson  <jas@extundo.com>
83701
83702         * lib/check-version.h, lib/check-version.c: New files.
83703
83704 2005-06-28  Simon Josefsson  <jas@extundo.com>
83705
83706         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83707         collision with global variable.  Better indentation.  Don't
83708         increment buffer pointer beyond buffer end.  Based on comments
83709         from Paul Eggert <eggert@cs.ucla.edu>.
83710
83711         * lib/base64.h: Indent.
83712
83713 2005-06-28  Simon Josefsson  <jas@extundo.com>
83714
83715         * doc/gnulib.texi (Library version handling): New section.
83716
83717 2005-06-28  Jim Meyering  <jim@meyering.net>
83718
83719         * check-module (find_included_lib_files): Hard-code another
83720         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83721         but modules/fts-lgpl (correctly) does not list those files.
83722
83723         * modules/canonicalize (Files): Add lib/pathmax.h.
83724
83725 2005-06-25  Simon Josefsson  <jas@extundo.com>
83726
83727         * modules/check-version: New file.
83728
83729 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83730
83731         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83732         initializer of struct addrinfo, as an indication that we don't
83733         care how many members the structure has.
83734
83735 2005-06-24  Derek Price  <derek@ximbiot.com>
83736         and Bruno Haible  <bruno@clisp.org>
83737
83738         Remove stat module & update lstat.
83739         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83741         * m4/stat.m4: Remove this file.
83742
83743 2005-06-24  Derek Price  <derek@ximbiot.com>
83744         and Bruno Haible  <bruno@clisp.org>
83745
83746         Remove stat module & update lstat.
83747         * lib/stat.c: Remove this file...
83748         (slash_aware_lstat): ...moving this content and its support...
83749         * lib/lstat.c (rpl_lstat): ...into here.
83750         * lib/lstat.h: New file.
83751
83752 2005-06-24  Derek Price  <derek@ximbiot.com>
83753         and Bruno Haible  <bruno@clisp.org>
83754
83755         Remove stat module & update lstat.
83756         * config/srclist.txt (libc sources): Remove stat.
83757
83758 2005-06-24  Derek Price  <derek@ximbiot.com>
83759         and Bruno Haible  <bruno@clisp.org>
83760
83761         Remove stat module & update lstat.
83762         * MODULES.html.sh (stat): Remove.
83763         * MODULES.html: Regenerated.
83764         * modules/lstat (Description): Correct function name.
83765         (Files): Add "lstat.h".
83766         (Depends-on): Remove stat, add xalloc, stat-macros.
83767         * modules/stat: Remove this file.
83768         (Include): Add "lstat.h", remove <sys/stat.h>.
83769
83770 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83773         (ranged_convert): Don't save conversion in a temporary struct.
83774         This causes a warning with GCC 4.0.0, and anyway in the typical
83775         case it's not worth the extra 100 bytes or so of code.
83776         (ranged_convert, __mktime_internal): When calling a function via a
83777         pointer P, use P () rather than (*P) (), as we now assume C89 or
83778         better.
83779
83780 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83783         "who -r" failed to give output.  Problem reported by Tim Waugh.
83784
83785         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83786         (xcalloc): Use it to avoid needless tests.
83787         Problem reported by Jim Meyering.
83788
83789 2005-06-20  Derek Price  <derek@ximbiot.com>
83790
83791         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83792         unnecessary for Autoconfs > 2.59c.
83793
83794 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83795
83796         * lib/argp.h (__option_is_short): Check upper limit of
83797         __key. Isprint() requires its argument to have the value
83798         of an unsigned char or EOF.
83799
83800 2005-06-16  Jim Meyering  <jim@meyering.net>
83801
83802         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83803         when either N or S is zero.
83804
83805 2005-06-16  Derek Price  <derek@ximbiot.com>
83806
83807         * m4/bison.m4: Declare YACC & YFLAGS precious.
83808
83809 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83810
83811         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83812         multibyte string or pattern, fall back on unibyte matching.
83813         Problem reported by James Youngman.
83814
83815 2005-06-08  Bruno Haible  <bruno@clisp.org>
83816
83817         * modules/csharpcomp: New file.
83818         * MODULES.html.sh (C#): Add csharpcomp.
83819
83820 2005-06-08  Bruno Haible  <bruno@clisp.org>
83821
83822         * m4/csharpcomp.m4: New file, from GNU gettext.
83823
83824 2005-06-08  Bruno Haible  <bruno@clisp.org>
83825
83826         * lib/csharpcomp.h: New file, from GNU gettext.
83827         * lib/csharpcomp.c: New file, from GNU gettext.
83828         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83829
83830 2005-06-08  Bruno Haible  <bruno@clisp.org>
83831
83832         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83833         warning on mingw.
83834
83835 2005-06-07  Derek Price  <derek@ximbiot.com>
83836
83837         Sync from CVS.
83838         * lib/glob_.h: Indent nested #ifdef.
83839
83840 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83841
83842         Sync from coreutils.
83843         Use "file name" when talking about file names, instead of "filename"
83844         or "path", as per the GNU coding standards.
83845         * lib/mkdir-p.c: Renamed from makepath.c.
83846         (make_dir_parents): Renamed from make_path.  All callers changed.
83847         * lib/mkdir-p.h: Likewise.  All includers changed.
83848         * lib/filenamecat.c: Renamed from path-concat.c.
83849         (file_name_concat): Renamed from path_concat.  All callers changed.
83850         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83851         * lib/filenamecat.h: Likewise.  All includers changed.
83852         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83853         in comments or local variable names.
83854         * lib/basename.c: Likewise.
83855         * lib/canonicalize.c, canonicalize.h: Likewise.
83856         * lib/dirname.c, dirname.h: Likewise.
83857         * lib/euidaccess.c: Likewise.
83858         * lib/exclude.c: Likewise
83859         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83860         * lib/fsusage.c, fsuage.h: Likewise.
83861         * lib/fts.c, fts_.h: Likewise.
83862         * lib/getcwd.c: Likewise.
83863         * lib/getloadavg.c: Likewise.
83864         * lib/mkstemp.c: Likewise.
83865         * lib/mountlist.c, mountlist.h: Likewise.
83866         * lib/openat.c, openat.h: Likewise.
83867         * lib/readlink-stub.c: Likewise.
83868         * lib/readutmp.c, readutmp.h: Likewise.
83869         * lib/rename.c: Likewise.
83870         * lib/rmdir.c: Likewise.
83871         * lib/same.c: Likewise.
83872         * lib/savedir.c: Likewise.
83873         * lib/stripslash.c: Likewise.
83874         * lib/tempname.c: Likewise.
83875         * lib/xreadlink.c: Likewise.
83876         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83877         All uses changed.
83878         * lib/exclude.h: Likewise.
83879
83880         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83881         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83882         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83883         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83884         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83885         files have been getting away with it for years (MORE/BSD 4.3
83886         is extinct now).
83887         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83889
83890         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83891         Define to 256, not 255, as per modern POSIX.
83892
83893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83894
83895         Sync from coreutils.
83896         Use "file name" when talking about file names, instead of "filename"
83897         or "path", as per the GNU coding standards.
83898         * MODULES.html.sh: mkdir-p renamed from makepath.
83899         filenamecat renamed from path-concat.
83900         * modules/filenamecat: Renamed from modules/path-concat.
83901         (Files): filenamecat.h and filenamecat.c renamed from
83902         path-concat.h and path-concat.c.
83903         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83904         (Include): filenamecat.h, not path-concat.h.
83905         * modules/mkdir-p: Renamed from modules/makepath.
83906         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83907         makepath.c.
83908         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83909         (Include): mkdir-p.h, not makepath.h.
83910
83911 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         Sync from coreutils.
83914         * m4/mkdir-p.m4: Renamed from makepath.m4.
83915         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83916         Rename files from makepath.c to mkdir-p.c, and from
83917         makepath.h to mkdir-p.h.
83918         * m4/filenamecat.m4: Renamed from path-concat.m4.
83919         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83920         Rename files from path-concat.c to filenamecat.c,
83921         and from path-concat.h to filenamecat.h.
83922         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83923         "file name" in local variables or comments.
83924         * m4/rename.m4: Likewise.
83925
83926 2005-06-01  Bruno Haible  <bruno@clisp.org>
83927
83928         * modules/csharpexec: New file.
83929         * MODULES.html.sh (C#): New section.
83930
83931 2005-06-01  Bruno Haible  <bruno@clisp.org>
83932
83933         * m4/csharp.m4: New file, from GNU gettext.
83934         * m4/csharpexec.m4: New file, from GNU gettext.
83935
83936 2005-06-01  Bruno Haible  <bruno@clisp.org>
83937
83938         * lib/csharpexec.h: New file, from GNU gettext.
83939         * lib/csharpexec.c: New file, from GNU gettext.
83940         * lib/csharpexec.sh.in: New file, from GNU gettext.
83941
83942 2005-05-31  Derek Price  <derek@ximbiot.com>
83943             Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         Sync from cvs.
83946         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83947
83948 2005-05-31  Derek Price  <derek@ximbiot.com>
83949             Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         Sync from cvs.
83952         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83953
83954 2005-05-29  Derek Price  <derek@ximbiot.com>
83955
83956         * config/srclist.txt (glob_.h, glob.c): Add these files.
83957
83958 2005-05-29  Derek Price  <derek@ximbiot.com>
83959
83960         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83961         * modules/glob: New file.
83962         * modules/getlogin_r: Add link to POSIX spec in description.
83963
83964 2005-05-29  Derek Price  <derek@ximbiot.com>
83965             Paul Eggert  <eggert@cs.ucla.edu>
83966
83967         * m4/glob.m4: New file.
83968
83969 2005-05-29  Derek Price  <derek@ximbiot.com>
83970             Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * lib/glob_.h, lib/glob.c: New files.
83973
83974 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83975
83976         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83977         * modules/fts-lgpl (Depends-on): Remove gettext.
83978
83979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83982         and don't require gt_INTTYPES_PRI.
83983
83984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83987
83988         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83989         the configuration hassle isn't worth it.
83990         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83991         (LONGEST_MODIFIER, PRIuMAX): Remove.
83992
83993 2005-05-27  Bruno Haible  <bruno@clisp.org>
83994
83995         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83996
83997 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84000         _POSIX_PTHREAD_SEMANTICS for Solaris.
84001
84002 2005-05-25  Derek Price  <derek@ximbiot.com>
84003
84004         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84005
84006 2005-05-25  Derek Price  <derek@ximbiot.com>
84007             Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84010         * lib/getlogin_r.c, getlogin_r.h: New files.
84011
84012 2005-05-25  Bruno Haible  <bruno@clisp.org>
84013             Derek Price  <derek@ximbiot.com>
84014
84015         * lib/getlogin_r.h: Simplify API documentation.
84016
84017 2005-05-23  Derek Price  <derek@ximbiot.com>
84018
84019         * modules/minmax (Files): Add m4/minmax.m4.
84020         (configure.ac): Add gl_MINMAX.
84021
84022 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84023
84024         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84025         so that unistd-safer.h (GPL'ed code) need not be included.
84026
84027 2005-05-22  Bruno Haible  <bruno@clisp.org>
84028
84029         * m4/minmax.m4: New file.
84030         Based on a patch by Derek Price <derek@ximbiot.com>.
84031
84032 2005-05-22  Bruno Haible  <bruno@clisp.org>
84033
84034         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84035         (INT64_MIN): Fix definition.
84036         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84037
84038         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84039         NEED_SIGNED_INT_TYPES.
84040
84041         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84042         HAVE_SYSTEM_INTTYPES.
84043
84044 2005-05-22  Bruno Haible  <bruno@clisp.org>
84045
84046         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84047         Also include <sys/param.h> if it defines MIN, MAX.
84048         Based on a patch by Derek Price <derek@ximbiot.com>.
84049
84050 2005-05-21  Jim Meyering  <jim@meyering.net>
84051
84052         * modules/fts (Files): Add m4/inttypes-pri.m4.
84053         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84054
84055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84056
84057         New fts module.
84058         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84059         (setup_dir, free_dir): New functions.
84060         (enter_dir, leave_dir): Define trivial
84061         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84062         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84063         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84064         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84065         Move to fts-cycle.c.
84066         (fts_open): Use setup_dir.
84067         (fts_close): Use free_dir.
84068         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84069         This adds a label and some gotos, but the alternatives were messier.
84070         Check for memory allocation failure when entering a dir.
84071         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84072         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84073         (FTS): New member fts_cycle, that is a union that contains the
84074         old active_dir_ht and cycle_state.  All uses changed to mention
84075         fts_cycle.ht and fts_cycle.state.
84076         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84077         fts.c, with the following changes:
84078         (setup_dir, free_dir): New functions.
84079         (enter_dir): Now returns bool.  Return true if successful, false
84080         if memory exhausted.  All callers changed.
84081         Do not bother partly cleaning up on
84082         memory allocation failure; that is free_dir's job.
84083         However, free ad if hash_insert fails, to avoid memory leak.
84084         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84085         fts->fts_options to see which union member to use.
84086
84087 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84088
84089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84090         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84091
84092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84093
84094         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84095
84096 2005-05-20  Jim Meyering  <jim@meyering.net>
84097
84098         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84099         Now a macro, to pacify GCC.
84100
84101 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84102
84103         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84104         of -1.
84105
84106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84107
84108         * lib/chown.c (rpl_chown): Return -1 on failure.
84109
84110 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84113         Don't check for stddef.h.
84114         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84115         don't use its results.
84116         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84117         since we include them unconditionally.  Don't require
84118         AM_STDBOOL_H, since stdbool is a prerequisite.
84119         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84120         since we assume C89 or better.
84121         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84122         as we don't use their results.
84123         Don't check for fchdir, memmove, memset, strrchr, as we use
84124         them unconditionally.
84125         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84126         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84127
84128 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84129
84130         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84131         Include <stddef.h> unconditionally, since we assume C89 now.
84132         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84133         * lib/fts.c: Include fts_.h first, to check interface.
84134         Do not include intprops.h; no longer needed.
84135         Include cycle-check.h and hash.h, since fts_.h no longer does.
84136         Remove unnecessary casts of closedir to void.
84137         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84138         decide whether to decrement nlinks.
84139         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84140         (FTS): Use struct hash_table * instead of Hash_table, so that
84141         we no longer need to include hash.h here.
84142
84143 2005-05-18  Jim Meyering  <jim@meyering.net>
84144
84145         * modules/dirfd (License): Change to LGPL.  Most of the code
84146         is already in the public domain.
84147
84148 2005-05-18  Jim Meyering  <jim@meyering.net>
84149
84150         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84151         Reported by Yoann Vandoorselaere.
84152
84153 2005-05-17  Jim Meyering  <jim@meyering.net>
84154
84155         * m4/fts.m4: New file, from coreutils.
84156
84157 2005-05-17  Jim Meyering  <jim@meyering.net>
84158
84159         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84160
84161 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84162
84163         Sync from coreutils.
84164         * m4/unlinkdir.m4: New file.
84165
84166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84167
84168         Sync from coreutils.
84169         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84170         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84171         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84172         White space changes only.
84173         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84174         special.
84175         * lib/yesno.c: Include getline.h, not ctype.h.
84176         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84177         Use getline to remove arbitrary restriction on response length.
84178
84179 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         * config/srclist-update: Spell out "Street" in FSF postal
84182         mail address; this is the style the FSF seems to prefer.
84183
84184         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84185         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84186         this updates FSF postal mail address.
84187
84188         Sync from coreutils.
84189         * modules/unlinkdir: New file.
84190         * modules/yesno (Depends-on): Add getline.
84191         * MODULES.html.sh (File system functions): Add unlinkdir.
84192
84193 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84194
84195         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84196         lib/strsep.h:
84197         Change the initial comment to refer to GPL, not LGPL.
84198         gnulib-tool will change it to LGPL as needed.
84199
84200         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84201         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84202         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84203         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84204         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84205         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84206         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84207         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84208         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84209         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84210         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84211         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84212         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84213         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84214         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84215         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84216         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84217         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84218         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84219         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84220         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84221         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84222         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84223         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84224         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84225         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84226         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84227         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84228         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84229         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84230         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84231         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84232         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84233         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84234         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84235         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84236         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84237         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84238         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84239         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84240         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84241         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84242         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84243         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84244         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84245         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84246         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84247         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84248         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84249         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84250         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84251         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84252         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84253         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84254         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84255         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84256         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84257         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84258         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84259         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84260         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84261         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84262         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84263         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84264         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84265         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84266         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84267         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84268         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84269         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84270         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84271         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84272         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84273         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84274         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84275         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84276         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84277         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84278         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84279         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84280         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84281         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84282         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84283         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84284         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84285         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84286         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84287         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84288         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84289         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84290         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84291         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84292         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84293         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84294         lib/yesno.c, lib/yesno.h:
84295         Update FSF postal mail address.
84296
84297 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84300         tests/test-memmem.c, tests/test-stpncpy.c:
84301         Update FSF postal mail address.
84302
84303 2005-05-13  Bruno Haible  <bruno@clisp.org>
84304
84305         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84306         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84307         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84308         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84309         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84310         Add support for 64-bit integers in the MSVC compiler.
84311
84312 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84313
84314         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84315
84316 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84317
84318         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84319
84320 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * doc/getdate.texi (General date syntax): Don't say that date
84323         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84324         Problem reported by Nic Ferrier.
84325
84326 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84327
84328         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84329         specified in ai_socktype. Fix invalid ai_protocol
84330         check. ai_protocol is usually set to 0 or depending on
84331         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84332         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84333         ai_socktype / ai_protocol in the returned addrinfo structure.
84334
84335 2005-05-10  Simon Josefsson  <jas@extundo.com>
84336
84337         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84338         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84339
84340 2005-05-10  Karl Berry  <karl@gnu.org>
84341
84342         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84343         (from http://www.gnu.org/licenses).
84344         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84345         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84346         fdl.texi suffices.
84347
84348 2005-05-10  Karl Berry  <karl@gnu.org>
84349
84350         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84351         (COPYING.DOC): remove.
84352
84353         * config/srclist-update: new FSF address.
84354
84355 2005-05-10  Derek Price  <derek@ximbiot.com>
84356
84357         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84358         possible.
84359
84360 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84361             Bruno Haible  <bruno@clisp.org>
84362
84363         * modules/inet_ntop: New file.
84364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84365         inet_ntop.
84366
84367 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84368             Bruno Haible  <bruno@clisp.org>
84369
84370         * m4/inet_ntop.m4: New file.
84371
84372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84373             Bruno Haible  <bruno@clisp.org>
84374
84375         * lib/inet_ntop.h: New file.
84376         * lib/inet_ntop.c: New file, from glibc with modifications.
84377
84378 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * modules/time_r (License): Change to LGPL.
84381         * modules/extensions (License): Change to LGPL.  Actually,
84382         the license is more permissive than that, but currently gnulib-tool
84383         doesn't know how to handle more-permissive licenses.
84384
84385         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84386         Problem reported by Dave Love.
84387
84388 2005-05-08  Jim Meyering  <jim@meyering.net>
84389
84390         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84391         blank.
84392
84393 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84394
84395         * modules/argmatch (Depends-on): Add stdbool.
84396         * modules/backupfile (Depends-on): Likewise.
84397         * modules/chdir-long (Depends-on): Likewise.
84398         * modules/closeout (Depends-on): Likewise.
84399         * modules/cycle-check (Depends-on): Likewise.
84400         * modules/dirname (Depends-on): Likewise.
84401         * modules/fnmatch (Depends-on): Likewise.
84402         * modules/fsusage (Depends-on): Likewise.
84403         * modules/fwriteerror (Depends-on): Likewise.
84404         * modules/getcwd (Depends-on): Likewise.
84405         * modules/getloadavg (Depends-on): Likewise.
84406         * modules/hard-locale (Depends-on): Likewise.
84407         * modules/makepath (Depends-on): Likewise.
84408         * modules/mountlist (Depends-on): Likewise.
84409         * modules/nanosleep (Depends-on): Likewise.
84410         * modules/posixtm (Depends-on): Likewise.
84411         * modules/quotearg (Depends-on): Likewise.
84412         * modules/readtokens (Depends-on): Likewise.
84413         * modules/readtokens0 (Depends-on): Likewise.
84414         * modules/readutmp (Depends-on): Likewise.
84415         * modules/save-cwd (Depends-on): Likewise.
84416         * modules/strftime (Depends-on): Likewise.
84417         * modules/userspec (Depends-on): Likewise.
84418         * modules/utimecmp (Depends-on): Likewise.
84419         * modules/xgetcwd (Depends-on): Likewise.
84420         * modules/xnanosleep (Depends-on): Likewise.
84421         * modules/xstrtod (Depends-on): Likewise.
84422         * modules/yesno (Depends-on): Likewise.
84423
84424 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84427         needless checks.
84428
84429 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         Merge from coreutils.  Among other things,
84432         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84433         * lib/fd-safer.c: New file.
84434         * lib/fcntl-safer.h, open-safer.c: Remove.
84435         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84436         * lib/dup-safer.c: Include unistd-safer.h first.
84437         Don't include errno.h.
84438         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84439         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84440         * lib/file-type.c: Rely on file-type.h change.
84441         * lib/getloadavg.c: Include unistd-safer.h.
84442         (getloadavg): Use safer open.
84443         * lib/getusershell.c: Include "stdio-safer.h".
84444         (getusershell): Use safer fopen.
84445         * lib/long-options.c (long_options): Use NULL rather than 0.
84446         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84447         'free'.
84448         * lib/modechange.c: Likewise.
84449         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84450         (MODE_DONE): New constant.
84451         (struct mode_change): Remove 'next' member.
84452         (make_node_op_equals): New function; like the old one of the
84453         same name, except it allocates an array.
84454         (mode_compile, mode_create_from_ref): Use it.
84455         (mode_compile): Allocate result as an array, not a linked list.
84456         Parse octal string ourself, so that we catch mistakes like "+0".
84457         (mode_adjust): Arg is an array, not a linked list.
84458         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84459         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84460         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84461         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84462         Remove.  This is now stat-macros.h's job.
84463         (talloc): Remove.  All callers replaced by xalloc, so that
84464         our invokers don't have to worry about reporting memory failures.
84465         (make_node_op_equals): Remove.
84466         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84467         New constants.
84468         (struct mode_change): Moved here from modechange.h.
84469         (mode_append_entry): Remove.
84470         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84471         apps to have incorrect behavior.  Use simpler algorithm for head
84472         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84473         Detect more invalid usages rather than having somewhat-random behavior.
84474         Don't insert an "a=" action, as that leads to incorrect behavior.
84475         (mode_compile, mode_create_from_ref): Return NULL on error instead
84476         of an enum, since now there's only one way to have an error.  All
84477         callers changed.
84478         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84479         at the correct time.  Simplify calculation of "+u" and its ilk.
84480         Don't mishandle "+X".
84481         (mode_free): Remove "register" and localize decls.
84482         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84483         (struct mode_change): Move to modechange.c; callers don't
84484         need to see this stuff.
84485         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84486         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84487         (mode_change, mode_adjust): Reflect the new signatures noted above.
84488         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84489         that might redefine system include files.
84490         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84491         (my_usleep): Use NULL rather than (void *) 0.
84492         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84493         Use siginterrupt to specify that system calls should be interrupted.
84494         (rpl_nanosleep): Move initialization of suspended closer to call of
84495         my_usleep.
84496         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84497         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84498         (desirable_utmp_entry): New function.
84499         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84500         using x2nrealloc, to simplify logic.
84501         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84502         size calculation.  Do not assume utmp file is a regular file.
84503         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84504         (READ_UTMP_CHECK_PIDS): New constant.
84505         * lib/save-cwd.c: Include unistd-safer.h.
84506         (save_cwd): Use fd_safer.
84507         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84508         [!_LIBC] Include "stat-macros.h" instead.
84509         * lib/unistd-safer.h (fd_safer): New decl.
84510
84511 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84512
84513         * modules/getloadavg (Depends-on): Add unistd-safer.
84514         * modules/getusershell (Depends-on): Add stdio-safer.
84515         * modules/lstat (Depends-on): Remove xalloc.
84516         * modules/mkstemp (Depends-on): Add stat-macros.
84517         * modules/modechange (Depends-on): Remove xstrtol.
84518         Add stat-macros, xalloc.
84519         * modules/save-cwd (Depends-on): Add unistd-safer.
84520         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84521         * modules/unistd-safer (Files): Add lib/fd-safer.c
84522         (Makefile.am): Remove lib_SOURCES.
84523
84524         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84525         Remove fcntl-safer; unistd-safer supersedes it.
84526
84527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84530         AC_HEADER_STAT.
84531         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84532         (gl_PREREQ_CHOWN): Remove.
84533         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84534         it.  Don't require AC_HEADER_STAT.
84535         (gl_PREREQ_LSTAT): Remove.
84536         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84537         Don't require AC_HEADER_STAT.
84538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84539         (gl_PREREQ_RMDIR): Remove.
84540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84541         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84542         the stat-macros module a prerequisite.
84543         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84544         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84545         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84546         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84547         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84548         variable names.
84549         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84550         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84551         variable prefixes.
84552         * m4/fcntl-safer.m4: Remove.
84553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84554         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84555         Invoke gl_PREREQ_FD_SAFER.
84556         (gl_PREREQ_FD_SAFER): New macro.
84557         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84558         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84559         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84560         Remove duplicate call to AC_LIBOBJ(readutmp).
84561         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84562
84563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84564         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84565
84566 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84567
84568         * MODULES.html.sh (Misc): Add byteswap.
84569
84570 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84571
84572         * modules/getcwd (Depends-on): Add extensions.
84573         * modules/openat (Depends-on): Likewise.
84574
84575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84576
84577         * modules/byteswap: New file.
84578
84579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84580
84581         * m4/byteswap.m4: New file.
84582
84583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84584
84585         * lib/byteswap_.h: New file.
84586
84587 2005-04-25  Karl Berry  <karl@gnu.org>
84588
84589         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84590
84591 2005-04-25  Albert Chin  <china@thewrittenword.com>
84592
84593         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84594         Toolkit C bug.
84595
84596 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84597
84598         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84599         (func_ln_if_changed): Remove forcibly for no error message
84600         in case file does not exist.
84601
84602 2005-04-19  Simon Josefsson  <jas@extundo.com>
84603
84604         * gnulib-tool (Options): Make --symlink mean --symbolic.
84605
84606 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84607
84608         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84609
84610 2005-04-16  Simon Josefsson  <jas@extundo.com>
84611
84612         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84613
84614 2005-04-15  Simon Josefsson  <jas@extundo.com>
84615
84616         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84617
84618 2005-04-15  Simon Josefsson  <jas@extundo.com>
84619
84620         * gnulib-tool: Rename --symlink to --symbolic.
84621
84622 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84623
84624         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84625         symbolic links to files instead of copying/moving.  Add --aux-dir,
84626         specifying directory relative --dir where auxiliary build tools
84627         are placed.
84628
84629 2005-04-14  Bruno Haible  <bruno@clisp.org>
84630
84631         * modules/allocsa (License): Change to LGPL.
84632         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84633
84634 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84637         that "UTC +1 second" continues to work.  Problem reported
84638         by Dmitry V. Levin.
84639         (relunit_snumber): New rule.
84640         (relunit): Use it.
84641
84642 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         * lib/getdate.y (universal_time_zone_table): New constant.
84645         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84646         universal_time_zone_table.
84647         (lookup_zone): Prefer universal_time_zone_table to
84648         local_time_zone_table, so that "GMT" time stamps are allowed in
84649         London during the summer.  Problem reported by Ian Abbott.
84650
84651 2005-04-12  Jim Meyering  <jim@meyering.net>
84652
84653         * lib/human.c (humblock): Set *options even when returning due to
84654         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84655         warning from gcc-4.
84656
84657 2005-04-09  Jim Meyering  <jim@meyering.net>
84658
84659         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84660         -Wuninitialized: initialize tm0.tm_year.
84661
84662 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84665         count, since there's no maximum.  All uses changed.
84666         Add member dsts_seen.
84667         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84668         not being INT_MAX.
84669         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84670         Use pc_rels_seen to decide whether a date is absolute.
84671
84672         * lib/getdate.y (number): Don't overwrite year.
84673         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84674         check.
84675
84676 2005-04-02  Simon Josefsson  <jas@extundo.com>
84677
84678         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84679         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84680
84681 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84682
84683         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84684         where no absolute path name can be longer than PATH_MAX.
84685
84686 2005-03-27  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84689
84690 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84693         "one's complement" -> "ones' complement" in comment, as per Knuth.
84694         "value of type" -> "type or expression" in comment.
84695         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84696
84697 2005-03-26  Jim Meyering  <jim@meyering.net>
84698
84699         Comment nits.
84700         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84701         Correct typos: s/or/of/.
84702
84703 2005-03-26  Jim Meyering  <jim@meyering.net>
84704
84705         * modules/check-include-files: Move to ../ and rename to...
84706         * check-module: ...this.
84707
84708 2005-03-25  Jim Meyering  <jim@meyering.net>
84709
84710         * modules/xvasprintf (Files): Add xalloc.h.
84711
84712 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * modules/gettext (Files): config/config.rpath ->
84715         build-aux/config.rpath
84716         * modules/iconv (Files): Likewise.
84717         Problem reported by Oskar Liljeblad.
84718
84719 2005-03-23  Jim Meyering  <jim@meyering.net>
84720
84721         * modules/check-include-files: New script to check for
84722         missing dependencies, multiple includes, etc.
84723
84724         * modules/c-strtold (Depends-on): Add xalloc.
84725         * modules/c-strtod (Depends-on): Add xalloc.
84726         * modules/hash (Depends-on): Add xalloc.
84727         (Files): Remove lib/xalloc.h.
84728
84729         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84730         * modules/userspec (Files): Add lib/inttostr.h.
84731
84732 2005-03-23  Jim Meyering  <jim@meyering.net>
84733
84734         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84735
84736 2005-03-22  Jim Meyering  <jim@meyering.net>
84737
84738         * modules/stat-macros: New module.
84739         * modules/canonicalize, modules/euidaccess, modules/file-type,
84740         * modules/filemode, modules/lchown, modules/makepath,
84741         * modules/rmdir, modules/stat: Depend on new stat-macros module
84742         rather than listing lib/stat-macros.h manually.
84743         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84744
84745 2005-03-22  Jim Meyering  <jim@meyering.net>
84746
84747         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84748
84749 2005-03-22  Bruno Haible  <bruno@clisp.org>
84750
84751         * config/srclist.txt: Replace target directory 'config' with
84752         'build-aux'.
84753         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84754         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84755         ../build-aux/.
84756
84757 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * modules/chdir-long (Depends-on): Add mempcpy.
84760
84761         * modules/acl, modules/backupfile, modules/c-strtod,
84762         modules/c-strtold, modules/canon-host, modules/canonicalize,
84763         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84764         modules/exclude, modules/exitfail, modules/file-type,
84765         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84766         modules/getdate, modules/getline, modules/getpagesize,
84767         modules/getpass, modules/getugroups, modules/group-member,
84768         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84769         modules/inttostr, modules/long-options, modules/makepath,
84770         modules/md5, modules/memcasecmp, modules/memcoll,
84771         modules/modechange, modules/mountlist, modules/path-concat,
84772         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84773         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84774         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84775         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84776         modules/strftime, modules/strndup, modules/strverscmp,
84777         modules/timespec, modules/unlocked-io, modules/userspec,
84778         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84779         modules/yesno:
84780         Remove lib_SOURCES line from Makefile.am section, as this is now
84781         done automatically by the corresponding Autoconf macro.
84782
84783 2005-03-21  Jim Meyering  <jim@meyering.net>
84784
84785         Changes imported from coreutils.
84786
84787         * lib/cycle-check.c: Don't include xalloc.h.
84788
84789         * lib/path-concat.c: Don't include assert.h.
84790         (path_concat): Remove assertion that would have triggered
84791         for ABASE starting with more than one slash.
84792         Reported by Andreas Schwab.
84793
84794         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84795         properly when ABASE is an absolute file name.
84796         Correct the description of this function.
84797         Include <assert.h>.
84798         Add an assertion and a test driver.
84799         This fixes a bug introduced on 2004-07-02.
84800         Andreas Schwab reported the resulting failure of cp --parents:
84801         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84802
84803 2005-03-21  Jim Meyering  <jim@meyering.net>
84804
84805         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84807
84808 2005-03-21  Jim Meyering  <jim@meyering.net>
84809         and  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84812         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84813         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84814         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84815         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84816         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84817         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84818         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84819         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84820         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84821         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84822         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84823         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84824         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84825         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84826         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84827         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84828         for these modules.
84829
84830 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84831
84832         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84833         (which shouldn't happen), generate nothing instead of returning 0
84834         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84835
84836 2005-03-16  Bruno Haible  <bruno@clisp.org>
84837
84838         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84839         HAVE_LONGLONG_64BIT.
84840
84841 2005-03-16  Bruno Haible  <bruno@clisp.org>
84842
84843         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84844         HAVE_LONGLONG_64BIT.
84845
84846 2005-03-16  Bruno Haible  <bruno@clisp.org>
84847
84848         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84849         HAVE_LONGLONG_64BIT.
84850
84851 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84854         reliably distinguish strftime failure from empty output on POSIX
84855         hosts.
84856
84857 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84860         (iconv_string): Don't guess a size-zero buffer, as that might cause
84861         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84862         result would be 'too large', where 'too large' is (heuristically)
84863         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84864         overflow concerns.  This will prevent some unwanted malloc failures
84865         when the inputs are very large.
84866
84867 2005-03-15  Karl Berry  <karl@gnu.org>
84868
84869         * config/srclist.txt (config.rpath): from gettext.
84870         * config/config.rpath: update.
84871
84872 2005-03-15  Bruno Haible  <bruno@clisp.org>
84873
84874         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84875         to 'negate'.
84876
84877         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84878         variable.
84879
84880         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84881         results.
84882
84883 2005-03-14  Simon Josefsson  <jas@extundo.com>
84884
84885         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84886         <fx@gnu.org>.
84887
84888 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84891         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84892         intprops.h.
84893         * lib/strtol.c: Likewise.
84894
84895 2005-03-14  Jim Meyering  <jim@meyering.net>
84896
84897         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84898         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84899         to be nonzero so that we (and caller) can detect the difference
84900         between a valid zero-length expansion and an error return, even
84901         when the underlying strftime fails before writing anything into
84902         that location.
84903
84904 2005-03-14  Bruno Haible  <bruno@clisp.org>
84905
84906         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84907         Update from GNU gettext 0.14.3.
84908
84909 2005-03-10  Jim Meyering  <jim@meyering.net>
84910
84911         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84912
84913 2005-03-10  Jim Meyering  <jim@meyering.net>
84914
84915         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84916         so that this module works on systems without fchdir.
84917
84918 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         Factor int-properties macros into a single file, except for
84921         glibc-related files.
84922         * lib/intprops.h: New file.
84923         * lib/getloadavg.c: Include it instead of limits.h.
84924         (INT_STRLEN_BOUND): Remove.
84925         * lib/human.c: Include intprops.h.
84926         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84927         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84928         302/1000.
84929         * lib/inttostr.h: Include intprops.h instead of limits.h.
84930         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84931         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84932         for consistency with intprops.h.
84933         (time_t_is_integer, twos_complement_arithmetic): Use them.
84934         * lib/sig2str.h: Include <signal.h>, intprops.h.
84935         (INT_STRLEN_BOUND): Remove.
84936         * lib/strftime.c (TYPE_SIGNED): Remove.
84937         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84938         * lib/strtol.c: Adjust comments to match intprops.h.
84939         * lib/userspec.c: Include intprops.h.
84940         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84941         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84942         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84943         instead of rolling our own expressions.
84944         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84945
84946         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84947         instead of int.
84948         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84949         the right thing even if adding 1900 would overflow.  Similarly
84950         for tm_mon + 1 and tm_yday + 1.
84951         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84952         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84953         (DO_SIGNED_NUMBER): New macro.
84954         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84955
84956 2005-03-07  Bruno Haible  <bruno@clisp.org>
84957
84958         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84959
84960 2005-03-07  Bruno Haible  <bruno@clisp.org>
84961
84962         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84963
84964 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84965
84966         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84967         (func_import): Only replace files via --import when they have actually
84968         changed.
84969
84970 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84971
84972         * m4/mmap-anon.m4: New file.
84973         * m4/pagealign_alloc.m4: New file.
84974
84975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84976             Bruno Haible  <bruno@clisp.org>
84977
84978         * modules/pagealign_alloc: New file.
84979         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84980
84981 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84982             Bruno Haible  <bruno@clisp.org>
84983
84984         * lib/pagealign_alloc.h: New file.
84985         * lib/pagealign_alloc.c: New file.
84986
84987 2005-03-03  Bruno Haible  <bruno@clisp.org>
84988
84989         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84990         Use an all-permissive copyright notice, recommended by RMS.
84991
84992 2005-03-02  Bruno Haible  <bruno@clisp.org>
84993
84994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84995         of AIX, the replacement has to be done only after <string.h> is
84996         included, therefore not in config.h. stpncpy.h does the replacement,
84997         and stpncpy.c uses it.
84998
84999 2005-03-02  Bruno Haible  <bruno@clisp.org>
85000
85001         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85002         stpncpy.c uses it.
85003
85004 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85007         The workaround isn't strictly needed for POSIX conformance, and
85008         it's too much of a pain to configure and maintain.  We'll ask
85009         people to fix their kernels instead.
85010         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85011         (NANOSLEEP_BUG_WORKAROUND): Remove.
85012         (xnanosleep): Remove the workaround.
85013
85014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85017         Reported by Derek Price.
85018         (Include): Add "timespec.h".
85019
85020         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85021
85022 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85025         to detect nanosleep bug.
85026
85027 2005-03-01  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85030
85031 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         * modules/gethrxtime: New file.
85034         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85035         (Depends-on): Add gethrxtime.
85036         (configure.ac): Add gl_XNANOSLEEP.
85037         (Makefile.am): Remove lib_SOURCES line.
85038
85039 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85040
85041         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85042         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85043
85044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85047         * lib/timespec.h (gettime): Return void, since it always
85048         succeeds now.  All uses changed.
85049         * lib/gettime.c (gettime): Likewise.
85050         [HAVE_NANOTIME]: Prefer nanotime.
85051         Assume gettimeofday succeeds, as POSIX requires.
85052         Assime time () succeeds, since other code already does.
85053         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85054         (timespec_subtract): Remove.
85055         (NANOSLEEP_BUG_WORKAROUND): New constant.
85056         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85057         things considerably.  Use it only on GNU/Linux hosts, since the
85058         workaround shouldn't be needed elsewhere.
85059
85060 2005-02-24  Bruno Haible  <bruno@clisp.org>
85061
85062         * modules/gettext (Files): Add m4/glibc2.m4.
85063
85064 2005-02-24  Bruno Haible  <bruno@clisp.org>
85065
85066         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85067         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85068         * m4/progtest.m4:
85069         Update from GNU gettext 0.14.2.
85070         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85071
85072 2005-02-24  Bruno Haible  <bruno@clisp.org>
85073
85074         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85075         * lib/config.charset: Update from GNU gettext 0.14.2.
85076
85077 2005-02-24  Bruno Haible  <bruno@clisp.org>
85078
85079         * lib/gettext.h: Update from GNU gettext 0.14.2.
85080
85081 2005-02-23  Simon Josefsson  <jas@extundo.com>
85082
85083         * m4/iconvme.m4: New file.
85084
85085 2005-02-23  Jim Meyering  <jim@meyering.net>
85086
85087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85088         change.
85089         Thanks to Bruno Haible for catching it.
85090
85091 2005-02-22  Simon Josefsson  <jas@extundo.com>
85092
85093         * modules/iconvme: New file.
85094
85095         * MODULES.html.sh: Add iconvme.
85096
85097 2005-02-22  Simon Josefsson  <jas@extundo.com>
85098
85099         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85100
85101 2005-02-22  Simon Josefsson  <jas@extundo.com>
85102
85103         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85104
85105 2005-02-22  Jim Meyering  <jim@meyering.net>
85106
85107         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85108         s/ifndef/ifdef/.
85109
85110 2005-02-20  Neil Conway  <neilc@samurai.com>
85111
85112         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85113         returned by OSX/Darwin if the specified buffer is not large
85114         enough for the hostname.
85115
85116 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85117
85118         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85119         pass it to _help, otherwise the latter coredumps trying to
85120         dereference state.root_argp.
85121
85122 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85123
85124         * modules/chdir-long (Depends-on): Add memrchr.
85125         * modules/memrchr (Files): Add lib/memrchr.h.
85126         (Include): "memrchr.h".
85127
85128 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85131
85132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * lib/memrchr.h: New file.
85135         * lib/chdir-long.c: Include it.
85136         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85137         Don't bother including stddef.h.
85138
85139 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85142         inclusion.
85143         Include <sys/types.h>, for dev_t.
85144         (ME_DUMMY, ME_REMOTE): Move from here....
85145         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85146         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85147         Dmitry V. Levin.
85148         Include mountlist.h first, to test the interface.
85149
85150 2005-01-29  Bruno Haible  <bruno@clisp.org>
85151
85152         * lib/progname.c (program_name): Initialize.
85153         Needed when linking statically on MacOS X.
85154
85155 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85156
85157         Sync from coreutils.
85158         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85159         (Depends-on): Add c-strtod.
85160         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85161
85162 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         Sync from coreutils.
85165         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85166
85167         Remove files that are specific to coreutils.
85168         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85169
85170 2005-01-28  Bruno Haible  <bruno@clisp.org>
85171
85172         * modules/javacomp: New file.
85173         * MODULES.html.sh (Java): Add javacomp.
85174
85175 2005-01-28  Bruno Haible  <bruno@clisp.org>
85176
85177         * m4/javacomp.m4: New file, from GNU gettext.
85178
85179 2005-01-28  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/javacomp.sh.in: New file, from GNU gettext.
85182         * lib/javacomp.h: New file, from GNU gettext.
85183         * lib/javacomp.c: New file, from GNU gettext.
85184
85185 2005-01-26  Simon Josefsson  <jas@extundo.com>
85186
85187         * lib/gai_strerror.c: Use GPL in header.
85188
85189 2005-01-26  Bruno Haible  <bruno@clisp.org>
85190
85191         * modules/javaexec: New file.
85192         * MODULES.html.sh (Java): Add javaexec.
85193
85194 2005-01-26  Bruno Haible  <bruno@clisp.org>
85195
85196         * m4/javaexec.m4: New file, from GNU gettext.
85197
85198 2005-01-26  Bruno Haible  <bruno@clisp.org>
85199
85200         * lib/javaexec.sh.in: New file, from GNU gettext.
85201         * lib/javaexec.h: New file, from GNU gettext.
85202         * lib/javaexec.c: New file, from GNU gettext.
85203
85204 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85205
85206         * modules/lchown (Depends-on): Remove lchown.h
85207
85208 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85209
85210         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85211         must be defined if the header file was not found, in order
85212         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85213
85214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85215
85216         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85217         initializers for struct pentry_state.
85218         (__argp_error): Check return value of __asprintf
85219         (__argp_failure): Translate error message
85220
85221         * lib/argp-parse.c: Removed braces around the expansion of N_()
85222
85223 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85226         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85227         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85228         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85229         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85230         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85231         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85232         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85233         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85234         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85235         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85236         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85237         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85238         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85239         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85240         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85241         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85242         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85243         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85244         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85245         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85246         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85247         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85248         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85249         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85250         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85251         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85252         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85253         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85254         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85255         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85256         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85257         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85258         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85259         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85260         Use an all-permissive copyright notice, recommended by RMS.
85261
85262 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85263
85264         * modules/chdir-long (Depends-on): Remove mempcpy.
85265
85266 2005-01-21  Jim Meyering  <jim@meyering.net>
85267
85268         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85269         same value as for Solaris 9.
85270
85271         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85272         component length.  This included changing the parameter to be
85273         of type `char *' rather than `char const *'.
85274         * lib/chdir-long.h (chdir_long): Update prototype.
85275
85276         * lib/openat.c (fdopendir, fstatat): New functions.
85277         * lib/openat.h: Include headers required for use of DIR and struct
85278         stat.
85279         [AT_SYMLINK_NOFOLLOW]: Define.
85280         (fdopendir, fstatat): Add prototypes.
85281
85282 2005-01-21  Bruno Haible  <bruno@clisp.org>
85283
85284         * modules/classpath: New file.
85285         * MODULES.html.sh (Java): Add classpath.
85286
85287 2005-01-21  Bruno Haible  <bruno@clisp.org>
85288
85289         * lib/classpath.h: New file, from GNU gettext.
85290         * lib/classpath.c: New file, from GNU gettext.
85291
85292 2005-01-20  Simon Josefsson  <jas@extundo.com>
85293
85294         * modules/version-etc-fsf: New file.
85295
85296 2005-01-20  Simon Josefsson  <jas@extundo.com>
85297
85298         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85299         * lib/version-etc.c: Remove version_etc_copyright.
85300         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85301         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85302
85303 2005-01-20  Simon Josefsson  <jas@extundo.com>
85304
85305         * lib/base64.h (isbase64): Add.
85306
85307         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85308         using a unsigned prototype, don't inline.
85309         (base64_decode): Use it.
85310
85311 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85314         it.
85315
85316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * lib/save-cwd.c (save_cwd): Remove code to support the case
85319         where fchdir is missing or flaky.
85320
85321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85324
85325 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85326
85327         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85328         AC_LIBSOURCES now does this.
85329         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85330         with new ullong_max module.
85331
85332 2005-01-19  Bruno Haible  <bruno@clisp.org>
85333
85334         * modules/sh-quote: New file.
85335         * MODULES.html.sh (Executing programs): Add sh-quote.
85336
85337 2005-01-19  Bruno Haible  <bruno@clisp.org>
85338
85339         * lib/sh-quote.h: New file, from GNU gettext.
85340         * lib/sh-quote.c: New file, from GNU gettext.
85341
85342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         Merge from coreutils.
85345         * m4/ullong_max.m4: New file.
85346         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85347         (gl_MACROS): Assume localeconv exists.
85348
85349 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         Merge changes from coreutils, as described below in several
85352         changelogs dated today.
85353
85354         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85355         (O_DIRECTORY): Remove; not needed here, since "." must be
85356         a directory.  All uses removed.
85357         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85358         universal on Suns, and we also need to test for IRIX.
85359         Revamp code to use 'if' rather than '#if'.
85360         Avoid unnecessary comparison of cwd->desc to 0.
85361
85362         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85363         for known valid error numbers rather than observed invalid ones.
85364
85365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * modules/ullong_max: New file.
85368
85369         * modules/chdir-long, modules/openat: New files.
85370         * modules/save-cwd (Depends-on): Depend on chdir-long.
85371         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85372
85373 2005-01-18  Jim Meyering  <jim@meyering.net>
85374
85375         Merge from coreutils.
85376         * m4/chdir-long.m4, m4/openat.m4: New files.
85377         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85378         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85379         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85380         is sane and DOES follow symlinks.  Besides, testing 20 different
85381         systems found no broken chown implementations.
85382         Prompted by a change in rsync's copy of this macro.
85383         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85384
85385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85386
85387         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85388         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85389         NULL-means-set-to-current-time semantics.
85390         Remove temporary file immediately, rather than waiting
85391         for configure's at-exit trap code to do it.
85392
85393 2005-01-18  Jim Meyering  <jim@meyering.net>
85394
85395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85396
85397         * lib/utimens.c (futimens): Account for the fact that futimes
85398         can also fail with errno == ENOSYS or errno == ENOENT.
85399         Patch from Dmitry V. Levin.
85400
85401         Change the name of the robust chdir function from chdir to chdir_long.
85402         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85403         (restore_cwd): Use chdir_long, not chdir.
85404         * lib/chdir-long.c: Renamed from chdir.c.
85405         * lib/chdir-long.h: Renamed from chdir.h.
85406         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85407         Hurd.
85408
85409 2005-01-18  Bruno Haible  <bruno@clisp.org>
85410
85411         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85412         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85413         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85414         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85415         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85416         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85417         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85418         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85419         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85420         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85421         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85422         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85423         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85424         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85425         Use an all-permissive copyright notice, recommended by RMS.
85426
85427 2005-01-18  Bob Proulx  <bob@proulx.com>
85428
85429         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85430         simplify offsetof() macro construct to avoid compile failure with
85431         native HP-UX 11.0 ANSI C compiler.
85432
85433 2005-01-17  Bruno Haible  <bruno@clisp.org>
85434
85435         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85436         redundant because stpncpy.m4 takes care of it.
85437
85438 2005-01-17  Bruno Haible  <bruno@clisp.org>
85439
85440         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85441
85442 2005-01-17  Bruno Haible  <bruno@clisp.org>
85443
85444         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85445         used.
85446
85447 2005-01-17  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/fwriteerror.h (fwriteerror): Change specification to include
85450         fclose.
85451         * lib/fwriteerror.c: Include <stdbool.h>.
85452         (fwriteerror): At the end, close the file stream. Record whether
85453         stdout was already closed.
85454
85455 2005-01-17  Bruno Haible  <bruno@clisp.org>
85456
85457         * lib/execute.c (environ): Declare if needed.
85458         * lib/pipe.c (environ): Likewise.
85459         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85460
85461 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85462
85463         * modules/argp: Depend on vsnprintf
85464
85465 2005-01-10  Jim Meyering  <jim@meyering.net>
85466
85467         * modules/closeout (Depends-on): Add atexit.
85468
85469 2005-01-06  Bruno Haible  <bruno@clisp.org>
85470
85471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85472
85473 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85476         definitions to be after all include files, to avoid collisions.
85477         Problem reported by Bob Proulx.
85478
85479 2005-01-04  Jim Meyering  <jim@meyering.net>
85480
85481         Changes imported from coreutils.
85482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85483         as the mkstemp template, use a temporary directory and an
85484         8.3-friendly template to avoid trouble on systems like DJGPP.
85485         Reported by Juan M. Guerrero via Stepan Kasal.
85486         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85487         close. Remove the temporary directory right away, rather than waiting
85488         for configure's at-exit trap code to do it.
85489         Suggestion from Stepan Kasal.
85490
85491 2005-01-01  Simon Josefsson  <jas@extundo.com>
85492
85493         * gnulib-tool: Print #include directives when --import'ing.
85494
85495 2004-12-28  Simon Josefsson  <jas@extundo.com>
85496
85497         * tests/test-base64.c: Include required header files.  Remove
85498         unused variables.
85499
85500 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * modules/error (Depends-on): Remove gettext.
85503
85504 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85505
85506         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85507         not needed.  This removes a dependency on the gettext module.
85508         [defined _LIBC]: Do not include <libintl.h>; not needed.
85509
85510 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85511
85512         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85513         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85514
85515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85518         HAVE_DECL_STRTOLD.
85519
85520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * modules/getdate (Depends-on): Remove alloca-opt.
85523
85524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85525
85526         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85527
85528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85529
85530         * lib/argp-parse.c: Include <stddef.h>.
85531         (alignof, alignto): New macros.
85532         (parser_init): Don't assume that void * is aligned sufficiently
85533         for struct option.
85534
85535         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85536         need to extend the stack.
85537         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85538         large.
85539
85540 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85541
85542         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85543
85544 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85547         (2004-10-24) change.  Apparently this was a false alarm.
85548
85549         * modules/getdate: Depend on alloca-opt, not alloca.
85550
85551 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85552
85553         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85554         Remove now-obsolete comment about AIX.
85555         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85556         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85557         (YYMAXDEPTH): New macro.
85558
85559 2004-12-18  Simon Josefsson  <jas@extundo.com>
85560
85561         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85562
85563 2004-12-18  Bruno Haible  <bruno@clisp.org>
85564
85565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85566
85567 2004-12-18  Bruno Haible  <bruno@clisp.org>
85568
85569         * lib/fatal-signal.c (fatal_signals): Make non-const.
85570         (init_fatal_signals): New function.
85571         (uninstall_handlers, install_handlers): Ignore signals that were set to
85572         SIG_IGN.
85573         (at_fatal_signal): Call init_fatal_signals.
85574         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85575         SIG_IGN.
85576         Reported by Paul Eggert.
85577
85578 2004-12-18  Bruno Haible  <bruno@clisp.org>
85579
85580         * doc/alloca.texi: New file.
85581         * doc/alloca-opt.texi: New file.
85582
85583 2004-12-17  Jim Meyering  <jim@meyering.net>
85584
85585         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85586         Otherwise, install-sh could exit with improper exit status when
85587         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85588
85589 2004-12-16  Simon Josefsson  <jas@extundo.com>
85590
85591         * tests/test-base64.c: Add license.
85592
85593 2004-12-15  Stepan Kasal  <address@hidden>
85594
85595         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85596
85597 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85598
85599         * modules/getcwd (Files): Add m4/d-ino.m4.
85600         Suggested by Mark D. Baushke.
85601
85602 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85603
85604         * lib/getdate.y (textint): New member "negative".
85605         (time_zone_hhmm): New function.
85606         Expect 14 shift-reduce conflicts, not 13.
85607         (o_colon_minutes): New rule.
85608         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85609         (yylex): Set the "negative" member of signed numbers.
85610
85611 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85612
85613         * doc/getdate.texi (Time of day items, Time zone items):
85614         Describe new formats +00:00, UTC+00:00.
85615
85616 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85619         spurious "-l"s.  Problem reported by Stepan Kasal.
85620
85621 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85622
85623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85624         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85625
85626 2004-12-04  Simon Josefsson  <jas@extundo.com>
85627
85628         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85629         Vandoorselaere <yoann@prelude-ids.org>.
85630
85631 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85632
85633         Changes imported from coreutils.
85634         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85635         exist.
85636         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85637
85638 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85639
85640         Changes imported from coreutils.
85641         * lib/hard-locale.c: Assume <locale.h> exists.
85642         Include "strdup.h".
85643         (GLIBC_VERSION): New macro.
85644         (hard_locale): Assume setlocale exists.
85645         Rewrite to avoid #ifdef.
85646         Use strdup rather than malloc + strcpy.
85647         * lib/human.c: Assume <locale.h> exists.
85648         (human_readable): Assume localeconv exists.
85649
85650 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * modules/hard-locale (Depends-on): Add strdup.
85653
85654 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85655
85656         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85657         convert T2, not T.  (Imported from libc.)
85658
85659 2004-11-30  Simon Josefsson  <jas@extundo.com>
85660
85661         * modules/restrict (License): Change to LGPL.
85662
85663 2004-11-30  Simon Josefsson  <jas@extundo.com>
85664
85665         * m4/restrict.m4: Add copyright and copying conditions.
85666
85667 2004-11-30  Simon Josefsson  <jas@extundo.com>
85668
85669         * m4/base64.m4: New file.
85670
85671 2004-11-30  Simon Josefsson  <jas@extundo.com>
85672
85673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85674         base64.
85675
85676         * tests/test-base64.c: New file.
85677
85678         * modules/base64: New file.
85679
85680 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85681
85682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85683         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85684
85685         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85686
85687 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85688
85689         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85690         (__getcwd.c): Don't restore errno; glibc doesn't.
85691         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85692         first, falling back to our code only if its results look suspicious.
85693         Ensure that the resulting buffer is only as large as necessary.
85694
85695         * lib/readutmp.c: Include readutmp.h first.
85696         Include <errno.h>, since readutmp.h no longer does that.
85697         * lib/readutmp.h: Don't include <errno.h>,
85698         <sys/param.h>, <time.h>; not needed to establish interface.
85699         (errno): Remove decl.
85700         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85701         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85702         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85703
85704 2004-11-28  Simon Josefsson  <jas@extundo.com>
85705
85706         * lib/base64.h, base64.c: New file.
85707
85708 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85711
85712 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85715         (Depends-on): Remove pathmax, same.  Add mempcpy.
85716         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85717         (Makefile.am): Append getcwd.h to lib_SOURCES.
85718         (Include): Add getcwd.h.
85719         (Maintainer): Change from Jim Meyering to "all, glibc",
85720         since getdate now uses intended-for-glibc code.
85721         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85722         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85723
85724 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85725
85726         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85727         HP's ANSI C compiler.
85728         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85729         Declaring int functions causes warnings on some modern systems and
85730         shouldn't be needed to compile on ancient ones.
85731         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85732         defined.
85733
85734         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85735         with the following changes.
85736         (__set_errno): Parenthesize properly.
85737         Include <stdbool.h>.
85738         (MIN, MAX, MATCHING_INO): New macros.
85739         (__getcwd): Define with prototype, not K&R form.
85740         Use heuristics to allocate default buffer on stack if possible.
85741         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85742         behavior, and to avoid the PATH_MAX limit when computing
85743         ../../../../...
85744         Use MATCHING_INO to compare inode number to file.
85745         Check for arithmetic overflow in size calculations.
85746         Fix bug in reallocation of dot array that caused getcwd to fail
85747         on directories nested deeper than 75.
85748         Be more careful about saving errno on error.
85749         Do not use realloc; use only free+malloc, as this is a bit
85750         more flexible and avoids a needless copy operation.
85751         Do not inspect st_dev and st_ino for symbolic links; POSIX
85752         doesn't specify the latter.
85753         Check for closedir errors.
85754         Avoid needless casts.
85755         Use "#ifdef weak_alias" around weak_alias, to be like other
85756         glibc code.
85757         The following changes to getcwd.c have effect only when used in
85758         gnulib; they have no effect inside glibc proper.
85759         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85760         as alloca isn't used.
85761         (alloca, __alloca): Likewise.
85762         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85763         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85764         unconditionally, as gnulib assumes C89 or better.
85765         Do not include <sys/param.h>.
85766         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85767         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85768         better.
85769         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85770         Include <dirent.h> in a way that is compatible with modern Autoconf.
85771         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85772         New macros, if not already defined.
85773         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85774         Use "_LIBC", not "defined _LIBC", for consistency.
85775         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85776         a mempcpy module.
85777         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85778         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85779         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85780         credit only to Jim Meyering and adjust the copyright dates.
85781         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85782         <stdlib.h>, <unistd.h>, "pathmax.h".
85783         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85784         (INITIAL_BUFFER_SIZE): Remove.
85785         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85786
85787 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85788
85789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85790         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85791         Use the _ONCE methods, for efficiency.
85792         Check for fcntl.h.  In test program, include <errno.h>
85793         and <fcntl.h> if available.  Remove old K&R cruft from
85794         test program.  Check for common errors in GNU/Linux,
85795         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85796         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85798         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85799         name accordingly.
85800         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85801         accommodate new getcwd.c.
85802         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85803         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85804         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85805         that's all we need now.
85806
85807 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85808
85809         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85810         argp-parse.c depends on getopt internals, that means we should
85811         always use our getopt, to be on the safe side.
85812         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85813         order not to spoil the result of an eventual previous invocation
85814         of gl_GETOPT_SUBSTITUTE.
85815
85816 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85817
85818         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85819         redefinition warnings. To avoid them, include the defines
85820         in `#if !defined __need_getopt ... #endif'. The only place
85821         where __getopt_argv_const is used is in definitions
85822         of getopt_long and getopt_long_only below, which are as well
85823         protected by `#ifndef __need_getopt'.
85824         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85825         __need_getopt after including <stdio.h> and <unistd.h> These
85826         headers might have defined it.
85827
85828 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85831
85832 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85835         (futimens): New function, which uses futimes if available.
85836         (futimens, utimens): Support timespec==NULL, with same semantics
85837         as utime and utimens.
85838         * lib/utimens.h (futimens): New decl.
85839
85840 2004-11-23  Jim Meyering  <jim@meyering.net>
85841
85842         * lib/getopt_.h: Remove trailing blanks.
85843
85844 2004-11-23  Jim Meyering  <jim@meyering.net>
85845
85846         * lib/__fpending.c: Add comment.
85847
85848 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * modules/canonicalize (Depends-on): Add xreadlink.
85851         Problem reported by James Youngman.
85852
85853 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85856         New macros.
85857         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85858         optopt): Use them instead of invoking ## directly; otherwise, the
85859         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85860
85861 2004-11-19  Bruno Haible  <bruno@clisp.org>
85862
85863         * lib/strtok_r.c: Move comments from here...
85864         * lib/strtok_r.h: ... to here.
85865
85866 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85869         implementations that mishandle size_t overflow.
85870
85871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85874         might fail.  Problem reported by Yoann Vandoorselaere.
85875         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85876         implementations that mishandle size_t overflow.
85877
85878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85879
85880         * modules/canon-host (Depends-on): Add strdup.
85881
85882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85885
85886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * lib/canon-host.c: Include "strdup.h".
85889         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85890         Use strdup instead of malloc/strcpy to duplicate strings.
85891
85892         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85893         (human_space_before_unit): New constant.
85894         * lib/human.c (human_readable): Support it.
85895
85896         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85897         (xgetcwd): Set errno correctly when failing.
85898         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85899         the failure is actually due to a PATH_MAX problem.
85900
85901         Further getopt changes to make it more likely that glibc will
85902         buy the changes back.
85903         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85904         (getopt): Use it, so to preserve glibc semantic
85905         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85906         when compiling for libc.
85907         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85908         (getopt_long, getopt_long_only): Use it.
85909
85910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85911         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85912         (getopt): Argv is now char * const *, as per standard.
85913         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85914         not char *__getopt_argv_const *.
85915         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85916         _getopt_long_only_r): Likewise.
85917         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85918         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85919         _getopt_long_r, _getopt_long_only_r): Likewise.
85920         * lib/getopt_.h (__getopt_argv_const): Remove.
85921         (getopt): Argv is now char * const *, as per standard.
85922
85923         * lib/getdate.y (tORDINAL): New token.
85924         (day, relunit): Allow it for relative times.
85925         (relative_time_table): Use tORDINAL for ordinals.
85926
85927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85928
85929         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85930         Document that "second" isn't allowed as an ordinal number.
85931
85932 2004-11-16  Jim Meyering  <jim@meyering.net>
85933
85934         * modules/closeout (Depends-on): Add fpending.
85935
85936 2004-11-15  Jim Meyering  <jim@meyering.net>
85937
85938         * lib/closeout.c: Include "__fpending.h" once again.
85939         Include <stdbool.h>.
85940         (close_stdout): Don't fail just because stdout was closed initially,
85941         since some programs don't write to stdout in the normal course of
85942         operation (other than --version and --help), and we don't want this
85943         function to make e.g. `touch file >&-' fail.
85944         But do fail if it was closed and someone has tried to write to it.
85945         E.g., `printf foo >&-' must fail.
85946
85947 2004-11-13  Jim Meyering  <jim@meyering.net>
85948
85949         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85950
85951 2004-11-12  Simon Josefsson  <jas@extundo.com>
85952
85953         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85954         small doc fix is still pending.
85955
85956 2004-11-11  Simon Josefsson  <jas@extundo.com>
85957
85958         * modules/strtok_r: New file.
85959
85960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85961         strtok_r.
85962
85963 2004-11-11  Simon Josefsson  <jas@extundo.com>
85964
85965         * m4/strtok_r.m4: New file.
85966
85967         * m4/getopt.m4: Replace opterr.
85968
85969 2004-11-11  Simon Josefsson  <jas@extundo.com>
85970
85971         * lib/strtok_r.h, strtok_r.c: New file.
85972
85973 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85974
85975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85976         of replacing opterr, getopt, etc.  This should handle the
85977         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85978
85979 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85980
85981         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85982         we can stop lying to compilers about the constness of argv when we
85983         are compiled outside glibc.
85984         (getopt, getopt_long, getopt_long_only): Use it.
85985         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85986         _getopt_internal, getopt): Likewise.
85987         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85988         _getopt_long_only_r): Likewise.
85989         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85990         _getopt_long_r, _getopt_long_only_r): Likewise.
85991
85992         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85993         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85994         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85995         the other external symbols.
85996         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85997         declaration, since the above renaming now works around collisions.
85998
85999 2004-11-11  Jim Meyering  <jim@meyering.net>
86000
86001         * lib/linebreak.c: Remove trailing blanks.
86002         * lib/alloca_.h: Likewise.
86003         * lib/acosl.c: Likewise.
86004         * lib/euidaccess.c: Likewise.
86005         * lib/allocsa.h: Likewise.
86006
86007 2004-11-10  Simon Josefsson  <jas@extundo.com>
86008
86009         * m4/getaddrinfo.m4: New file.
86010
86011 2004-11-10  Simon Josefsson  <jas@extundo.com>
86012
86013         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86014
86015 2004-11-10  Simon Josefsson  <jas@extundo.com>
86016
86017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86018         getaddrinfo.
86019
86020         * modules/getaddrinfo: New file.
86021
86022 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86025
86026 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         * lib/mktime.c (SHR): New macro, which is a portable
86029         substitute for >> that should work even on Crays.
86030         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86031         Problem reported by Mark D. Baushke in
86032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86033         * lib/getdate.y (SHR): Likewise.
86034         (tm_diff): Use it.
86035         * lib/strftime.c (SHR): Likewise.
86036         (tm_diff): Use it.
86037         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86038         quote_these_too, so that right shifts are well defined.  All uses
86039         changed.
86040
86041 2004-11-10  Jim Meyering  <jim@meyering.net>
86042
86043         Ensure that no close failure goes unreported.
86044         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86045         return early when it seems there's nothing to flush.
86046         Don't include __fpending.h.
86047
86048 2004-11-10  Jim Meyering  <jim@meyering.net>
86049
86050         * modules/closeout (Depends-on): Remove fpending.
86051
86052 2004-11-10  Jim Meyering  <jim@meyering.net>
86053
86054         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86055
86056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86059         gl_FUNC_STRFTIME.
86060         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86061         and AC_REQUIRE when possible, to avoid duplicate checks.
86062         Check for <wchar.h>.
86063
86064 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86065
86066         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86067
86068 2004-11-09  Bruno Haible  <bruno@clisp.org>
86069
86070         * m4/sockpfaf.m4: New file.
86071
86072 2004-11-05  Bruno Haible  <bruno@clisp.org>
86073
86074         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86075         Reported by Mark D. Baushke <mdb@cvshome.org>.
86076
86077 2004-11-04  Bruno Haible  <bruno@clisp.org>
86078
86079         2004-09-11  Bruno Haible  <bruno@clisp.org>
86080                 * allocsa.valgrind: New file.
86081         2004-02-06  Bruno Haible  <bruno@clisp.org>
86082                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86083                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86084                 Reported by Christopher Seip <chris.seip@hp.com>.
86085
86086 2004-11-04  Bruno Haible  <bruno@clisp.org>
86087
86088         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86089         (Makefile.am): Distribute it.
86090
86091 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86092
86093         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86094         with errno == ERANGE if the buffer is too small.
86095         Problem reported by Mark D. Baushke.
86096
86097 2004-11-03  Albert Chin  <china@thewrittenword.com>
86098             Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86101         equivalent, substitute $ac_type for equivalent type rather than
86102         blindly using uint32_t *always* which won't work if uint32_t is not
86103         available.  Define _UINT32_T to work around typedef of uint32_t if
86104         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86105         2.5.1.
86106
86107 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86108
86109         * m4/jm-macros.m4: Sync from coreutils.
86110         (gl_MACROS): Check for mbrlen, for pathchk.
86111         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86112
86113 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86114
86115         * lib/xreadlink.c (MAXSIZE): New macro.
86116         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86117         size does not exceed MAXSIZE.  Avoid cast.
86118         As suggested by Mark D. Baushke in
86119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86120         if readlink fails with buffer size just under MAXSIZE, try again
86121         with MAXSIZE.
86122
86123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86126
86127 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86128         and  Paul Eggert  <eggert@cs.ucla.edu>
86129
86130         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86131         (get_date): Overparenthesize to avoid GCC warning.
86132
86133 2004-11-02  Bruno Haible  <bruno@clisp.org>
86134
86135         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86136         returns void.
86137
86138 2004-11-02  Bruno Haible  <bruno@clisp.org>
86139
86140         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86141         function returns void.
86142
86143 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86146         fflush_unlocked, flockfile, funlockfile, funlockfile,
86147         fputs_unlocked, putc_unlocked.
86148
86149 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86150
86151         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86152         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86153         already declared.
86154
86155 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86156
86157         * modules/getdate (Files): Add doc/getdate.texi.
86158         (Depends-on): Add setenv, xalloc.
86159
86160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * lib/getdate.y: Add support for TZ="foo" within a date string.
86163         Fix some bugs near time_t boundaries.  Reject dates with
86164         out-of-range components, e.g., "Sept 31".
86165         Include <stdlib.h>, "setenv.h", "xalloc.h".
86166         (ISDIGIT_LOCALE): Remove; unused.
86167         Note that the TZ and time functions used here are not reentrant.
86168         (mktime_ok, get_tz): New functions.
86169         (TZBUFSIZE): New constant.
86170         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86171         This requires that we sometimes generate our own TZ="XXX..." setting.
86172
86173 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86174
86175         * doc/getdate.texi: New file, from coreutils with modifications for
86176         the new TZ parsing.
86177
86178 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86179
86180         * lib/mktime.c (not_equal_tm): Remove redundant check.
86181
86182 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86183
86184         * modules/regex (lib_SOURCES): Add regex.c.
86185         Reported by James Youngman in
86186         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86187
86188 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86189
86190         * lib/getdate.y: Use Bison 1.875 features, and some minor
86191         code cleanups.  This change does not affect semantics.
86192         Don't include <stdlib.h>; no longer needed.
86193         Don't include unlocked-io.h; only the "#if TEST" code uses
86194         stdio, and performance isn't crucial there.
86195         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86196         Bison 1.875 features as described below.
86197         All uses of "PC." replaced by "pc->".
86198         (YYSTYPE): Add a forward declaration.
86199         (yylex, yyerror): Use full prototypes in forward decls.
86200         Use "%pure-parser" rather than obsolescent "%pure_parser".
86201         Use %parse-param and %lex-param instead of obsolescent
86202         YYPARSE_PARAM and YYLEX_PARAM.
86203         (meridian_table, month_and_day_table, time_units_table,
86204         relative_time_table, time_zone_table, military_table,
86205         lookup_zone, lookup_word, get_date):
86206         Use NULL instead of 0 where appropriate.
86207         (to_hour): Avoid abort (), to avoid a dependency on
86208         stdlib.h.
86209         (yyerror, yylex): Now accepts parser_control * arg.
86210         (main) [TEST]: Use '\0' rather than 0 for char.
86211
86212 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86213
86214         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86215
86216 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86219         It's now the caller's responsibility to handle the case where
86220         !HAVE_GETPAGESIZE && !defined getpagesize.
86221
86222         * lib/mktime.c (leapyear): Arg is long int, not int.
86223
86224 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86225
86226         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86227
86228 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86229
86230         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86231         missing.  Problem reported by James Youngman.
86232
86233 2004-10-16  Simon Josefsson  <jas@extundo.com>
86234
86235         * gnulib-tool: Fix comments.  Fix parse problem.
86236         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86237
86238 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86241         implementation of getopt_long.  Problem reported by Alexander Taler in:
86242         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86243
86244 2004-10-15  Bruno Haible  <bruno@clisp.org>
86245
86246         * gnulib-tool: Untabify. Initialize supplied_libname.
86247         (func_usage): More homogenous output.
86248         (func_modules_transitive_closure, func_modules_to_filelist,
86249         func_emit_lib_Makefile_am): New functions.
86250         (func_import): New function, extracted from big case statement. Use
86251         func_get_license, func_modules_transitive_closure,
86252         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86253         opt_lgpl. Don't use test -a, as it's not portable.
86254         (func_create_testdir): Use func_modules_transitive_closure,
86255         func_modules_to_filelist, func_emit_lib_Makefile_am.
86256
86257 2004-10-15  Bruno Haible  <bruno@clisp.org>
86258
86259         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86260
86261 2004-10-15  Bruno Haible  <bruno@clisp.org>
86262
86263         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86264         the portions belonging to each module.
86265         Suggested by Derek Robert Price <derek@ximbiot.com>.
86266
86267 2004-10-12  Simon Josefsson  <jas@extundo.com>
86268
86269         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86270         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86271         to real functions.
86272
86273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86274
86275         * modules/vsnprintf: New file.
86276
86277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86278
86279         * m4/vsnprintf.m4: New file.
86280
86281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86282
86283         * lib/vsnprintf.h: New file.
86284         * lib/vsnprintf.c: New file.
86285
86286 2004-10-11  Bruno Haible  <bruno@clisp.org>
86287
86288         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86289         vsnprintf.
86290
86291 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86294
86295 2004-10-07  Bruno Haible  <bruno@clisp.org>
86296
86297         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86298         fits into the provided buffer.
86299
86300 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86301
86302         * lib/diacrit.c, diacrit.h: Add GPL notice.
86303
86304         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86305         notice.
86306         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86307         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86308         This avoids a potential constant-folding bug.
86309
86310 2004-10-05  Bruno Haible  <bruno@clisp.org>
86311
86312         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86313         for the declaration of strsep.
86314
86315 2004-10-05  Bruno Haible  <bruno@clisp.org>
86316
86317         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86318
86319 2004-10-04  Simon Josefsson  <jas@extundo.com>
86320
86321         * modules/memmem: New file.
86322         * tests/test-memmem.c: New file.
86323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86324
86325 2004-10-04  Simon Josefsson  <jas@extundo.com>
86326
86327         * m4/memmem.m4: New file.
86328
86329 2004-10-04  Simon Josefsson  <jas@extundo.com>
86330
86331         * lib/memmem.h: New file.
86332         * lib/memmem.c: New file, taken from glibc.
86333
86334 2004-10-04  Simon Josefsson  <jas@extundo.com>
86335
86336         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86337         '#ifdef USE_UNLOCKED_IO'.
86338
86339 2004-10-04  Simon Josefsson  <jas@extundo.com>
86340
86341         * config/srclist.txt: Add memmem from glibc.
86342
86343 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86344
86345         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86346
86347         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86348         modules/exclude, modules/getdate, modules/getline,
86349         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86350         modules/getusershell, modules/linebuffer, modules/md5,
86351         modules/mountlist, modules/posixtm, modules/readtokens,
86352         modules/readutmp, modules/regex, modules/sha1,
86353         modules/version-etc, modules/yesno:
86354         Remove dependency on unlocked-io.
86355
86356 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86357
86358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86359
86360         * m4/unlocked-io.m4: Add copyright notice.
86361         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86362
86363 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86366         * lib/xmalloc.c (xmemdup): Likewise.
86367         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86368         XFREE): Remove these long-obsolescent macros.
86369         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86370         * lib/xstrdup.c: Remove.
86371
86372         * lib/regex.c (re_comp): Cast gettext return value to char *,
86373         Problem reported by Martin Neitzel via Mark D. Baushke.
86374
86375 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86378         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86379         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86380         regex.c, sha1.c, version-etc.c, yesno.c:
86381         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86382         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86383         the includer's responsibility.
86384
86385         Sync from coreutils.
86386
86387         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86388         points to the start of a string, as the C Standard says the
86389         resulting behavior is undefined.
86390
86391         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86392         simple -> simple_backups, numbered_existing ->
86393         numbered_existing_backups, numbered -> numbered_backups
86394         to avoid shadowing problems.  All uses changed.
86395         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86396         * lib/backupfile.c (check_extension, numbered_backup):
86397         Rename locals to avoid shadowing 'basename'.
86398         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86399         once.
86400
86401         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86402         * lib/.cvsignore: Add getopt.h.
86403
86404 2004-10-04  Bruno Haible  <bruno@clisp.org>
86405
86406         * modules/README: New file.
86407         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86408         not a module.
86409
86410 2004-10-02  Jim Meyering  <jim@meyering.net>
86411
86412         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86413
86414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86415
86416         * modules/strsep: New file.
86417
86418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86419
86420         * m4/strsep.m4: New file.
86421
86422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86423
86424         * lib/strsep.h: New file.
86425         * lib/strsep.c: New file.
86426
86427 2004-10-01  Simon Josefsson  <jas@extundo.com>
86428
86429         * lib/snprintf.c (snprintf): Handle size==0.
86430
86431 2004-10-01  Simon Josefsson  <jas@extundo.com>
86432             Bruno Haible  <bruno@clisp.org>
86433
86434         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86435         (snprintf): Declare 'args'.
86436
86437 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86438
86439         * lib/snprintf.c: Remove comments as to why each header is needed.
86440
86441 2004-10-01  Bruno Haible  <bruno@clisp.org>
86442
86443         * MODULES.html.sh: Add strsep.
86444
86445 2004-09-30  Simon Josefsson  <jas@extundo.com>
86446
86447         * modules/snprintf: New file.
86448
86449 2004-09-30  Simon Josefsson  <jas@extundo.com>
86450
86451         * m4/snprintf.m4: New file.
86452
86453 2004-09-30  Simon Josefsson  <jas@extundo.com>
86454
86455         * lib/snprintf.h, lib/snprintf.c: New files.
86456
86457 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86458
86459         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86460         (hol_entry_help): Never translate an empty string.
86461         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86462         * lib/argp.h (OPTION_NO_TRANS): New option.
86463
86464 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86465
86466         * modules/argp (Maintainer): Replace Simon Josefsson
86467         by Sergey Poznyakoff.
86468
86469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86470
86471         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86472         changes merged back into glibc.
86473
86474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86475
86476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86477
86478 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86479
86480         * lib/xvasprintf.c: Include xalloc.h.
86481         (xvasprintf): Use xalloc_die, not xmalloc_die.
86482
86483 2004-09-29  Bruno Haible  <bruno@clisp.org>
86484
86485         * modules/alloca-opt: New file, derived from modules/alloca.
86486         * modules/allocsa: Depend on alloca-opt instead of alloca.
86487         * modules/setenv: Likewise.
86488         * modules/vasnprintf: Likewise.
86489         * MODULES.html.sh: Add alloca-opt.
86490
86491 2004-09-28  Simon Josefsson  <jas@extundo.com>
86492
86493         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86494         LGPL, and to replace license template from GPL to LGPL.
86495
86496 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * modules/dummy: Change license to LGPL.
86499
86500 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86501
86502         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86503
86504 2004-09-24  Simon Josefsson  <jas@extundo.com>
86505
86506         * modules/minmax (License): Change from GPL to LGPL.
86507
86508 2004-09-23  Simon Josefsson  <jas@extundo.com>
86509
86510         * gnulib-tool (--import): Typo.
86511
86512 2004-09-23  Simon Josefsson  <jas@extundo.com>
86513
86514         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86515
86516 2004-09-22  Bruno Haible  <bruno@clisp.org>
86517
86518         * modules/*: Add 'License' field.
86519         * gnulib-tool: Accept --extract-license option.
86520         (func_get_license): New function.
86521
86522 2004-09-21  Bruno Haible  <bruno@clisp.org>
86523
86524         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86525         Reported by Simon Josefsson.
86526
86527 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86528
86529         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86530         gl_AC_TYPE_LONG_LONG.
86531
86532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86533
86534         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86535
86536 2004-09-18  Simon Josefsson  <jas@extundo.com>
86537         and  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86540         calls with autoreconf.  Define GL_LIB.
86541
86542 2004-09-14  Karl Berry  <karl@gnu.org>
86543
86544         * config/srclist.txt: unsync setenv.c, sigh.
86545
86546 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86547
86548         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86549         Problem reported by Bruno Haible in:
86550         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86551
86552 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86553
86554         * config/srclist.txt: Comment out argp-pvh.c.
86555
86556 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86557
86558         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86559         in case some system header has #define'd it.  Problem reported by
86560         Soeren D. Schulze in
86561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86562
86563 2004-09-09  Karl Berry  <karl@gnu.org>
86564
86565         * regex.[ch]: delete from the root.  These were supposed to be
86566                 synced with emacs cvs, but this has not happened for about
86567                 a year, and anyway nothing else uses emacs regex.[ch].
86568                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86569                 lib/regex[.ch] is untouched.
86570
86571 2004-09-09  Bruno Haible  <bruno@clisp.org>
86572
86573         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86574
86575 2004-09-09  Bruno Haible  <bruno@clisp.org>
86576
86577         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86578         modifications.
86579         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86580
86581 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86582
86583         * modules/xvasprintf: New file.
86584         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86585
86586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86587
86588         * lib/xvasprintf.h: New file.
86589         * lib/xvasprintf.c: New file.
86590         * lib/xasprintf.c: New file.
86591
86592 2004-09-08  Bruno Haible  <bruno@clisp.org>
86593
86594         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86595
86596 2004-09-08  Bruno Haible  <bruno@clisp.org>
86597
86598         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86599         length is > INT_MAX.
86600         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86601         more.
86602
86603 2004-09-08  Bruno Haible  <bruno@clisp.org>
86604
86605         * lib/stdint_.h: New file, taken from GNU clisp.
86606
86607 2004-09-08  Bruno Haible  <bruno@clisp.org>
86608             Oskar Liljeblad  <oskar@osk.mine.nu>
86609
86610         * modules/stdint: New file.
86611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86612
86613 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         Import from coreutils.
86616         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86617         strings on unbounded length.  alloca's performance benefits aren't
86618         that important here.
86619         (V_STRDUP): Remove.
86620         (parse_with_separator): New function, with most of the internals
86621         of the old parse_user_spec.  Allow user to omit both user and group,
86622         for compatibility with FreeBSD.
86623         Clone only the user name, not the entire spec.
86624         Do not set *uid, *gid unless entirely successful.
86625         Avoid memory leak in some failing cases.
86626         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86627         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86628         (parse_user_spec): Rewrite to use parse_with_separator.
86629
86630 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86631
86632         * modules/userspec: Don't depend on alloca.
86633
86634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86635
86636         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86637
86638 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86639
86640         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86641         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86642         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86643
86644 2004-08-16  Simon Josefsson  <jas@extundo.com>
86645
86646         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86647         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86648         Add --dry-run for --import.
86649         Let user provided command line parameters override configure.ac
86650         settings.
86651
86652 2004-08-12  Simon Josefsson  <jas@extundo.com>
86653
86654         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86655         as discussed with Paul Eggert in threads rooted at
86656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86657         and
86658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86659         Before, the test was empty, and relied on ELIDE_CODE in source
86660         code.)
86661         (gl_PREREQ_GETOPT): New macro.
86662         (gl_GETOPT): Use them.
86663
86664 2004-08-12  Simon Josefsson  <jas@extundo.com>
86665
86666         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86667         * lib/getopt_.h: Renamed from getopt.h.
86668
86669 2004-08-12  Simon Josefsson  <jas@extundo.com>
86670
86671         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86672         Change default library name from libfoo to libgnu.
86673         Now, if you have a configure.ac that says:
86674                 gl_SOURCE_BASE(gl)
86675                 gl_M4_BASE(gl/m4)
86676                 gl_MODULES(error getopt etcetera)
86677                 gl_INIT
86678         you can import all you need by running:
86679                 ../gnulib/gnulib-tool --import
86680
86681         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86682         (Makefile.am): Rewrite, use logic from argz.
86683         (Include): Use <getopt.h> instead of "getopt.h".
86684
86685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         * modules/argp (Files): Add m4/unlocked-io.m4.
86688         (Depends-on): Add extensions.
86689
86690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86693         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86694         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86695         Check for program_invocation_name, program_invocation_short_name,
86696         flockfile, funlockfile, features.h, _getopt_long_only_r.
86697
86698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86699
86700         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86701         its complicated substitute.
86702         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86703         and program_invocation_name.
86704         (__argp_basename) [!_LIBC]: Remove; the only use was
86705         replaced by its body.
86706         (__argp_short_program_name): Change condition from
86707         !defined __argp_short_program_name to
86708         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86709         to match argp-namefrob.h.
86710         (__argp_failure): Don't assume strerror_r returns char *.
86711         * lib/argp-parse.c (N_): Define unconditionally.
86712         (argp_default_options): Fill out initializers with 0 to avoid
86713         gcc warnings.
86714
86715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86718         getopt1.c.
86719
86720 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         Merge from coreutils.
86723
86724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86725
86726         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86727         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86728
86729 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86730
86731         Merge from coreutils.
86732
86733         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86734         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86735         for Reliant Unix 5.43.
86736
86737         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86738         (union fooround): Use uintmax_t, not long int.
86739         The rest is a merge from libc:
86740         [defined _LIBC]: Include <shlib-compat.h>.
86741         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86742
86743         * lib/settime.c (settime): Recode to avoid warning with
86744         Sun Forte C 6U2.
86745
86746         * lib/strverscmp.c: Convert to UTF-8.
86747
86748 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86749
86750         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86751         m4/uintmax_t.m4.
86752
86753 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * modules/xalloc-die: New file.
86756         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86757
86758         * modules/md5 (Files): Add m4/uint32_t.m4.
86759         * modules/sha1: Renamed from modules/sha.
86760         (Files):
86761         Rename lib/sha.h to lib/sha1.h.
86762         Rename lib/sha.c to lib/sha1.c.
86763         Rename m4/sha.m4 to m4/sha1.m4.
86764         (lib_SOURCES): Likewise.
86765         (configure.ac): Rename gl_SHA to gl_SHA1.
86766         (Include): sha.h -> sha1.h.
86767
86768 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86769
86770         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86771         * m4/sha1.m4: Renamed from sha.m4.
86772         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86773
86774 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86775
86776         * lib/obstack.h (obstack_empty_p):
86777         Don't assume that chunk->contents is suitably aligned.
86778         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86779         Likewise. Problem reported by Benno in
86780         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86781
86782         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86783         readable.  This could be improved further but it'd take some work.
86784
86785 2004-08-08  Simon Josefsson  <jas@extundo.com>
86786
86787         * modules/xgethostname (Depends-on): Remove exit and error (not
86788         used).
86789
86790         * modules/getpass-gnu: Add getpass.h.
86791         (Depends-on): Add stdbool.
86792         * modules/getpass: Add getpass.h.
86793
86794 2004-08-08  Simon Josefsson  <jas@extundo.com>
86795
86796         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86797         Check getpass declaration.
86798
86799 2004-08-08  Simon Josefsson  <jas@extundo.com>
86800
86801         * lib/xgethostname.c: Don't include error.h (not used).
86802
86803         * lib/getpass.h: Add.
86804         * lib/getpass.c: Include getpass.h first.
86805
86806 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86807
86808         * lib/xalloc-die.c: New file.
86809         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86810         All uses removed.
86811         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86812         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86813         xalloc-die.c.
86814         (_, N_, xalloc_die): Move to xalloc-die.c.
86815         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86816         so that we needn't mess with xalloc_msg_memory_exhausted.
86817
86818         * lib/sha1.h: Renamed from sha.h.
86819         (SHA1_H): Renamed from _SHA_H.
86820         (sha1_ctx): Renamed from sha_ctx.
86821         (sha1_init_ctx): Renamed from sha_init_ctx.
86822         (sha1_process_block): Renamed from sha_process_block.
86823         (sha1_process_bytes): Renamed from sha_process_bytes.
86824         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86825         (sha1_read_ctx): Renamed from sha_read_ctx.
86826         (sha1_stream): Renamed from sha_stream.
86827         (sha1_buffer): Renamed from sha_buffer.
86828         * lib/sha1.c: Likewise; renamed from sha.c.
86829         Do not include <sys/types.h>.
86830         Include <stddef.h> rather than <stdlib.h>.
86831
86832 2004-08-08  Bruno Haible  <bruno@clisp.org>
86833
86834         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86835         FILESYSTEM_PREFIX_LEN.
86836         * lib/progreloc.c: Likewise.
86837         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86838
86839 2004-08-06  Simon Josefsson  <jas@extundo.com>
86840
86841         * modules/progname (Depends-on): Don't depend on stdbool.
86842
86843 2004-08-06  Simon Josefsson  <jas@extundo.com>
86844
86845         * modules/getsubopt: New file.
86846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86847         getsubopt.
86848
86849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86850
86851         More merge from coreutils.
86852
86853         * m4/utimens.m4, m4/utimecmp.m4: New files.
86854         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86855         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86856         prereq.m4, sha.m4: Import changes from coreutils.
86857
86858 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         More merge from coreutils.
86861         * modules/raise, modules/readtokens0, modules/utimens:
86862         * modules/utimecmp, module/xnanosleep: New files.
86863         * modules/strftime: Add lib/strftime.h.
86864         Change include from <time.h> to "strftime.h".
86865         * modules/yesno: Add lib/yesno.h.
86866         * modules/backupfile: Remove lib/addext.c.
86867         * modules/euidaccess: Add stat-macros.h.
86868         * modules/canonicalize, modules/euidaccess,
86869         modules/filemode, modules/lchown, modules/makepath,
86870         modules/rmdir, modules/stat: Likewise.
86871
86872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86873
86874         Merge from tar.
86875         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86876         SIZE_MAX is a valid preprocessor constant.
86877         (__argp_basename): Change from "#ifndef _LIBC"
86878         to "#ifndef __argp_short_program_name", so that
86879         we don't compile these functions for tar.
86880
86881         More merges from coreutils.
86882         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86883         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86884         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86885         * lib/addext.c: Remove; no longer needed.
86886         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86887         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86888         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86889         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86890         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86891         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86892         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86893         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86894         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86895         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86896         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86897         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86898         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86899         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86900         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86901         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86902         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86903         Import changes from coreutils.
86904
86905 2004-08-05  Simon Josefsson  <jas@extundo.com>
86906
86907         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86908
86909 2004-08-05  Simon Josefsson  <jas@extundo.com>
86910
86911         * m4/getsubopt.m4: New file.
86912
86913 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86914
86915         Merge from coreutils.
86916
86917         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86918         * m4/getcwd-path-max.m4: New files.
86919
86920         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86921         FILESYSTEM_PREFIX_LEN ->
86922         FILE_SYSTEM_PREFIX_LEN.
86923         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86924         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86925         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86927
86928         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86929         prerequisite modules now handle the DOS stuff.
86930         Don't check for unistd.h.
86931
86932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         Merge from coreutils.
86935
86936         * lib/.gdb-history: Remove; this doesn't belong here.
86937
86938         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86939         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86940         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86941         * lib/getcwd.c: New files.
86942
86943         * lib/dirname.h: Include <stdbool.h>.
86944         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86945         for consistency with POSIX terminology.  All uses changed.
86946         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86947         (strip_trailing_slashes): Use bool for booleans.
86948         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86949
86950         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86951         sometimes returns a positive errno value even when it succeeds.
86952         (print_errno_message) [!LIBC]: Fall back on strerror if
86953         __strerror_r fails.
86954
86955         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86956         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86957         (longest_relative_suffix): New function.
86958         (path_concat): Use it.  Assume first argument is not NULL.
86959         Port to DOS.  Omit redundant separators.
86960         Report an error instead of returning NULL.
86961         Use mempcpy instead of memcpy.
86962         (xpath_concat): Remove: not declared or used.
86963
86964         * lib/same.h: Include <stdbool.h>
86965         (same_name): Return bool, not int.
86966         * lib/same.c (same_name): Likewise.
86967         (errno): Don't declare; we assume C89 or better now.
86968
86969         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86970         if not already defined.
86971
86972         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86973         * lib/dup-safer.c (errno): Likewise.
86974
86975 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         Merge from coreutils.
86978         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86979         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86980         * modules/path-concat: Don't depend on strdup.
86981
86982 2004-08-03  Simon Josefsson  <jas@extundo.com>
86983
86984         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86985         * lib/progname.h: Don't include stdbool.h.
86986
86987 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86988
86989         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86990         * MODULES.html.sh (func_all_modules): Remove fatal.
86991
86992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86995
86996 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86997
86998         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86999         working.
87000
87001 2004-08-02  Simon Josefsson  <jas@extundo.com>
87002
87003         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87004         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87005         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87006
87007 2004-08-01  Simon Josefsson  <jas@extundo.com>
87008
87009         * lib/xgetdomainname.c: Include stdlib.h, for free().
87010
87011 2004-07-19  Bruno Haible  <bruno@clisp.org>
87012
87013         * MODULES.html.sh (func_all_modules): Add dummy.
87014
87015 2004-07-16  Simon Josefsson  <jas@extundo.com>
87016
87017         * modules/dummy: New file.
87018
87019 2004-07-16  Simon Josefsson  <jas@extundo.com>
87020
87021         * lib/dummy.c: New file.
87022
87023 2004-07-16  Bruno Haible  <bruno@clisp.org>
87024
87025         * lib/backupfile.h: Add extern "C" for C++.
87026         * lib/closeout.h: Likewise.
87027         * lib/copy-file.h: Likewise.
87028         * lib/findprog.h: Likewise.
87029         * lib/full-write.h: Likewise.
87030         * lib/pathname.h: Likewise.
87031         * lib/progname.h: Likewise.
87032         * lib/stpcpy.h: Likewise.
87033         * lib/stpncpy.h: Likewise.
87034         * lib/strcase.h: Likewise.
87035         * lib/strstr.h: Likewise.
87036         * lib/xalloc.h: Likewise.
87037
87038         * lib/mbswidth.h: Add extern "C" for C++.
87039         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87040
87041 2004-07-13  Robert Millan  <robertmh@gnu.org>
87042
87043         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87044
87045 2004-07-09  Simon Josefsson  <jas@extundo.com>
87046
87047         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87048         failed without this.)
87049
87050 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87051
87052         * modules/chown (Files): Add lib/fchown-stub.c, since
87053         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87054
87055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * lib/fchown-stub.c: New file.
87058
87059 2004-06-24  Jim Meyering  <jim@meyering.net>
87060
87061         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87062
87063 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87064
87065         * modules/argz: Omit "#include".
87066
87067         * MODULES.html.sh (func_all_modules): Add calloc, to match
87068         2004-06-01 addition of calloc module.
87069
87070 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87071
87072         * m4/argz.m4: New file, which is autoupdated from libtool.
87073
87074 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87075
87076         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87077         libtool.
87078
87079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         * config/srclist-update: Don't insist on "USA." before the
87082         close-comment, as libtool omits the period and puts the */ on a
87083         separate line.
87084         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87085         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87086
87087 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87088
87089         * modules/argz: New file.
87090         * MODULES.html.sh (func_all_modules): Add argz.
87091
87092 2004-06-12  Jim Meyering  <jim@meyering.net>
87093         and  Paul Eggert  <eggert@cs.ucla.edu>
87094
87095         * modules/hash (Files): Add lib/xalloc.h.
87096         * modules/pipe (Depends-on): Add wait-process.
87097         * modules/stat (Depends-on): Add xalloc.
87098         * modules/userspec (Files): Add lib/userspec.h.
87099         * modules/xstrto
87100
87101         Upgrade from gettext-0.13.
87102         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87103         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87104         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87105
87106 2004-06-10  Jim Meyering  <jim@meyering.net>
87107
87108         * lib/calloc.c: New file.
87109
87110 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87111
87112         * lib/getdate.y (yylex): Allow space between sign and number.
87113         Problem reported by Dan Jacobson.
87114
87115 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87116
87117         Merge from coreutils CVS.
87118
87119         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87120         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87121         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87122         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87123         xstrtol.m4: Fix copyright date and/or serial number.
87124
87125         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87126         See if we need an fchown replacement.
87127         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87128         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87129         and use the replacement function if we detect either defect.
87130
87131         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87132         gl_UTIMECMP.
87133
87134 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87135         and  Jim Meyering  <jim@meyering.net>
87136
87137         Merge from coreutils CVS.
87138
87139         * lib/stat-macros.h: New file, with contents from file-type.h
87140         and coreutils' system.h.
87141         * lib/file-type.c: Include "stat-macros.h".
87142         * lib/file-type.h (file_type): Move all macro definitions to new file,
87143         stat-macros.h.
87144
87145         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87146         Wrap old code with this conditional.
87147         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87148         function that does not dereference symlinks.
87149         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87150
87151         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87152         dependency problems.
87153         (xreadlink): Accept new arg SIZE, for efficiency.
87154         All decls and uses changed.
87155         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87156
87157         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87158         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87159
87160         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87161         sysexits.h.
87162
87163 2004-06-01  Jim Meyering  <jim@meyering.net>
87164
87165         * m4/calloc.m4: New file.
87166
87167 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87170         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87171         Also, fix a typo in a diagnostic.
87172
87173 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87174
87175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87176         or AC_FUNC_REALLOC.
87177
87178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87179
87180         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87181         macros to be defined.
87182         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87183         the allocator returns NULL because the requested size is zero.
87184
87185 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87186
87187         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87188         var.  Add comment explaining why libc still defines it.  This
87189         merges the following patch from glibc:
87190         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87191
87192 2004-05-20  Andreas Schwab  <schwab@suse.de>
87193
87194         * m4/free.m4: Replace free if it not known to work, not the other
87195         way round.
87196
87197 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87200         present in glibc since revision 1.1 of this file.
87201         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87202         obstack_alignment_mask, obstack_alloc, obstack_base,
87203         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87204         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87205         obstack_grow0, obstack_init, obstack_int_grow,
87206         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87207         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87208         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87209         nonexistent functions.
87210
87211 2004-05-18  Karl Berry  <karl@gnu.org>
87212
87213         * config/srclist.txt: break link for vasnprintf.c.
87214
87215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87216
87217         Port obstack to the AS/400, where pointers are 16 bytes wide and
87218         you cannot cast an integer to a valid pointer.  This patch is
87219         currently waiting to be integrated into glibc; see
87220         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87221
87222         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87223         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87224         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87225         (struct obstack): temp member is now a union of a pointer and
87226         an integer, instead of an integer.  All integer uses changed.
87227         This does not affect the physical layout of struct obstack,
87228         except on hosts (like the AS/400) where the size or alignment of
87229         void * is greater than that of ptrdiff_t.
87230         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87231         __STDC__)]: Store temporary in pointer member of union, not
87232         integer member.
87233         * lib/obstack.c: Include <stddef.h>, for offsetof.
87234         (struct fooalign): Remove; it doesn't need a name.
87235         (union fooround): Change double to long double, and add void *.
87236         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87237         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87238         not a macro.  Hence the values are always int; so remove all
87239         casts-to-int in uses.
87240
87241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87244         we can get this patch merged into glibc.
87245
87246 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87247             Paul Eggert  <eggert@cs.ucla.edu>
87248
87249         * m4/argp: Depend on alloca.
87250
87251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87252             Paul Eggert  <eggert@cs.ucla.edu>
87253
87254         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87255         freecoding.
87256
87257 2004-05-17  Bruno Haible  <bruno@clisp.org>
87258
87259         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87260         precision that consists of a '.' followed by an empty digit string.
87261         Patch by Tor Lillqvist <tml@iki.fi>.
87262
87263 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87266         for backward compatibility with older code.  We need our own
87267         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87268         it under some other name, and our alloca.h will define it.
87269
87270 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87271             Derek Price  <derek@ximbiot.com>
87272
87273         * lib/alloca.c: Include <alloca.h>, to get our interface.
87274         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87275         include <alloca.h> first.  Use C89 prototype for alloca; this
87276         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87277         Use #elif for simplicity, since we can assume C89 now.
87278         Don't try to source the system alloca.h since it will not be found
87279         and to prevent recursively including its replacement.
87280         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87281         * lib/regex.c: Likewise.
87282
87283 2004-05-16  Derek Price  <derek@ximbiot.com>
87284             Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         getline cleanup.  This changes the getndelim2 API: both order of
87287         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87288         no delimiter).
87289
87290         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87291         interface does that.
87292         (getline): Always use getdelim, so that we don't have two
87293         copies of this code.
87294         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87295         if available.
87296         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87297         (GETNDELIM2_MAXIMUM): New macro.
87298         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87299         instead of the old practice of delim2==0.  All callers changed.
87300         Return -1 on overflow, instead of returning junk.
87301         Do not set *linesize unless allocation succeeds.
87302         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87303         that we include sys/types.h.
87304         * lib/getnline.h: Likewise.
87305         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87306         (getndelim2): Reorder arguments.
87307         * lib/getnline.c (getnline, getndelim):
87308         Don't discard the NMAX argument.
87309         (getnline): Invoke getndelim, to avoid code duplication.
87310         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87311         of (size_t) -1 by callers of the getnline family.
87312
87313 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87314
87315         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87316         Check for gettimeofday.
87317         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87318         Check for settimeofday, stime.
87319
87320 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87321
87322         * lib/nanosleep.c (suspended): Change its type from int to
87323         sig_atomic_t volatile.
87324         (first_call): Make it private to rpl_nanosleep, and have it
87325         be zero initially as that's a bit faster.
87326         (my_usleep): Round up fractional times instead of truncating them,
87327         as this is the usual meaning for 'sleep'.
87328
87329         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87330         doesn't work.
87331         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87332         (ENOSYS): Define if not defined.
87333         (settime): Fall back on stime if it exists and settimeofday fails.
87334         But don't bother with fallbacks if a method fails with errno == EPERM.
87335
87336 2004-05-11  Jim Meyering  <jim@meyering.net>
87337
87338         Prior to this change, the save_cwd caller required read access to the
87339         current directory on most systems (ones with the fchdir function).
87340
87341         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87342         fails, try write-only, and finally, resort to using xgetcwd.
87343
87344 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87345
87346         * lib/obstack.c, obstack.h: Import changes from libc.
87347
87348 2004-04-28  Bruno Haible  <bruno@clisp.org>
87349
87350         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87351         also implicitly appends .exe to executables.
87352         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87353         accepts Windows pathnames.
87354         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87355         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87356         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87357         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87358         Reported by Derek Robert Price <derek@ximbiot.com>.
87359
87360 2004-04-21  Karl Berry  <karl@gnu.org>
87361
87362         * config/srclist.txt (localcharset.c): break sync.
87363
87364 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87365
87366         * m4/host-os.m4: Add a copyright notice.
87367
87368 2004-04-20  Jim Meyering  <jim@meyering.net>
87369
87370         Change UTILS_ to gl_ in AC_DEFINE'd names.
87371         Change utils_- and jm_-prefixed variables, too.
87372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87373         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87375
87376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87377         Don't emit trailing blanks.
87378         Also rename jm_-prefixed variables to have gl_ prefix.
87379
87380         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87381         Also rename jm_-prefixed variables to have gl_ prefix.
87382
87383         * m4/jm-macros.m4: Reflect the renamings.
87384         * m4/prereq.m4: Likewise.
87385
87386 2004-04-20  Jim Meyering  <jim@meyering.net>
87387
87388         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87389         memory.
87390
87391 2004-04-20  Jim Meyering  <jim@meyering.net>
87392             Bruno Haible  <bruno@clisp.org>
87393
87394         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87395         memory when realloc fails.
87396
87397 2004-04-19  Jim Meyering  <jim@meyering.net>
87398
87399         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87400         now that readutmp.c may call `free (0)'.
87401
87402 2004-04-19  Bruno Haible  <bruno@clisp.org>
87403
87404         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87405         * m4/inttypes_h.m4: Likewise.
87406         * m4/stdint_h.m4: Likewise.
87407         * m4/intmax_t.m4: Likewise.
87408         * m4/uintmax_t.m4: Likewise.
87409
87410 2004-04-18  Jim Meyering  <jim@meyering.net>
87411
87412         * m4/prereq.m4: Don't forbid jm_ prefix.
87413
87414         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87415         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87416         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87417         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87418         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87419         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87420         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87421         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87422         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87423         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87424         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87425         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87426         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87427         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87428         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87429         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87430         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87431         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87432         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87433
87434 2004-04-18  Jim Meyering  <jim@meyering.net>
87435
87436         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87437         failure, don't leak memory and do call END_UTMP_ENT.
87438
87439 2004-04-16  Jim Meyering  <jim@meyering.net>
87440
87441         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87442         coreutils' stat program.
87443         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87444
87445 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87446
87447         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87448         C89.
87449         (CHAR_BIT): Remove, since we assume C89.
87450         Include <stdint.h> if available, as per current Autoconf CVS advice.
87451
87452 2004-03-31  Jim Meyering  <jim@meyering.net>
87453
87454         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87455         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87456         * m4/xalloc.m4: Likewise.
87457
87458 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87459
87460         Merge from coreutils.
87461
87462         * m4/inttostr.m4: New file.
87463         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87464         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87465         Require gl_CLOCK_TIME.
87466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87467
87468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87469
87470         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87471         not bool, to be more consistent with Unix conventions.
87472         Suggested by Bruno Haible.
87473
87474         Merge from coreutils.
87475
87476         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87477         * lib/umaxtostr.c: New files.
87478
87479         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87480         the usual <time.h> dance.
87481         (get_date): Change signature to support fractional time stamps.
87482         All callers changed.
87483         * lib/getdate.y: Include "getdate.h" first, as we can now
87484         assume C89 and don't need to worry about 'const'.
87485         Similarly, include "unlocked-io.h" near start, not in middle.
87486         Include <limits.h>.
87487         (textint.value): Use long int rather than int.
87488         (textint.digits): Use size_t rather than int.
87489         (BILLION, LOG10_BILLION): New constants.
87490         (parser_control): New member rel_ns.  Members day_ordinal,
87491         time_zone, month, day, hour, minutes, rel_year, rel_month,
87492         rel_day, rel_hour, rel_minutes, rel_seconds
87493         are now long int, not int.  Member seconds is now struct timespec,
87494         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87495         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87496         not int.
87497         (%union.intval): Now long int, not int.
87498         New member timespec.
87499         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87500         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87501         (spec): Now is a timespec or an item list.
87502         (timespec, items): New nonterminals.
87503         (time, rel, relunit, number, get_date):
87504         Add support for fractional seconds.
87505         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87506         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87507         (to_hour): First arg is now long int, not int.
87508         (to_year): Returns long int, not int.
87509         Don't treat year -70 like 70.
87510         (tm_diff): Returns long int, not int.
87511         (lookup_word): Use bool instead of int when appropriate.
87512         (yylex): Use size_t for count, not int.
87513         Detect overflow when parsing large integer constants.
87514         Add support for fractions.
87515         (get_date): Make pointers 'const' if possible.
87516         Use more-portable code to detect integer overflow.
87517         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87518         Don't use ctime; it's not reliable if the year has >4 digits.
87519
87520         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87521         This is for compatibility with BSD.
87522
87523         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87524         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87525         From coreutils' system.h.
87526
87527         * lib/userspec.c: Don't include "posixver.h".
87528         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87529         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87530         compatible extension.  Simplify code by removing a boolean int
87531         that was always nonzero if a string was nonnull.
87532
87533 2004-03-30  Jim Meyering  <jim@meyering.net>
87534
87535         Merge from coreutils.
87536
87537         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87538         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87539         on some systems one must include <grp.h> before it.
87540         Reported by Christian Krackowizer.
87541
87542 2004-03-30  Jim Meyering  <jim@meyering.net>
87543
87544         Merge from coreutils.
87545
87546         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87547
87548         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87549         an empty input stream.
87550
87551         * lib/readtokens.c: Include <stdbool.h>.
87552         (readtoken): Use `size_t' rather than int/long.
87553         All callers adjusted.
87554         Use `bool' rather than `int' where appropriate.
87555         Use memset rather than an explicit loop.
87556         Use x2nrealloc rather than xrealloc.
87557         Allow the use of `\0' as a delimiter.
87558         (readtokens): Likewise.
87559         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87560
87561 2004-03-30  Jim Meyering  <jim@meyering.net>
87562
87563         * m4/realloc.m4: Remove file, since now it does no more than
87564         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87565         the `configure.ac' section of module/realloc.
87566         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87567
87568 2004-03-30  Bruno Haible  <bruno@clisp.org>
87569
87570         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87571         nonnull.
87572
87573 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87574
87575         Merge changes to getloadavg.c from coreutils and Emacs.
87576
87577         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87578         Define to an expression, not to the empty string.
87579         Include cloexec.h and xalloc.h.
87580         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87581         Use set_cloexec_flag rather than rolling our own.
87582         * lib/cloexec.c, lib/cloexec.h: New files.
87583
87584 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87585
87586         * m4/cloexec.m4: New file.
87587
87588 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87589
87590         * lib/getopt.h: Sync with libc CVS.
87591
87592 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87593             Bruno Haible  <bruno@clisp.org>
87594
87595         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87596         mbswidth.
87597
87598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87599             Bruno Haible  <bruno@clisp.org>
87600
87601         * lib/mbswidth.h: Include <wchar.h> only if
87602         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87603         <wchar.h>.
87604         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87605
87606 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87607
87608         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87609         Sync with libc CVS.
87610         * lib/getopt_int.h: New file, also synced from libc.
87611
87612 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87613
87614         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87615         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87616         Bring back getopt.c, getopt.h, getopt1.c.
87617
87618 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87619
87620         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87621         All uses changed.  Check for sa_sigaction member; this fixes
87622         a bug first reported by Jason Andrade in
87623         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87624
87625 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87626
87627         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87628         '#if' expressions.  Unlike the code it replaces, it does not
87629         depend on (defined _SC_PAGESIZE).  However, it does depend on
87630         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87631         first reported by Jason Andrade in
87632         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87633
87634 2004-02-25  Simon Josefsson  <jas@extundo.com>
87635
87636         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87637
87638 2004-02-25  Simon Josefsson  <jas@extundo.com>
87639
87640         * lib/strdup.h: New file.
87641         * lib/strdup.c: Include it.
87642         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87643         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87644
87645 2004-02-23  Karl Berry  <karl@gnu.org>
87646
87647         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87648         (from fencepost.gnu.org:/gd/gnuorg).
87649
87650 2004-02-23  Karl Berry  <karl@gnu.org>
87651
87652         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87653         * config/srclist.txt: add maintain/standards documents.
87654
87655 2004-02-18  Bruno Haible  <bruno@clisp.org>
87656
87657         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87658         Reported by Derek Robert Price <derek@ximbiot.com>.
87659
87660 2004-02-16  Karl Berry  <karl@gnu.org>
87661
87662         * config/mkinstalldirs, install-sh: update from automake.
87663
87664 2004-02-06  Karl Berry  <karl@gnu.org>
87665
87666         * m4/po.m4: update from gettext 0.14.1.
87667
87668 2004-02-06  Karl Berry  <karl@gnu.org>
87669
87670         * lib/config.charset: update from gettext 0.14.1.
87671
87672 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87673
87674         Add comments and code, prompted by suggestions from Bruno Haible
87675         for sh-quote.
87676         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87677         describing the enum quoting_style values.
87678         * lib/quotearg.c (quotearg_alloc): New function.
87679         (quotearg_buffer_restyled): Treat lone { and } as special.
87680         Treat = as special.  Work around bug with older shells
87681         that "see" a '\' that is really the 2nd byte of a multibyte char.
87682         Quote empty string with shell_quoting_style.
87683
87684 2004-02-03  Bruno Haible  <bruno@clisp.org>
87685
87686         * m4/pipe.m4: New file, from GNU gettext.
87687
87688 2004-02-03  Bruno Haible  <bruno@clisp.org>
87689
87690         * lib/pipe.h: New file, from GNU gettext.
87691         * lib/pipe.c: New file, from GNU gettext.
87692
87693 2004-01-27  Bruno Haible  <bruno@clisp.org>
87694
87695         * m4/execute.m4: New file, from GNU gettext.
87696
87697 2004-01-27  Bruno Haible  <bruno@clisp.org>
87698
87699         * lib/execute.h: New file, from GNU gettext.
87700         * lib/execute.c: New file, from GNU gettext.
87701         * lib/w32spawn.h: New file, from GNU gettext.
87702
87703 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87704
87705         Merge from diffutils.
87706
87707         * lib/file-type.c (file_type): Add typed memory objects.
87708         * lib/file-type.h (S_TYPEISTMO): New macro.
87709
87710         * lib/c-stack.h (c_stack_action): Remove argv argument.
87711         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87712         (die): Don't calculate message unless segv_action returns.
87713         (get_stack_location, min_address_from_argv, max_address_from_argv,
87714         volatile stack_base, volatile_stack_size): Remove.
87715         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87716         that every segmentation violation is a stack overflow.  (Ouch!)
87717         See Debian bug 136249 (still outstanding) for more info about why
87718         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87719
87720 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87721
87722         Exit-status fix from coreutils.
87723
87724         Use exit_failure consistently in place of EXIT_FAILURE,
87725         so that program exit statuses are consistent on failure.
87726
87727         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87728         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87729         * lib/argmatch.h: Comment fix to match the above.
87730         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87731         Now a macro referring to exit_failure, instead of a separate
87732         variable.  Include "exitfail.h" to get it.
87733         * lib/xstrtol.h: Include "exitfail.h".
87734         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87735
87736         * lib/long-options.c (parse_long_options): Use prototype
87737         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87738         for clarity.
87739
87740 2004-01-21  Jim Meyering  <jim@meyering.net>
87741
87742         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87743         so as not to conflict with a different-sized __mktime_internal
87744         function in GNU libc.
87745         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87746         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87747
87748 2004-01-20  Karl Berry  <karl@gnu.org>
87749
87750         * config/config.guess: update from config.
87751
87752         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87753
87754 2004-01-20  Bruno Haible  <bruno@clisp.org>
87755
87756         Safer stack allocation.
87757         * lib/setenv.c: Include allocsa.h.
87758         (alloca): Remove fallback definition.
87759         (freea): Remove macro.
87760         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87761         instead of freea.
87762
87763 2004-01-20  Bruno Haible  <bruno@clisp.org>
87764
87765         * m4/eealloc.m4: New file, from GNU gettext.
87766
87767 2004-01-20  Bruno Haible  <bruno@clisp.org>
87768
87769         * m4/allocsa.m4: New file, from GNU gettext.
87770
87771 2004-01-20  Bruno Haible  <bruno@clisp.org>
87772
87773         * lib/xallocsa.h: New file, from GNU gettext.
87774         * lib/xallocsa.c: New file, from GNU gettext.
87775
87776 2004-01-20  Bruno Haible  <bruno@clisp.org>
87777
87778         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87779
87780 2004-01-20  Bruno Haible  <bruno@clisp.org>
87781
87782         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87783         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87784         specially.
87785
87786 2004-01-20  Bruno Haible  <bruno@clisp.org>
87787
87788         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87789         patch.
87790
87791 2004-01-20  Bruno Haible  <bruno@clisp.org>
87792
87793         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87794
87795 2004-01-20  Bruno Haible  <bruno@clisp.org>
87796
87797         * lib/eealloc.h: New file.
87798
87799 2004-01-20  Bruno Haible  <bruno@clisp.org>
87800
87801         * lib/binary-io.h: Avoid warnings on Cygwin.
87802
87803 2004-01-20  Bruno Haible  <bruno@clisp.org>
87804
87805         * lib/allocsa.h: New file, from GNU gettext.
87806         * lib/allocsa.c: New file, from GNU gettext.
87807
87808 2004-01-18  Karl Berry  <karl@gnu.org>
87809
87810         * doc/gpl.texi, doc/lgpl.texi: new files.
87811
87812 2004-01-18  Karl Berry  <karl@gnu.org>
87813
87814         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87815         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87816
87817 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87818
87819         Merge from coreutils.
87820
87821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87822         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87823         (gl_DEFAULT_POSIX2_VERSION): Move
87824         the documentation from 'configure' into 'config.hin',
87825         so that 'configure --help' isn't burdened by it and
87826         we don't have to worry about its formatting there.
87827         Reword the documentation so that it's more succinct
87828         and can be run together into a single paragraph.
87829         * m4/same.m4 (gl_SAME): Check for pathconf.
87830
87831 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87832
87833         Merge from coreutils.
87834
87835         * lib/posixver.c: Include posixver.h.
87836
87837         * lib/same.c: Include <stdbool.h>, <limits.h>.
87838         (_POSIX_NAME_MAX): Define if not defined.
87839         (MIN): New macro.
87840         (same_name): If file names are silently truncated, report
87841         that the file names are the same if they are the same after
87842         the silent truncation.
87843
87844         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87845         conversion function.
87846         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87847         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87848         longer needed.
87849
87850 2004-01-15  Jim Meyering  <jim@meyering.net>
87851
87852         Merge from coreutils.
87853
87854         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87855         if no library is required.
87856         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87857         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87858         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87859         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87860         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87861         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87862         value, $ac_cv_search_crypt, if it's "none required".
87863         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87864         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87865         not gl_FUNC_GETLOADAVG.
87866         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87867         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87868
87869 2004-01-15  Jim Meyering  <jim@meyering.net>
87870
87871         Merge from coreutils.
87872
87873         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87874         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87875         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87876
87877         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87878         optional configure-time default.
87879
87880         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87881
87882         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87883
87884 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87885
87886         Merge from coreutils.
87887
87888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87889         value, $ac_cv_search_nanosleep, if it's "none required".
87890
87891 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87892
87893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87894         with like-named macro in fnmatch.c.
87895         (EXT): Use an internal constant instead.
87896
87897         Merge fnmatch patches from glibc.
87898         * lib/fnmatch.c (mbsinit): Remove define.
87899         Add libc_hidden_ver (__fnmatch, fnmatch).
87900         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87901         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87902
87903 2004-01-14  Karl Berry  <karl@gnu.org>
87904
87905         * config/install-sh: update from automake.
87906
87907 2004-01-13  Karl Berry  <karl@gnu.org>
87908
87909         * config/install-sh: update from automake.
87910
87911 2004-01-09  Karl Berry  <karl@gnu.org>
87912
87913         * config/install-sh: update from automake.
87914
87915 2004-01-05  Karl Berry  <karl@gnu.org>
87916
87917         * config/config.{sub,guess}: update from config.
87918
87919 2003-12-31  Karl Berry  <karl@gnu.org>
87920
87921         * config/depcomp: update from automake.
87922
87923 2003-12-14  Karl Berry  <karl@gnu.org>
87924
87925         * lib/config.charset: update from gettext-runtime.
87926
87927 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87928
87929         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87930         Bug reported by Alfred M. Szmidt.
87931
87932 2003-12-03  Bruno Haible  <bruno@clisp.org>
87933
87934         * m4/gettext.m4: Upgrade from gettext-0.13.
87935         * m4/po.m4: Upgrade from gettext-0.13.
87936         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87937         * m4/intmax.m4: New file, from gettext-0.13.
87938         * m4/printf-posix.m4: New file, from gettext-0.13.
87939
87940 2003-11-29  Karl Berry  <karl@gnu.org>
87941
87942         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87943
87944 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87945             Bruno Haible  <bruno@clisp.org>
87946
87947         * lib/printf-parse.h: Don't include sys/types.h.
87948         (ARG_NONE): New macro.
87949         (char_directive): Change type of *arg_index fields to size_t.
87950         * lib/printf-parse.c: Don't include sys/types.h.
87951         (SSIZE_MAX): Remove macro.
87952         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87953         Remove unnecessary overflow check.
87954         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87955         fields.
87956
87957 2003-11-25  Bruno Haible  <bruno@clisp.org>
87958
87959         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87960
87961 2003-11-25  Bruno Haible  <bruno@clisp.org>
87962
87963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87964         gt_TYPE_SSIZE_T.
87965
87966 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87967
87968         * modules/alloca: Remove dependency on xalloc.
87969
87970 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/alloca.c: Remove dependency on xalloc module.
87973         (xalloc_die): Remove.
87974         (memory_full) [!defined emacs]: New macro.
87975         [!defined emacs]: Don't include xalloc.h.
87976         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87977         address arithmetic overflows.  Change datatypes a bit to avoid
87978         unnecessary casts.
87979
87980 2003-11-22  Jim Meyering  <jim@meyering.net>
87981
87982         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87983         s/size/size_t/.
87984
87985 2003-11-21  Karl Berry  <karl@gnu.org>
87986
87987         * config/config.{sub,guess}: update from config.
87988
87989 2003-11-18  Karl Berry  <karl@gnu.org>
87990
87991         * config/config.{sub,guess}: update from config.
87992
87993         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87994
87995 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87996
87997         * README: Mention that S+T cannot overflow if S is the size of
87998         an existing object and T is sufficiently small.
87999
88000 2003-11-17  Jim Meyering  <jim@meyering.net>
88001
88002         On systems without utime and without a utimes function capable of
88003         dealing with a NULL struct utimbuf* argument, this utime replacement
88004         could -- in unusual circumstances -- leak a file descriptor.
88005         * lib/utime.c: Include <unistd.h> and <errno.h>.
88006         (utime_null): Be sure to close `fd' and to preserve errno.
88007         Reported by Geoff Collyer via Arnold Robbins.
88008
88009 2003-11-17  Bruno Haible  <bruno@clisp.org>
88010
88011         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88012         (Depends-on): Add xsize.
88013
88014 2003-11-17  Bruno Haible  <bruno@clisp.org>
88015
88016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88017
88018 2003-11-17  Bruno Haible  <bruno@clisp.org>
88019
88020         * lib/vasnprintf.c (alloca): Remove fallback definition.
88021         (freea): Remove definition.
88022         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88023         Reported by Paul Eggert.
88024
88025 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88026             Bruno Haible  <bruno@clisp.org>
88027
88028         Protect against address arithmetic overflow.
88029         * lib/printf-args.h: Include stddef.h.
88030         (arguments): Change type of field 'count' to size_t.
88031         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88032         'unsigned int' where appropriate.
88033         * lib/printf-parse.h: Include sys/types.h.
88034         (char_directive): Change type of *arg_index fields to ssize_t.
88035         (char_directives): Change type of fields 'count', max_*_length to
88036         size_t.
88037         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88038         (SSIZE_MAX): Define fallback value.
88039         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88040         instead of 'int' where appropriate. Check a_allocated, d_allocated
88041         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88042         * lib/vasnprintf.c: Include xsize.h.
88043         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88044         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88045         overflow. Avoid wraparound when converting a width or precision from
88046         decimal to binary.
88047
88048 2003-11-16  Bruno Haible  <bruno@clisp.org>
88049
88050         Update from GNU gettext.
88051         * lib/printf-parse.c: Generalize to it can be compiled for wide
88052         strings.
88053         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88054         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88055         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88056         SNPRINTF): New macros.
88057         Don't include <alloca.h> if the file is used inside libintl.
88058         (local_wcslen): New function, for Solaris 2.5.1.
88059         (VASNPRINTF): Use it instead of wcslen.
88060
88061 2003-11-16  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/xsize.h (xmax): New function.
88064         (xsum, xsum3, xsum4): Declare as "pure" functions.
88065
88066 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88067
88068         * modules/xalloc (Files): Undo latest change, since xalloc.h
88069         no longer needs SIZE_MAX or PTRDIFF_MAX.
88070
88071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88072
88073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88074         gl_PTRDIFF_MAX.
88075
88076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88077
88078         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88079         "return", to pacify some unknown compiler.  Problem reported
88080         by Joerg Schilling.
88081
88082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88083
88084         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88085         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88086         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88087         heuristic is just as accurate as far as we know, and it removes a
88088         dependency on size_max.m4 and ptrdiff_max.m4.
88089
88090 2003-11-11  Bruno Haible  <bruno@clisp.org>
88091
88092         * modules/xsize (Files): Add m4/size_max.m4.
88093         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88094
88095 2003-11-11  Bruno Haible  <bruno@clisp.org>
88096
88097         * m4/size_max.m4: New file.
88098         * m4/ptrdiff_max.m4: New file.
88099         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88100         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88101         (gl_XALLOC): Invoke it.
88102
88103 2003-11-11  Bruno Haible  <bruno@clisp.org>
88104
88105         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88106         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88107         defined.
88108
88109 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88110
88111         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88112         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88113         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88114         From Bruno Haible.
88115         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88116         not (size_t) -1, since it's defined here.
88117
88118 2003-11-09  Karl Berry  <karl@gnu.org>
88119
88120         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88121
88122 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88123
88124         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88125         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88126         Reject sizes of exactly SIZE_MAX bytes.
88127         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88128         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88129
88130 2003-11-05  Bruno Haible  <bruno@clisp.org>
88131
88132         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88133         SIZE_MAX defined in <limits.h> on Solaris.
88134
88135 2003-11-04  Jim Meyering  <jim@meyering.net>
88136
88137         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88138         variable names, rather than @VAR@.
88139         * modules/poll: Likewise.
88140
88141 2003-11-04  Bruno Haible  <bruno@clisp.org>
88142
88143         * modules/xsize: New file.
88144         * modules/linebreak: Depend on xsize.
88145         * MODULES.html.sh (func_all_modules): Add xsize.
88146
88147 2003-11-04  Bruno Haible  <bruno@clisp.org>
88148
88149         * m4/xsize.m4: New file.
88150
88151 2003-11-04  Bruno Haible  <bruno@clisp.org>
88152
88153         * lib/xsize.h: New file.
88154         * lib/linebreak.c: Include xsize.h.
88155         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88156         argument for overflow.
88157         Suggested by Paul Eggert.
88158
88159 2003-11-03  Karl Berry  <karl@gnu.org>
88160
88161         * config/config.{guess,sub}: update from config.
88162
88163 2003-11-03  Jim Meyering  <jim@meyering.net>
88164
88165         * modules/userspec (lib_SOURCES): Add userspec.h.
88166         (Include): Add "userspec.h".
88167         Improve description.
88168
88169 2003-11-03  Jim Meyering  <jim@meyering.net>
88170
88171         * lib/userspec.c: Include "userspec.h".
88172         * lib/userspec.h: New file.
88173
88174 2003-11-03  Bruno Haible  <bruno@clisp.org>
88175
88176         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88177
88178 2003-11-03  Bruno Haible  <bruno@clisp.org>
88179
88180         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88181         available, to avoid (extremely rare) race condition.
88182         Suggested by Paul Eggert.
88183
88184 2003-11-02  Karl Berry  <karl@gnu.org>
88185
88186         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88187
88188 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88189
88190         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88191         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88192         (read_filesystem_list): Set and use me_type_malloced.
88193         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88194         whatever the type happens to be), for brevity and consistency.
88195         Check for size calculation overflow on Alphas running OSF/1.
88196
88197 2003-10-31  Jim Meyering  <jim@meyering.net>
88198
88199         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88200
88201         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88202
88203 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88204             Bruno Haible  <bruno@clisp.org>
88205
88206         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88207         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88208
88209 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88212         netbsd*-gnu*.  Suggested by Robert Millan.
88213
88214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88215
88216         * modules/group-member: Depend on stdbool.
88217
88218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88219
88220         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88221
88222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88223
88224         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88225         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88226         after the 'gnu' in these cases.  This fixes some bugs in the
88227         previous change, and is based on suggestions by Robert Millan.
88228
88229 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88230
88231         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88232         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88233         no longer needed.
88234         * lib/quotearg.c (quotearg_n_options): Use it.
88235         * lib/group-member.c: Include <stdbool.h>.
88236         (free_group_info): Arg is now const *; don't free arg.
88237         (get_group_info): Now returns bool and accepts struct group_info *,
88238         rather than returning a malloc'ed struct group_info *.
88239         All uses changed.  Check for overflow in internal size calculation.
88240
88241         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88242         rather than xmalloc/xrealloc.
88243         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88244         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88245         conformance bug: the old code used a pointer after freeing the
88246         storage that it addressed.
88247         * lib/hash.c (hash_initialize): Simplify the code by using
88248         xalloc_oversized rather than doing it by hand.
88249         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88250         the buffer preserved.  Use free and xmalloc instead.
88251         * lib/quotearg.c (quotearg_n_options): Likewise.
88252         Use a simpler test for size overflow.  Don't use xalloc_oversized
88253         because unsigned int might be wider than size_t (!); this suggests
88254         that we should switch from unsigned int to size_t for slot numbers.
88255
88256 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88257
88258         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88259         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88260         NetBSD kernels.  Requested by Richard Stallman.
88261
88262 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88263
88264         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88265         to allocate the returned structure.  Do not allocate a subarray,
88266         as x2nrealloc will do that.
88267         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88268         instead of xnrealloc.
88269         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88270
88271 2003-10-27  Bruno Haible  <bruno@clisp.org>
88272
88273         * lib/stdbool_.h: Better support for BeOS.
88274
88275 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88276
88277         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88278         now uses inline.
88279
88280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88281
88282         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88283         callers that want to do their own size-overflow checking.  Include
88284         <stdbool.h>, since xalloc_oversized returns bool.
88285         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88286         to use xalloc_oversized.
88287
88288         Add two functions x2realloc, x2nrealloc, for programs that grow
88289         arrays dynamically by doubling their sizes.
88290         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88291         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88292         New functions.
88293
88294         Port to C99 semantics for 'inline' of external functions.
88295         Bug reported by Bruno Haible.
88296         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88297         with the old contents of xnmalloc.
88298         (xnmalloc, xmalloc): Use it.
88299         (xnrealloc_inline): New static inline function,
88300         with the old contents of xnrealloc.
88301         (xnrealloc, xrealloc): Use it.
88302
88303         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88304         that.
88305
88306 2003-10-26  Karl Berry  <karl@gnu.org>
88307
88308         * config/srclist.txt (COPYING.DOC): no longer available from
88309         /gd/gnuorg; don't know where the ultimate source is.
88310
88311 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88312
88313         Fix several address-calculation bugs in the hash modules,
88314         plus some minor code cleanup.
88315
88316         * lib/hash.h: Include <stdbool.h>, for bool.
88317         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88318         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88319         hash_get_n_entries, hash_get_max_bucket_length,
88320         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88321         hash_rehash): Use size_t rather than unsigned.
88322         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88323         hash_get_n_buckets_used, hash_get_n_entries,
88324         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88325         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88326         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88327         Likewise.
88328         (SIZE_MAX): Define if not defined.
88329         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88330         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88331         hash_print):
88332         Use const * when possible.
88333         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88334         (check_tuning): Fix bug: if tuning parameters were very close to
88335         0 or 1, rounding errors could have caused subscript violations.
88336         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88337         (hash_initialize): Add 'fail:' label
88338         to free table and return NULL, and use it to simplify code.
88339         Use calloc rather than clearing the storage ourself.
88340         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88341         buffer size calculations.
88342         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88343         Include <stddef.h>, for size_t.
88344         * lib/hash-pjw.c (hash_pjw): Likewise.
88345         Switch to method described by Bruno Haible.
88346         Include <limits.h>, for CHAR_BIT.
88347         (SIZE_BITS): New macro.
88348
88349 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88350
88351         * m4/getline.m4 (AM_FUNC_GETLINE):
88352         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88353         hosts.  Problem reported by Derek Robert Price in
88354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88355         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88356         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88357
88358 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88359
88360         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88361         ceiling the allocation at NMAX bytes rather than silently
88362         discarding input bytes before NMAX is reached.  This makes
88363         a difference only if NMAX exceeds SIZE_MAX / 2.
88364
88365         * lib/obstack.c: Merge from glibc.
88366         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88367         Add libc_hidden_def (_obstack_newchunk).
88368         (_obstack_free) [! defined _LIBC]: Remove.
88369         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88370         a clone of the function body.
88371         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88372         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88373
88374         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88375         glibc.
88376         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88377         arg to memcpy.
88378
88379         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88380         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88381         Don't use lvalue casts, as GCC plans to remove support for them
88382         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88383         was also present in the non-GCC version, indicating that this
88384         code had always been buggy and had never been widely used.
88385         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88386         Use the fast variant of each macro, rather than copying the
88387         definiens of the fast variant; that way, we'll be more likely to
88388         catch future bugs in the fast variants.
88389
88390 2003-10-20  Bruno Haible  <bruno@clisp.org>
88391
88392         * modules/wait-process: New file.
88393         * MODULES.html.sh (func_all_modules): Add wait-process.
88394
88395 2003-10-20  Bruno Haible  <bruno@clisp.org>
88396
88397         * m4/wait-process.m4: New file.
88398
88399 2003-10-20  Bruno Haible  <bruno@clisp.org>
88400
88401         * lib/wait-process.h: New file, from GNU gettext.
88402         * lib/wait-process.c: New file, from GNU gettext.
88403
88404 2003-10-19  Jim Meyering  <jim@meyering.net>
88405
88406         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88407         HPUX 10.20.
88408
88409 2003-10-18  Karl Berry  <karl@gnu.org>
88410
88411         * config/config.guess: update from config.
88412
88413 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88414
88415         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88416         (getgroups): First arg is int, not size_t.
88417         Don't let 'free' mangle errno.
88418
88419 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88420
88421         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88422
88423 2003-10-16  Karl Berry  <karl@gnu.org>
88424
88425         * config/config.{guess,sub}: update from config.
88426
88427 2003-10-16  Jim Meyering  <jim@meyering.net>
88428
88429         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88430         memcpy.
88431
88432 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88433
88434         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88435         (SIZE_MAX): Remove.
88436         (new_exclude, add_exclude_file): Initial size no longer needs to
88437         be a power of 2.
88438         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88439         our own address arithmetic overflow checking.
88440
88441         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88442         (fnmatch): Do not alloca more than 2000 wide characters;
88443         instead, use malloc for large buffers.
88444         Check for address arithmetic overflow, and return -1
88445         with errno set to ENOMEM in that case.
88446         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88447         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88448         instead, return -1.  Check for address arithmetic overflow.
88449
88450 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88451
88452         Handle invalid suffixes and overflow independently, so that
88453         callers can treat them independently as needed.  Fix some bugs in
88454         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88455         suffix for a human-readable blocksize.  The major caller-visible
88456         change is the addition of a new
88457         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88458         that both overflow and suffix chars were found.
88459
88460         * lib/human.c (humblock): Don't check separately for invalid suffix
88461         char; that is xstrtoumax's job (now that its bug is fixed).
88462         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88463         INTMAX_MAX]: New macros.
88464         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88465         TYPE_MAXIMUM): New macros.
88466         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88467         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88468         if overflow occurs, as it's what __strtol does and it's more useful
88469         in practice.
88470         (__xstrtol): If __strtol reports some error other than ERANGE,
88471         reflect it to the caller as LONGINT_INVALID.  If it reports
88472         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88473         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88474         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88475         value.
88476         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88477         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88478         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88479         [defined UINTMAX_MAX]: New macros.
88480
88481 2003-10-14  Bruno Haible  <bruno@clisp.org>
88482
88483         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88484
88485 2003-10-14  Bruno Haible  <bruno@clisp.org>
88486
88487         * m4/sig_atomic_t: New file, from GNU gettext.
88488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88489
88490 2003-10-14  Bruno Haible  <bruno@clisp.org>
88491
88492         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88493         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88494         Also use volatile where needed.
88495
88496 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88497
88498         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88499         Change maintainer from Bruno Haible to 'all'.
88500
88501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88502
88503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88504
88505 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88506
88507         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88508         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88509         and define in terms of the other primitives.
88510         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88511         (SIZE_MAX): Define if not already defined.
88512         (array_size_overflow): New function.
88513         (xalloc_die): Abort instead of exiting if 'error' returns.
88514         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88515         (xmalloc, xrealloc): Use them.
88516         (xcalloc): Check for address arithmetic overflow.
88517         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88518         a bit faster than strcpy.
88519
88520 2003-10-10  Simon Josefsson  <jas@extundo.com>
88521
88522         * modules/argp (Depends-on): Add restrict and strcase.
88523
88524 2003-10-10  Simon Josefsson  <jas@extundo.com>
88525
88526         * m4/argp.m4: Add AC_C_INLINE.
88527
88528 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88529
88530         Merge getpass from libc, plus a few fixes.
88531
88532         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88533         Include <stdbool.h>.
88534         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88535         __fsetlocking to empty.
88536         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88537         do include <bits/libc-lock.h>.
88538         Do not include <fcntl.h>; not needed.
88539         [_LIBC]: Include <wchar.h>.
88540         (NOTCANCEL_MODE): New macro.
88541         (flockfile, funlockfile) [_LIBC]: New macros.
88542         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88543         [!_LIBC]: New macros.
88544         (call_fclose): New function.
88545         (getpass): Use it.  Save tty stream separately; this simplifies the
88546         code and makes it more reliable if stdin happens to equal stdout.
88547         Invoke __fsetlocking on tty.
88548         Handle thread cancellation if needed.
88549         Namespace cleanup (use __tcgetattr, __getline).
88550         Use bool for Booleans.
88551         [USE_IN_LIBIO]: Handle wide streams.
88552         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88553         stream might go where.
88554
88555         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88556         doesn't have to include <stdio.h> before us.
88557         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88558         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88559         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88560         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88561         if not declared, so that we can use getpass.c code from libc without
88562         rewriting it.
88563         (flockfile, ftrylockfile, funlockfile): New macros.
88564
88565 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88566
88567         * modules/getpass: Depend on stdbool.
88568
88569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88570
88571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88572
88573 2003-10-07  Karl Berry  <karl@gnu.org>
88574
88575         * config/config.{guess,sub}: update from config.
88576
88577 2003-10-06  Jim Meyering  <jim@meyering.net>
88578             Bruno Haible  <bruno@clisp.org>
88579
88580         This lets translators provide better translations for the
88581         "Written by ..." part of --version output.
88582         * lib/version-etc.h: Include stdarg.h.
88583         (version_etc_copyright): Declare as readonly.
88584         (version_etc): Make this function variadic with a NULL-terminated list
88585         of author name strings.
88586         (version_etc_va): New declaration.
88587         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88588         (version_etc_copyright): Declare as readonly.
88589         (version_etc_va): New function. Provide a different translatable string
88590         for each possible number of authors < 10. Abbreviate when there are 10
88591         authors or more.
88592         (version_etc): Make this function variadic. Call version_etc_va.
88593         Suggestion from Gary V. Vaughan.
88594
88595         * lib/long-options.h (parse_long_options): Change prototype: the
88596         authors string is moved to the end and becomes variadic.
88597         * lib/long-options.c: Include stdarg.h.
88598         (parse_long_options): Make this function variadic, too.
88599         Call version_etc_va, not version_etc.
88600
88601 2003-10-06  Bruno Haible  <bruno@clisp.org>
88602
88603         * modules/version-etc-2: Remove file.
88604         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88605
88606 2003-10-06  Bruno Haible  <bruno@clisp.org>
88607
88608         * modules/fatal-signal: New file.
88609         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88610
88611 2003-10-06  Bruno Haible  <bruno@clisp.org>
88612
88613         * m4/fatal-signal.m4: New file.
88614         * m4/signalblocking.m4: New file, from GNU gettext.
88615
88616 2003-10-06  Bruno Haible  <bruno@clisp.org>
88617
88618         * lib/version-etc-2.h: Remove file.
88619         * lib/version-etc-2.c: Remove file.
88620
88621 2003-10-06  Bruno Haible  <bruno@clisp.org>
88622
88623         * lib/fatal-signal.h: New file, from GNU gettext.
88624         * lib/fatal-signal.c: New file, from GNU gettext.
88625
88626 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88627
88628         * README: Rework advice for preventing empty .o files.
88629         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88630         not <sys/types.h>.
88631
88632 2003-10-04  Karl Berry  <karl@gnu.org>
88633
88634         * lib/argp*: update from libc.
88635
88636 2003-10-04  Karl Berry  <karl@gnu.org>
88637
88638         * config/config.{guess,sub}: update from config.
88639
88640 2003-10-02  Bruno Haible  <bruno@clisp.org>
88641
88642         * modules/lchown (Include): Add lchown.h.
88643         * modules/time_r (Include): Use "..." syntax.
88644         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88645
88646 2003-10-01  Simon Josefsson  <jas@extundo.com>
88647
88648         * MODULES.html.sh (func_all_modules): Move gethostname from section
88649         'based on' to section 'lacking' POSIX:2001.
88650
88651 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88652
88653         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88654         to output mode on the same stream.
88655
88656 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88657
88658         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88659         Fix arg typo in previous patch.
88660
88661 2003-09-28  Jim Meyering  <jim@meyering.net>
88662
88663         * lib/error.c: Correct cpp indentation.
88664
88665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88666
88667         * modules/free: New file.
88668
88669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88670
88671         * m4/free.m4: New file.
88672
88673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88674
88675         * lib/minmax.h (MIN, MAX)
88676         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88677         Omit the special code that used __typeof__, since we worry that
88678         it could be more trouble than it's worth.  See:
88679         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88680         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88681
88682         * lib/free.c: New file.
88683
88684 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88685
88686         Trivial fixes to Makefile.am parts of module listings.
88687         * modules/strstr: Append strstr.h to lib_SOURCES.
88688         * modules/strcase: Likewise, for strcase.h.
88689
88690 2003-09-27  Karl Berry  <karl@gnu.org>
88691
88692         * config/mkinstalldirs: update from automake.
88693
88694 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88695
88696         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88697         (error_tail): Do not loop, reallocating temporary buffer, since
88698         the output cannot contain more wide characters than the input
88699         contains bytes, the size must be big enough already.  This avoids
88700         one potential size overflow calculation.  Check for size overflow
88701         when calculating temporary buffer size.  Free temporary buffer
88702         when done, if it was allocated with malloc; this plugs a memory
88703         leak.  Remove casts from void * to pointers, that are no longer
88704         needed now that we're assuming C89 or better.
88705
88706         Merge error changes from glibc.
88707
88708         * lib/error.c, error.h: Update copyright notice header to match glibc.
88709         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88710         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88711         Disable cancellation while printing error.
88712         * lib/error.h: Prepend __ to parameter names.
88713
88714 2003-09-26  Jim Meyering  <jim@meyering.net>
88715
88716         * lib/error.c (error_tail): Move some declarations
88717         into inner scope where the local variables are used.
88718
88719 2003-09-26  Bruno Haible  <bruno@clisp.org>
88720
88721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88722         stpncpy().
88723         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88724
88725 2003-09-26  Bruno Haible  <bruno@clisp.org>
88726
88727         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88728         (stpncpy): Define as alias for gnu_stpncpy.
88729         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88730
88731 2003-09-25  Simon Josefsson  <jas@extundo.com>
88732
88733         * lib/xgetdomainname.h: New file.
88734         * lib/xgetdomainname.c: New file.
88735
88736 2003-09-25  Simon Josefsson  <jas@extundo.com>
88737             Bruno Haible  <bruno@clisp.org>
88738
88739         * modules/getdomainname: New file.
88740         * modules/xgetdomainname: New file.
88741         * MODULES.html.sh (func_all_modules): Add getdomainname,
88742         xgetdomainname.
88743
88744 2003-09-25  Simon Josefsson  <jas@extundo.com>
88745             Bruno Haible  <bruno@clisp.org>
88746
88747         * m4/getdomainname.m4: New file.
88748
88749 2003-09-25  Simon Josefsson  <jas@extundo.com>
88750             Bruno Haible  <bruno@clisp.org>
88751
88752         * lib/getdomainname.h: New file.
88753         * lib/getdomainname.c: New file.
88754
88755 2003-09-25  Karl Berry  <karl@gnu.org>
88756
88757         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88758
88759 2003-09-25  Karl Berry  <karl@gnu.org>
88760
88761         * config/install-sh: update from automake.
88762
88763 2003-09-25  Bruno Haible  <bruno@clisp.org>
88764
88765         * modules/version-etc-2: New file, from modules/version-etc with
88766         modifications.
88767         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88768
88769 2003-09-25  Bruno Haible  <bruno@clisp.org>
88770
88771         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88772         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88773
88774 2003-09-24  Simon Josefsson  <jas@extundo.com>
88775
88776         * modules/xgethostname: Add xgethostname.h.
88777
88778 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88779
88780         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88781         the buffer associated with the argument.  Bug reported by
88782         Simon Josefsson.
88783
88784 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88785
88786         * README: Document assumptions that 'int' is at least 32 bits
88787         wide, that integer arithmetic is 2's complement without overflow,
88788         that there are no holes in integer values, that adding sizes of
88789         two nonoverlapping objects can't overflow, and that all-bits-zero
88790         yields scalar zero.  Fix spelling and capitalization typos.
88791
88792 2003-09-19  Karl Berry  <karl@gnu.org>
88793
88794         * lib/argp.h: update from libc.
88795
88796 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88797
88798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88799         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88800         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88801
88802 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88803
88804         * gnulib-tool: Use "test -h", not "test -L", for portability
88805         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88806         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88807         (sed_extract_prog): Issue s commands one-by-one, rather than
88808         using \| in one s command.
88809
88810 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88811
88812         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88813         input error, instead of returning NULL the next time we are called
88814         (and therefore losing track of errno).
88815
88816 2003-09-16  Bruno Haible  <bruno@clisp.org>
88817
88818         * gnulib-tool (func_create_testdir): Warn about duplicated
88819         dependencies.
88820
88821 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88822
88823         * modules/argmatch, modules/fatal, modules/obstack,
88824         modules/xalloc, modules/xgethostname: Sort dependencies by
88825         importance, not alphabetically.
88826
88827 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88828
88829         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88830         fails, so that the caller gets the proper errno.
88831
88832         * lib/readutmp.c (read_utmp): Likewise.
88833         Check for fstat error.  Close stream and free storage
88834         when failing.
88835
88836 2003-09-14  Karl Berry  <karl@gnu.org>
88837
88838         * config/srclist.txt (strdup.c): disable for c89 changes.
88839
88840 2003-09-14  Jim Meyering  <jim@meyering.net>
88841
88842         * lib/getloadavg.c: Correct cpp indentation.
88843         * lib/strdup.c: Likewise.
88844         * lib/vasnprintf.c: Likewise.
88845
88846 2003-09-14  Bruno Haible  <bruno@clisp.org>
88847
88848         * modules/fwriteerror: New file.
88849         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88850
88851 2003-09-14  Bruno Haible  <bruno@clisp.org>
88852
88853         * lib/fwriteerror.h: New file.
88854         * lib/fwriteerror.c: New file.
88855
88856 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88857
88858         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88859         modules/xgethostname, modules/xalloc: Depend on exit.
88860
88861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88862
88863         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88864
88865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88866         and AC_MINIX, too, so that their extensions are available.
88867
88868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88869         This macro has been superseded by gl_BACKUPFILE.
88870
88871         More patches to assume C89 or better.
88872
88873         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88874
88875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88876         unconditionally.
88877         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88878         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88879         Include <string.h>, <stdlib.h> unconditionally.
88880         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88881         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88882         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88883         headers or for string.h.
88884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88885         or strtoul.
88886
88887         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88888         headers.
88889         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88890         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88891         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88892         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88895         memcpy, memset.
88896         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88897         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88899         strtol.
88900         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88901         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88903         strtoul.
88904
88905 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88906
88907         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88908         * lib/obstack.c [!defined _LIBC]: Likewise.
88909         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88910         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88911         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88912
88913         More changes to assume C89 or better.
88914
88915         * lib/error.c (error_tail): Assume vprintf.
88916
88917         * lib/argmatch.c (getenv): Remove decl.
88918         * lib/progreloc.c (get_full_program_name): Define via prototype.
88919         * lib/setenv.c (clearenv): Likewise.
88920         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88921         needed.
88922         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88923         (malloc, memcpy): Remove decls.
88924         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88925         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88927         (memcpy): Remove macro.
88928         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88929         (__P): Remove.  All uses removed.
88930         (PTR): Remove.  All uses changed to void *.
88931         (CHAR_BIT, NULL): Remove.
88932         (spaces, zeros, memset_space, memset_zero)
88933         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88934         Remove.
88935         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88936         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88937         Define with prototype.
88938         Remove now-unnecessary prototype decl.
88939         (extra_args_spec): Assume ANSI C.  All uses changed.
88940         (extra_args_spec_iso): Remove.
88941         (my_strftime, emacs_strftimeu): Define via prototype.
88942         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88943         unconditionally.
88944         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88945         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88946         (strtoul, strtol): Remove decls.
88947         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88948         LONG_MAX): Remove.
88949         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88950         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88951         (LOCALE_PARAM_PROTO): New macro.
88952         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88953         (INTERNAL (strtol), strtol): Define with a prototype.
88954         (PARAMS): Remove.  All uses removed.
88955         * lib/tempname.c: Include <string.h> unconditionally.
88956         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88957         * lib/xgethostname.c (main): Define with a prototype.
88958         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88959         Include <stdlib.h> unconditionally.
88960         (calloc, malloc, realloc, free): Remove decls.
88961         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88962         Include <stdlib.h> unconditionally.  Sort include file names.
88963         (strtod): Remove.
88964         (xstrtod): Define with a prototype.
88965         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88966         (strtol, strtoul): Remove decls.
88967
88968 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88969
88970         More patches to assume C89 or better.
88971         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88972         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88973         string.h, memchr, STDC_HEADERS.
88974
88975 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88976
88977         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88978         Include <stdlib.h>, <string.h> unconditionally.
88979         Remove now-unnecessary cast to char *.
88980         * lib/strnlen.c: Include <string.h> unconditionally.
88981         * lib/yesno.c (yesno): Define with a prototype.
88982
88983 2003-09-11  Bruno Haible  <bruno@clisp.org>
88984
88985         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88986
88987 2003-09-10  Jim Meyering  <jim@meyering.net>
88988
88989         * lib/error.c: Correct indentation of cpp directives.
88990
88991 2003-09-10  Bruno Haible  <bruno@clisp.org>
88992
88993         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88994         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88995         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88996         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88997         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88998         <stdlib.h> and <string.h> checks.
88999         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89000         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89001
89002 2003-09-10  Bruno Haible  <bruno@clisp.org>
89003
89004         * lib/strcspn.c: Include <string.h> unconditionally.
89005         * lib/strpbrk.c: Include <string.h> unconditionally.
89006         * lib/strstr.c: Include <string.h> unconditionally.
89007         * lib/unicodeio.c: Include <string.h> unconditionally.
89008         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89009         * lib/unsetenv.c: Likewise.
89010         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89011         * lib/yesno.c: Include <stdlib.h> unconditionally.
89012         (rpmatch): Add prototype.
89013
89014 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89015
89016         More patches to assume C89 or better.
89017         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89018         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89019         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89020         or for string.h.
89021         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89022         stdlib.h.
89023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89024         C headers.
89025         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89026         string.h.
89027         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89028         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89029         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89030         or for string.h.
89031         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89032         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89033         C headers.
89034         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89035         memcpy.
89036         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89037         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89038         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89039         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89040         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89041         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89042         string.h, free.
89043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89044         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89045         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89046         C headers, or for string.h.
89047         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89048         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89049         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89050         headers, memory.h, stdlib.h, string.h, strings.h.
89051         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89052         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89053         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89054         strchr.
89055         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89056         headers, memory.h, string.h.
89057         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89058         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89059         free.
89060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89061         headers.
89062         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89063         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89064         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89065         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89066         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89067
89068 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89069
89070         More K&R removal.
89071
89072         * lib/acosl.c (main): Use a prototype.
89073         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89074         tanl.c: Likewise.
89075
89076         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89077
89078         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89079         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89080         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89081         with a prototype.
89082         * lib/getopt.c (const): Remove macro.
89083         Include <string.h> unconditionally.
89084         (my_index): Remove; all uses changed to strchr.
89085         (strlen): Remove decl.
89086         (exchange): Remove forward decl; no longer needed.
89087         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89088         Define with prototype.
89089         * lib/getopt1.c (const): Remove macro.
89090         (getopt_long, getopt_long_only, main): Define with prototype.
89091
89092         * lib/getugroups.c: Include <string.h> unconditionally.
89093
89094         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89095         (getusershell, setusershell, endusershell, readname, main):
89096         Define with prototypes.
89097
89098         * lib/group-member.c: Include group-member.h first.
89099         Include <stdlib.h> unconditionally.
89100
89101         * lib/hard-locale.c: Include hard-locale.h first.
89102         Include <stdlib.h>, <string.h> unconditionally.
89103
89104         * lib/hash.c (free, malloc): Remove decls.
89105         Include <stdlib.h> unconditionally.
89106
89107         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89108         (getenv): Do not declare.
89109
89110         * lib/idcache.c: Include <string.h> unconditionally.
89111
89112         * lib/long-options.c: Include long-options.h first, to test interface.
89113         Include <stdlib.h> unconditionally.
89114
89115         * lib/makepath.c: Include makepath.h first, to test interface.
89116         Include <stdlib.h> and <string.h> unconditionally.
89117
89118         * lib/linebuffer.c: Include <stdlib.h>.
89119         (free): Remove decl.
89120
89121         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89122         stddef.h. rpl_malloc returns void *, not char *.
89123         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89124         prototype.
89125
89126         * lib/md5.h: Include <limits.h> unconditionally.
89127         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89128         (__P): Remove; all uses removed.
89129         * lib/md5.c: Include "md5.h" first.
89130         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89131         md5_buffer, md5_process_bytes, md5_process_block):
89132         Define with prototypes.
89133         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89134         * lib/sha.c: Include "sha.h" first.
89135         Include <stdlib.h>, <string.h> unconditionally.
89136
89137         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89138         * lib/memcmp.c (__ptr_t): Likewise.
89139         * lib/memrchr.c (__ptr_t): Likewise.
89140         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89141         Include <string.h> unconditionally.
89142         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89143         * lib/memchr.c: Include <stdlib.h> unconditionally.
89144         * lib/memchr.c (LONG_MAX): Remove.
89145         * lib/memrchr.c (LONG_MAX): Likewise.
89146         * lib/memchr.c (__memchr): Define via a prototype.
89147         * lib/memrchr.c (__memrchr): Likewise.
89148         * lib/memcmp.c (__P): Remove, and remove all uses.
89149         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89150         Remove forward decls; no longer needed.
89151         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89152         Use types required by C89 in prototype.
89153
89154         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89155         * lib/savedir.c: Likewise.
89156         * lib/mkdir.c (free): Remove decl.
89157         * lib/rmdir.c (rmdir): Define with a prototype.
89158         * lib/savedir.c: Include savedir.h first, to test interface.
89159
89160         * lib/mktime.c (STDC_HEADERS): Remove.
89161         Include <stdlib.h>, <string.h> unconditionally.
89162
89163         * lib/modechange.c: Include <stdlib.h> unconditionally.
89164         (malloc): Remove decl.
89165
89166         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89167         (free): Remove decl.
89168
89169         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89170         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89171         (This type really should be intptr_t, but that's a C99ism.)
89172         (_obstack_memcpy): Remove: all uses changed to memcpy.
89173         Include <string.h> unconditionally.
89174         (struct obstack): Assume __STDC__ for types of members
89175         chunkfun, freefun, extra_arg.
89176         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89177         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89178         obstack_begin, obstack_specify_allocation,
89179         obstack_specify_allocation_with_arg, obstack_chunkfun,
89180         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89181         Remove unprototyped decls and the macros that use them.
89182         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89183         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89184         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89185         (defined __STDC__ && __STDC__)]:
89186         Remove nonprototyped code.
89187         Include <stdlib.h> unconditionally.
89188         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89189         _obstack_allocated_p, _obstack_free, obstack_free,
89190         _obstack_memory_used, print_and_abort):
89191         Define using prototypes.
89192         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89193         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89194         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89195         obstack_next_free, obstack_object_size, obstack_room) [0]:
89196         Remove unused, unprototyped code.
89197
89198         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89199
89200         * lib/physmem.c (physmem_total, physmem_available, main): Define
89201         with prototypes.
89202
89203         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89204         (main): Define with a prototype.
89205
89206         * lib/posixver.c (getenv): Remove decl.
89207
89208         * lib/putenv.c (malloc): Returns void *, not char *.
89209         Include <string.h> unconditionally.
89210         (strchr, memcpy, NULL): Do not define.
89211
89212         * lib/readtokens.c: Include readtokens.h first, to test interface.
89213         Include <stdlib.h>, <string.h> unconditionally.
89214         (init_tokenbuffer): Define with a prototype.
89215
89216         * lib/regex.c (PARAMS): Remove.  All uses removed.
89217         All uses of _RE_ARGS removed, too.
89218         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89219         unconditionally.
89220         (bzero): Assume memset exists.
89221         (memcmp, memcpy, NULL): Remove.
89222         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89223         char, or assignments to local vars of type signed char.
89224         (init_syntax_once, PREFIX(extract_number_and_incr),
89225         PREFIX(print_partial_compiled_pattern),
89226         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89227         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89228         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89229         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89230         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89231         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89232         wcs_compile_range, byte_compile_range, truncate_wchar,
89233         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89234         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89235         count_mbs_length, wcs_re_match_2_internal,
89236         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89237         PREFIX(alt_match_null_string_p),
89238         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89239         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89240         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89241         now-unnecessary declaration, if any.
89242         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89243         regcomp, regexec):
89244         Remove now-unnecessary casts among pointer types.
89245         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89246
89247         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89248         (free): Remove decl.
89249
89250         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89251
89252         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89253         (free): Remove decl.
89254
89255         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89256         * lib/xgetcwd.c: Likewise.
89257
89258         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89259         (free): Remove decl.
89260
89261         * lib/strchrnul.c (strchrnul): Define with a prototype.
89262         Fix bug: c_in was not converted to char before searching.
89263
89264         The following changes are not K&R related:
89265
89266         * lib/group-member.h: Include <sys/types.h>, so that this file is
89267         self-contained.
89268         * lib/makepath.h: Likewise.
89269
89270         * lib/getusershell.c (readname, default_index, line_size, readname):
89271         Use size_t, not int, for sizes.
89272         (readname): If the size overflows, report an error instead of
89273         looping forever.
89274
89275 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89276
89277         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89278         libc.
89279
89280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89281
89282         * README: New section: portability guidelines.
89283
89284 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89285
89286         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89287         C89 spec.
89288
89289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89290
89291         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89292
89293 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89294
89295         Assume C89 or better; remove K&R cruft.
89296         A few of these changes were first proposed by Derek Robert Price
89297         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89298
89299         * lib/addext.c: Include <string.h> unconditionally.
89300         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89301         Don't declare getenv or malloc.
89302
89303         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89304         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89305         (NULL): Remove.
89306         (find_stack_direction, alloca): Use prototypes.
89307
89308         * lib/atexit.c (atexit): Define using a prototype.
89309
89310         * lib/basename.c, dirname.c, stripslash.c:
89311         Include <string.h> unconditionally.
89312
89313         * lib/bcopy.c: Include <stddef.h>.
89314         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89315
89316         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89317
89318         * lib/error.h (error, error_at_line, error_print_progname)
89319         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89320         * lib/error.c: Include error.h first, to check interface.
89321         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89322         (VA_START): Remove; all uses changeed to va_start.
89323         (exit, strerror): Remove decls.
89324         (error_print_progname): Prototype uncondionally.
89325         Don't include <errno.h>; no longer needed.
89326         (private_strerror): Remove.
89327         (error_tail): Always define.
89328         (error, error_at_line): Assume C89 or better; always use prototypes.
89329         * lib/fatal.c: Include "fatal.h" first, to test interface.
89330         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89331         (VA_START): Remove; all uses changed to va_start.
89332         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89333         this case.
89334         (exit): Remove decl.
89335         (fatal): Prototype unconditionally.  Assume va_start works.
89336         Abort at end, to pacify gcc.
89337
89338         * lib/euidaccess.c (main): Define with a prototype.
89339
89340         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89341
89342         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89343
89344         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89345         prototypes.
89346         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89347         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89348         (getenv): Remove decl.
89349         (fnmatch): Define using a prototype.
89350         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89351         (FCT): Define using a prototype.
89352
89353         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89354
89355         * lib/gethostname.c: Include <stddef.h>.
89356         (gethostname): Define with prototype.  Length is size_t, not int.
89357
89358 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89359
89360         Assume C89 or better; remove K&R cruft.
89361         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89362         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89363         string.h, getenv, malloc.
89364         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89365         headers.
89366         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89367         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89368         do not check for strerror.
89369         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89370         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89371         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89372         do not check for doprnt or vprintf.
89373         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89374         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89375
89376 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89379         getversion.c should have been removed then, but was accidentally
89380         preserved.
89381
89382         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89383         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89384
89385 2003-09-08  Karl Berry  <karl@gnu.org>
89386
89387         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89388                 config, forget about prep.
89389
89390         * config/depcomp, missing: update from automake.
89391
89392 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89393
89394         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89396
89397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89398
89399         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89400         copy_tm_result.  Bug reported by Simon Josefsson in
89401         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89402
89403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89404
89405         * m4/time_r.m4: New file.
89406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89408         is. Check for timegm declaration.
89409         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89410         Do not check for gmtime_r.
89411         Replace mktime if __mktime_internal does not exist and if mktime
89412         hasn't been replaced already.
89413
89414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89415
89416         * lib/time_r.c, lib/time_r.h: New files.
89417
89418         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89419         __localtime_r.
89420         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89421         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89422
89423         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89424         __gmtime_r.
89425         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89426         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89427         Include <time_r.h>.
89428
89429         * lib/timegm.c: Switch to glibc implementation, with the following
89430         changes:
89431         [defined HAVE_CONFIG_H]: Include <config.h>.
89432         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89433         (__mktime_internal) [!defined _LIBC]: New decl.
89434         (__gmtime_r) [!defined _LIBC]: New macro and function.
89435         (timegm): Use a prototype, since gnulib assumes C89.
89436         Do not bother declaring tmp to be const, as it's not really usefu.
89437         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89438         (timegm): Declare only if HAVE_DECL_TIMEGM.
89439
89440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89441
89442         * MODULES.html.sh (func_all_modules): Add time_r.
89443         * modules/time_r: New file.
89444         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89445         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89446
89447 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89448
89449         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89450         Bug reported by Lute Kamstra in
89451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89452
89453         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89454         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89455         course with correspondingly smaller numbers for tomorrow and
89456         yesterday.  From Tadayoshi Funaba.  Originally installed into
89457         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89458         coreutils merge?).
89459
89460 2003-08-31  Simon Josefsson  <jas@extundo.com>
89461
89462         * modules/timegm: New file.
89463         * MODULES.html.sh (func_all_modules): Add timegm.
89464
89465 2003-08-31  Simon Josefsson  <jas@extundo.com>
89466
89467         * m4/timegm.m4: New file.
89468
89469 2003-08-31  Simon Josefsson  <jas@extundo.com>
89470
89471         * lib/timegm.h: New file.
89472         * lib/timegm.c: New file.  Based on
89473         wget-1.8.2/src/http.c:mktime_from_utc.
89474
89475 2003-08-31  Karl Berry  <karl@gnu.org>
89476
89477         * lib/argp.h: update from libc.
89478
89479 2003-08-28  Bruno Haible  <bruno@clisp.org>
89480
89481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89482         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89483         followed by '#define fnmatch fnmatch_posix' gives an error.
89484
89485 2003-08-28  Bruno Haible  <bruno@clisp.org>
89486
89487         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89488         warning on QNX, which defines O_BINARY to 000000.
89489
89490 2003-08-27  Jim Meyering  <jim@meyering.net>
89491
89492         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89493         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89494         would fail after 32.  Reported by Danny Levinson.  Details here:
89495         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89496
89497 2003-08-24  Bruno Haible  <bruno@clisp.org>
89498
89499         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89500         MSVC7 <stdio.h> is included later.
89501
89502 2003-08-22  Simon Josefsson  <jas@extundo.com>
89503
89504         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89505
89506 2003-08-20  Karl Berry  <karl@gnu.org>
89507
89508         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89509
89510 2003-08-20  Bruno Haible  <bruno@clisp.org>
89511
89512         * modules/progname: New file.
89513         * MODULES.html.sh (func_all_modules): Add progname.
89514
89515 2003-08-20  Bruno Haible  <bruno@clisp.org>
89516
89517         * lib/progname.h: New file, from GNU gettext.
89518         * lib/progname.c: New file, from GNU gettext.
89519         * lib/progreloc.c: New file, from GNU gettext.
89520
89521 2003-08-19  Jim Meyering  <jim@meyering.net>
89522
89523         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89524         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89525
89526 2003-08-19  Bruno Haible  <bruno@clisp.org>
89527
89528         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89529         more.
89530
89531 2003-08-19  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/xstrdup.c: Assume <string.h> exists.
89534
89535 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89536
89537         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89538         in makefile rules.
89539
89540 2003-08-18  Jim Meyering  <jim@meyering.net>
89541
89542         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89543         * m4/lib-ld.m4: Likewise.
89544
89545 2003-08-18  Jim Meyering  <jim@meyering.net>
89546
89547         * lib/setenv.h: Indent nested cpp directive.
89548         * lib/vasnprintf.c: Remove trailing blanks.
89549
89550 2003-08-17  Simon Josefsson  <jas@extundo.com>
89551
89552         * modules/xstrndup: New file.
89553         * MODULES.html.sh (func_all_modules): Add xstrndup.
89554
89555 2003-08-17  Simon Josefsson  <jas@extundo.com>
89556
89557         * modules/argp: Fix autoconf macro name. Add more dependencies.
89558
89559 2003-08-17  Simon Josefsson  <jas@extundo.com>
89560
89561         * m4/xstrndup.m4: New file.
89562
89563 2003-08-17  Simon Josefsson  <jas@extundo.com>
89564
89565         * m4/argp.m4: New file.
89566
89567 2003-08-17  Simon Josefsson  <jas@extundo.com>
89568             Bruno Haible  <bruno@clisp.org>
89569
89570         * lib/xstrndup.h: New file.
89571         * lib/xstrndup.c: New file.
89572
89573 2003-08-17  Bruno Haible  <bruno@clisp.org>
89574
89575         * modules/strndup (Files, Include): Add lib/strndup.h.
89576
89577 2003-08-17  Bruno Haible  <bruno@clisp.org>
89578
89579         * modules/euidaccess (Files): Add lib/euidaccess.h.
89580
89581 2003-08-17  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/strndup.h: New file.
89584
89585 2003-08-17  Bruno Haible  <bruno@clisp.org>
89586
89587         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89588         like AC_GNU_SOURCE.
89589         * modules/extensions (configure.ac): Comment out the invocation of
89590         gl_USE_SYSTEM_EXTENSIONS.
89591
89592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89593
89594         Merges from coreutils, etc.
89595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89596         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89597         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89598         fixing a typo.
89599         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89600         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89601
89602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89603
89604         Document merge from coreutils.
89605         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89606         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89607         * modules/utime: Add m4/utimes-null.m4.
89608
89609 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89610
89611         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89612         space, undoing this 2003-08-12 change:
89613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89614
89615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89616
89617         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89618         strtoul.c from libc, undoing this 2003-08-12 change:
89619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89620
89621 2003-08-16  Jim Meyering  <jim@meyering.net>
89622
89623         Merges from coreutils.
89624         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89625         prefix.  Adjust cache variables similarly.  Create 500 rather than
89626         just 300 files, to exercise bug on Darwin6.5, too.
89627         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89628         $missing_dir.
89629         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89630         AM_SYS_POSIX_TERMIOS.
89631         Reported by mkc@mathdogs.com.
89632         Also change use of $am_cv_sys_posix_termios
89633         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89634         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89635         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89636         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89637         in /proc/mounts until it finds one with matching device number.  This
89638         is unnecessary when the FILE argument *is* a mount point.  No stat call
89639         is necessary in that case.  So, disable the statvfs-testing code on
89640         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89641         as RedHat bug# 84846.
89642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89643         to 1MB, so as not to render systems with no stack size limit (e.g.,
89644         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89645         Include <unistd.h>.  On some systems,
89646         it is required for the definition of _SC_PAGESIZE.
89647
89648 2003-08-16  Jim Meyering  <jim@meyering.net>
89649
89650         Merge from coreutils.
89651         * lib/xstrtoimax.c: #else #if -> #elif.
89652         * lib/xstrtoumax.c: Likewise.
89653
89654 2003-08-16  Jim Meyering  <jim@meyering.net>
89655
89656         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89657         * m4/utimes.m4: Removed.
89658         * m4/utimes-null.m4: Renamed from utimes.m4.
89659
89660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89661         to 1MB, so as not to render systems with no stack size limit (e.g.,
89662         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89663         Include <unistd.h>.  On some systems,
89664         it is required for the definition of _SC_PAGESIZE.
89665
89666 2003-08-16  Jim Meyering  <jim@meyering.net>
89667         and Paul Eggert  <eggert@cs.ucla.edu>
89668
89669         Merges from coreutils, etc.
89670
89671         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89672         using the latest version from cvs.  This avoids problems with #line
89673         directives using a vendor (Sun) compiler.
89674         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89675         Don't set GETGROUPS_LIB here; now it's
89676         done via getgroups.m4's wrapper function.
89677         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89678         rather than just in sh-util/configure.in, so that the
89679         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89680         same.
89681         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89682         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89683         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89684         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89685         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89686         Remove code that is now done by the newly-required macros.
89687         Append $(EXEEXT) to DF_PROG.
89688         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89689         Do not invoke or require the following here,
89690         since prereq.m4 or some gnulib .m4 now does this for us:
89691         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89692         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89693         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89694         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89695         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89696         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89697         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89698         AC_FUNC_OBSTACK.
89699         Do not replace the following functions, as this is now the job
89700         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89701         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89702         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89703         atexit getpass, strdup, getpagesize.
89704         Replace 'raise'.
89705         Do not check for the following functions, as this is now the job
89706         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89707         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89708         setregid.
89709         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89710         Check for sys/sysctl.h.
89711         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89712         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89713         of checking for ssize_t ourselves.
89714
89715         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89716         Require every macro that gnulib/modules/* suggests for us.
89717         (jm_PREREQ_ADDEXT): New macro.
89718         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89719         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89720
89721         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89722         (gl_PHYSMEM): Use it.
89723         Also check for `table' function.
89724         Check for new headers and functions.
89725         Add check for sys/sysmp.h.
89726         With suggestions from Kaveh Ghazi.
89727         Ignore headers that are present but cannot be compiled.  This
89728         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89729         C 5.4.
89730
89731 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89732
89733         Document merge from coreutils.
89734         * modules/userspec: Depend on posixver.
89735         * modules/strftime: Depend on tzset.
89736
89737 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89738
89739         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89740         rather than tab, after '#' in shell-script copyright notices.
89741         Suggested by Bruno Haible.
89742
89743 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89744
89745         * config/srclist-update: Use three spaces, rather than tab, after '#'
89746         in shell-script copyright notices.  Suggested by Bruno Haible.
89747         Remove unnecessary parenthesization in regular expression.
89748
89749 2003-08-15  Jim Meyering  <jim@meyering.net>
89750
89751         Merge from coreutils.
89752         * lib/xgethostname.c: Include <stdlib.h>.
89753         (xghostname): Don't exit for anything other than memory-related
89754         failure; just return NULL.
89755         * lib/userspec.c: Include "posixver.h".
89756         (parse_user_spec): Accept `.' as a separator only
89757         in pre-POSIX-200112 mode.
89758         * lib/strtoimax.c: Use #elif rather than #else #if.
89759         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89760         Remove function, now that we can rely on a working tzset function.
89761         [!_LIBC]: Ensure that the required autoconf test has been run.
89762         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89763         Use underlying_strftime for %r.
89764         * lib/sha.c: Merge in some clean-up and optimization changes from
89765         glibc.
89766         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89767         Ensure that it is a multiple of 64.
89768         Rearrange loop exit tests so as to avoid performing an
89769         additional fread after encountering an error or EOF.
89770         * lib/realloc.c: Update copyright date.
89771
89772 2003-08-15  Jim Meyering  <jim@meyering.net>
89773         and Paul Eggert  <eggert@twinsun.com>
89774
89775         Merge from coreutils.
89776         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89777         member but strut utmpx does not.  Needed for AIX 4.3.3.
89778         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89779
89780 2003-08-15  Jim Meyering  <jim@meyering.net>
89781         and Paul Eggert  <eggert@cs.ucla.edu>
89782
89783         Merges from coreutils, etc.
89784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89785         Require gl_FUNC_TZSET_CLOBBER.
89786         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89787         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89788         members.
89789
89790 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89791
89792         Help the merge from coreutils.
89793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89794         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89795         * m4/tzset.m4: Use it too.
89796
89797 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89798
89799         * modules/tzset: New file.
89800
89801 2003-08-14  Jim Meyering  <jim@meyering.net>
89802
89803         Merges from coreutils.
89804         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89805         variable names, rather than @FNMATCH_H@.
89806         * modules/alloca: Likewise for $(ALLOCA_H).
89807
89808         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89809         the three copies of the literal target, `fnmatch.h'.
89810         * modules/alloca (alloca.h): Likewise.
89811
89812 2003-08-14  Jim Meyering  <jim@meyering.net>
89813
89814         Merge from coreutils.
89815         * m4/tzset.m4: New file.
89816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89817         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89818         otherwise, AIX 5.1 systems would end up using the latter.
89819         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89820         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89821         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89822         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89823
89824 2003-08-14  Jim Meyering  <jim@meyering.net>
89825
89826         Merge from coreutils.
89827         * lib/obstack.h: Whitespace changes.
89828         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89829         and xcalloc return values.
89830         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89831         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89832         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89833         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89834         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89835         error from mntctl.
89836         Use mntctl's return value to drive the entry-processing loop, since
89837         we can't rely on the value of the vmt_length member in the last
89838         entry.  On some systems doing so could result in exhausting
89839         virtual memory.  Based in part on a patch from Mike Jetzer.
89840
89841 2003-08-14  Jim Meyering  <jim@meyering.net>
89842         and Paul Eggert  <eggert@twinsun.com>
89843
89844         Merges from coreutils, plus other fixes.
89845         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89846         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89847         for credits and details.  Thanks to Kaveh Ghazi for helping
89848         to keep these files in sync.
89849         (ARRAY_SIZE): Define it.
89850         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89851         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89852         (memcasecmp): Don't assume size_t fits in unsigned int.
89853         Remove casts and duplicate code.
89854         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89855         (memcpy): Remove definition.
89856         Merge in some clean-up and optimization changes from glibc.
89857         [BLOCKSIZE]: Move definition to top of file.
89858         Ensure that it is a multiple of 64.
89859         Rearrange loop exit tests so as to avoid performing an
89860         additional fread after encountering an error or EOF.
89861         * lib/md5.h (md5_uintptr): Define.
89862         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89863         return to the initial working directory.  Preserve errno
89864         for caller.
89865         * lib/idcache.c: Include "xalloc.h".
89866         (xmalloc, xrealloc): Remove decls.
89867         (getuser): Remove casts no longer required in C89.
89868         * lib/human.c: Include stdio.h, for sprintf.
89869         * lib/group-member.c: Include "xalloc.h".
89870         (xmalloc, xrealloc): Remove decls.
89871         (get_group_info): Remove casts no longer required in C89.
89872         * lib/getusershell.c (readname): Remove casts no longer required in
89873         C89.
89874         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89875         * lib/getline.c: Whitespace fix, from coreutils.
89876
89877 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89878
89879         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89880         Check for isascii.
89881
89882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89884         Undo previous (whitespace-only) change.
89885
89886 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89887
89888         * lib/exclude.c: Include <ctype.h>
89889         (IN_CTYPE_DOMAIN): New macro.
89890         (is_space): New fn.
89891         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89892         and empty lines.
89893
89894         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89895         Undo previous (whitespace-only) change.
89896
89897 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89898
89899         * config/srclist-update: Change update back to the old behavior,
89900         leaving whitespace alone.  Use one 'sed' command rather than a
89901         pipeline.
89902         (fixlicense): Now a variable, not a function.
89903         (remove_trailing_blanks): Remove.
89904         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89905         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89906         Undo previous (whitespace-only) change.
89907
89908 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89909
89910         Merge from coreutils.
89911         * modules/euidaccess: Add lib_SOURCES, include for new
89912         file euidaccess.h
89913
89914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89915
89916         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89917         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89918         Normalize leading white space and remove trailing white space.
89919
89920         Merge from coreutils
89921         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89922
89923         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89924         0.12.1.  These files are now being upgraded automatically by
89925         ../config/srclist-update.
89926
89927 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89928
89929         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89930         Normalize leading white space and remove trailing white space.
89931         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89932         notice, as per ../config/srclist-update.
89933
89934         Merge from coreutils.
89935         * lib/euidaccess.h: New file.
89936         * lib/euidaccess.c: Include it.
89937         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89938         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89939         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89940
89941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89942
89943         * config/srclist-update: Add copyright notice.
89944         (remove_id_lines, remove_trailing_blanks): New constants.
89945         (fixfile): Use them to normalize spacing a bit in copied files.
89946         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89947         Normalize leading white space and remove trailing white space.
89948
89949         * config/texinfo.tex: Sync with texinfo.
89950
89951         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89952         strtoul.c from libc, to merge coreutils whitespace changes.
89953
89954         * config/srclist.txt: Get the following m4 files from gettext:
89955         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89956         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89957         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89958         wint_t.m4.
89959
89960 2003-08-12  Karl Berry  <karl@gnu.org>
89961
89962         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89963         been made.
89964
89965 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89966
89967         * modules/gnu-source, m4/gnu-source.m4:
89968         Remove; we're assuming Autoconf 2.54 or later now.
89969         Suggested by Bruno Haible.
89970         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89971
89972 2003-08-11  Bruno Haible  <bruno@clisp.org>
89973
89974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89975
89976 2003-08-11  Bruno Haible  <bruno@clisp.org>
89977
89978         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89979         (vasnprintf): Use it instead of wcslen.
89980
89981 2003-08-11  Bruno Haible  <bruno@clisp.org>
89982
89983         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89984         value to ensure that _Bool promotes to int. Use #define for _Bool when
89985         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89986
89987 2003-08-10  Karl Berry  <karl@gnu.org>
89988
89989         * lib/regex.h: update from libc (whitespace fix).
89990
89991 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89992
89993         Merge some files from coreutils.  These changes were
89994         originally made by Jim Meyering.
89995         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89996         many older Unixes require this.
89997         * lib/alloca.c (alloca): Remove cast to argument of free;
89998         no longer needed in C89.
89999         * lib/alloca_.h, regex.h: Fix white space to match
90000         what GNU indent does.
90001
90002 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90003
90004         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90005         apparently Emacs's Unicode mode got confused before my 2003-08-05
90006         checkin.
90007
90008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90009
90010         * m4/extensions.m4: New file.
90011         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90012         Require gl_USE_SYSTEM_EXTENSIONS.
90013         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90014         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90015
90016 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90017
90018         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90019         * modules/extensions, modules/gnu-source: New files.
90020         * modules/timespec, modules/unlocked-io: Depend on extensions.
90021
90022 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90023
90024         * modules/restrict: New file.
90025         * MODULES.html.sh (func_all_modules): Add restrict.
90026         * modules/regex: Depend on restrict.
90027
90028 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90029
90030         * m4/restrict.m4: New file.
90031         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90032
90033 2003-08-07  Bruno Haible  <bruno@clisp.org>
90034
90035         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90036         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90037
90038 2003-08-07  Bruno Haible  <bruno@clisp.org>
90039
90040         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90041         makes the module 'getndelim2' compatible with the module 'getline'.
90042
90043 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90044
90045         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90046         byte with "\201" to avoid glitches when editing that source file
90047         with multi-gnome-terminal.
90048
90049 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90050
90051         * lib/bumpalloc.h: Remove.
90052
90053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90054
90055         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90056         * modules/bumpalloc: Remove.
90057
90058 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90059
90060         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90061         GNU coding style.
90062
90063         Merge from coreutils.
90064         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90065         1. From glibc.
90066         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90067         from Karl Berry, implemented by Jim Meyering.
90068         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90069         from Dmitry V. Levin.
90070         Remove anachronistic cast of xrealloc.
90071         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90072         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90073         type. Otherwise, it wouldn't compile with at least /bin/cc on
90074         ymp-cray-unicos9.0.2.X.
90075         Combine two mostly-identical uses of alloca into one.
90076         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90077
90078 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90079
90080         [From Emacs.]
90081
90082         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90083         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90084         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90085         obsolete NLIST_NAME_UNION.
90086         [__GNU__]: Undef BSD and FSCALE.
90087         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90088
90089 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90090
90091         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90092         an enum type, so that it's guaranteed to promote to int.  See:
90093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90094
90095 2003-08-03  Karl Berry  <karl@gnu.org>
90096
90097         * config/depcomp: update from automake.
90098
90099 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90100
90101         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90102         (strerror): Don't assume that a printable int fits in 14 bytes.
90103
90104 2003-07-31  Bruno Haible  <bruno@clisp.org>
90105
90106         * modules/getpass-gnu: New file.
90107         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90108
90109 2003-07-31  Bruno Haible  <bruno@clisp.org>
90110
90111         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90112
90113 2003-07-24  Karl Berry  <karl@gnu.org>
90114
90115         * config/missing: update from automake.
90116
90117 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90118             Bruno Haible  <bruno@clisp.org>
90119
90120         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90121         * lib/getline.c (getline, getdelim): Likewise.
90122         Remove _GNU_SOURCE define; now it's defined in config.h through
90123         m4/getline.m4.
90124
90125 2003-07-23  Karl Berry  <karl@gnu.org>
90126
90127         * config/config.sub: update from prep.
90128
90129 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90130
90131         * modules/xalloc (Depends-on): Add exitfail.
90132         * modules/xmemcoll: Likewise.
90133
90134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90135
90136         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90137         over-parenthesization in macros.
90138
90139         Sync with coreutils.
90140
90141         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90142         required by C99.
90143
90144         Use `exit_failure' for xalloc and xmemcoll instead of their own
90145         private exit-failure variables.
90146         * lib/xalloc.h (xalloc_exit_failure): Remove.
90147         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90148         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90149         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90150         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90151         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90152
90153 2003-07-20  Jim Meyering  <jim@meyering.net>
90154
90155         * modules/closeout (Depends-on): Add exitfail.
90156         Suggestion from Bruno Haible.
90157
90158 2003-07-19  Karl Berry  <karl@gnu.org>
90159
90160         * config/config.sub: update from prep.
90161
90162 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90163
90164         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90165         Remove.
90166         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90167         to test that it can stand by itself.  Include "exitfail.h".
90168         Clients should set exit_failure instead.
90169         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90170
90171 2003-07-18  Bruno Haible  <bruno@clisp.org>
90172
90173         * modules/getndelim2: New file.
90174         * modules/getline: Share files with module getndelim2.
90175         * modules/getnline: Depend on getndelim2 instead of sharing files with
90176         it. Add getnline.c to lib_SOURCES.
90177         * MODULES.html.sh (func_all_modules): Add getndelim2.
90178
90179 2003-07-18  Bruno Haible  <bruno@clisp.org>
90180
90181         * m4/getndelim2.m4: New file.
90182         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90183         invoke gl_PREREQ_GETNDELIM2.
90184         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90185         gl_PREREQ_GETNDELIM2.
90186         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90187         gl_GETNDELIM2.
90188
90189 2003-07-18  Bruno Haible  <bruno@clisp.org>
90190
90191         * lib/getndelim2.h: New file.
90192         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90193         getndelim2.h.
90194         (getndelim2): Make non-static. Change return type to ssize_t.
90195         * lib/getline.h: Change argument names.
90196         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90197         * lib/getnline.c: Include getndelim2.h.
90198
90199 2003-07-18  Andreas Schwab  <schwab@suse.de>
90200
90201         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90202
90203 2003-07-17  Karl Berry  <karl@gnu.org>
90204
90205         * config/config.sub: update from prep.
90206
90207 2003-07-17  Bruno Haible  <bruno@clisp.org>
90208
90209         * modules/getnline: New file.
90210         * modules/getline: Add lib/getndelim2.c to source file list.
90211         * MODULES.html.sh (func_all_modules): Add getnline.
90212
90213 2003-07-17  Bruno Haible  <bruno@clisp.org>
90214
90215         * m4/getnline.m4: New file.
90216
90217 2003-07-17  Bruno Haible  <bruno@clisp.org>
90218
90219         * m4/Makefile.am.in: Remove file.
90220         * m4/Makefile.am: Remove file.
90221         * m4/Makefile.in: Remove file.
90222
90223 2003-07-17  Bruno Haible  <bruno@clisp.org>
90224
90225         * lib/getnline.h: New file.
90226         * lib/getnline.c: New file.
90227         * lib/getndelim2.c: New file, extracted from getline.c.
90228         (getndelim2): Renamed from getdelim2, with added nmax argument.
90229         * lib/getline.c: Include getndelim2.c.
90230         (getdelim2): Moved out to getndelim2.c.
90231         (getline, getdelim): Update.
90232
90233 2003-07-17  Bruno Haible  <bruno@clisp.org>
90234
90235         * lib/Makefile.am: Remove file.
90236         * lib/Makefile.in: Remove file.
90237
90238 2003-07-17  Bruno Haible  <bruno@clisp.org>
90239
90240         * configure.in: Remove file.
90241         * Makefile.in: Remove file.
90242
90243 2003-07-17  Bruno Haible  <bruno@clisp.org>
90244
90245         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90246
90247 2003-07-16  Karl Berry  <karl@gnu.org>
90248
90249         * config/srclist-update: was running fixlicense twice, which caused
90250                 texinfo.tex to be nullified for some reason.  Simplify,
90251                 $gplsrc is no longer needed as far as I can see?
90252
90253 2003-07-16  Jim Meyering  <jim@meyering.net>
90254
90255         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90256
90257 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90258
90259         * config/srclist.txt: Get the following files from gettext-runtime/intl
90260         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90261         ref-del.sin.  From Bruno Haible.
90262         * config/srclist-update (fixfile): Change grep pattern again, since the
90263         previous fix didn't work (there was another trailing $).  Use
90264         '[$]' to escape the $s.
90265
90266 2003-07-15  Karl Berry  <karl@gnu.org>
90267
90268         * lib/vasnprintf.c: update from gettext.
90269
90270 2003-07-15  Karl Berry  <karl@gnu.org>
90271
90272         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90273         gets expanded when surrounded by '$'.
90274
90275 2003-07-15  Jim Meyering  <jim@meyering.net>
90276
90277         * modules/save-cwd: Don't depend on error.  From Derek Price.
90278
90279 2003-07-15  Jim Meyering  <jim@meyering.net>
90280
90281         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90282
90283 2003-07-14  Simon Josefsson  <jas@extundo.com>
90284
90285         * modules/mempcpy: New file.
90286         * MODULES.html.sh (func_all_modules): Add mempcpy.
90287
90288 2003-07-14  Simon Josefsson  <jas@extundo.com>
90289
90290         * m4/mempcpy.m4: New file.
90291
90292 2003-07-14  Simon Josefsson  <jas@extundo.com>
90293
90294         * lib/mempcpy.h: New file.
90295         * lib/mempcpy.c: New file.
90296
90297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90298
90299         * modules/getdate, modules/posixtm: Depend on mktime.
90300
90301 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90302
90303         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90304         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90305         unicodeio.c, unicodeio.h, unlocked-io.h:
90306         Switch from LGPL to GPL.
90307
90308 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90309
90310         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90311         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90312         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90313         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90314         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90315         updated automatically by ../config/srclist-update.  This changes
90316         their license from LPGL to GPL.
90317
90318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90319
90320         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90321         assumed to refer to the root of the most recent stable gettext version.
90322         * config/srclistvars.sh: Add defaults for eggert.
90323         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90324         Match "This program" as well as "The program".  This is needed
90325         for gettext.
90326
90327 2003-07-14  Jim Meyering  <jim@meyering.net>
90328
90329         Don't emit diagnostics.  Let callers do that.
90330         * lib/save-cwd.c: Don't include "error.h".
90331         (save_cwd): Don't call error.  Ensure that errno is valid
90332         when returning nonzero.
90333
90334         * lib/save-cwd.h (restore_cwd): Update prototype.
90335         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90336         Simplify.  Don't call error upon failure.  Let callers do that.
90337         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90338         when auditing is enabled.  But don't bother updating the #if.
90339
90340 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90341
90342         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90343         it breaks C++ compilation.
90344         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90345
90346 2003-07-10  Simon Josefsson  <jas@extundo.com>
90347
90348         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90349
90350 2003-07-10  Jim Meyering  <jim@meyering.net>
90351
90352         * m4/clock_time.m4: Remove trailing blank.
90353         * m4/intmax_t.m4: Likewise.
90354
90355 2003-07-10  Jim Meyering  <jim@meyering.net>
90356
90357         * lib/vasnprintf.c: Remove trailing blanks.
90358         Make cpp indentation consistent.
90359
90360 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90361
90362         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90363         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90364         Switch from LGPL to GPL.
90365
90366 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90367
90368         * config/srclist.txt: Sort sublists.  Add
90369         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90370         that differ from gnulib for one reason or another; we'd like this list
90371         to be smaller but for now let's document what we have.
90372
90373 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90374
90375         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90376         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90377         and sweeter "eval x=$x".
90378         * config/srclist.txt: Get lib/argp* from glibc.
90379
90380 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90381
90382         * lib/mktime.c: Fix some boundary cases and remove need for floating
90383         point.
90384
90385         Issue a compile-time diagnostic if time_t is floating point, or if
90386         two's complement arithmetic is not in effect, or if arithmetic
90387         right shift does not propagate the sign.  These assumptions were
90388         all in the original code but they weren't checked.
90389
90390         (TIME_T_MIDPOINT, verify): New macros.
90391         (__isleap): Remove; it has integer overflow problems.
90392         (leapyear): New function, without those problems.
90393         (ydhms_tm_diff): Remove; splitting into two parts.
90394         (ydhms_diff): New function, containing the arithmetic part of
90395         the old ydhms_tm_diff function.  Issue a compile-time
90396         diagnostic if we are not using C99 integer division.
90397         Avoid casts when possible.
90398         (guess_time_tm): New function, containing the checking part of
90399         the old ydhms_tm_diff function.  Return the new value, rather than
90400         the difference between it and the old.  Accept a new argument T
90401         so that *T specifies the old value.  Check for overflow in the result.
90402
90403         (__mktime_internal): Use a time_t offset, not a long int offset.
90404         This undoes the 2003-06-04 change, which is no longer needed now
90405         that we have better overflow checking.
90406         (localtime_offset): Likewise.
90407
90408         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90409         and long are 64-bit but int is only 32-bit.
90410         (ydhms_diff): Use long int to store year1 and yday1.
90411         Issue a compile-time diagnostic if long int is not wide enough.
90412
90413         (__mktime_internal): Use long int to store adjusted year and yday.
90414         Use plain C rather than preprocessor commands, if that doesn't
90415         affect efficiency.
90416         Check for overflow (and try to repair) after each probe
90417         rather than checking only at the very end.  This avoids some bugs
90418         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90419         does not equal GMT offset at maximum time).
90420         Use integer to check for overflow rather than floating point; this
90421         is more portable to non-IEEE hosts, and is a tad faster.
90422         When we detect that we are oscillating between two values,
90423         don't check whether tm_isdst has the requested value, since
90424         we already know the answer.  When tm_isdst has the wrong value,
90425         use a different heuristic to find the right one, based on the
90426         extreme values actually observed in practice in tz2003a,
90427         rather than the (overly optimistic) "previous 3 calendar quarters".
90428
90429         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90430         "T const" to accommodate glibc style.
90431         (check_result): Use less-confusing report format.  "long" -> "long int.
90432         (main): Likewise.
90433         Don't loop if the iteration overflows time_t.
90434         Allow a negative step in the iteration.
90435
90436 2003-07-06  Karl Berry  <karl@gnu.org>
90437
90438         * config/depcomp: update from automake.
90439         * config/config.sub: update from prep.
90440
90441 2003-07-03  Karl Berry  <karl@gnu.org>
90442
90443         * config/config.guess: update from prep.
90444
90445 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90446
90447         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90448         xreadlink.c now includes it unconditionally.
90449
90450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90451
90452         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90453         having it depend on HAVE_SYS_TYPES_H.
90454
90455 2003-07-01  Bruno Haible  <bruno@clisp.org>
90456
90457         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90458         <sys/types.h> should be sufficient.
90459         Reported by Paul Eggert.
90460
90461 2003-06-26  Karl Berry  <karl@gnu.org>
90462
90463         * config/depcomp: update from automake.
90464
90465 2003-06-26  Bruno Haible  <bruno@clisp.org>
90466
90467         * modules/human: Depend on module stdbool.
90468
90469 2003-06-25  Bruno Haible  <bruno@clisp.org>
90470
90471         * modules/readlink: New file.
90472         * modules/xreadlink: Depend on it.
90473         * MODULES.html.sh (func_all_modules): Add readlink.
90474
90475 2003-06-25  Bruno Haible  <bruno@clisp.org>
90476
90477         * m4/readlink.m4: New file.
90478
90479 2003-06-25  Bruno Haible  <bruno@clisp.org>
90480
90481         * lib/readlink.c: New file.
90482
90483 2003-06-22  Karl Berry  <karl@gnu.org>
90484
90485         * config/srclist.txt: update mkinstalldirs from automake.
90486         * config/mkinstalldirs: update.
90487
90488 2003-06-22  Bruno Haible  <bruno@clisp.org>
90489
90490         Portability to mingw32.
90491         * m4/ssize_t.m4: New file, from GNU gettext.
90492         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90493         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90494
90495 2003-06-22  Bruno Haible  <bruno@clisp.org>
90496
90497         * modules/safe-read: Add m4/ssize_t.m4.
90498         * modules/xreadlink: Add m4/ssize_t.m4.
90499
90500 2003-06-20  Bruno Haible  <bruno@clisp.org>
90501
90502         Assume C89, so PARAMS isn't needed.
90503         * lib/unicodeio.h (PARAMS): Remove.
90504         * lib/unicodeio.c: Don't use PARAMS.
90505
90506 2003-06-18  Karl Berry  <karl@gnu.org>
90507
90508         * config/config.{guess,sub}: update from prep.
90509
90510 2003-06-18  Jim Meyering  <jim@meyering.net>
90511
90512         Merge changes from coreutils.
90513         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90514         Remove explicit declarations of xmalloc and realloc.
90515         Include xalloc.h.
90516         (read_utmp): Remove anachronistic cast of xmalloc.
90517
90518 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90519
90520         Assume C89, so PARAMS isn't needed.
90521         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90522         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90523         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90524         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90525         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90526         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90527         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90528         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90529         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90530         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90531         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90532         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90533         no longer needed. Anyway, config.h should always be included before any
90534         other file.
90535
90536 2003-06-11  Simon Josefsson  <jas@extundo.com>
90537
90538         * modules/sysexits: New file.
90539         * MODULES.html.sh (func_all_modules): Add sysexits.
90540
90541 2003-06-11  Simon Josefsson  <jas@extundo.com>
90542
90543         * lib/sysexit_.h: New file.
90544
90545 2003-06-11  Derek Price  <derek@ximbiot.com>
90546
90547         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90548         necessary.
90549
90550 2003-06-11  Bruno Haible  <bruno@clisp.org>
90551
90552         * m4/sysexits.m4: New file.
90553
90554 2003-06-10  Simon Josefsson  <jas@extundo.com>
90555
90556         * lib/argp.h: New file, from glibc.
90557         * lib/argp-ba.c: New file, from glibc.
90558         * lib/argp-eexst.c: New file, from glibc.
90559         * lib/argp-fmtstream.c: New file, from glibc.
90560         * lib/argp-fmtstream.h: New file, from glibc.
90561         * lib/argp-fs-xinl.c: New file, from glibc.
90562         * lib/argp-help.c: New file, from glibc.
90563         * lib/argp-namefrob.h: New file, from glibc.
90564         * lib/argp-parse.c: New file, from glibc.
90565         * lib/argp-pv.c: New file, from glibc.
90566         * lib/argp-pvh.c: New file, from glibc.
90567         * lib/argp-xinl.c: New file, from glibc.
90568
90569 2003-06-10  Simon Josefsson  <jas@extundo.com>
90570
90571         * modules/strchrnul: New file.
90572
90573 2003-06-10  Simon Josefsson  <jas@extundo.com>
90574
90575         * modules/argp: New file.
90576
90577 2003-06-10  Simon Josefsson  <jas@extundo.com>
90578
90579         * m4/strchrnul.m4: New file.
90580
90581 2003-06-10  Simon Josefsson  <jas@extundo.com>
90582
90583         * lib/strchrnul.h: New file.
90584         * lib/strchrnul.c: New file.
90585
90586 2003-06-10  Bruno Haible  <bruno@clisp.org>
90587
90588         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90589
90590 2003-06-07  Karl Berry  <karl@gnu.org>
90591
90592         * config/config.{guess,sub}: update from prep.
90593
90594 2003-06-07  Jim Meyering  <jim@meyering.net>
90595
90596         * modules/strtod: Use $(...) notation, not @...@ for
90597         AC_REPLACE'd variables.
90598         * modules/localcharset: Likewise.
90599
90600 2003-06-07  Jim Meyering  <jim@meyering.net>
90601
90602         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90603         in place of my name in the copyright comment.
90604         Remove definition and uses of __P.
90605
90606         From coreutils.
90607         * lib/stat.c: Don't declare xmalloc explicitly.
90608         Instead, include "xalloc.h".
90609         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90610         xrealloc, and xcalloc return values.
90611         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90612         Improve comment.
90613         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90614
90615 2003-06-07  Bruno Haible  <bruno@clisp.org>
90616
90617         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90618         avoid AC_CONFIG_LINKS.
90619         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90620         fnmatch.h, to avoid AC_CONFIG_LINKS.
90621         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90622
90623 2003-06-07  Bruno Haible  <bruno@clisp.org>
90624
90625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90626         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90627         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90628         directory.
90629         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90631         directory.
90632
90633 2003-06-06  Jim Meyering  <jim@meyering.net>
90634
90635         Merge from coreutils.
90636         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90637         Consolidate declarations and initializations of *_base* locals.
90638
90639         Merge from coreutils.
90640         This avoids a core dump on systems without GNU putenv,
90641         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90642         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90643         (unsetenv): New static function, from GNU libc.
90644         (rpl_putenv): Use it.
90645
90646         * lib/modechange.c: Remove trailing blanks.
90647
90648         Merge from coreutils.
90649         * lib/fsusage.c: Remove declaration of statfs.
90650         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90651
90652         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90653
90654 2003-06-06  Jim Meyering  <jim@meyering.net>
90655
90656         * lib/stdbool_.h: Renamed from stdbool.h.in.
90657
90658 2003-06-06  Jim Meyering  <jim@meyering.net>
90659             Bruno Haible  <bruno@clisp.org>
90660
90661         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90662         Adjust Makefile.am snippet not to redirect directly to target.
90663         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90664
90665 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90666
90667         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90668         mismatch, look in future quarters as well as past.  This fixes a
90669         bug when processing fall-backwards gaps immediately after a long
90670         period of daylight-saving time.
90671
90672         * lib/mktime.c: Assume freestanding C89 or better.
90673         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90674         (__P): Remove; not used.
90675         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90676         (mktime, not_equal_tm, print_tm, check_result,
90677         main): Use prototypes.  Use const * where appropriate.
90678         (main): Fix typo in testing code that uncovered by above changes.
90679         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90680
90681 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90682
90683         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90684         locale.h, localeconv.  This merges changes from coreutils.
90685
90686         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90687         It can be removed after the next Autoconf is released.
90688         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90689         needed.
90690
90691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90692
90693         * lib/mktime.c: Fix Debian bug 177940
90694         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90695         (localtime_offset): Now long int, not time_t, because we want it
90696         to be guaranteed to be signed.  All uses changed.
90697         (__mktime_internal): If overflow would occur when adding offset,
90698         don't add it.
90699
90700         Merge 'human' changes from coreutils.  Rewrite to support
90701         locale-specific notations like thousands separators.
90702         * lib/human.c: Simplify authorship notice.
90703         Include human.h immediately after config.h.
90704         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90705         <limits.h>: Do not include, since human.h does.
90706         (SIZE_MAX, UINTMAX_MAX): New macros.
90707         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90708         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90709         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90710         (power_letter): Renamed from suffixes.
90711         (generate_suffix_backwards): Remove.
90712         (adjust_value): Now takes int style (because of human.h changes)
90713         and long double value (for greater precision on some platforms).
90714         (group_number): New function.
90715         (human_readable): Use it.  Use integer options, not enum.
90716         Put the options before the sizes in the arg list.
90717         Support all the new options.
90718         The old human_readable function has been removed;
90719         use inttostr.h instead.
90720         (human_readable, default_block_size, humblock):
90721         Use uintmax_t, not int, for block sizes.
90722         (human_readable_inexact, block_size_types): Remove.
90723         (block_size_opts): New constant.
90724         (human_options): Renamed from human_block_size, with new signature
90725         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90726         * lib/human.h: Add copyright and authorship notice.
90727         Include <limits.h> and <stdbool.h> unconditionally.
90728         (PARAMS): Remove.  All uses removed.
90729         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90730         (enum human_inexact_style): Remove tag; now a nameless enum.
90731         (human_floor, human_ceiling, human_round_to_even): Now have
90732         values 2, 0, 1 rather than -1, 1, 0.
90733         (human_group_digits, human_suppress_point_zero, human_autoscale,
90734         human_base_1024, human_SI, human_B): New constants.
90735         (human_readable_inexact, human_block_size): Remove.
90736         (human_readable): Size args are now uintmax_t, not int.
90737         (human_options): New decl.
90738
90739         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90740         unnecessary now that we assume C89 or better.  This change
90741         imported from coreutils.
90742
90743         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90744         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90745         in the 2003-05-30 sync from glibc.
90746
90747         .h files should stand alone, but we shouldn't include <sys/types.h>
90748         if we can get away with just <stddef.h>.
90749
90750         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90751         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90752         rather than <sys/types.h>, as we merely need size_t.
90753         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90754         to get size_t.
90755         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90756         Include <stdio.h>, to get FILE.
90757         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90758         memcasecmp.h has included <stddef.h> and all we need is size_t.
90759         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90760         our interface, instead of including <sys/types.h>
90761
90762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90763
90764         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90765         now, as glibc mktime is buggy on non-glibc systems.
90766
90767 2003-06-03  Karl Berry  <karl@gnu.org>
90768
90769         * config/config.sub: update from prep.
90770
90771 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90772
90773         [from coreutils]
90774         Fix some minor time-related bugs with POSIX time arguments.
90775         Some valid time stamps were being rejected (notably -1, and
90776         time stamps before 1900 on 64-bit hosts).  And some invalid
90777         time stamps were being accepted, e.g. September 31.
90778
90779         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90780         that we can return (time_t) -1 successfully.
90781         * lib/posixtm.c: Likewise.
90782         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90783         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90784         (t): Remove static var.
90785         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90786         of static var.  All uses changed.
90787         (year): Do not reject years before 1900; they can occur with
90788         64-bit time_t.
90789         (posix_time_parse): Do not check for out-of-range components;
90790         that is now the caller's responsibility, since our checks were
90791         only approximations.
90792         (posixtime): Use mktime to check for out-of-range components,
90793         since it knows them exactly.
90794         If mktime returns (time_t) -1, check whether an error actually occurred
90795         by invoking localtime on -1.
90796         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90797         posixtime failures better.
90798         Improve the test data (in comments only).
90799
90800 2003-06-02  Karl Berry  <karl@gnu.org>
90801
90802         * config/mkinstalldirs (version): new variable.
90803         (--version): new option.
90804         (usage): improve message.
90805
90806 2003-05-30  Karl Berry  <karl@gnu.org>
90807
90808         * lib/mktime.c: update from libc.
90809
90810 2003-05-30  Bruno Haible  <bruno@clisp.org>
90811
90812         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90813         * config/config.rpath: Upgrade to gettext-0.12.1.
90814
90815 2003-05-30  Bruno Haible  <bruno@clisp.org>
90816
90817         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90818         * m4/nls.m4: New file, from gettext-0.12.1.
90819         * m4/po.m4: New file, from gettext-0.12.1.
90820         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90821
90822 2003-05-30  Bruno Haible  <bruno@clisp.org>
90823
90824         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90825         * lib/localcharset.h: Likewise.
90826         * lib/localcharset.c: Likewise.
90827
90828 2003-05-29  Karl Berry  <karl@gnu.org>
90829
90830         * config/config.rpath: update from gettext.
90831
90832 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90833
90834         Assume the headers required for C89 freestanding compilers.
90835         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90836         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90837         * m4/human.m4 (gl_HUMAN): Likewise.
90838         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90839         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90840         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90841         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90843         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90844
90845 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90846
90847         Assume the headers required for C89 freestanding compilers.
90848         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90849         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90850         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90851         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90852         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90853         define, since <limits.h> is guaranteed to do that.
90854         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90855         * lib/exclude.c: Include <stdbool.h> unconditionally.
90856         * lib/tempname.c: Include <stddef.h> unconditionally.
90857         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90858         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90859         <stddef.h> does that.
90860         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90861         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90862         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90863         needed.
90864         * lib/xstrtol.c: Likewise.
90865         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90866         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90867
90868         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90869         warnings on some platforms.
90870
90871         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90872         arbitrarily.
90873
90874 2003-05-26  Jim Meyering  <jim@meyering.net>
90875
90876         Merge in a change from coreutils:
90877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90878         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90879         that condition, rather than `-1' which is slightly misleading.
90880         Change the name of the cache variable to have the gl_ prefix.
90881         Prompted by a patch from Richard Dawe for DJGPP.
90882
90883 2003-05-24  Karl Berry  <karl@gnu.org>
90884
90885         * config/config.guess: update from prep.
90886
90887 2003-05-22  Karl Berry  <karl@gnu.org>
90888
90889         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90890
90891 2003-05-20  Karl Berry  <karl@gnu.org>
90892
90893         * config/config.guess: update from prep.
90894
90895 2003-05-18  Karl Berry  <karl@gnu.org>
90896
90897         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90898         might actually be set by the user.
90899
90900         * config/depcomp, install-sh, mdate-sh: update from automake.
90901
90902 2003-05-17  Bruno Haible  <bruno@clisp.org>
90903
90904         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90905         invalid expansion for AC_EGREP_CPP.
90906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90907         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90908         Suggested by Akim Demaille <akim@epita.fr> in
90909         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90910
90911 2003-05-12  Jim Meyering  <jim@meyering.net>
90912
90913         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90914         the space-padded-by-default conversion specifiers, %e, %k, %l.
90915
90916 2003-05-12  Bruno Haible  <bruno@clisp.org>
90917
90918         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90919         the string is longer than 4 KB.
90920
90921 2003-05-11  Karl Berry  <karl@gnu.org>
90922
90923         * config/config.{guess,sub}: update from prep.
90924
90925 2003-05-09  Bruno Haible  <bruno@clisp.org>
90926
90927         * modules/error: Add m4/strerror_r.m4 to file list.
90928
90929 2003-05-03  Bruno Haible  <bruno@clisp.org>
90930
90931         Upgrade to Unicode-4.0.
90932         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90933         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90934         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90935         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90936         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90937         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90938         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90939         Change width of U+E0100..U+E01EF from 1 to 0.
90940
90941 2003-04-25  Jim Meyering  <jim@meyering.net>
90942
90943         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90944         of type size_t, not int.
90945
90946 2003-04-25  Bruno Haible  <bruno@clisp.org>
90947
90948         * lib/copy-file.c: Include <stddef.h>, for size_t.
90949
90950 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90951
90952         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90953         code which expansion is under static control.  Patch imported from
90954         Akim Demaille's patch to Bison; see
90955         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90956
90957 2003-04-14  Bruno Haible  <bruno@clisp.org>
90958
90959         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90960
90961 2003-04-11  Jim Meyering  <jim@meyering.net>
90962
90963         Merge changes from Coreutils.
90964
90965         2003-03-22  Jim Meyering  <jim@meyering.net>
90966
90967         * lib/strftime.c (widen): Cast alloca return value to proper type.
90968
90969         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90970
90971         From GNU libc.
90972         * lib/strftime.c (my_strftime): Handle very large width
90973         specifications for numeric values correctly.  Improve checks for
90974         overflow.
90975
90976         2003-01-19  Jim Meyering  <jim@meyering.net>
90977
90978         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90979         definitions.
90980         (nl_get_alt_digit) [! defined my_strftime]: Define.
90981         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90982         _nl_get_alt_digit and _nl_get_walt_digit.
90983
90984         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90985         libc. These changes have no effect outside of _LIBC.
90986
90987 2003-04-10  Bruno Haible  <bruno@clisp.org>
90988
90989         * modules/findprog: New file.
90990         * MODULES.html.sh (func_all_modules): Add it.
90991
90992 2003-04-10  Bruno Haible  <bruno@clisp.org>
90993
90994         * m4/findprog.m4: New file.
90995         * m4/eaccess.m4: New file.
90996
90997 2003-04-10  Bruno Haible  <bruno@clisp.org>
90998
90999         * lib/findprog.h: New file, from GNU gettext.
91000         * lib/findprog.c: New file, from GNU gettext.
91001
91002 2003-04-05  Jim Meyering  <jim@meyering.net>
91003
91004         Merge changes from Coreutils.
91005
91006         * lib/exclude.h (PARAMS): Remove definition and uses.
91007         * lib/exclude.c: Remove uses of `PARAMS'.
91008
91009         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91010         Add test-cases for DOS filenames. Declare program_name.
91011         (main): Set up program_name.  Patch by Rich Dawe.
91012
91013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91014         error from mntctl.
91015         Use mntctl's return value to drive the entry-processing loop, since
91016         we can't rely on the value of the vmt_length member in the last
91017         entry.  On some systems doing so could result in exhausting
91018         virtual memory.  Based in part on a patch from Mike Jetzer.
91019
91020 2003-04-04  Bruno Haible  <bruno@clisp.org>
91021
91022         * modules/linebreak: New file.
91023         * MODULES.html.sh (func_all_modules): Add it.
91024
91025 2003-04-04  Bruno Haible  <bruno@clisp.org>
91026
91027         * m4/linebreak.m4: New file.
91028
91029 2003-04-04  Bruno Haible  <bruno@clisp.org>
91030
91031         * lib/linebreak.h: New file, from GNU gettext.
91032         * lib/linebreak.c: New file, from GNU gettext with slight
91033         modifications.
91034         * lib/lbrkprop.h: New file, from GNU gettext.
91035
91036 2003-04-03  Bruno Haible  <bruno@clisp.org>
91037
91038         * modules/utf8-ucs4: New file.
91039         * modules/utf16-ucs4: New file.
91040         * modules/ucs4-utf8: New file.
91041         * modules/ucs4-utf16: New file.
91042         * MODULES.html.sh (func_all_modules): Add them.
91043
91044 2003-04-03  Bruno Haible  <bruno@clisp.org>
91045
91046         * m4/utf-ucs4.m4: New file.
91047         * m4/ucs4-utf.m4: New file.
91048
91049 2003-04-03  Bruno Haible  <bruno@clisp.org>
91050
91051         * lib/utf8-ucs4.h: New file, from GNU gettext.
91052         * lib/utf16-ucs4.h: New file, from GNU gettext.
91053         * lib/ucs4-utf8.h: New file, from GNU gettext.
91054         * lib/ucs4-utf16.h: New file, from GNU gettext.
91055
91056 2003-04-02  Bruno Haible  <bruno@clisp.org>
91057
91058         * modules/binary-io: New file.
91059         * MODULES.html.sh (func_all_modules): Add it.
91060
91061 2003-04-02  Bruno Haible  <bruno@clisp.org>
91062
91063         * lib/binary-io.h: New file, from GNU gettext.
91064
91065 2003-04-01  Bruno Haible  <bruno@clisp.org>
91066
91067         * modules/pathname: New file.
91068         * MODULES.html.sh (func_all_modules): Add it.
91069
91070 2003-04-01  Bruno Haible  <bruno@clisp.org>
91071
91072         * lib/pathname.h: New file, from GNU gettext.
91073         * lib/concatpath.c: New file, from GNU gettext.
91074
91075 2003-03-30  Bruno Haible  <bruno@clisp.org>
91076
91077         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91078
91079 2003-03-30  Bruno Haible  <bruno@clisp.org>
91080
91081         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91082         function chown() doesn't exist.
91083
91084 2003-03-28  Bruno Haible  <bruno@clisp.org>
91085
91086         * modules/copy-file: New file.
91087         * MODULES.html.sh (func_all_modules): Add it.
91088
91089 2003-03-28  Bruno Haible  <bruno@clisp.org>
91090
91091         * m4/copy-file.m4: New file.
91092
91093 2003-03-28  Bruno Haible  <bruno@clisp.org>
91094
91095         * lib/copy-file.h: New file, from GNU gettext.
91096         * lib/copy-file.c: New file, from GNU gettext.
91097
91098 2003-03-18  Jim Meyering  <jim@meyering.net>
91099
91100         * lib/quote.c (quote_n): Fix typo in comment.
91101
91102 2003-03-18  Bruno Haible  <bruno@clisp.org>
91103
91104         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91105         checking.
91106         * m4/onceonly_2_57.m4: Likewise.
91107
91108 2003-03-17  Bruno Haible  <bruno@clisp.org>
91109
91110         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91111         (m4_quote): Remove macro.
91112         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91113
91114 2003-03-14  Jim Meyering  <jim@meyering.net>
91115
91116         Merge changes from Coreutils.
91117         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91118         to be const, in order to avoid warnings.
91119         (obstack_room): Likewise.
91120         (obstack_empty_p): Likewise.
91121
91122 2003-03-14  Bruno Haible  <bruno@clisp.org>
91123
91124         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91125         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91126
91127 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91128
91129         Merge changes from Bison.
91130         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91131         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91132         when compiling Bison 1.875's `bitset bset = obstack_alloc
91133         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91134         * lib/hash.c: Include <stdbool.h> unconditionally.
91135
91136 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91137
91138         * m4/onceonly.m4 (m4_quote): New macro.
91139         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91140         Quote AC_FOREACH variable-expansions properly.
91141
91142 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91143
91144         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91145
91146 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91147
91148         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91149         Reported by Bruce Becker; see:
91150         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91151
91152 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91153             Bruno Haible  <bruno@clisp.org>
91154
91155         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91156         Reported by John Hughes, see
91157         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91158
91159 2003-02-20  Bruno Haible  <bruno@clisp.org>
91160
91161         * MODULES.html.sh (func_all_modules): Add poll.
91162
91163 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91164
91165         * modules/poll: New file.
91166
91167 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91168
91169         * lib/poll_.h: New file.
91170         * lib/poll.c: New file.
91171
91172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91173
91174         * m4/poll.m4: New file.
91175
91176 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91177
91178         * modules/mathl: New file.
91179
91180 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91181
91182         * lib/mathl.h: New file.
91183         * lib/acosl.c: New file.
91184         * lib/asinl.c: New file.
91185         * lib/atanl.c: New file.
91186         * lib/ceill.c: New file.
91187         * lib/cosl.c: New file.
91188         * lib/expl.c: New file.
91189         * lib/floorl.c: New file.
91190         * lib/frexpl.c: New file.
91191         * lib/ldexpl.c: New file.
91192         * lib/logl.c: New file.
91193         * lib/sincosl.c: New file.
91194         * lib/sinl.c: New file.
91195         * lib/sqrtl.c: New file.
91196         * lib/tanl.c: New file.
91197         * lib/trigl.c: New file.
91198         * lib/trigl.h: New file.
91199
91200 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91201
91202         * m4/mathl.m4: New file.
91203
91204 2003-02-18  Bruno Haible  <bruno@clisp.org>
91205
91206         * MODULES.html.sh (func_all_modules): Add mathl.
91207
91208 2003-02-17  Bruno Haible  <bruno@clisp.org>
91209
91210         * modules/mkdtemp: New module.
91211         * MODULES.html.sh (func_all_modules): Add it.
91212
91213 2003-02-17  Bruno Haible  <bruno@clisp.org>
91214
91215         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91216
91217 2003-02-17  Bruno Haible  <bruno@clisp.org>
91218
91219         * lib/mkdtemp.h: New file, from GNU gettext.
91220         * lib/mkdtemp.c: New file, from GNU gettext.
91221
91222 2003-02-02  Jim Meyering  <jim@meyering.net>
91223
91224         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91225         e.g. glibc-2.2.93.
91226
91227 2003-01-31  Bruno Haible  <bruno@clisp.org>
91228
91229         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91230         'rpl_rename'.
91231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91232         'rpl_strnlen'.
91233         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91234         'rpl_strtod'.
91235         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91236         'rpl_utime'.
91237
91238 2003-01-31  Bruno Haible  <bruno@clisp.org>
91239
91240         * lib/rename.c: #undef rename before defining rpl_rename.
91241         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91242
91243 2003-01-30  Bruno Haible  <bruno@clisp.org>
91244
91245         * modules/vasnprintf, modules/vasprintf: New modules.
91246         * MODULES.html.sh (func_all_modules): Add them.
91247
91248 2003-01-30  Bruno Haible  <bruno@clisp.org>
91249
91250         * m4/signed.m4: New file, from GNU gettext.
91251         * m4/longdouble.m4: New file, from GNU gettext.
91252         * m4/wchar_t.m4: New file, from GNU gettext.
91253         * m4/wint_t.m4: New file, from GNU gettext.
91254         * m4/vasnprintf.m4: New file.
91255         * m4/vasprintf.m4: New file.
91256
91257 2003-01-30  Bruno Haible  <bruno@clisp.org>
91258
91259         * lib/printf-args.h: New file, from GNU gettext.
91260         * lib/printf-args.c: New file, from GNU gettext.
91261         * lib/printf-parse.h: New file, from GNU gettext.
91262         * lib/printf-parse.c: New file, from GNU gettext.
91263         * lib/vasnprintf.h: New file, from GNU gettext.
91264         * lib/vasnprintf.c: New file, from GNU gettext.
91265         * lib/asnprintf.c: New file, from GNU gettext.
91266         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91267         * lib/vasprintf.c: New file, from GNU gettext.
91268         * lib/asprintf.c: New file, from GNU gettext.
91269
91270 2003-01-29  Bruno Haible  <bruno@clisp.org>
91271
91272         * modules/stpncpy: New module.
91273         * MODULES.html.sh (func_all_modules): Add it.
91274
91275 2003-01-29  Bruno Haible  <bruno@clisp.org>
91276
91277         * m4/stpncpy.m4: New file.
91278
91279 2003-01-29  Bruno Haible  <bruno@clisp.org>
91280
91281         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91282         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91283
91284 2003-01-28  Bruno Haible  <bruno@clisp.org>
91285
91286         * modules/c-ctype: New module.
91287         * MODULES.html.sh (func_all_modules): Add it.
91288
91289 2003-01-28  Bruno Haible  <bruno@clisp.org>
91290
91291         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91292         Paul Eggert.
91293         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91294         Paul Eggert.
91295
91296 2003-01-27  Bruno Haible  <bruno@clisp.org>
91297
91298         * modules/xsetenv: New module.
91299         * MODULES.html.sh (func_all_modules): Add it.
91300
91301 2003-01-27  Bruno Haible  <bruno@clisp.org>
91302
91303         * lib/xsetenv.h: New file, from GNU gettext.
91304         * lib/xsetenv.c: New file, from GNU gettext.
91305
91306 2003-01-23  Jim Meyering  <jim@meyering.net>
91307
91308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91309         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91310
91311 2003-01-23  Bruno Haible  <bruno@clisp.org>
91312
91313         * modules/minmax: New module.
91314         * MODULES.html.sh (func_all_modules): Add it.
91315
91316 2003-01-23  Bruno Haible  <bruno@clisp.org>
91317
91318         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91319         Eggert.
91320
91321 2003-01-22  Bruno Haible  <bruno@clisp.org>
91322
91323         * modules/exit: New module.
91324         * MODULES.html.sh (func_all_modules): Add it.
91325
91326 2003-01-22  Bruno Haible  <bruno@clisp.org>
91327
91328         * lib/exit.h: New file, from GNU gettext.
91329
91330 2003-01-19  Bruno Haible  <bruno@clisp.org>
91331
91332         * gnulib-tool: Recognize option --extract-maintainer.
91333         (func_get_maintainer): New function.
91334         * modules/*: Add Maintainer entry.
91335
91336 2003-01-16  Jim Meyering  <jim@meyering.net>
91337
91338         * m4/regex.m4: The `regex' struct is both input and output.
91339         Initialize it before each use.  Patch by Tim Waugh.
91340
91341 2003-01-16  Bruno Haible  <bruno@clisp.org>
91342
91343         * MODULES.html.sh: Add a table of contents. Add the module name as
91344         leftmost column. Add hyperlinks.
91345
91346 2003-01-15  Bruno Haible  <bruno@clisp.org>
91347
91348         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91349
91350 2003-01-15  Bruno Haible  <bruno@clisp.org>
91351
91352         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91353         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91354         suffix.
91355
91356 2003-01-15  Bruno Haible  <bruno@clisp.org>
91357
91358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91359
91360 2003-01-15  Bruno Haible  <bruno@clisp.org>
91361
91362         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91363         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91364
91365 2003-01-14  Jim Meyering  <jim@meyering.net>
91366
91367         * lib/same.c (same_name): Tweak a comment.
91368
91369 2003-01-14  Bruno Haible  <bruno@clisp.org>
91370
91371         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91372         when a string comparison is sufficient.
91373
91374 2003-01-14  Bruno Haible  <bruno@clisp.org>
91375
91376         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91377         'unsigned int'.
91378
91379 2003-01-14  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/hash-pjw.c: Add comment about low quality of this function.
91382
91383 2003-01-13  Bruno Haible  <bruno@clisp.org>
91384
91385         * modules/stpcpy: Distribute lib/stpcpy.h.
91386         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91387
91388 2003-01-13  Bruno Haible  <bruno@clisp.org>
91389
91390         * modules/*: Add a description.
91391         * modules/strpbrk: Fix Makefile.am snippet.
91392         * modules/strtoimax: Fix dependencies.
91393         * modules/strtoumax: Likewise.
91394
91395 2003-01-13  Bruno Haible  <bruno@clisp.org>
91396
91397         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91398         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91399         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91400
91401 2003-01-13  Bruno Haible  <bruno@clisp.org>
91402
91403         * gnulib-tool (func_create_testdir): Store config/* files in the main
91404         directory.
91405         * config.rpath: Move to ...
91406         * config/config.rpath: ... here.
91407         * modules/gettext: Contains config/config.rpath, not config.rpath.
91408         * modules/iconv: Likewise.
91409
91410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91411
91412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91413         to avoid collisions with libcurses and libreadline.
91414
91415         * m4/getstr.m4: Remove.
91416         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91417
91418 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91419
91420         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91421         to avoid collisions with libcurses and libreadline.
91422
91423         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91424         * lib/getstr.h, getstr.c: Remove.
91425         * lib/getline.c: Include "getline.h", to check interface.
91426         Move body of old getstr.c here: this defines MIN_CHUNK and
91427         declares getdelim2, which is renamed from getstr.
91428         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91429
91430         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91431         All uses changed.
91432         * lib/linebuffer.h: Likewise.
91433         (readline): Remove backward-compatibility macro.
91434
91435 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91436
91437         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91438         to avoid collisions with libcurses and libreadline.
91439         * getstr: Remove.
91440         * MODULES.html.sh: Remove getstr.
91441         * modules/getline: Depend on unlocked-io, not getstr.
91442
91443 2003-01-12  Jim Meyering  <jim@meyering.net>
91444
91445         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91446
91447 2003-01-10  Bruno Haible  <bruno@clisp.org>
91448
91449         * modules/alloca: Change Makefile.am requirements. Simplify Include
91450         requirements. Add lib/alloca_.h to file list.
91451
91452 2003-01-10  Bruno Haible  <bruno@clisp.org>
91453
91454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91455
91456 2003-01-10  Bruno Haible  <bruno@clisp.org>
91457
91458         * lib/alloca_.h: New file.
91459         * lib/getdate.y: Unconditionally include alloca.h.
91460         * lib/makepath.c: Likewise.
91461         * lib/setenv.c: Likewise.
91462         * lib/userspec.c: Likewise.
91463
91464 2003-01-09  Karl Berry  <karl@gnu.org>
91465
91466         * MODULES.html.sh: include `dirname $0` in PATH, to find
91467         gnulib-tool.
91468
91469 2003-01-09  Bruno Haible  <bruno@clisp.org>
91470
91471         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91472         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91473
91474 2003-01-09  Bruno Haible  <bruno@clisp.org>
91475
91476         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91477
91478 2003-01-09  Bruno Haible  <bruno@clisp.org>
91479
91480         * lib/stdbool.h.in: New file.
91481
91482 2003-01-09  Bruno Haible  <bruno@clisp.org>
91483
91484         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91485         * MODULES.html.sh: Likewise.
91486
91487 2003-01-08  Jim Meyering  <jim@meyering.net>
91488
91489         * lib/full-write.c: Undefine and define-away `const' after inclusion
91490         of errno.h, not before.  Suggestion from Bruno Haible.
91491
91492 2003-01-08  Bruno Haible  <bruno@clisp.org>
91493
91494         * modules/full-read: Depend on full-write.
91495
91496 2003-01-08  Bruno Haible  <bruno@clisp.org>
91497
91498         * lib/safe-read.c: Include specification header first, to ensure its
91499         selfcontainedness.
91500         * lib/full-write.c: Likewise.
91501
91502 2003-01-07  Jim Meyering  <jim@meyering.net>
91503
91504         * lib/full-write.c: Rework so that it may serve to define full_read,
91505         too.
91506         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91507
91508 2003-01-07  Bruno Haible  <bruno@clisp.org>
91509
91510         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91511         <inttypes.h>.
91512         * lib/xstrtol.h: Likewise.
91513         * lib/xstrtoimax.c: Likewise.
91514         * lib/xstrtoumax.c: Likewise.
91515         * lib/human.h: Likewise.
91516
91517         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91518         on systems that have <inttypes.h> but not <stdint.h>.
91519
91520 2003-01-07  Bruno Haible  <bruno@clisp.org>
91521
91522         * MODULES.html.sh: Add copyright notice.
91523         (missed_files): Omit CVS directory entries.
91524         (func_module): Make it work with sed-3.02.
91525         * MODULES.txt: Remove file.
91526
91527 2003-01-06  Jim Meyering  <jim@meyering.net>
91528
91529         * lib/version-etc.c: Update year in translatable copyright string.
91530
91531 2003-01-03  Karl Berry  <karl@gnu.org>
91532
91533         * config/config.{guess,sub}: update from prep.
91534
91535 2003-01-02  Karl Berry  <karl@gnu.org>
91536
91537         * doc/COPYING.DOC: belatedly updated to 1.2.
91538
91539 2003-01-01  Karl Berry  <karl@gnu.org>
91540
91541         * gnulib-tool (func_verify_module): report module name $module in
91542         error message, not $1.
91543         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91544         be created, only if it doesn't exist.
91545         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91546
91547 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91548
91549         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91550
91551 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91552
91553         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91554         memcmp if strcoll doesn't work.
91555
91556 2002-12-31  Bruno Haible  <bruno@clisp.org>
91557
91558         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91559         nonempty.
91560
91561 2002-12-31  Bruno Haible  <bruno@clisp.org>
91562
91563         * lib/memcoll.c (STRCOLL): New macro.
91564         (memcoll): Use it.
91565
91566 2002-12-31  Bruno Haible  <bruno@clisp.org>
91567
91568         * lib/localcharset.h: New file.
91569         * lib/localcharset.c: Include it.
91570         * lib/unicodeio.c: Likewise.
91571
91572 2002-12-31  Bruno Haible  <bruno@clisp.org>
91573
91574         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91575         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91576
91577 2002-12-31  Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/getline.h: Include <stddef.h>, for size_t.
91580
91581         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91582         * lib/unicodeio.c: Don't include <stddef.h>.
91583
91584 2002-12-31  Bruno Haible  <bruno@clisp.org>
91585
91586         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91587         HAVE_TM_ZONE.
91588
91589 2002-12-24  Karl Berry  <karl@gnu.org>
91590
91591         * config/config.guess: update from prep.
91592
91593 2002-12-24  Bruno Haible  <bruno@clisp.org>
91594
91595         General infrasructure.
91596         * m4/README: Rewritten.
91597         * m4/onceonly.m4: New file.
91598         * m4/onceonly_2_57.m4: New file.
91599
91600         Module atexit.
91601         * m4/atexit.m4: New file.
91602
91603         Module strtod.
91604         * m4/strtod.m4: New file.
91605
91606         Module strtol.
91607         * m4/strtol.m4: New file.
91608
91609         Module strtoul.
91610         * m4/strtoul.m4: New file.
91611
91612         Module memchr.
91613         * m4/memchr.m4: New file.
91614
91615         Module memcmp.
91616         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91617         (jm_FUNC_MEMCMP): Invoke it.
91618
91619         Module memcpy.
91620         * m4/memcpy.m4: New file.
91621
91622         Module memmove.
91623         * m4/memmove.m4: New file.
91624
91625         Module memset.
91626         * m4/memset.m4: New file.
91627
91628         Module strcspn.
91629         * m4/strcspn.m4: New file.
91630
91631         Module strpbrk.
91632         * m4/strpbrk.m4: New file.
91633
91634         Module strstr.
91635         * m4/strstr.m4: New file.
91636
91637         Module strerror.
91638         * m4/strerror.m4: New file.
91639
91640         Module mktime.
91641         * m4/mktime.m4: Renamed from jm-mktime.m4.
91642         (gl_PREREQ_MKTIME): New macro.
91643         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91644
91645         Module malloc.
91646         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91647         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91648         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91649
91650         Module realloc.
91651         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91652         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91653         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91654
91655         Module strftime.
91656         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91658         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91659         gl_TM_GMTOFF.
91660         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91661
91662         Module xalloc.
91663         * m4/xalloc.m4: New file.
91664
91665         Module alloca.
91666         * m4/alloca.m4: New file.
91667
91668         Module putenv.
91669         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91670         (jm_FUNC_PUTENV): Invoke it.
91671
91672         Module setenv.
91673         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91674         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91675         when invoked twice.
91676         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91677         gt_FUNC_SETENV.
91678
91679         Module memrchr.
91680         * m4/memrchr.m4: New file.
91681
91682         Module stpcpy.
91683         * m4/stpcpy.m4: New file.
91684
91685         Module strcase.
91686         * m4/strcase.m4: New file.
91687
91688         Module strdup.
91689         * m4/strdup.m4: New file.
91690
91691         Module strnlen.
91692         * m4/strnlen.m4: New file.
91693
91694         Module strndup.
91695         * m4/strndup.m4: New file.
91696
91697         Module xstrtod.
91698         * m4/xstrtod.m4: New file.
91699
91700         Module xstrtol.
91701         * m4/xstrtol.m4: New file.
91702
91703         Module getdate.
91704         * m4/getdate.m4: New file.
91705
91706         Module unlocked-io.
91707         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91708         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91709         * m4/jm-glibc-io.m4n: Remove file.
91710
91711         Module long-options.
91712         * m4/long-options.m4: New file.
91713
91714         Module md5.
91715         * m4/md5.m4: New file.
91716
91717         Module sha.
91718         * m4/sha.m4: New file.
91719
91720         Module getstr.
91721         * m4/getstr.m4: New file.
91722
91723         Module getline.
91724         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91725         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91726         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91727         simply getline. Infoke gl_PREREQ_GETLINE.
91728
91729         Module obstack.
91730         * m4/obstack.m4: New file.
91731
91732         Module hash.
91733         * m4/hash.m4: New file.
91734
91735         Module readtokens.
91736         * m4/readtokens.m4: New file.
91737
91738         Module strverscmp.
91739         * m4/strverscmp.m4: New file.
91740
91741         Module stdbool.
91742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91743         OSF/1.
91744
91745         Module strtoll.
91746         * m4/strtoll.m4: New file.
91747
91748         Module strtoull.
91749         * m4/strtoull.m4: New file.
91750
91751         Module strtoimax.
91752         * m4/strtoimax.m4: New file.
91753
91754         Module strtoumax.
91755         * m4/strtoumax.m4: New file.
91756
91757         Module xstrtoimax.
91758         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91759         jm_AC_PREREQ_XSTRTOIMAX.
91760         Moved the strtol prerequisites to strtol.m4.
91761         Moved the strtoll prerequisites to strtoll.m4.
91762         Moved the strtoimax prerequisites to strtoimax.m4.
91763
91764         Module xstrtoumax.
91765         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91766         jm_AC_PREREQ_XSTRTOUMAX.
91767         Moved the strtoul prerequisites to strtoul.m4.
91768         Moved the strtoull prerequisites to strtoull.m4.
91769         Moved the strtoumax prerequisites to strtoumax.m4.
91770
91771         Module chown.
91772         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91773         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91774
91775         Module dup2.
91776         * m4/dup2.m4: New file.
91777
91778         Module ftruncate.
91779         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91780         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91781
91782         Module getgroups.
91783         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91784         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91785
91786         Module gettimeofday.
91787         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91788         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91789         gl_PREREQ_GETTIMEOFDAY.
91790
91791         Module mkdir.
91792         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91793         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91794
91795         Module mkstemp.
91796         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91797         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91798         jm_AC_TYPE_UINTMAX_T.
91799         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91800
91801         Module stat.
91802         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91803         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91804
91805         Module lstat.
91806         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91807         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91808
91809         Module timespec.
91810         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91811         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91812         * m4/st_mtim.m4: Indentation.
91813
91814         Module nanosleep.
91815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91816         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91817         gl_PREREQ_NANOSLEEP.
91818
91819         Module regex.
91820         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91821         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91822         (gl_REGEX): New macro.
91823
91824         Module rename.
91825         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91826         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91827
91828         Module rmdir.
91829         * m4/rmdir.m4: New file.
91830
91831         Module utime.
91832         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91833         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91834         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91835
91836         Module dirname.
91837         * m4/dirname.m4: New file.
91838
91839         Module getopt.
91840         * m4/getopt.m4: New file.
91841
91842         Module unistd-safer.
91843         * m4/unistd-safer.m4: New file.
91844
91845         Module fnmatch.
91846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91847         declaration.
91848         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91849         (gl_FUNC_FNMATCH_POSIX): New macro.
91850         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91851         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91852         simply fnmatch.
91853
91854         Module exclude.
91855         * m4/exclude.m4: New file.
91856
91857         Module human.
91858         * m4/human.m4: New file.
91859
91860         Module acl.
91861         * m4/acl.m4: Nop.
91862
91863         Module backupfile.
91864         * m4/backupfile.m4: New file.
91865         * m4/d-ino.m4: Indentation.
91866
91867         Module fsusage.
91868         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91869         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91870         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91871
91872         Module dirfd.
91873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91874         requirements.
91875
91876         Module euidaccess.
91877         * m4/euidaccess.m4: New file.
91878
91879         Module file-type.
91880         * m4/file-type.m4: New file.
91881
91882         Module fileblocks.
91883         * m4/fileblocks.m4: New file.
91884
91885         Module filemode.
91886         * m4/filemode.m4: New file.
91887
91888         Module isdir.
91889         * m4/isdir.m4: New file.
91890
91891         Module lchown.
91892         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91893         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91894
91895         Module makepath.
91896         * m4/makepath.m4: New file.
91897
91898         Module modechange.
91899         * m4/modechange.m4: New file.
91900
91901         Module mountlist.
91902         * m4/mountlist.m4: New file.
91903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91904         Indentation.
91905
91906         Module path-concat.
91907         * m4/path-concat.m4: New file.
91908
91909         Module pathmax.
91910         * m4/pathmax.m4: New file.
91911
91912         Module same.
91913         * m4/same.m4: New file.
91914
91915         Module save-cwd.
91916         * m4/save-cwd.m4: New file.
91917
91918         Module savedir.
91919         * m4/savedir.m4: New file.
91920
91921         Module xgetcwd.
91922         * m4/xgetcwd.m4: New file.
91923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91924
91925         Module xreadlink.
91926         * m4/xreadlink.m4: New file.
91927
91928         Module safe-read.
91929         * m4/safe-read.m4: New file.
91930
91931         Module safe-write.
91932         * m4/safe-write.m4: New file.
91933
91934         Module closeout.
91935         * m4/closeout.m4: New file.
91936
91937         Module stdio-safer.
91938         * m4/stdio-safer.m4: New file.
91939
91940         Module getpass.
91941         * m4/getpass.m4: New file.
91942
91943         Module getugroups.
91944         * m4/getugroups.m4: New file.
91945
91946         Module group-member.
91947         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91948         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91949
91950         Module idcache.
91951         * m4/idcache.m4: New file.
91952
91953         Module userspec.
91954         * m4/userspec.m4: New file.
91955
91956         Module gettime.
91957         * m4/clock_time.m4: New file.
91958         * m4/gettime.m4: New file.
91959
91960         Module settime.
91961         * m4/settime.m4: New file.
91962
91963         Module posixtm.
91964         * m4/posixtm.m4: New file.
91965
91966         Module gethostname.
91967         * m4/gethostname.m4: New file.
91968
91969         Module canon-host.
91970         * m4/canon-host.m4: New file.
91971
91972         Module gettext.
91973         * m4/codeset.m4: New file, from gettext-0.11.5.
91974         * m4/gettext.m4: New file, from gettext-0.11.5.
91975         * m4/glibc21.m4: New file, from gettext-0.11.5.
91976         * m4/iconv.m4: New file, from gettext-0.11.5.
91977         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91978         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91979         * m4/inttypes.m4: New file, from gettext-0.11.5.
91980         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91981         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91982         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91983         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91984         * m4/lib-link.m4: New file, from gettext-0.11.5.
91985         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91986         * m4/progtest.m4: New file, from gettext-0.11.5.
91987         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91988         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91989         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91990
91991         Module localcharset.
91992         * m4/localcharset.m4: New file.
91993
91994         Module hard-locale.
91995         * m4/hard-locale.m4: New file.
91996
91997         Module mbswidth.
91998         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91999         onceonly macros.
92000         * m4/mbrtowc.m4: Add comment.
92001
92002         Module memcasecmp.
92003         * m4/memcasecmp.m4: New file.
92004
92005         Module memcoll.
92006         * m4/memcoll.m4: New file.
92007
92008         Module unicodeio.
92009         * m4/unicodeio.m4: New file.
92010
92011         Module rpmatch.
92012         * m4/rpmatch.m4: New file.
92013
92014         Module yesno.
92015         * m4/yesno.m4: New file.
92016
92017         Module exitfail.
92018         * m4/exitfail.m4: New file.
92019
92020         Module c-stack.
92021         * m4/c-stack.m4 (gl_C_STACK): New macro.
92022         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92023
92024         Module error.
92025         * m4/error.m4 (gl_ERROR): New macro.
92026         (jm_PREREQ_ERROR): Use onceonly macros.
92027
92028         Module fatal.
92029         * m4/fatal.m4: New file.
92030
92031         Module getloadavg.
92032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92033         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92034
92035         Module getpagesize.
92036         * m4/getpagesize.m4: New file.
92037
92038         Module getusershell.
92039         * m4/getusershell.m4: New file.
92040
92041         Module physmem.
92042         * m4/physmem.m4: New file.
92043
92044         Module posixver.
92045         * m4/posixver.m4: New file.
92046
92047         Module quotearg.
92048         * m4/quotearg.m4: New file.
92049
92050         Module quote.
92051         * m4/quote.m4: New file.
92052
92053         Module readutmp.
92054         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92055
92056         Module sig2str.
92057         * m4/sig2str.m4: New file.
92058
92059         Other.
92060         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92061         ulonglong.m4.
92062         * m4/intmax_t.m4: New file.
92063         * m4/d-type.m4: Indentation.
92064         * m4/jm-macros.m4: Update.
92065         * m4/prereq.m4 (jm_PREREQ): Update.
92066         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92067         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92068         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92069         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92070         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92071         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92072         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92073         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92074         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92075         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92076         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92077         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92078         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92079         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92080         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92081         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92082         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92083         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92084         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92085
92086 2002-12-24  Bruno Haible  <bruno@clisp.org>
92087
92088         * MODULES.txt: Update according to m4/ changes.
92089
92090         Module gettext.
92091         * config.rpath: New file, from gettext-0.11.5.
92092
92093         * modules/*: New module descriptions.
92094         * gnulib-tool: New file.
92095         * MODULES.html.sh: New file.
92096
92097 2002-12-21  Karl Berry  <karl@gnu.org>
92098
92099         * doc/fdl.texi: update to version 1.2.
92100
92101 2002-12-19  Karl Berry  <karl@gnu.org>
92102
92103         * config/config.guess: update from prep.
92104
92105 2002-12-18  Bruno Haible  <bruno@clisp.org>
92106
92107         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92108         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92109
92110 2002-12-17  Bruno Haible  <bruno@clisp.org>
92111
92112         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92113         stdlib.h, string.h.
92114
92115 2002-12-17  Bruno Haible  <bruno@clisp.org>
92116
92117         * lib/canon-host.c (strdup): Remove unused declaration.
92118
92119         * lib/fsusage.c: Include full_read.h.
92120         (get_fs_usage): Use full_read instead of safe_read.
92121
92122         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92123
92124 2002-12-12  Karl Berry  <karl@gnu.org>
92125
92126         * config/config.guess: update from prep.
92127
92128 2002-12-11  Bruno Haible  <bruno@clisp.org>
92129
92130         * m4/setenv.m4: New file, from gettext-0.11.5.
92131
92132 2002-12-11  Bruno Haible  <bruno@clisp.org>
92133
92134         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92135         not unsetenv().
92136         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92137         modifications:
92138
92139         2002-12-11  Bruno Haible  <bruno@clisp.org>
92140
92141                 * setenv.c (alloca): Fall back to malloc.
92142                 (freea): New macro.
92143                 (setenv): Use freea() to free memory allocated with alloca().
92144
92145         2002-11-13  Bruno Haible  <bruno@clisp.org>
92146
92147                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92148                 function declarations.
92149                 * unsetenv.c (unsetenv): Likewise.
92150
92151         2002-03-04  Bruno Haible  <bruno@clisp.org>
92152
92153                 Portability to AIX 4.3.3.
92154                 * unsetenv.c: New file, extracted from setenv.c.
92155                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92156
92157         2001-12-20  Bruno Haible  <bruno@clisp.org>
92158
92159                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92160                 use malloc instead. For SunOS 4.
92161
92162         2001-12-11  Bruno Haible  <bruno@clisp.org>
92163
92164                 * setenv.c: Declare alloca.
92165                 (compar_fn_t): New typedef.
92166                 (KNOWN_VALUE, STORE_VALUE): Use it.
92167
92168         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92169         setenv.h.
92170
92171 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92172
92173         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92174         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92175         Choose values that are less likely to collide with system fnmatch
92176         options.
92177         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92178         defined (e.g., a pure POSIX system).
92179         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92180         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92181
92182 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92183
92184         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92185         a pain in practice to deal with generated m4 files.  This change
92186         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92187
92188         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92189         and jm-glibc-io.m4, as they are no longer a special case.
92190         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92191         kludge and the auto-generation stuff.  Check only whether the
92192         functions are declared, not whether they exist, since older hosts
92193         that don't declare the functions can't use the optimization anyway.
92194
92195 2002-12-06  Jim Meyering  <jim@meyering.net>
92196
92197         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92198
92199         Merge in changes from libc's misc/error.c, in preparation
92200         for the merge of gnulib's changes back into libc.
92201
92202         * lib/error.c (_): Define only if not already defined.
92203         Move definition to follow all #include directives.
92204         Include unlocked-io.h only if !_LIBC.
92205         [_LIBC]: Include <libio/libioP.h>.
92206         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92207         (fflush): Tweak definition to use INTUSE.
92208         (putc): Define.
92209
92210 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92211
92212         * lib/alloca.c [defined emacs]: Include "lisp.h".
92213         (xalloc_die) [defined emacs]: New macro.
92214         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92215         [! defined emacs]: Include <xalloc.h>.
92216         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92217         (pointer): Typedef to POINTER_TYPE *.
92218         (malloc): Remove decl; we now always use xmalloc.
92219         (alloca): Use old-style definition, since Emacs needs this.
92220         Check for arithmetic overflow when computing combined size.
92221
92222 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92223
92224         Do not generate unlocked-io.h automatically, since it's easier to
92225         maintain it by hand.
92226
92227         * lib/unlocked-io.h: New file, from GNU diffutils,
92228         but with proper copyright notice and attribution.
92229         * lib/gen-uio: Remove.
92230         * lib/Makefile.am: Add copyright notice.
92231         (libfetish_a_SOURCES): Add unlocked-io.h.
92232         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92233         (DISTCLEANFILES, io_functions): Remove macros.
92234         (EXTRA_DIST): Remove gen_uio.
92235         (unlocked-io.h): Remove rule.
92236
92237 2002-12-04  Jim Meyering  <jim@meyering.net>
92238
92239         Reflect the fact that stat.c and lstat.c are no longer generated.
92240         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92241         (DISTCLEANFILES): Likewise.
92242         (EXTRA_DIST): Likewise.
92243         (all_local): Don't depend on stat.c or lstat.c.
92244         (stat.c, lstat.c): Remove rules.
92245         (EXTRA_DIST): Remove xstat.in.
92246
92247         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92248         * lib/stat.c: New file.  Contents mostly from xstat.in.
92249         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92250         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92251
92252         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92253         too.
92254         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92255
92256 2002-12-03  Jim Meyering  <jim@meyering.net>
92257
92258         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92259         but not semantics, to minimize the differences between these two files.
92260         (safe_read): Change comment to mention SAFE_READ_ERROR.
92261
92262         * lib/safe-read.c (IS_EINTR): Define.
92263         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92264
92265 2002-12-02  Jim Meyering  <jim@meyering.net>
92266
92267         * lib/safe-read.c (EINTR): Define.
92268         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92269         (INT_MAX): Provide fallback.
92270         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92271
92272         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92273
92274 2002-12-02  Bruno Haible  <bruno@clisp.org>
92275
92276         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92277         Define, taken from safe-read.c.
92278         (INT_MAX): Provide fallback.
92279         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92280         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92281
92282         * lib/safe-read.c (EINTR): Remove definition.
92283         (safe_read): Don't use EINTR if it is absent.
92284
92285 2002-12-01  Jim Meyering  <jim@meyering.net>
92286
92287         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92288         zero.
92289         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92290
92291 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92292
92293         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92294         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92295         with `if (! (value < limit)) abort ();', for readability.
92296
92297 2002-11-26  Karl Berry  <karl@gnu.org>
92298
92299         * lib/strdup.c: copy from libc again, with jim's ok.
92300         * lib/.cppi-disable: re-add strdup.c
92301
92302 2002-11-25  Karl Berry  <karl@gnu.org>
92303
92304         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92305         instead of "strtol.c".
92306
92307 2002-11-25  Karl Berry  <karl@gnu.org>
92308
92309         * config/install-sh: update from automake for variable quoting, $0 in
92310         error msgs, etc.
92311
92312         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92313         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92314         entry.
92315
92316 2002-11-25  Jim Meyering  <jim@meyering.net>
92317
92318         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92319
92320 2002-11-24  Karl Berry  <karl@gnu.org>
92321
92322         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92323         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92324
92325 2002-11-24  Jim Meyering  <jim@meyering.net>
92326
92327         Update from coreutils:
92328
92329         * lib/mktime.c: Merge in changes from libc.
92330
92331         Avoid a link-time failure on some Linux systems.
92332         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92333         (otherwise).
92334         (__mon_yday): Declare with the STATIC attribute.
92335         (__mktime_internal): Likewise.
92336         Based on a report from Greg Schafer.
92337
92338 2002-11-23  Jim Meyering  <jim@meyering.net>
92339
92340         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92341         Use `unsigned', not `int', as type of index.
92342
92343         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92344
92345         * lib/fsusage.c: Remove unneeded parentheses around operands of
92346         `defined'.
92347
92348 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92349
92350         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92351         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92352         so that we can be included first.
92353         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92354         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92355         No need to include stddef.h or sys/types.h any more.
92356         Surround local include files with "", not "<>".
92357         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92358         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92359         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92360         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92361         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92362         (ISPRINT): Remove; no longer needed now that we assume C89.
92363
92364         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92365         Preserve errno.
92366
92367         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92368         quotearg_char): Use SIZE_MAX rather than
92369         (size_t) -1 when we are talking about "infinity".
92370
92371         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92372
92373 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92376         hint that one should use `if (! x) abort ();' rather than `assert
92377         (x);', and anyway it's one less thing to worry about configuring.
92378         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92379         hash_rehash, hash_insert): Use abort rather than assert.
92380
92381 2002-11-22  Bruno Haible  <bruno@clisp.org>
92382
92383         * lib/safe-read.h: Assume C89. Add comments.
92384         (safe_read): Change return type to size_t.
92385         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92386         byte counts > SSIZE_MAX correctly.
92387         * lib/safe-write.h: New file.
92388         * lib/safe-write.c: New file.
92389         * lib/full-read.h: New file.
92390         * lib/full-read.c: New file.
92391         * lib/full-write.h: Assume C89. Add comments.
92392         * lib/full-write.c: Include safe-write.h.
92393         (full_write): Rewritten to use safe_write.
92394         Suggested by Jim Meyering and Paul Eggert.
92395
92396 2002-11-21  Jim Meyering  <jim@meyering.net>
92397
92398         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92399
92400         Merge in changes from the coreutils.
92401
92402         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92403         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92404         <stdint.h>.
92405         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92406         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92407         int.  Work more efficiently if X is the same width as uintmax_t.
92408         Do not compare X to -1, to avoid bogus compiler warning.
92409         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92410         Don't assume that f_frsize and f_bsize are the same type.
92411
92412         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92413         warning on FreeBSD.
92414
92415         * lib/makepath.c (make_path): Restore umask *before* creating the final
92416         component.
92417         (make_path): Minor reformatting.
92418
92419         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92420         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92421         HAVE_MALLOC/HAVE_REALLOC.
92422
92423         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92424         dummy ones.  At least on GNU/Linux systems, `auto' means something
92425         else.
92426         From Michael Stone.
92427
92428 2002-11-21  Bruno Haible  <bruno@clisp.org>
92429
92430         Remove case insensitive option matching.
92431         * lib/argmatch.h (argcasematch): Remove declaration.
92432         (ARGCASEMATCH): Remove macro.
92433         (__xargmatch_internal): Remove case_sensitive argument.
92434         (XARGMATCH): Update.
92435         (XARGCASEMATCH): Remove macro.
92436         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92437         case_sensitive argument.
92438         (argcasematch): Remove function.
92439         (__xargmatch_internal): Remove case_sensitive argument.
92440         (main): Use XARGMATCH instead of XARGCASEMATCH.
92441
92442         * lib/xmalloc.c: Change compile-time error message. Add comment about
92443         required autoconf version.
92444
92445 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92446
92447         Merge argmatch cleanups from Bison.  Assume C89.
92448
92449         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92450         Include stdlib.h, for EXIT_FAILURE.
92451         Always include <string.h>, since we assume C89.
92452         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92453         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92454         Include <stddef.h> instead, since it's all we need for size_t.
92455         (PARAMS): Remove.  All uses removed.
92456         (ARRAY_CARDINALITY): Do not bother to #undef.
92457         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92458         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92459         Remove unnecessary parentheses.
92460         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92461         Insert necessary parentheses.
92462         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92463         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92464
92465 2002-11-19  Bruno Haible  <bruno@clisp.org>
92466
92467         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92468         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92469
92470         * lib/mbswidth.h (PARAMS): Remove macro.
92471         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92472         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92473
92474         * lib/gcd.h (PARAMS): Remove macro.
92475         (gcd): Use ANSI C function declarations.
92476         * lib/gcd.c (gcd): Likewise.
92477
92478 2002-11-15  Bruno Haible  <bruno@clisp.org>
92479
92480         * lib/strcspn.c: Include <stddef.h>.
92481         (strcspn): Use ANSI C function declaration. Change return type to
92482         size_t. Use NULL.
92483         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92484         (strpbrk): Use NULL.
92485         * lib/strpbrk.h (PARAMS): Remove macro.
92486         (strpbrk): Use ANSI C function declaration.
92487         * lib/strstr.c: Don't include <sys/types.h>.
92488         * lib/strstr.h (PARAMS): Remove macro.
92489         (strstr): Use ANSI C function declarations.
92490
92491 2002-11-14  Karl Berry  <karl@gnu.org>
92492
92493         * config/mkinstalldirs: `do' on separate line, instead of
92494         `for var; do'.
92495
92496 2002-11-06  Bruno Haible  <bruno@clisp.org>
92497
92498         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92499         * lib/gcd.c (gcd): Likewise.
92500
92501 2002-11-05  Bruno Haible  <bruno@clisp.org>
92502
92503         * lib/gcd.h: New file, from gettext-0.11.5.
92504         * lib/gcd.c: New file, from gettext-0.11.5.
92505
92506 2002-11-05  Bruno Haible  <bruno@clisp.org>
92507
92508         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92509         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92510         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92511         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92512
92513         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92514         <libintl.h>.
92515         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92516         <libintl.h>.
92517
92518         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92519         * lib/human.c: Include gettext.h instead of <libintl.h>.
92520         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92521         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92522         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92523         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92524         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92525         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92526         (textdomain): Remove definition.
92527         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92528
92529         * lib/long-options.c: Remove include of <libintl.h> and definition of
92530         _.
92531         * lib/same.c: Remove include of <libintl.h> and definition of _.
92532
92533 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92534
92535         * lib/config.charset: A few additions for Solaris.
92536
92537 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92538
92539         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92540         * lib/localcharset.c (locale_charset): Declare as extern "C".
92541
92542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92543
92544         * lib/config.charset: msdos in uk_UA uses CP1125.
92545
92546 2002-11-04  Bruno Haible  <bruno@clisp.org>
92547
92548         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92549         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92550         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92551         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92552         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92553
92554 2002-11-04  Bruno Haible  <bruno@clisp.org>
92555
92556         * lib/localcharset.c (locale_charset): Don't return an empty string.
92557
92558 2002-11-04  Bruno Haible  <bruno@clisp.org>
92559
92560         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92561         aliases.
92562
92563 2002-11-04  Bruno Haible  <bruno@clisp.org>
92564
92565         * lib/config.charset: Update for newest glibc. Add canonical names
92566         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92567
92568 2002-11-04  Bruno Haible  <bruno@clisp.org>
92569
92570         * lib/config.charset: Add support for NetBSD.
92571
92572 2002-11-04  Bruno Haible  <bruno@clisp.org>
92573
92574         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92575
92576 2002-11-01  Bruno Haible  <bruno@clisp.org>
92577
92578         * configure.in: Add AC_CONFIG_AUX_DIR call.
92579         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92580         test/Makefile.
92581         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92582
92583 2002-09-28  Karl Berry  <karl@gnu.org>
92584
92585         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92586         installed automake until the next release, since changes have been
92587         made.
92588
92589 2002-09-25  Karl Berry  <karl@gnu.org>
92590
92591         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92592         * lib/getopt*: copy from libc/posix.
92593         * lib/gettext.h: copy from gettext.
92594         * lib/.cppi-disable: add strdup.c, gettext.h.
92595
92596 2002-09-25  Karl Berry  <karl@gnu.org>
92597
92598         * config/srclist.txt: enable gettext.h check.
92599         * config/config.{guess,sub}: update from prep.
92600         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92601                 from automake 1.6.3.
92602         See srclist*.
92603
92604 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92605
92606         * regex.c (PATFETCH): Remove the translating fetch.
92607         (PATFETCH_RAW): Rename to PATFETCH.
92608         (set_image_of_range): New fun.
92609         (SET_RANGE_TABLE_WORK_AREA): Use it.
92610         (regex_compile): Don't translate the pattern chars so eagerly.
92611         Only do it when inserting an `exactn' bytecode or when handling
92612         a char-range.
92613         (mutually_exclusive_p): Avoid empty statement.
92614
92615 2002-07-06  Jim Meyering  <meyering@lucent.com>
92616
92617         * m4/README: Don't mention Makefile.am.in.
92618         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92619
92620 2002-07-01  Jim Meyering  <meyering@lucent.com>
92621
92622         * lib/c-stack.c: Include sys/time.h.
92623         From Volker Borchert.
92624
92625 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92626
92627         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92628
92629 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92630
92631         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92632         New macro.  Use it uniformly instead of
92633         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92634         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92635         reported by Vin Shelton.
92636
92637 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92638
92639         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92640         Do not assume SA_SIGINFO behavior.
92641         Bug reported by Jim Meyering on NetBSD 1.5.2.
92642
92643 2002-06-22  Jim Meyering  <meyering@lucent.com>
92644
92645         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92647
92648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92649         now that configure.ac uses AC_GNU_SOURCE.
92650         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92651         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92652
92653         Update to latest tools.  Suggestions from Paul Eggert.
92654         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92655         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92656         * m4/fnmatch.m4: Likewise.
92657         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92658         to AC_HEADER_STDBOOL
92659
92660 2002-06-22  Jim Meyering  <meyering@lucent.com>
92661
92662         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92663         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92664
92665 2002-06-22  Jim Meyering  <meyering@lucent.com>
92666
92667         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92668
92669         * lib/exitfail.c, exitfail.h: Likewise.
92670         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92671
92672         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92673         of fnmatch.h.
92674         (EXTRA_DIST): Add fnmatch_loop.c.
92675         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92676
92677         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92678         * lib/fnmatch.c: Update from diffutils-2.8.2.
92679         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92680         * lib/fnmatch.h: Remove file.
92681
92682 2002-06-21  Jim Meyering  <meyering@lucent.com>
92683
92684         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92685         * m4/mbrtowc.m4: Likewise.
92686
92687         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92688         * m4/mbswidth.m4: Reflect name change:
92689         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92691
92692         * m4/lib-link.m4: Update from gettext-0.11.2.
92693         * m4/gettext.m4: Likewise.
92694
92695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92696         From Alfred M. Szmidt.
92697
92698 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92699
92700         * lib/file-type.h: Report an error if neither S_ISREG nor
92701         S_IFREG is defined, instead of using a test specific to glibc
92702         2.2.  This should be safe, since POSIX requires S_ISREG and
92703         Unix Version 7 had S_IFREG.  We don't need to check for
92704         <sys/types.h> since we don't use any symbols that it defines.
92705
92706 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92707
92708         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92709         $@-t, so that each temporary file name is unique and valid in the first
92710         8 characters, for operation under DOS.
92711
92712 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92713
92714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92715
92716 2002-06-15  Jim Meyering  <meyering@lucent.com>
92717
92718         Work even with DJGPP 2.03, which lacks support for symlinks.
92719         From Richard Dawe.
92720         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92721         is defined.
92722         * lib/lchown.c (S_ISLNK): Likewise.
92723
92724 2002-06-15  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92727         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92728         have been included before this file.
92729
92730 2002-06-14  Jim Meyering  <meyering@lucent.com>
92731
92732         * lib/file-type.h: Use the version from diffutils-2.8.2.
92733         * lib/file-type.c: Likewise.
92734
92735 2002-06-07  Jim Meyering  <meyering@lucent.com>
92736
92737         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92738         They're needed at least for NetBSD 1.5.2.
92739         ($statxfs_includes): Include those same headers.
92740         ($statxfs_includes): Include sys/vfs.h if available.
92741         ($statxfs_includes): Likewise for sys/statvfs.h.
92742         Check for the following members in both structs statfs and statvfs:
92743         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92744
92745 2002-06-01  Jim Meyering  <meyering@lucent.com>
92746
92747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92748         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92749
92750 2002-05-28  Jim Meyering  <meyering@lucent.com>
92751
92752         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92753         Reported by Volker Borchert.
92754
92755 2002-05-27  Jim Meyering  <meyering@lucent.com>
92756
92757         Fix a problem seen only on nonconforming systems whereby ls.c's
92758         use of localtime, and then of gettimeofday would cause trouble:
92759         the localtime call used to initialize rpl_gettimeofday's save
92760         mechanism would clobber ls's current local time information so
92761         that in any long listing the first file would always be listed
92762         with date 1970-01-01.  Analysis by Volker Borchert.
92763
92764         * lib/gettimeofday.c (localtime): Undefine.
92765         (rpl_localtime): New function.
92766
92767 2002-05-27  Jim Meyering  <meyering@lucent.com>
92768
92769         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92770         localtime.
92771
92772         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92773         use the replacement function; it wouldn't resolve at link time.
92774         Reported by Volker Borchert.
92775
92776 2002-05-22  Jim Meyering  <meyering@lucent.com>
92777
92778         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92779         file-type.h.
92780         * lib/file-type.h: New file.
92781         * lib/file-type.c (file_type): New file/function.  Extracted from
92782         diffutils.
92783
92784 2002-04-30  Jim Meyering  <meyering@lucent.com>
92785
92786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92787
92788 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92789
92790         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92791
92792 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92793
92794         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92795         Do not check for alloca.h (no longer used) or stdbool.h (was never
92796         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92797
92798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92799
92800         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92801
92802 2002-04-29  Jim Meyering  <meyering@lucent.com>
92803
92804         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92805         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92806         Use AC_FUNC_STRNLEN here instead.
92807
92808         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92809         With autoconf-2.53a, it's part of AC_PROG_CC.
92810
92811 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92812
92813         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92815
92816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92817
92818         * lib/sig2str.h, lib/sig2str.c: New files.
92819         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92820
92821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92822
92823         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92824         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92825         of 127, since 64 is the largest conceivable number for ancient
92826         nonstandard hosts.
92827         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92828
92829 2002-04-28  Jim Meyering  <meyering@lucent.com>
92830
92831         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92832
92833 2002-04-24  Jim Meyering  <meyering@lucent.com>
92834
92835         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92836         (jm_PREREQ): Use it.
92837
92838         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92839         mach/mach.h fcntl.h.
92840         Check for this function: setlocale.
92841
92842 2002-04-24  Jim Meyering  <meyering@lucent.com>
92843
92844         * lib/gettext.h: New file, from Gettext.
92845         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92846         (libfetish_a_SOURCES): Add gettext.h.
92847
92848 2002-04-16  Jim Meyering  <meyering@lucent.com>
92849
92850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92851         ut_pid, ut_id, ut_exit.
92852
92853 2002-04-16  Jim Meyering  <meyering@lucent.com>
92854
92855         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92856         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92857         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92858
92859 2002-04-12  Jim Meyering  <meyering@lucent.com>
92860
92861         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92862         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92863         existence of the getmntinfo function.  Needed for Darwin 5.3.
92864
92865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92866         This is necessary at least on Darwin 5.3.
92867
92868         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92869         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92870         strnlen.o in the library, and that makes some versions of ranlib
92871         object.
92872
92873 2002-04-12  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92876
92877 2002-04-09  Jim Meyering  <meyering@lucent.com>
92878
92879         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92880         to be more precise.  Rather than saying we're checking whether the
92881         function `works', say what we're testing.
92882         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92883         Reported by Bruno Haible.
92884
92885 2002-03-10  Jim Meyering  <meyering@lucent.com>
92886
92887         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92888         Suggestion from Santiago Vila.
92889
92890 2002-03-08  Jim Meyering  <meyering@lucent.com>
92891
92892         * lib/rename.c: Mention that this wrapper is needed also on
92893         mips-dec-ultrix4.4 systems.
92894
92895 2002-03-02  Jim Meyering  <meyering@lucent.com>
92896
92897         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92898         not HAVE_CLOCK_SETTIME.
92899
92900 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92901
92902         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92903         Check for clock_settime.
92904
92905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92906
92907         * lib/nanosleep.h: Rename to....
92908         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92909
92910         * lib/gettime.c: New file.
92911         * lib/settime.c: New file.
92912         * lib/stime.c: Remove.
92913
92914         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92915         timespec.h.  Remove nanosleep.h.
92916
92917 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92918
92919         * m4/acl.m4: New file.
92920         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92921         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92922
92923 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92924
92925         * lib/acl.c, lib/acl.h: New files.
92926         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92927
92928 2002-02-24  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92931         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92932         cause trouble.  Reported by Nelson Beebe.
92933
92934 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92935
92936         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92937         compilers that don't know that xalloc_die never returns.
92938
92939 2002-02-20  Jim Meyering  <meyering@lucent.com>
92940
92941         * lib/getdate.c: Regenerate using bison-1.33.
92942
92943 2002-02-17  Jim Meyering  <meyering@lucent.com>
92944
92945         * config/config.guess (main): Don't use `head -1'; it's no longer
92946         portable. Use `sed 1q' instead.
92947
92948 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92949
92950         * m4/codeset.m4: Upgrade to gettext-0.11.
92951         * m4/gettext.m4: Upgrade to gettext-0.11.
92952         * m4/glibc21.m4: Upgrade to gettext-0.11.
92953         * m4/iconv.m4: Upgrade to gettext-0.11.
92954         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92955         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92956         * m4/lib-ld.m4: New file, from gettext-0.11.
92957         * m4/lib-link.m4: New file, from gettext-0.11.
92958         * m4/lib-prefix.m4: New file, from gettext-0.11.
92959         * m4/progtest.m4: Upgrade to gettext-0.11.
92960
92961 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92962
92963         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92964         (jm_PREREQ): Use it.
92965
92966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92967
92968         * lib/posixver.c, lib/posixver.h: New files.
92969         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92970
92971 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92972             Bruno Haible  <bruno@clisp.org>
92973
92974         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92975         (fwrite_success_callback): New declaration.
92976         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92977         print_unicode_char. Call failure callback instead of error.
92978         (fwrite_success_callback): New function.
92979         (exit_failure_callback): New function.
92980         (fallback_failure_callback): New function.
92981         (print_unicode_char): Call unicode_to_mb.
92982
92983 2002-01-26  Jim Meyering  <meyering@lucent.com>
92984
92985         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92986         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92987
92988 2002-01-26  Jim Meyering  <meyering@lucent.com>
92989
92990         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92991
92992 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92993
92994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92995
92996 2002-01-22  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92999         Otherwise, some versions of automake would omit the rule that makes
93000         Makefile from Makefile.in.
93001
93002 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93003
93004         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93005         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93006         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93007         (memcoll): Set errno to zero if there is no error.
93008
93009         * lib/quotearg.c (quotearg_buffer_restyled):
93010         Fix bug with quoting buffers containing NUL when backslashing escapes.
93011         This bug was exposed by the other changes in this patch.
93012         (quotearg_n_options): New arg ARGSIZE.
93013         All callers changed.
93014         (quoting_options_from_style): New function.
93015         (quotearg_n_style): Use it.
93016         (quotearg_n_style_mem): New function.
93017
93018         * lib/quotearg.h (quotearg_n_style_mem): New function.
93019
93020 2002-01-19  Jim Meyering  <meyering@lucent.com>
93021
93022         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93023         Remove useless quotes: DF_PROG="df".
93024         * m4/strnlen.m4: New file.
93025
93026 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93027
93028         * lib/backupfile.c (ISDIGIT): Comment fix.
93029         * lib/getdate.y (ISDIGIT): Likewise.
93030         * lib/posixtm.c (ISDIGIT, year): Likewise.
93031         * lib/strverscmp.c (ISDIGIT): Likewise.
93032         * lib/userspec.c (ISDIGIT): Likewise.
93033
93034 2002-01-16  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/getdate.y: Add three semicolons, each just before a closing
93037         brace. Bison (as of version 1.31) no longer papers over that mistake.
93038
93039 2002-01-05  Jim Meyering  <meyering@lucent.com>
93040
93041         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93042
93043 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93044
93045         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93046         not silently exit merely because the output buffer happens to
93047         have nothing pending.
93048
93049 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93050
93051         See the big note in ../ChangeLog.
93052         * lib/human.c (suffixes): Prefer K to k for 1024.
93053         (generate_suffix_backwards): New function.
93054         (human_readable_inexact): Use it.
93055         * lib/xstrtol.c (__xstrtol): If there is no number but there
93056         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93057         Accept 'K' as well as 'k'.
93058
93059 2001-12-15  Jim Meyering  <meyering@lucent.com>
93060
93061         * lib/regex.h (__restrict_arr): Update from libc.
93062
93063         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93064         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93065         (STREQ): Define.
93066
93067 2001-12-14  Jim Meyering  <meyering@lucent.com>
93068
93069         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93070         Suggestion from Bruno Haible.
93071
93072 2001-12-10  Jim Meyering  <meyering@lucent.com>
93073
93074         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93075         xrealloc, Instead, include "xalloc.h".
93076         (initbuffer): Don't cast xmalloc return value to char*.
93077         (readline): Reword comment.
93078         Don't cast xrealloc return value to char*
93079         Return NULL, not 0.
93080
93081 2001-12-09  Jim Meyering  <meyering@lucent.com>
93082
93083         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93084         about `signed and unsigned type in conditional expression'.
93085         * lib/posixtm.c (posix_time_parse): Likewise.
93086
93087         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93088
93089         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93090         to avoid a pedantic warning.
93091
93092         * lib/getstr.c: Don't include assert.h.
93093         (getstr): Remove warning-evoking assertions.
93094         Return -1 if offset parameter is out of bounds.
93095         Change the type of a local from int to size_t.
93096
93097         * lib/strftime.c (my_strftime_localtime_r): Include this function
93098         definition in the `#if ! HAVE_TM_GMTOFF' block.
93099
93100         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93101         Include xalloc.h instead.
93102
93103 2001-12-02  Jim Meyering  <meyering@lucent.com>
93104
93105         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93106         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93107         included.
93108
93109         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93110         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93111
93112 2001-11-30  Akim Demaille  <akim@epita.fr>
93113
93114         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93115         before being defined.
93116
93117 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93118
93119         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93120         First arg is int, not unsigned.
93121         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93122         (SIZE_MAX, UINT_MAX): New macros.
93123         (quotearg_n_options): Abort if N is negative.
93124         Avoid overflow check on hosts where size_t is 64 bits and int
93125         is 32 bits, as overflow is impossible there.
93126         Fix off-by-one typo that caused unnecessary reallocation.
93127
93128 2001-11-27  Jim Meyering  <meyering@lucent.com>
93129
93130         * lib/tempname.c: Merge with version from libc.
93131         * lib/regex.c: Likewise.
93132
93133         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93134         systems for which STDC_HEADERS is 0, it was not included, resulting in
93135         a warning about an integer-to-pointer conversion problem with getenv.
93136         Reported by Volker Borchert.
93137
93138 2001-11-26  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/gtod.h: Remove file.
93141         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93142         * lib/gettimeofday.c: Don't include gtod.h.
93143         (GTOD_init): Remove function.
93144         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93145         Suggestion from Volker Borchert.
93146
93147 2001-11-23  Jim Meyering  <meyering@lucent.com>
93148
93149         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93150         it.
93151         * lib/hash.c (struct hash_table): Define it here instead.
93152
93153 2001-11-22  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93156
93157 2001-11-20  Jim Meyering  <meyering@lucent.com>
93158
93159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93160         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93161
93162 2001-11-19  Jim Meyering  <meyering@lucent.com>
93163
93164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93165         directory.  Use "conftestXXXXXX" as the template.
93166         Suggestion from Paul Eggert.
93167
93168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93169         immediately, so the test doesn't mistakenly hit the max-open-files
93170         limit.
93171
93172 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93173
93174         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93175         (TEMPORARIES): New macro.
93176         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93177         removes an artificial limitation (e.g. HP-UX 10.20, where
93178         TMP_MAX is 17576).
93179
93180 2001-11-18  Jim Meyering  <meyering@lucent.com>
93181
93182         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93183
93184 2001-11-18  Jim Meyering  <meyering@lucent.com>
93185
93186         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93187         on SunOS 4.
93188
93189         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93190         files will be created before anything else.
93191
93192 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93193
93194         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93195         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93196
93197 2001-11-17  Jim Meyering  <meyering@lucent.com>
93198
93199         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93200         Prompted by a report from Bob Proulx.
93201
93202         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93203         Instead, require UTILS_FUNC_MKSTEMP.
93204
93205 2001-11-17  Jim Meyering  <meyering@lucent.com>
93206
93207         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93208         Now, that's done as part of AC_FUNC_STRTOD.
93209
93210 2001-11-17  Jim Meyering  <meyering@lucent.com>
93211
93212         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93213         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93214         rather than group writable.  Patch by Juan F. Codagnone.
93215
93216         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93217         xrealloc, Instead, include "xalloc.h".
93218
93219         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93220         Remove explicit declarations of xmalloc, xrealloc,
93221         and xstrdup.  Instead, include "xalloc.h".
93222
93223         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93224         unlocked-io.h.
93225         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93226         Likewise.
93227         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93228
93229         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93230         Reported by Padraig Brady.
93231
93232         * lib/mkstemp.c: #undef mkstemp.
93233         Include config.h.
93234         (rpl_mkstemp): Rename from mkstemp.
93235         Protoize.
93236
93237 2001-11-16  Jim Meyering  <meyering@lucent.com>
93238
93239         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93240         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93241         determine the amount of total physical memory, use pstat_getstatic.
93242         HPUX-11 doesn't define _SC_PHYS_PAGES.
93243         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93244         If sysconf couldn't be used to determine the amount of available
93245         physical memory, use both pstat_getstatic and pstat_getdynamic.
93246         Based on a patch from Bob Proulx.
93247
93248 2001-11-10  Jim Meyering  <meyering@lucent.com>
93249
93250         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93251         (jm_PREREQ): Use it.
93252
93253 2001-11-09  Jim Meyering  <meyering@lucent.com>
93254
93255         * m4/jm-macros.m4: Require autoconf-2.52f.
93256         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93257         Use these AC_-prefixed names, not the AM_-prefixed ones.
93258
93259         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93260
93261 2001-11-05  Jim Meyering  <meyering@lucent.com>
93262
93263         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93264
93265 2001-11-04  Jim Meyering  <meyering@lucent.com>
93266
93267         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93268         $DEFS.
93269
93270 2001-11-03  Jim Meyering  <meyering@lucent.com>
93271
93272         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93273         of AC_DEFUN.
93274
93275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93276         know the name of the variable in the macro definition.
93277
93278 2001-11-03  Jim Meyering  <meyering@lucent.com>
93279
93280         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93281         in argmatch_to_argument call.
93282
93283         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93284         argument.
93285
93286         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93287         e.g., a fault due to an attempt to free a NULL pointer.
93288
93289 2001-11-01  Jim Meyering  <meyering@lucent.com>
93290
93291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93292         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93293
93294 2001-11-01  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/dirfd.c, lib/dirfd.h: New files.
93297         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93298
93299         * lib/hash.c (hash_print) [TESTING]: Clean up.
93300
93301 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93302
93303         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93304         to avoid a warning if -Wall.
93305
93306 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93307
93308         * README: New file
93309         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93310         (per RMS's instructions, this is now the canonical source)
93311         * lgpl/, gpl/: New directories.
93312
93313 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93314
93315         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93316
93317 2001-10-21  Jim Meyering  <meyering@lucent.com>
93318
93319         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93320         this code would end up calling gettext even in packages built
93321         with --disable-nls.
93322         * lib/getopt.c (_): Likewise.
93323         * lib/regex.c (_): Likewise.
93324
93325 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93326
93327         * m4/error.m4 (jm_PREREQ_ERROR):
93328         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93329         AC_FUNC_STRERROR_R does that.
93330         Check for strerror declaration.
93331
93332         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93333         are supposed to have them these days.
93334         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93335         Merge changes from latest Autoconf CVS.
93336         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93337         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93338         POSIX decided to standardize on the int flavor of strerror_r.
93339
93340 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93341
93342         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93343         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93344         Use strerror_r that is only a macro, even if it is not a function.
93345         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93346         (private_strerror): Use prototypes, not old-style function definition.
93347         (print_errno_message): New function.
93348         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93349         char*-flavored one.
93350         (error_tail, error, error_at_line): Use it.
93351
93352 2001-10-11  Jim Meyering  <meyering@lucent.com>
93353
93354         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93355         and quote_n (1, ... to avoid clobbering a buffer.
93356
93357 2001-10-05  Jim Meyering  <meyering@lucent.com>
93358
93359         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93360         hash-pjw.h.
93361         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93362         * lib/hash-pjw.h: New file.
93363
93364 2001-09-30  Jim Meyering  <meyering@lucent.com>
93365
93366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93367         `struct fsstat' has the `f_fstypename' member.
93368         Use that to define FS_TYPE, which is now used to make
93369         the getfsstat link test tighter.
93370
93371 2001-09-30  Jim Meyering  <meyering@lucent.com>
93372
93373         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93374         Include <sys/ucred.h>, for Apple Darwin.
93375         Include sys/mount.h and sys/fs_types.h only if available.
93376         (FS_TYPE): Define.
93377         (read_filesystem_list): Use FS_TYPE.
93378
93379 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93380
93381         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93382         a boolean context.
93383
93384 2001-09-29  Jim Meyering  <meyering@lucent.com>
93385
93386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93387         [one-argument getmntent function]): Include stdio.h before mntent.h.
93388         SunOS 4.1.x needs it for the declaration of `FILE'.
93389         Patch by Volker Borchert.
93390
93391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93392         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93393         sys/fs_types.h, and make the link-test for getfsstat guard #include
93394         directives with appropriate #if HAVE_*_H tests so that we can
93395         detect getfsstat on Apple Darwin1.3.7 systems.
93396         Reported by Nelson Beebe.
93397         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93398
93399 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93400
93401         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93402         #defines strtoimax.  Also treat the other strto* functions
93403         like strtoimax.
93404
93405         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93406         Check for strtoul and strtoumax,
93407         as those declarations are made even in the signed case.
93408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93409         Likewise, for strtol and strtoimax.
93410
93411 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93412
93413         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93414         #defines strtoimax.  Also treat the other strto* functions
93415         like strtoimax.
93416
93417         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93418         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93419         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93420
93421 2001-09-26  Jim Meyering  <meyering@lucent.com>
93422
93423         Most macros in unlocked-io.h had the wrong number of arguments.
93424         * lib/gen-uio: New script.
93425         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93426         * lib/unlocked-io.hin: Remove file.
93427         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93428         rather than trying to embed it here.
93429         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93430         Reported by Padraig Brady.
93431
93432 2001-09-25  Volker Borchert  <bt@teknon.de>
93433
93434         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93435         `result'.
93436
93437 2001-09-24  Jim Meyering  <meyering@lucent.com>
93438
93439         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93440
93441 2001-09-23  Jim Meyering  <meyering@lucent.com>
93442
93443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93444         instead of the mere test for existence of mntent.h.  The latter
93445         would get a false-positive on AIX 3.4 systems.
93446         In the outer getmntent if-block, don't die if neither of the getmntent
93447         tests succeeds.  Instead, just fall through and continue with the
93448         remaining tests.
93449
93450 2001-09-23  Jim Meyering  <meyering@lucent.com>
93451
93452         * lib/mountlist.c: Remove useless parentheses in #if directives.
93453         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93454         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93455
93456 2001-09-22  Jim Meyering  <meyering@lucent.com>
93457
93458         * m4/gettext.m4: New file.  From gettext.
93459         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93460         * m4/progtest.m4: Likewise
93461         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93462         * m4/glibc21.m4: Likewise.
93463
93464         * m4/libintl.m4: Remove.  No longer used.
93465
93466 2001-09-22  Jim Meyering  <meyering@lucent.com>
93467
93468         * lib/localcharset.c: Update from latest gettext.
93469         * lib/config.charset: Likewise.
93470
93471 2001-09-20  Jim Meyering  <meyering@lucent.com>
93472
93473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93474         strtoimax.
93475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93476         strtoumax.
93477
93478 2001-09-20  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/xstrtol.c (strtoimax): Guard declaration with
93481         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93482         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93483         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93484         (strtoumax): Likewise, for completeness (it wasn't necessary).
93485
93486 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93487
93488         * lib/strtoimax.c (HAVE_LONG_LONG):
93489         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93490         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93491         to work around bug in IBM C compiler.
93492
93493 2001-09-17  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93496         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93497         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93498         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93499         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93500         whenever the right hand side need not be expanded by the shell.
93501
93502 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93503
93504         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93505         library.  It's not correct, as some older glibcs are buggy.
93506         fnmatch wasn't fixed until glibc 2.2.
93507
93508         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93509         special shell magic here.
93510
93511 2001-09-16  Jim Meyering  <meyering@lucent.com>
93512
93513         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93514         * m4/jm-macros.m4: Require it.
93515
93516 2001-09-16  Jim Meyering  <meyering@lucent.com>
93517
93518         * lib/mkdir.c: New file.
93519
93520 2001-09-15  Jim Meyering  <meyering@lucent.com>
93521
93522         * m4/jm-macros.m4: Check for help2man.
93523
93524 2001-09-11  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93527         The body, by Paul Eggert, was moved here from configure.in.
93528         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93529
93530 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93531
93532         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93533         (jm_PREREQ): Use it.
93534
93535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93536
93537         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93538         Use ssize_t, not int, to store result of readlink.
93539         Check for ssize_t overflow as well as size_t overflow,
93540         as POSIX says the result of readlink is implementation-defined
93541         when ssize_t overflows.
93542         Remove unnecessary cast to char*.
93543         Use free+malloc instead of realloc, as the storage doesn't need
93544         to be preserved and it's clearer and can be more efficient that way.
93545         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93546         * lib/xreadlink.h (xreadlink): Update prototype.
93547
93548 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93549
93550         * lib/xgetcwd.c: Revert some of the previous change; intead,
93551         fix the HAVE_GETCWD_NULL code to behave more like the
93552         !HAVE_GETCWD_NULL code used to.
93553
93554         Include "xalloc.h".
93555         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93556         invoke xalloc_die.
93557
93558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93559
93560         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93561         sys/param.h, as pathmax.h includes them.
93562
93563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93564
93565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93566         (jm_PREREQ_XGETCWD): New macro.
93567
93568         * m4/getcwd.m4: New file.
93569
93570 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93571
93572         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93573         like the HAVE_GETCWD_NULL code.
93574         Include pathmax.h if not HAVE_GETCWD.
93575         Do not include xalloc.h.
93576         (INITIAL_BUFFER_SIZE): New symbol.
93577         Do not use xmalloc / xrealloc, since the caller is responsible for
93578         handling errors.  Preserve errno around `free' during failure.
93579         Do not overrun buffer when using getwd.
93580
93581 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93582
93583         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93584         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93585         getcwd (NULL, 0).
93586
93587 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93588
93589         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93590         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93591         spotted by Jim Meyering.
93592
93593 2001-09-03  Jim Meyering  <meyering@lucent.com>
93594
93595         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93596         failure.
93597
93598 2001-09-02  Jim Meyering  <meyering@lucent.com>
93599
93600         * lib/error.c: Update from GNU libc.
93601
93602 2001-09-01  Jim Meyering  <meyering@lucent.com>
93603
93604         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93605         Used by df.
93606
93607 2001-09-01  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/xreadlink.c: New file.
93610         * lib/xreadlink.h: New file.
93611         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93612         xreadlink.h.
93613
93614         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93615         doesn't conflict with sparc Solaris 7's definition in
93616         /usr/include/sys/int_types.h.
93617
93618         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93619         files.
93620         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93621         and strncasecmp as r-values.  Unixware didn't have declarations.
93622
93623 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93624
93625         * lib/xstrtol.h: Add copyright notice.
93626         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93627         LONGINT_INVALID_SUFFIX_CHAR.
93628
93629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93630
93631         * lib/xstrtol.c (strtoimax): New decl.
93632
93633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93634
93635         * lib/xgetcwd.c: Don't include pathmax.h.
93636         Include stdlib.h and unistd.h if available.
93637         Include xalloc.h.
93638         (xmalloc, xstrdup, free): Remove decls.
93639         (xgetcwd): Don't assume sizes fit in unsigned.
93640         Check for overflow when computing sizes.
93641         Simplify reallocation code.
93642
93643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93644
93645         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93646         a directory's st_size can have an arbitrary value, so the old
93647         usage could waste an arbitrary amount of memory.  All uses
93648         changed.
93649         * lib/savedir.h: Update prototype.
93650
93651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93652
93653         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93654
93655         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93656         old strtoimax.c.
93657
93658         Also, make the following further changes to make this file's
93659         configuration more similar to that of strtol.c:
93660         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93661         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93662         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93663         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93664         changed to signed values.
93665
93666         And make the following changes as well:
93667         Fix copyright notice, as 1999 was missing.
93668         (verify): New macro.
93669         (strtoimax): Check sizes at compile-time, not run-time.
93670         Prefer strtol to strtoll if both work.
93671         (main): Remove; it was not that useful and was a pain to maintain.
93672
93673         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93674
93675 2001-08-31  Jim Meyering  <meyering@lucent.com>
93676
93677         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93678         Use an initial, malloc'd, buffer of length 128 rather than
93679         a statically allocated one of length 1024.
93680
93681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93682
93683         Simplify code, partly by assuming autoconf 2.52 semantics.
93684
93685         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93686
93687         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93688         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93689         All uses removed.
93690         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93691         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93692         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93693         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93694         jm_AC_HEADER_INTTYPES_H.
93695         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93696
93697         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93698
93699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93700         Quote first arg of AC_DEFUN.
93701         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93702         since they are needed to parse the include file even if we need
93703         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93705         but with opposite signedness.
93706
93707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93708
93709         Merge 'exclude' changes from tar 1.13.22.
93710         This fixes one or two unlikely storage allocation overflow bugs,
93711         but doesn't change user-visible behavior otherwise.
93712
93713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93714
93715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93716         (jm_PREREQ_EXCLUDE): New macro.
93717
93718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93719
93720         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93721         tm to be declared.
93722
93723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93724
93725         * lib/hash.c: Remove '2001' from copyright notice.
93726
93727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93728
93729         * lib/full-write.h: New file.
93730         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93731         * lib/full-write.c: Correct credits, as cccp.c no longer
93732         exists and anyway it was so heavily changed from the old cccp
93733         code as to be unrecognizable.  Include full-write.h.
93734         (full_write): Return size_t, with short writes meaning failure.
93735         All callers changed.  This fixes a bug with large buffers
93736         on 64-bit hosts.
93737         * lib/utime.c: Include full-write.h.
93738
93739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93740
93741         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93742         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93743         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93744         Include if available.
93745         (<xalloc.h>): Include
93746         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93747         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93748         collide with FNM macros.
93749         (struct patopts): New struct.
93750         (struct exclude): Use it, as exclude patterns now come with options.
93751         (new_exclude): Support above changes.
93752         (new_exclude, add_exclude_file):
93753         Initial size must now be a power of two to simplify overflow checking.
93754         (free_exclude, fnmatch_no_wildcards): New function.
93755         (excluded_filename): No longer requires options arg, as the options
93756         are determined by add_exclude.  Now returns bool, not int.
93757         (excluded_filename, add_exclude):
93758         Add support for the fancy new exclusion options.
93759         (add_exclude, add_exclude_file): Now takes int options arg.
93760         Check for arithmetic overflow when computing sizes.
93761         (add_exclude_file): xrealloc might modify errno, so don't
93762         realloc until after errno might be used.
93763
93764         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93765         New macros.
93766         (free_exclude): New decl.
93767         (add_exclude, add_exclude_file): Now takes int options arg.
93768         (excluded_filename): No longer requires options arg, as the options
93769         are determined by add_exclude.  Now returns bool, not int.
93770
93771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93772
93773         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93774
93775 2001-08-27  Jim Meyering  <meyering@lucent.com>
93776
93777         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93778
93779         * lib/version-etc.c (N_): Remove definition.
93780         Revert most of last change.
93781         Instead, simply don't mark the `Copyright...' string for translation.
93782         Based on advice from Paul Eggert.
93783
93784         * lib/strtoxmax.c: Tweak comment.
93785
93786 2001-08-26  Jim Meyering  <meyering@lucent.com>
93787
93788         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93789
93790         * m4/xstrtoimax.m4: New file.
93791         * m4/xstrtoumax.m4: Add comments explaining why we
93792         AC_REPLACE_FUNCS(strtol).
93793
93794 2001-08-26  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93797         of copyright with `%s' so translators don't get an untranslated
93798         message in 2002.
93799         (COPYRIGHT_YEAR): Define.
93800         (version_etc): Use fprintf rather than fputs.
93801         Suggestion from Ulrich Drepper.
93802
93803         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93804
93805         * lib/strtoll.c: New file, from GNU libc.
93806         * lib/xstrtoimax.c: New file.
93807
93808         * lib/xstrtol.h: Add xstrtoimax.
93809         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93810         * lib/strtoimax.c: New file.  Likewise, but first define
93811         STRTOUXMAX_SIGNED.
93812
93813         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93814         ...
93815         * lib/strtoxmax.c: ... then renamed to this.
93816
93817 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93818
93819         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93820         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93821         (jm_AC_TYPE_INTMAX_T): New macro.
93822         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93823
93824         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93825
93826         * m4/longlong.m4: Renamed from ulonglong.m4.
93827         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93828         * m4/uintmax_t.m4: Removed.
93829
93830 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93831
93832         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93833         Port to Solaris 8, where 'sed' requires a space after the 'r'
93834         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93835         Redirect output to $tmp just once.
93836
93837 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93838
93839         * lib/addext.c (<errno.h>): Include.
93840         (errno): Declare if not defined.
93841         (addext): Work correctly when pathconf returns -1 and leaves
93842         errno alone because there is no limit.  Also, work even if
93843         pathconf returns a value greater than SIZE_MAX.
93844
93845 2001-08-12  Jim Meyering  <meyering@lucent.com>
93846
93847         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93848         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93849         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93850         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93851         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93852         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93853         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93854         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93855         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93856         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93857         utime.m4, utimes.m4, xstrtoumax.m4:
93858         Quote the first argument in each use of AC_DEFUN.
93859
93860 2001-08-12  Jim Meyering  <meyering@lucent.com>
93861
93862         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93863         Simply `return getcwd (NULL, 0);'.
93864         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93865         Use 1300 as initial value for length, not PATH_MAX.
93866
93867         * lib/pathmax.h: Clean up cpp syntax.
93868
93869 2001-08-12  Jim Meyering  <meyering@lucent.com>
93870
93871         * lib/gettimeofday.c: New file.
93872         * lib/gtod.h: New file.
93873         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93874
93875 2001-08-05  Jim Meyering  <meyering@lucent.com>
93876
93877         * m4/jm-macros.m4: Require autoconf-2.52.
93878
93879 2001-08-04  Jim Meyering  <meyering@lucent.com>
93880
93881         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93882         stmt, to get in sync with glibc.
93883
93884 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93885
93886         The following changes are from gettext 0.10.39 as maintained by
93887         Bruno Haible.
93888
93889         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93890         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93891         with inverted sense.  All uses changed.
93892
93893         * lib/mbswidth.c: Don't include <limits.h>.
93894         Include <stdlib.h> and <string.h> unconditionally.
93895         (iswcntrl, mbsinit, ISCNTRL): New macros.
93896         (mbsnwidth): Use K&R style function declarations.
93897         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93898         can optimize it when MB_CUR_MAX == 1.
93899         The width of control characters is zero, not 1.
93900
93901 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93902
93903         The following changes are from gettext 0.10.39 as maintained by
93904         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93905
93906         * m4/codeset.m4: Upgrade to serial AM1.
93907         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93908         all uses changed.  Quote first arg of AC_DEFUN.
93909         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93910
93911         * m4/iconv.m4: Upgrade to serial AM2.
93912         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93913         Add --with-libconv-prefix.
93914         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93915         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93916         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93917         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93918         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93919
93920         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93921         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93922         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93923         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93924         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93925         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93926         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93927         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93928         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93929
93930         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93931         string.h any more.
93932
93933         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93934         not the default value.
93935
93936         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93938         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93939         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93940         Also check for iswcntrl, used for wcwidth fallback.
93941         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93942         to Autoconf 2.13.
93943
93944 2001-08-03  Jim Meyering  <meyering@lucent.com>
93945
93946         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93947         as it was in the original.  Reported by Paul Eggert.
93948
93949 2001-07-16  Jim Meyering  <meyering@lucent.com>
93950
93951         * m4/gettimeofday.m4: New file.
93952         Prompted by a report from Bernhard Baehr.
93953
93954 2001-07-15  Jim Meyering  <meyering@lucent.com>
93955
93956         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93957         stuff. Now it's in ../Makefile.cfg.
93958
93959 2001-07-15  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93962         (BUILT_SOURCES): Add unlocked-io.h.
93963         (io_functions): Define.
93964         (unlocked-io.h): New rule.
93965         (DISTCLEANFILES): Add unlocked-io.h.
93966         (all-local): Depend on unlocked-io.h, to ensure it is created.
93967
93968         * lib/unlocked-io.hin: New file
93969
93970         * lib/regex.c: Update from glibc.
93971
93972 2001-07-05  Jim Meyering  <meyering@lucent.com>
93973
93974         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93975         recommendation.
93976         (libfetish_a_SOURCES): Put all .h files here instead.
93977         Remove a thus-exposed (better checks in automake) duplicate and
93978         two unnecessary .h files.
93979
93980 2001-07-04  Jim Meyering  <meyering@lucent.com>
93981
93982         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93983         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93984         distcheck failure.
93985
93986 2001-07-02  Jim Meyering  <meyering@lucent.com>
93987
93988         The following changes were prompted by suggestions from Bruno Haible.
93989
93990         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93991         is now generated.
93992         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93993         definition of EXTRA_DIST.
93994         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93995         ensure that the generated file is created/updated whenever the list
93996         of $(unlocked_functions) is changed.
93997         (jm-glibc-io.m4): New rule.
93998         (unlocked-io.h): New rule -- currently unused.
93999
94000 2001-06-24  Jim Meyering  <meyering@lucent.com>
94001
94002         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94003         unmatched right bracket, rather than kludging it with an extra,
94004         falsely-matching quote in a comment.  Patch by Akim Demaille.
94005
94006 2001-06-11  Jim Meyering  <meyering@lucent.com>
94007
94008         * lib/regex.c: Update from GNU libc.
94009
94010 2001-05-27  Jim Meyering  <meyering@lucent.com>
94011
94012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94013         Check for ut_type in struct utmp.
94014
94015 2001-05-27  Jim Meyering  <meyering@lucent.com>
94016
94017         * lib/readutmp.h (UT_TYPE): Define.
94018
94019 2001-05-24  Jim Meyering  <meyering@lucent.com>
94020
94021         * lib/argmatch.c: Include "quote.h".
94022         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94023         quote function.  Reported by Göran Uddeborg.
94024
94025 2001-05-22  Jim Meyering  <meyering@lucent.com>
94026
94027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94028         now that we use the package-supplied version unconditionally.
94029         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94030
94031 2001-05-21  Jim Meyering  <meyering@lucent.com>
94032
94033         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94034         shell syntax errors.
94035
94036 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94037
94038         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94039
94040 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94041
94042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94043         Don't bother to check library strftime, since
94044         we'll be using our own my_strftime function anyway.
94045         Define my_strftime instead of strftime.
94046
94047 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94048
94049         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94050         which is not yet declared.
94051
94052 2001-05-15  Jim Meyering  <meyering@lucent.com>
94053
94054         * m4/regex.m4: Use proper quoting so brackets appear in the test
94055         program.
94056         Reported by, and with help from, Bruno Haible.
94057
94058 2001-05-13  Jim Meyering  <meyering@lucent.com>
94059
94060         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94061         undefined.
94062
94063 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94064
94065         dirname code cleanup.  base_name now behaves more compatibly
94066         with POSIX basename when given file names that have trailing
94067         slashes, and similarly for dir_name.  Add new primitives
94068         base_len and dir_len.  Put the directory-name-related decls
94069         into dirname.h.
94070
94071         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94072         * lib/backupfile.c (base_name): Likewise.
94073         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94075         * lib/makepath.c (strip_trailing_slashes): Likewise.
94076         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94077         ISSLASH): Likewise.
94078         * lib/rename.c (strip_trailing_slashes): Likewise.
94079         * lib/same.c (base_name): Likewise.
94080         * lib/stripslash.c (ISSLASH): Likewise.
94081
94082         * lib/addext.c: Include <dirname.h> after size_t is defined.
94083         * lib/backupfile.c: Likewise.
94084
94085         * lib/addext.c (addext): Use base_len to trim redundant
94086         trailing slashes instead of doing it ourselves.
94087         But do not trim the last slash if it is not redundant.
94088
94089         * lib/backupfile.c (find_backup_file_name,
94090         max_backup_version): Use base_len instead of rolling it ourselves.
94091         Handle the case of "" and (on DOS) "C:" correctly.
94092
94093         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94094         needed. Include <string.h>, <dirname.h>.
94095         (base_name): Allow file names ending in slashes, other than names
94096         that are all slashes.  In this case, return the basename followed
94097         by the slashes.  This is more general, and can be used in places
94098         where the original base_name purposely had an assertion failure.
94099         (base_len): New function.
94100
94101         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94102         Do not include <assert.h>; no longer needed.
94103         Include xalloc.h.
94104         (memrchr): Remove decl.
94105         (dir_name_r): Remove.
94106         (dir_len): Renamed from dirlen.  All callers changed.
94107         Rewrite in terms of base_name, for simplicity and consistency.
94108         (dir_name): Never return NULL.  All callers changed.
94109         Do not include <stdlib.h> in test program; no longer needed.
94110         return 0; is fine for test program.
94111
94112         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94113         New macros.
94114         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94115
94116         * lib/path-concat.c (path_concat): Use base_len to compute
94117         base length, not strlen; this means we cannot rely on memcpy
94118         to null-terminate.
94119
94120         * lib/same.c (STREQ): Remove.
94121         (same_name): Handle the case where the basename ends in trailing '/'.
94122
94123         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94124         a slash was stripped.  Do not strip the last slash after a
94125         file system prefix.
94126
94127 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94128
94129         * lib/Makefile.am (libfetish_a_SOURCES):
94130         Add strftime.c, since we now compile it on all hosts.
94131
94132         * lib/strftime.c (my_strftime):
94133         Define to nstrftime if emacs, but only if my_strftime is not defined.
94134         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94135         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94136         Add one more extra argument: a nanoseconds value.
94137         All uses changed.
94138         (ns): New macro.
94139         (my_strftime function): Add %N format.
94140         (emacs_strftimeu): Renamed from emacs_strftime,
94141         with extra ut argument.
94142
94143 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94144
94145         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94146
94147 2001-04-21  Jim Meyering  <meyering@lucent.com>
94148
94149         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94150         doesn't interfere.
94151
94152 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94153
94154         * m4/ftruncate.m4: Check for chsize.
94155         Link with ftruncate.o unconditionally if ftruncate is missing.
94156         This was required when cross-compiling to i586-mingw32msvc.
94157
94158 2001-04-08  Jim Meyering  <meyering@lucent.com>
94159
94160         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94161         recomputed; that's necessary when the offset spans a DST transition.
94162         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94163
94164 2001-04-02  Jim Meyering  <meyering@lucent.com>
94165
94166         * lib/regex.h, regex.c: Update from GNU libc.
94167
94168 2001-03-24  Jim Meyering  <meyering@lucent.com>
94169
94170         * m4/jm-macros.m4: Require autoconf-2.49d.
94171
94172 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94173
94174         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94175
94176 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94177
94178         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94179
94180 2001-03-17  Jim Meyering  <meyering@lucent.com>
94181
94182         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94183         now that the version in autoconf is equivalent.
94184         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94185
94186         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94187         Suggestion from Akim Demaille.
94188
94189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94190         (jm_PREREQ_TEMPNAME): New function.
94191
94192 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94193
94194         * lib/tempname.c (uint64_t): Define to uintmax_t if
94195         not defined, and if UINT64_MAX is not defined.
94196         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94197         Reported by John David Anglin.
94198
94199 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94200
94201         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94202         resolve alias if codeset is empty.
94203         * lib/config.charset (BeOS): Use wildcard syntax.
94204
94205 2001-03-13  Jim Meyering  <meyering@lucent.com>
94206
94207         * lib/path-concat.c (path_concat)
94208         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94209         concatenating e.g., `C:' and `foo'.
94210         From Bruno Haible.
94211
94212 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94213
94214         * lib/localcharset.c (locale_charset): Don't use
94215         setlocale(LC_CTYPE,NULL). Don't return NULL.
94216         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94217
94218 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94219
94220         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94221         support for DOS/DJGPP.
94222
94223 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94224
94225         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94226         lacks mkstemp.  Compile our own tempname.c if we compile our own
94227         mkstemp.c, as mkstemp relies on tempname.
94228
94229 2001-03-01  Jim Meyering  <meyering@lucent.com>
94230
94231         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94232         AH_VERBATIM really does output its argument verbatim.
94233
94234 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94235
94236         * lib/Makefile.am (libfetish_a_SOURCES):
94237         Add dup-safer.c, fopen-safer.c.
94238         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94239
94240         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94241         * lib/unistd-safer.h: New files.
94242
94243 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94244
94245         The mkstemp replacement is taken from glibc 2.2.2, with some
94246         portability fixes for use outside glibc, as follows:
94247
94248         * lib/tempname.c (struct_stat64): New macro.
94249         (direxists, __gen_tempname): Use it.
94250         This avoids a portability problem with Solaris 8.
94251
94252         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94253         (<stddef.h>, <stdint.h>, <string.h>):
94254         Include only if STDC_HEADERS || _LIBC.
94255         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94256         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94257         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94258         (__set_errno): Define this macro if <errno.h> doesn't.
94259         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94260         Define these macros if <stdio.h> doesn't.
94261         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94262         Define these macros if <sys/stat.h>
94263         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94264         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94265         __xstat64): Define if not _LIBC.
94266         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94267         (__gen_tempname): Invoke gettimeofday only if
94268         HAVE_GETTIMEOFDAY || _LIBC;
94269         otherwise, fall back on plain "time".
94270         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94271
94272         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94273
94274         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94275
94276 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94277
94278         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94279
94280 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94281
94282         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94283         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94284         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94286
94287 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94288
94289         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94290         Remove workaround macros for hosts that have mbrtowc but not
94291         mbstate_t, as we now insist on proper declarations for both
94292         before using mbrtowc.
94293
94294 2001-02-17  Jim Meyering  <meyering@lucent.com>
94295
94296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94297         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94298         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94299         UnixWare 7.1.1.
94300
94301         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94302         rather than AC_CACHE_VAL.
94303
94304 2001-02-17  Jim Meyering  <meyering@lucent.com>
94305
94306         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94307         around included file name.
94308
94309         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94310
94311         * lib/strftime.c: Update from GNU libc (the only changes were to
94312         comments).
94313
94314 2001-02-17  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/regex.c: Update from libc.
94317
94318 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94319
94320         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94321         clash.
94322
94323 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94324
94325         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94326         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94327         Reported by Mark Hounschell via Paul Eggert.
94328
94329 2001-02-07  Jim Meyering  <meyering@lucent.com>
94330
94331         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94332
94333 2001-02-05  Jim Meyering  <meyering@lucent.com>
94334
94335         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94336         it includes the patch required for `large file' support with at least
94337         HP-UX's 10.20 /bin/cc.
94338
94339 2001-02-03  Jim Meyering  <meyering@lucent.com>
94340
94341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94342         AS_IF, now that it works once again (mysteriously).
94343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94344
94345 2001-01-30  Jim Meyering  <meyering@lucent.com>
94346
94347         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94348         * m4/chown.m4: Rename conftestchown to conftest.chown.
94349         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94350         s/conftestdir2/conftest.d2/.
94351         * m4/utimes.m4: s/conftestdata/conftest.data/
94352         Inspired by Pavel Roskin's change in autoconf.
94353
94354 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94355
94356         * lib/config.charset: Update for FreeBSD 4.2.
94357
94358 2001-01-27  Jim Meyering  <meyering@lucent.com>
94359
94360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94361         a use of AS_IF.
94362         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94363
94364 2001-01-26  Jim Meyering  <meyering@lucent.com>
94365
94366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94367         quotearg.c includes it.
94368
94369 2001-01-26  Jim Meyering  <meyering@lucent.com>
94370
94371         * lib/quotearg.c: Include stddef.h.
94372         * lib/quote.c: Include stddef.h.
94373         Reported by Axel Kittenberger.
94374
94375         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94376         line in double quotes so that it evokes a better diagnostic.
94377         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94378         Reported by Axel Kittenberger.
94379
94380 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94381
94382         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94383         as if it was a `charset'.
94384
94385 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94386
94387         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94388         has const.
94389
94390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94391
94392         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94393         to avoid a warning.  Add back 'const' to inptr.
94394
94395 2001-01-20  Jim Meyering  <meyering@lucent.com>
94396
94397         Be sure that headers are checked before used in code compiled
94398         for the type checks.
94399         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94400         In place of that, invoke jm_CHECK_ALL_TYPES.
94401         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94402         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94403         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94404         The check for ssize_t was mistakenly run before the test for unistd.h.
94405
94406         The configure-time check for stdbool.h was missing.
94407         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94408         (jm_PREREQ_HASH): New function.
94409
94410 2001-01-17  Jim Meyering  <meyering@lucent.com>
94411
94412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94413         for autoconf-2.49c.
94414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94415
94416 2001-01-16  Jim Meyering  <meyering@lucent.com>
94417
94418         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94419         From Bruno Haible.
94420
94421 2001-01-14  Jim Meyering  <meyering@lucent.com>
94422
94423         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94424         foo and bar.  Create conftestdir/ in the script, not in the C code.
94425         Remove directories in the script, not in the C code.
94426         Remove conftestdir{,2} before trying to create the directory.
94427         Make the entire configure script fail if the mkdir fails.
94428
94429 2001-01-14  Jim Meyering  <meyering@lucent.com>
94430
94431         * lib/rename.c: New file.  From Volker Borchert.
94432         Include stdlib.h, string.h or strings.h, and xalloc.h.
94433         Use strip_trailing_slashes rather than open-coding it.
94434
94435 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94436
94437         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94438
94439 2001-01-03  Jim Meyering  <meyering@lucent.com>
94440
94441         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94442         of local `inptr' to avoid warning with some system declarations of
94443         iconv.
94444
94445 2001-01-02  Volker Borchert  <bt@teknon.de>
94446
94447         * m4/rename.m4: New file.
94448         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94449
94450 2001-01-01  Jim Meyering  <meyering@lucent.com>
94451
94452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94453         even on systems with utmpx.h.  It's necessary for the declaration of
94454         utmp's ut_user member.  Reported by Andreas Jaeger.
94455
94456         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94457         available. They are required for the declarations of getgrgid and
94458         getpwuid resp.
94459         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94460         Reported by Andreas Jaeger.
94461
94462 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94463
94464         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94465         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94466         so `make install' also works in VPATH builds.
94467
94468 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94469
94470         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94471         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94472         can be used in subdirectories.
94473
94474 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94475
94476         * lib/modechange.c: Do not assume that mode_t uses the
94477         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94478         the other-execute bit of FOO even if S_IXOTH != 1.
94479
94480         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94481         WOTH, XOTH, ALLM): New macros.
94482         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94483          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94484         Use them.
94485         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94486         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94487         (mode_compile):
94488         No need to use uintmax_t; unsigned long is long enough.
94489         Don't bother to get suffix since we don't use it.
94490
94491 2000-12-26  Jim Meyering  <meyering@lucent.com>
94492
94493         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94494         better with autoheader.
94495
94496 2000-12-24  Jim Meyering  <meyering@lucent.com>
94497
94498         * lib/hash.c (is_prime): Return explicit boolean values.
94499         (hash_get_first): Return NULL to appease Irix5.6's 89.
94500         Reported by Nelson Beebe.
94501
94502 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94503
94504         * lib/localcharset.c (locale_charset): Add support for Win32.
94505
94506 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94507
94508         * lib/physmem.h, lib/physmem.c: New files.
94509
94510         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94511         (noinst_HEADERS): Add physmem.h.
94512
94513         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94514         't' for compatibility with Solaris 8 sort.
94515
94516 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94517
94518         * lib/config.charset: Add support for BeOS.
94519
94520 2000-12-17  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94523         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94524
94525 2000-12-16  Jim Meyering  <meyering@lucent.com>
94526
94527         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94528         N and M) would have treated it like `chown N:N FILE'.
94529
94530         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94531
94532 2000-12-16  Jim Meyering  <meyering@lucent.com>
94533
94534         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94535         SHELLS_FILE to a file name that's useful on djgpp systems.
94536         Include stdlib.h.
94537         (ADDITIONAL_DEFAULT_SHELLS): Define.
94538         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94539         Based mostly on a patch from Prashant TR.
94540
94541 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94542
94543         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94544         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94545         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94546
94547 2000-12-08  Andreas Schwab  <schwab@suse.de>
94548
94549         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94550         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94551
94552 2000-12-07  Jim Meyering  <meyering@lucent.com>
94553
94554         * lib/stripslash.c (ISSLASH): Define.
94555         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94556         `/'.
94557         From Prashant TR.
94558
94559         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94560         (dir_name_r): Declare this function as static.
94561         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94562         manifest itself on a name containing a mix of slashes and
94563         backslashes.
94564         Make this function work with names starting with a DOS-style
94565         drive letter and colon prefix.
94566         (dir_name): Append `.' if necessary.
94567         Based mostly on patches from Prashant TR and Eli Zaretskii.
94568
94569         * lib/dirname.h (dir_name_r): Remove prototype.
94570
94571 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94572
94573         * m4/off_t-format.m4: Remove this file.
94574         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94575
94576 2000-12-06  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94579         replacement strtoull, we may well need the replacement strtoul, too.
94580         Check for declarations of strtoul and strtoull.
94581         Check for strtol.  Mainly as a cue to cause automake to include
94582         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94583         Check for limits.h -- strtol.c needs it.
94584
94585 2000-12-05  Jim Meyering  <meyering@lucent.com>
94586
94587         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94588
94589 2000-12-04  Jim Meyering  <meyering@lucent.com>
94590
94591         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94592         Also include memory.h, stdlib.h, unistd.h if appropriate.
94593         Reported by Andreas Jaeger (conflicting declaration of malloc).
94594
94595 2000-12-02  Jim Meyering  <meyering@lucent.com>
94596
94597         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94598         * m4/jm-macros.m4 (jm_MACROS): require it.
94599
94600 2000-12-02  Jim Meyering  <meyering@lucent.com>
94601
94602         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94603
94604 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94605
94606         * lib/memrchr.c: Include <config.h> before any system include file.
94607
94608 2000-11-30  Jim Meyering  <meyering@lucent.com>
94609
94610         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94611
94612 2000-11-30  Jim Meyering  <meyering@lucent.com>
94613
94614         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94615
94616 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94617
94618         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94619
94620 2000-11-26  Jim Meyering  <meyering@lucent.com>
94621
94622         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94623
94624 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94625
94626         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94627         size of (size_t) -1; it's not portable.
94628
94629 2000-11-17  Jim Meyering  <meyering@lucent.com>
94630
94631         * lib/strstr.c: Update from GNU libc.
94632
94633 2000-11-17  Akim Demaille  <akim@epita.fr>
94634
94635         * lib/obstack.h: Formatting changes.
94636         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94637         prevent type checking.
94638         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94639         cast the value to (void *): assigning a `foo *' to a `void *'
94640         variable is valid.
94641         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94642
94643 2000-11-16  Jim Meyering  <meyering@lucent.com>
94644
94645         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94646
94647 2000-11-11  Jim Meyering  <meyering@lucent.com>
94648
94649         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94650
94651 2000-11-10  Jim Meyering  <meyering@lucent.com>
94652
94653         * lib/obstack.h: Update from GNU libc.
94654         * lib/obstack.c: Likewise.
94655
94656 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94657
94658         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94659
94660 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94661
94662         * lib/getusershell.c (setusershell): Use rewind rather than
94663         fseek/fseeko, to avoid configuration hassles with fseeko.
94664         Don't bother opening SHELLS_FILE if shellstream is NULL;
94665         it's not necessary.
94666
94667 2000-11-05  Jim Meyering  <meyering@lucent.com>
94668
94669         * lib/makepath.h (make_dir): Declare.
94670         * lib/makepath.c (make_dir): Remove `static' attribute.
94671         Tweak a comment.
94672
94673 2000-11-04  Jim Meyering  <meyering@lucent.com>
94674
94675         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94676
94677 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94678
94679         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94680         last one in a bucket, advance to the next bucket.
94681
94682 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94683
94684         * lib/fnmatch.c: Do not comment out all the code if we are using
94685         the GNU C library, because in some cases we are replacing buggy
94686         code in the GNU C library itself.
94687
94688 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94689
94690         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94691         (regex_compile): Catch bogus \(\1\).
94692
94693 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94694
94695         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94696         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94697         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94698
94699 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94700
94701         * lib/error.h, getline.h, modechange.h:
94702         Remove "2000" from Copyright line, as the file hasn't been
94703         changed this year other than in the copyright notice.
94704
94705         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94706         was changed this year.
94707
94708 2000-10-29  Jim Meyering  <meyering@lucent.com>
94709
94710         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94711         renaming.
94712         * m4/ls-mntd-fs.m4: Likewise
94713
94714 2000-10-29  Jim Meyering  <meyering@lucent.com>
94715
94716         * lib/xstat.in: Fix grammar in comment.
94717
94718 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94719
94720         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94721         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94722         doesn't define __restrict_arr.
94723
94724 2000-10-28  Jim Meyering  <meyering@lucent.com>
94725
94726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94727         (jm_PREREQ_MEMCHR): New function.
94728
94729 2000-10-28  Jim Meyering  <meyering@lucent.com>
94730
94731         * lib/memchr.c: Update from libc.
94732         Adjust for portability:
94733         [HAVE_STDLIB_H]: Include stdlib.h.
94734         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94735         Undef __memchr, too.
94736         [!weak_alias]: Define __memchr to memchr.
94737
94738         * lib/regex.c: Update from libc.
94739         * lib/regex.h: Likewise.
94740         * lib/getopt1.c: Likewise.
94741         * lib/memcmp.c: Likewise.
94742
94743         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94744         Avoid using fseek, when possible -- it's broken by design.
94745         Patch by Ulrich Drepper.
94746
94747 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94748
94749         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94750         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94751         Giving in to popular pressure to shut up the compiler with casts.
94752
94753 2000-10-26  Jim Meyering  <meyering@lucent.com>
94754
94755         * lib/strftime.c: Update from libc.
94756
94757 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94758
94759         * regex.c: More `unsigned char' -> `re_char' changes.
94760         Also change several `int' into `re_wchar_t'.
94761         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94762         (PUSH_FAILURE_POINTER): Don't cast any more.
94763         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94764         We want GCC to complain, since this piece of code makes
94765         re_match non-reentrant, which *should* be fixed.
94766         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94767         (EXTEND_BUFFER): Use RETALLOC.
94768         (SET_LIST_BIT): Don't cast.
94769         (re_wchar_t): New type.
94770         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94771         that those two functions will always properly return.
94772         (IMMEDIATE_QUIT_CHECK): Cast to void.
94773         (analyse_first): Use recursion rather than an explicit stack.
94774         (re_compile_fastmap): Can't fail anymore.
94775         (re_search_2): Don't check re_compile_fastmap for failure.
94776         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94777         Now also sets the new value (passed in a new argument).
94778         (re_match_2_internal): Use it.
94779         Also, use a new var `reg' of type size_t when looping through regs
94780         rather than reuse the inappropriate `mcnt'.
94781
94782 2000-10-25  Jim Meyering  <meyering@lucent.com>
94783
94784         * lib/obstack.c: Update from libc.
94785
94786 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94787
94788         * regex.c (regex_compile): Change the way of handling a range from
94789         a char less than 256 to a char not less than 256.
94790
94791 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94792
94793         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94794         NT-Emacs only.
94795         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94796         so that re_search functions only quit when callers expect them to.
94797
94798 2000-10-23  Jim Meyering  <meyering@lucent.com>
94799
94800         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94801         wrong.  That set_locale call must not have any side effects.
94802         From Paul Eggert.
94803
94804 2000-10-22  Jim Meyering  <meyering@lucent.com>
94805
94806         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94807         [CYCLIC]: Remove now-unused definition.
94808
94809         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94810         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94811         Suggestion from Ulrich Drepper.
94812
94813 2000-10-21  Jim Meyering  <meyering@lucent.com>
94814
94815         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94816         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94818
94819 2000-10-21  Jim Meyering  <meyering@lucent.com>
94820
94821         * lib/dirname.c (memrchr): Declare if necessary.
94822         (dir_name): Remove the restriction that there be no
94823         trailing slashes.  Now, this code skips past them, effectively
94824         ignoring them.
94825         [TEST_DIRNAME] (main): New unit tests.
94826
94827         * lib/memrchr.c: New file from GNU libc.
94828         Undef __memrchr, too.
94829         [!weak_alias]: Define __memrchr to memrchr.
94830         Guard weak_alias use with `#ifdef weak_alias'.
94831
94832 2000-10-21  Jim Meyering  <meyering@lucent.com>
94833
94834         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94835         (dir_name): Use dir_name_r.
94836         * lib/dirname.h (dir_name_r): Declare it.
94837
94838 2000-10-17  Jim Meyering  <meyering@lucent.com>
94839
94840         * lib/quote.h (PARAMS): Define and use.
94841         Reported by Akim Demaille.
94842
94843         * lib/getopt.c: Update from libc.
94844
94845 2000-10-16  Jim Meyering  <meyering@lucent.com>
94846
94847         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94848         setlocale.
94849         From Jan Fedak.
94850
94851 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94852
94853         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94854
94855 2000-09-25  Jim Meyering  <meyering@lucent.com>
94856
94857         * lib/md5.h (rol): Define (from GnuPG).
94858
94859         * lib/sha.c: Give credit (GnuPG) where due.
94860         (M): Use rol rather than open-coding it.
94861         Add a FIXME comment.
94862
94863 2000-09-21  Jim Meyering  <meyering@lucent.com>
94864
94865         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94866         Reported by Michael Stone.
94867
94868 2000-09-20  Jim Meyering  <meyering@lucent.com>
94869
94870         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94871         (noinst_HEADERS): Add sha.h.
94872         Based on code from Scott G. Miller and from GnuPG.
94873
94874 2000-09-18  Jim Meyering  <meyering@lucent.com>
94875
94876         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94877         LIBS. Otherwise, everyone ends up linking with -lelf for some
94878         configurations.
94879         Reported by Mike Stone.
94880
94881 2000-09-15  Jim Meyering  <meyering@lucent.com>
94882
94883         * lib/regex.c: Update from libc.
94884
94885 2000-09-10  Jim Meyering  <meyering@lucent.com>
94886
94887         * lib/getopt.c (_getopt_internal): Update from glibc.
94888
94889 2000-09-09  Jim Meyering  <meyering@lucent.com>
94890
94891         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94892         think it should be used as a general replacement for isascii.
94893         * lib/fnmatch.c: Likewise.
94894         * lib/mbswidth.c: Likewise
94895         * lib/regex.c: Likewise.
94896
94897         Don't use atoi.
94898         * lib/userspec.c: Include sys/param.h and limits.h.
94899         Include xstrtol.h.
94900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94901         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94902         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94903         UID, GID.  Check range.
94904
94905 2000-09-06  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/getopt.c (_getopt_internal): Update from glibc.
94908
94909 2000-08-30  Jim Meyering  <meyering@lucent.com>
94910
94911         * lib/strftime.c: Merge in changes from GNU libc.
94912
94913 2000-08-26  Jim Meyering  <meyering@lucent.com>
94914
94915         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94916         * m4/fpending.m4: New file.
94917
94918 2000-08-26  Jim Meyering  <meyering@lucent.com>
94919
94920         * lib/closeout.c: Include "__fpending.h".
94921         (close_stdout_status): Return right away if there's nothing to flush.
94922
94923         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94924         * lib/__fpending.c: New file.
94925         * lib/__fpending.h: New file.
94926
94927 2000-08-20  Jim Meyering  <meyering@lucent.com>
94928
94929         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94930         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94931         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94932
94933 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94934
94935         Improve fileutils installation on systems where running
94936         programs (like install) can't be unlinked.
94937         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94938         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94939
94940 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94941
94942         Standardize on "memory exhausted" instead of "Memory exhausted"
94943         or "virtual memory exhausted".
94944         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94945         "virtual memory exhausted".
94946         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94947         our own message.
94948         * lib/userspec.c (parse_user_spec): Likewise.
94949         * lib/bumpalloc.h: comment fix
94950         * lib/same.c, userspec.c: Include xalloc.h.
94951
94952         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94953         not char *const and pointing to a constant array.
94954         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94955         (xrealloc): Comment fix.
94956
94957         * lib/userspec.c (parse_user_spec):
94958         Don't translate a message until just before returning,
94959         to avoid unnecessary translation.
94960
94961 2000-08-07  Jim Meyering  <meyering@lucent.com>
94962
94963         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94964         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94965         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94966         getgroups.c, gethostname.c, getopt.h, group-member.c,
94967         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94968         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94969         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94970         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94971         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94972         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94973         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94974         yesno.c: Back out Copyright date changes for each file with no change
94975         this year.  This eases coordination with other programs using the same
94976         source code modules.  From Paul Eggert.
94977
94978 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94979
94980         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94981         not char, for compatibility with glibc 2.1.3 strftime.c.
94982
94983 2000-08-03  Greg McGary  <greg@mcgary.org>
94984
94985         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94986         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94987         (EXTEND_BUFFER): Use them.
94988
94989 2000-08-01  Jim Meyering  <meyering@lucent.com>
94990
94991         * lib/dirname.c (ISSLASH): Define.
94992         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94993         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94994         both `\' and `/' may be use as path separators.
94995         Based on a patch from Prashant TR.
94996
94997 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94998
94999         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95000         slot vector a constant, since it might get modified.
95001
95002 2000-07-31  Jim Meyering  <meyering@lucent.com>
95003
95004         * lib/xmalloc.c: Use `virtual memory exhausted', not
95005         `Memory exhausted'.
95006         * lib/obstack.c (print_and_abort): Likewise.
95007
95008 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95009
95010         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95011         buffer, so that the caller can always quote one small
95012         component of a "memory exhausted" message in slot 0.
95013         From a suggestion by Jim Meyering.
95014
95015 2000-07-30  Jim Meyering  <meyering@lucent.com>
95016
95017         * lib/makepath.c (make_path): Quote the other instance, too.
95018
95019         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95020         (STATIC_BUF_SIZE): Define.
95021         (quotearg_n_options): Use only statically allocated storage when
95022         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95023         than STATIC_BUF_SIZE.
95024
95025 2000-07-29  Jim Meyering  <meyering@lucent.com>
95026
95027         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95028         * lib/dirname.c (dir_name): Likewise.
95029
95030         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95031         `/'.
95032
95033         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95034         (dir_name): Assert that there are no trailing slashes.
95035
95036 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95037
95038         * lib/mbswidth.h (mbswidth): Add a flags argument.
95039         (mbswidth): New declaration.
95040         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95041         * lib/mbswidth.c (mbswidth): Add a flags argument.
95042         (mbsnwidth): New function.
95043
95044 2000-07-24  Jim Meyering  <meyering@lucent.com>
95045
95046         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95047
95048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95049
95050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95051
95052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95053
95054         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95055         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95056         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95057         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95058         invoke multibyte primitives.
95059
95060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95061
95062         * lib/quotearg.c:
95063         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95064         so that mbstate_t is always defined.
95065
95066         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95067         be 1 in at least one GCC installation, and this configuration
95068         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95069         performance on hosts that have mbrtowc but have only unibyte
95070         locales, but I assume these hosts are rare.
95071
95072 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95073
95074         * lib/mbswidth.c (_XOPEN_SOURCE):
95075         Don't define; this causes problems on Solaris 7.
95076         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95077
95078 2000-07-23  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95081         too: getgrgid, getpwuid, getuid.
95082
95083 2000-07-23  Jim Meyering  <meyering@lucent.com>
95084
95085         * lib/basename.c (base_name): Add an assertion.
95086
95087 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95088
95089         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95090         shadow its mbsinit function.
95091
95092 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95093
95094         * lib/mbswidth.h: New file.
95095         * lib/mbswidth.c: New file.
95096         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95097         (noinst_HEADERS): Add mbswidth.h.
95098
95099 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95100
95101         * lib/config.charset: Add support for FreeBSD. Improve support for
95102         HP-UX and IRIX 6.
95103
95104 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95105
95106         * m4/mbswidth.m4: New file.
95107         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95108
95109 2000-07-15  Jim Meyering  <meyering@lucent.com>
95110
95111         * lib/makepath.c: Include quote.h.
95112         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95113         corresponding argument in a `quote (...)' call.
95114         Give better diagnostics.
95115
95116         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95117         (noinst_HEADERS): Add quote.h.
95118
95119         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95120         from tar's src/misc.c.
95121         * lib/quote.h: New file.  Prototypes for same.
95122
95123 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95124
95125         From a suggestion by Bruno Haible.
95126         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95127         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95128         to decide whether to define the BeOS workaround macro;
95129         this adjusts to the change to AC_MBSTATE_T.
95130
95131 2000-07-14  Jim Meyering  <meyering@lucent.com>
95132
95133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95134         jm_AC_TYPE_UINTMAX_T.
95135
95136 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95137
95138         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95139
95140         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95141         quotearg_buffer_restyled): Add support for
95142         clocale_quoting_style.  Undo previous change to
95143         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95144         and "{RIGHT QUOTATION MARK}" msgids.
95145
95146 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95147
95148         From a suggestion by Bruno Haible.
95149         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95150         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95151         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95152         and mbstate_t, to a single-part test that simply defines mbstate_t.
95153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95154         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95155
95156 2000-07-10  Jim Meyering  <meyering@lucent.com>
95157
95158         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95159
95160         * m4/gnu-source.m4: Output to confdefs.h directly.
95161         Suggestion from Akim Demaille.
95162
95163 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95164
95165         The old behavior of quoting `like this' doesn't look good with
95166         newer, ISO-style fonts.  See:
95167         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95168
95169         Instead, quote "like this" by default.  Let the translator
95170         tailor the locale-specific quoting behavior by providing
95171         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95172
95173         * lib/quotearg.c (N_): New macro.
95174         (gettext_default): New function.
95175         (quotearg_buffer_restyled): Use
95176         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95177         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95178
95179 2000-07-09  Jim Meyering  <meyering@lucent.com>
95180
95181         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95182         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95183
95184         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95186
95187 2000-07-09  Jim Meyering  <meyering@lucent.com>
95188
95189         * lib/Most files: Update copyright dates to include 2000.
95190
95191 2000-07-08  Jim Meyering  <meyering@lucent.com>
95192
95193         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95194         if not defined.
95195         (xgethostname): Remove now-unnecessary #ifdef.
95196         Move declaration of `err' into loop where it's used.
95197
95198 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95199         and Bruno Haible  <haible@clisp.cons.org>
95200
95201         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95202         only if the test for an object-type mbstate_t fails.  This
95203         prevents us from mistakenly reporting that mbstate_t is a
95204         system object type after we "#define mbstate_t int" to work
95205         around its lack.
95206
95207 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95208         and Bruno Haible  <haible@clisp.cons.org>
95209
95210         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95211
95212 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95213
95214         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95215         to strerror_r.
95216         Include <ctype.h> for use of isalpha.
95217
95218 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95219
95220         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95221         by allocating a larger buffer. Test the gethostname return value for
95222         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95223         returns an error and ENAMETOOLONG isn't defined.
95224
95225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95226
95227         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95228         dimension.
95229
95230 2000-07-04  Jim Meyering  <meyering@lucent.com>
95231
95232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95233         of the deprecated AC_CHECKING.
95234
95235 2000-07-04  Jim Meyering  <meyering@lucent.com>
95236
95237         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95238         Reported by Bruno Haible.
95239
95240 2000-07-04  Jim Meyering  <meyering@lucent.com>
95241
95242         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95243         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95244         lacks mbrtowc.
95245
95246 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95247
95248         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95249         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95250
95251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95252         and Bruno Haible  <haible@clisp.cons.org>
95253
95254         * lib/quotearg.c (mbrtowc):
95255         Assign to *pwc, and return 1 only if result is nonzero.
95256         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95257
95258 2000-07-03  Jim Meyering  <meyering@lucent.com>
95259
95260         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95261
95262 2000-07-03  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95265         This is necessary to get a definition of e.g., UTMP_FILE on
95266         HP-UX 10.20.
95267         From Bob Proulx.
95268
95269 2000-07-02  Jim Meyering  <meyering@lucent.com>
95270
95271         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95272
95273         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95274         AC_LIBOBJ(function_name).
95275         * m4/chown.m4: Likewise.
95276         * m4/fnmatch.m4: Likewise.
95277         * m4/ftruncate.m4: Likewise.
95278         * m4/getgroups.m4: Likewise.
95279         * m4/getline.m4: Likewise.
95280         * m4/group-member.m4: Likewise.
95281         * m4/jm-macros.m4: Likewise.
95282         * m4/lstat.m4: Likewise.
95283         * m4/malloc.m4: Likewise.
95284         * m4/memcmp.m4: Likewise.
95285         * m4/nanosleep.m4: Likewise.
95286         * m4/putenv.m4: Likewise.
95287         * m4/realloc.m4: Likewise.
95288         * m4/regex.m4: Likewise.
95289         * m4/stat.m4: Likewise.
95290         * m4/strftime.m4: Likewise.
95291
95292 2000-07-02  Jim Meyering  <meyering@lucent.com>
95293
95294         * lib/quotearg.c (mbstate_t): Don't define here.
95295
95296 2000-07-02  Jim Meyering  <meyering@lucent.com>
95297
95298         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95299
95300 2000-07-01  Jim Meyering  <meyering@lucent.com>
95301
95302         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95303
95304 2000-07-01  Jim Meyering  <meyering@lucent.com>
95305
95306         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95307         problem.
95308
95309 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95310
95311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95312         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95313
95314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95315
95316         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95317         per change in ../m4/ls-mntd-fs.m4.
95318         (read_filesystem_list): Ignore symbolic links.
95319
95320 2000-06-29  Jim Meyering  <meyering@lucent.com>
95321
95322         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95323         for declaration of strcmp.
95324
95325         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95326
95327         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95328         Avoid warning by casting result to `char *' to remove `const'.
95329
95330 2000-06-28  Jim Meyering  <meyering@lucent.com>
95331
95332         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95333         included by quotearg.c, for which we perform this test.  From
95334         Bruno Haible.
95335
95336 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95337
95338         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95340         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95341
95342 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95343
95344         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95345
95346 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95347
95348         savedir now sets errno on failure and invokes xmalloc to get memory.
95349         Fix a couple of other minor bugs while we're at it.
95350
95351         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95352         (NAMLEN): Remove macro.
95353         (malloc, realloc): Remove decls.
95354         (stpcpy): Likewise.
95355         ("xalloc.h"): Include.
95356         (NAME_SIZE_DEFAULT): New macro.
95357         (savedir): Use xmalloc / xrealloc to allocate memory.
95358         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95359         Skip "" directory entries.
95360         Use strlen to calculate directory entry length, since the old method
95361         is rarely used these days and isn't worth supporting.
95362         Don't use a pointer after freeing it.
95363         Check for integer overflow when calculating allocation size.
95364         Use memcpy to copy entries, instead of stpcpy.
95365         Set errno properly when returning NULL.
95366         Check for readdir error.
95367
95368 2000-06-26  Jim Meyering  <meyering@lucent.com>
95369
95370         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95371
95372 2000-06-25  Jim Meyering  <meyering@lucent.com>
95373
95374         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95375         Linux header bug when _XOPEN_SOURCE is defined to 500.
95376
95377 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95378
95379         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95380         deficiency.
95381
95382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95383
95384         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95385         Include xalloc.h.
95386         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95387
95388 2000-06-24  Jim Meyering  <meyering@lucent.com>
95389
95390         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95391         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95392         for which strerror does return char*, but which lacks a conveniently
95393         accessible declaration of the function.  If the compile-test says
95394         strerror_r doesn't work, then resort to a `run'-test that works on
95395         BeOS and segfaults on DEC Unix.
95396
95397 2000-06-24  Jim Meyering  <meyering@lucent.com>
95398
95399         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95400
95401 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95402
95403         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95405
95406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95407
95408         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95409         (mbrtowc, mbstate_t): Define substitutes if
95410         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95411         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95412         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95413
95414 2000-06-23  Jim Meyering  <meyering@lucent.com>
95415
95416         * m4/afs.m4: Add missing AC_MSG_RESULT.
95417         Reported by Bruno Haible.
95418
95419         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95420         Suggestion from Bruno Haible.
95421
95422 2000-06-23  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95425
95426 2000-06-21  Jim Meyering  <meyering@lucent.com>
95427
95428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95429
95430 2000-06-21  Jim Meyering  <meyering@lucent.com>
95431
95432         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95433         (noinst_HEADERS): Add getstr.h.
95434
95435         * lib/getline.c (getstr): Move into a separate file.
95436         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95437         the following changes: new parameter, delim2; both delim[12]
95438         parameters have type `int', not `char'.  The latter would lose
95439         with 8-bit delimiters.
95440         * lib/getstr.h: New file.
95441
95442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95443
95444         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95445         than 1024, return a memory chunk of least possible size, instead
95446         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95447         Use free/xmalloc instead of xrealloc to avoid copying for very long
95448         paths.
95449
95450 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95451
95452         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95453         the empty string.
95454
95455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95456
95457         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95458         address, not strdup.  Include <stdlib.h> and don't declare free().
95459
95460 2000-06-19  Jim Meyering  <meyering@lucent.com>
95461
95462         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95463
95464 2000-06-18  Jim Meyering  <meyering@lucent.com>
95465
95466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95467
95468         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95469         `checking whether...' message to be consistent with that of the
95470         lstat test.
95471
95472 2000-06-18  Jim Meyering  <meyering@lucent.com>
95473
95474         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95475         Besides, these days every porting target provides a mkdir function.
95476
95477         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95478         needed. (this snippet comes from src/system.h).
95479
95480 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95481
95482         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95483
95484 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95485
95486         * lib/human.c (adjust_value): New function.
95487         (human_readable_inexact): Apply rounding style even when
95488         printing approximate values.
95489
95490 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95491
95492         * lib/human.c (human_readable_inexact): Allow an input block
95493         size that is not a multiple of the output block size, and vice versa.
95494         Reported by Piergiorgio Sartor.
95495
95496 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95497
95498         * lib/getdate.y (get_date): Apply relative times after time
95499         zone indicator, not before.  Reported by Todd A. Jacobs.
95500
95501 2000-06-13  Jim Meyering  <meyering@lucent.com>
95502
95503         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95504
95505         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95506
95507 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95508
95509         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95510
95511 2000-06-12  Jim Meyering  <meyering@lucent.com>
95512
95513         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95514         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95515         optional argument.
95516         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95517         the optional argument, `lib'.
95518
95519 2000-06-08  Jim Meyering  <meyering@lucent.com>
95520
95521         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95522
95523 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95524
95525         Rewrite largefile configuration so that we don't need to run
95526         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95527         AC_CANONICAL_HOST in configure.in -- jmm]
95528
95529         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95530         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95531         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95532         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95533         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95534         All uses changed.
95535         Instead of inspecting the output of getconf, try to compile the
95536         test program without and with the macro definition.
95537         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95538         for getconf.  Instead, check for the needed flags by compiling
95539         test programs.
95540
95541 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95542
95543         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95544
95545 2000-06-04  Jim Meyering  <meyering@lucent.com>
95546
95547         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95548         SunOS 4.1.4 for which gid_t is an unsigned type.
95549
95550 2000-06-03  Jim Meyering  <meyering@lucent.com>
95551
95552         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95553         now that autoconf requires that.
95554
95555         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95556         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95557         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95558
95559 2000-06-03  Jim Meyering  <meyering@lucent.com>
95560
95561         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95562
95563 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95564
95565         * m4/glibc21.m4: New file.
95566         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95567
95568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95569
95570         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95571         newer, don't install charset.alias.
95572         * lib/config.charset: Change the Linux/glibc rules so they become empty
95573         on glibc-2.1 or newer.
95574
95575 2000-06-02  Jim Meyering  <meyering@lucent.com>
95576
95577         * lib/mountlist.c: Back out last change.  Instead, do this...
95578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95579         me_dummy member using the same `ignore'-testing code.
95580         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95581         fs_type strings.
95582         From Mark D. Roth.
95583
95584 2000-05-29  Jim Meyering  <meyering@lucent.com>
95585
95586         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95587         mounts with the `ignore' attribute.  Based on a patch from
95588         Mark D. Roth.
95589
95590 2000-05-28  Jim Meyering  <meyering@lucent.com>
95591
95592         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95593         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95594         * m4/stat.m4: Likewise.
95595         * m4/lstat.m4: Likewise.
95596         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95597
95598         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95599         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95600
95601 2000-05-26  Jim Meyering  <meyering@lucent.com>
95602
95603         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95604
95605 2000-05-24  Jim Meyering  <meyering@lucent.com>
95606
95607         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95608         autoconf requires that.
95609         * m4/lib-check.m4: Likewise.
95610         * m4/jm-macros.m4: Likewise.
95611         * m4/strftime.m4: Likewise.
95612
95613         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95614         AC_CHECK_DECLS, now that autoconf requires that.
95615
95616 2000-05-22  Jim Meyering  <meyering@lucent.com>
95617
95618         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95619         * m4/lstat.m4: Likewise.
95620
95621 2000-05-22  Jim Meyering  <meyering@lucent.com>
95622
95623         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95624
95625 2000-05-20  Jim Meyering  <meyering@lucent.com>
95626
95627         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95628         (jm_PREREQ): Use it.
95629
95630 2000-05-18  Jim Meyering  <meyering@lucent.com>
95631
95632         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95633         back, too, since it may have been modified by allocate_entry.
95634         (hash_delete): Rewrite to use neither the assignment operator
95635         nor the comma operator in an if-expression.
95636
95637 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95638
95639         * lib/closeout.c:
95640         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95641         Remove; no longer needed.
95642         "quotearg.h": Add include.
95643         (file_name): Do not bother to explicitly initialize to NULL; it's less
95644         efficient on some hosts.
95645         (close_stdout_status): Remove test as to whether stdout was already
95646         closed; it breaks for the case "echo x | sort >&-".
95647         Quote file name colons.
95648         Do not assume that _("write error") lacks format strings.
95649
95650 2000-05-15  Jim Meyering  <meyering@lucent.com>
95651
95652         * lib/version-etc.c (version_etc_copyright): Update the copyright
95653         string used in all --version output.
95654
95655 2000-05-14  Jim Meyering  <meyering@lucent.com>
95656
95657         * lib/closeout.c (close_stdout_set_file_name): New function.
95658         (close_stdout_status): Use new file-scoped global.
95659         Return right away if fstat says the stdout file descriptor is invalid.
95660         * lib/closeout.h (close_stdout_set_file_name): Declare.
95661
95662 2000-05-10  Jim Meyering  <meyering@lucent.com>
95663
95664         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95665         (close_stdout_set_status): New function.
95666         * lib/closeout.h (close_stdout_set_status): Declare.
95667
95668 2000-05-09  Jim Meyering  <meyering@lucent.com>
95669
95670         * m4/gettext.m4: Rename this...
95671         * m4/libintl.m4: ...to this.
95672
95673 2000-05-08  Jim Meyering  <meyering@lucent.com>
95674
95675         * lib/long-options.c: Don't include closeout.h.
95676         (parse_long_options): Don't call close_stdout for --version.
95677
95678 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95679
95680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95681         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95682         2.1.3 bug.  This avoids a clash when files like regex.c define
95683         _GNU_SOURCE.
95684
95685 2000-05-06  Jim Meyering  <meyering@lucent.com>
95686
95687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95688         (AC_REPLACE_FUNCS): Add strnlen.
95689
95690         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95691         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95692
95693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95694         AC_SEARCH_LIBS call for nanosleep.
95695         (LIB_NANOSLEEP): Set and AC_SUBST.
95696
95697 2000-05-06  Jim Meyering  <meyering@lucent.com>
95698
95699         * lib/strnlen.c: Undefine __strnlen and strnlen.
95700         [!weak_alias]: Define __strnlen to strnlen.
95701
95702         * lib/atexit.c: New file, from libiberty.
95703
95704 2000-05-06  Jim Meyering  <meyering@lucent.com>
95705
95706         * lib/closeout.c (close_stdout_status): Also check for errors on the
95707         stderr stream.
95708
95709 2000-05-05  Jim Meyering  <meyering@lucent.com>
95710
95711         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95712         AC_SEARCH_LIBS call for clock_gettime.
95713         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95714
95715         * m4/search-libs.m4: Update from autoconf.
95716
95717         su doesn't work on Solaris 2.6.
95718         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95719         <shadow.h>.  Reported by Dragos Harabor.
95720
95721 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95722
95723         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95724         memcpy instead of xmalloc, xrealloc, path_concat.
95725         (locale_charset): Treat empty environment variables as absent.
95726         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95727
95728 2000-05-04  Jim Meyering  <meyering@lucent.com>
95729
95730         * lib/getopt.c: Update from glibc.
95731         * lib/obstack.c: Likewise.
95732         * lib/obstack.h: Likewise.
95733         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95734         file
95735
95736         * lib/regex.h: Likewise.
95737         * lib/strndup.c: Likewise.
95738         * lib/strnlen.c: New file, from glibc.
95739
95740 2000-05-03  Jim Meyering  <meyering@lucent.com>
95741
95742         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95743
95744 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95745
95746         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95747         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95748         compile-time test, rather than inspecting host and OS, to
95749         decide whether to define _LARGEFILE_SOURCE.
95750
95751 2000-05-01  Jim Meyering  <meyering@lucent.com>
95752
95753         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95754
95755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95756         Based on a patch from Bruno Haible.
95757
95758 2000-05-01  Jim Meyering  <meyering@lucent.com>
95759
95760         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95761
95762 2000-04-29  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/path-concat.c: Declare strdup only if it's not defined.
95765         * lib/canon-host.c: Likewise.
95766
95767 2000-04-28  Jim Meyering  <meyering@lucent.com>
95768
95769         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95770         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95771         is included first, then limits.h is included by locale.h by libintl.h.
95772         From John David Anglin.
95773
95774 2000-04-25  Jim Meyering  <meyering@lucent.com>
95775
95776         * lib/makepath.c (S_IRWXUGO): Define.
95777         (make_path): Always perform explicit chmod if MODE specifies any
95778         of the `special' permission bits.  Prompted by a bug report against
95779         install from Mate Wierdl and Joost van Baal.
95780
95781 2000-04-18  Jim Meyering  <meyering@lucent.com>
95782
95783         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95784         (jm_PREREQ): Use it.
95785
95786 2000-04-18  Jim Meyering  <meyering@lucent.com>
95787
95788         * lib/README: New file.
95789
95790         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95791         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95792
95793 2000-04-17  Jim Meyering  <meyering@lucent.com>
95794
95795         Get it right :-)
95796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95797         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95798         Suggestion from Akim Demaille.
95799
95800 2000-04-17  Jim Meyering  <meyering@lucent.com>
95801
95802         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95803         the definition of it to rpl_strftime also defined-away the system's
95804         declaration.
95805
95806 2000-04-15  Jim Meyering  <meyering@lucent.com>
95807
95808         Use `C' to denote so-called `contiguous' files, the same way
95809         that tar does.
95810         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95811         (ftypelet): Use S_ISCTG.
95812         From Michael Deutschmann.
95813
95814 2000-04-14  Jim Meyering  <meyering@lucent.com>
95815
95816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95817         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95818         clobbered.
95819
95820 2000-04-14  Jim Meyering  <meyering@lucent.com>
95821
95822         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95823
95824 2000-04-13  Jim Meyering  <meyering@lucent.com>
95825
95826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95827         AH_VERBATIM to insert required #ifndef into config.h.in.
95828         Suggestion from Akim Demaille.
95829
95830 2000-04-12  Jim Meyering  <meyering@lucent.com>
95831
95832         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95833         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95834         Christian Krackowizer.
95835
95836         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95837         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95838         (AC_SYS_LARGEFILE): Require.
95839         (AM_C_PROTOTYPES): Require.
95840
95841 2000-04-08  Jim Meyering  <meyering@lucent.com>
95842
95843         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95844         names don't conflict.  Reported by Eli Zaretskii.
95845
95846 2000-04-07  Jim Meyering  <meyering@lucent.com>
95847
95848         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95849         sys/types.h, to work around system header problems on AIX 3.2.5.
95850         From Bruno Haible.
95851
95852 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95853
95854         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95855         bug.  Deal with the different error behavior of Irix iconv.
95856
95857 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95858
95859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95860         IRIX if the installer said otherwise.
95861
95862 2000-04-05  Jim Meyering  <meyering@lucent.com>
95863
95864         Portability tweaks required for ultrix4.3.
95865         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95866         (jm_CHECK_DECLS): Add getutent to the list of functions.
95867         (_jm_DECL_HEADERS): Add utmpx.h.
95868         From John David Anglin.
95869
95870         * m4/strftime.m4: Back out the 2000-04-02 change.
95871         Instead of that change, simply undefine putenv in the test program.
95872
95873 2000-04-05  Jim Meyering  <meyering@lucent.com>
95874
95875         Portability tweaks required for ultrix4.3.
95876         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95877         getutent.
95878         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95879         * lib/canon-host.c: Declare strdup.
95880         * lib/path-concat.c: Likewise.
95881         From John David Anglin.
95882
95883 2000-04-04  Jim Meyering  <meyering@lucent.com>
95884
95885         Be more DOS 8.3-friendly.
95886         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95887         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95888         * lib/Makefile.am: Reflect renaming.
95889         Reported by Eli Zaretskii.
95890
95891         Use a temporary file name that won't clash with `charset.alias'
95892         in the DOS 8.3 name space.
95893         * lib/Makefile.am (charset_tmp): Define.
95894         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95895         (uninstall-local): Likewise.
95896         Reported by Eli Zaretskii.
95897
95898 2000-04-03  Jim Meyering  <meyering@lucent.com>
95899
95900         * m4/gettext.m4: Fix typo in comment.
95901
95902         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95903         textutils/configure.in).  Suggestion from Paul Eggert.
95904         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95905
95906 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95907
95908         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95909         variable in the shell rather than using putenv, which isn't
95910         portable.  This avoids the configure-time inter-test dependency
95911         on the potentially-renamed putenv function.
95912
95913 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95914
95915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95916         before checking struct stat.st_blksize, so that
95917         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95918
95919 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95920
95921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95922         since strftime.c uses HAVE_STRFTIME to decide whether to use
95923         the underlying strftime.
95924
95925 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95926
95927         * lib/time/strftime.c (my_strftime): Make sure we call the system
95928         strftime, not ourselves, when invoking the underlying strftime.
95929
95930 2000-03-24  Jim Meyering  <meyering@lucent.com>
95931
95932         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95933         (charset_alias): Define.
95934         (install-exec-local): Factor out common code.
95935         (uninstall-local): Split lines longer than 80.
95936         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95937         (SUFFIXES): Define.
95938         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95939         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95940
95941 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95942
95943         * lib/config.charset: Output a line containing "Packages using this
95944         file".
95945         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95946         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95947         ref-del.sed): New rules.
95948
95949 2000-03-17  Jim Meyering  <meyering@lucent.com>
95950
95951         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95952         Otherwise, include <strings.h>
95953
95954 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95955
95956         * lib/unicodeio.c (utf8_wctomb): New function.
95957         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95958         format instead of in UCS-4 with platform dependent endianness.
95959
95960 2000-03-10  Jim Meyering  <meyering@lucent.com>
95961
95962         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95963         From Marco Franzen.
95964
95965 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95966
95967         * lib/savedir.c (savedir): Work even if directory size is
95968         negative; this can happen with some screwy NFS configurations.
95969
95970 2000-03-06  Jim Meyering  <meyering@lucent.com>
95971
95972         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95973         if it's NULL (because we ran out of memory).  From Bruno Haible.
95974
95975 2000-03-05  Jim Meyering  <meyering@lucent.com>
95976
95977         * lib/localcharset.c ("path-concat.h"): Include.
95978         (get_charset_aliases): Use path_concat instead of ANSI string
95979         concatenation.
95980
95981         * lib/unicodeio.h (PARAMS): Define.
95982         Use it to guard prototype.
95983
95984 2000-03-04  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95987         for lib/localcharset.c.
95988
95989 2000-03-04  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95992         installing into it.
95993         (uninstall-local): Uncomment this rule so `make distcheck' works
95994         once again.
95995
95996         * lib/unicodeio.c (<errno.h>): Include it.
95997         (errno): Declare if not defined.
95998
95999         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96000
96001         * lib/config.charset: New version, incorporating remarks from a linux
96002         i18n mailing list.  From Bruno Haible.
96003
96004 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96005
96006         * m4/codeset.m4: New file.
96007         * m4/iconv.m4: New file.
96008         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96009
96010 2000-03-03  Jim Meyering  <meyering@lucent.com>
96011
96012         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96013
96014 2000-03-02  Jim Meyering  <meyering@lucent.com>
96015
96016         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96017         the messages come out on separate lines.
96018
96019         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96020         rather than jm_CHECK_DECLARATIONS.
96021         * m4/decl.m4: Remove now-unused file.
96022
96023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96024         geteuid.
96025
96026 2000-03-02  Jim Meyering  <meyering@lucent.com>
96027
96028         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96029
96030 2000-03-01  Jim Meyering  <meyering@lucent.com>
96031
96032         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96033         * lib/unicodeio.c: Likewise.
96034
96035 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96036
96037         * lib/config.charset: New file.
96038         * lib/localcharset.c: New file.
96039         * lib/unicodeio.h, lib/unicodeio.c: New files.
96040         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96041         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96042         (noinst_HEADERS): Add unicodeio.h.
96043         (all-local, install-exec-local, charset.alias): New targets.
96044
96045 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96046
96047         * lib/quotearg.c (ALERT_CHAR): New macro.
96048         (quotearg_buffer_restyled): Use it.
96049
96050 2000-02-27  Jim Meyering  <meyering@lucent.com>
96051
96052         * m4/check-decl.m4: Add getenv to the list.
96053
96054 2000-02-27  Jim Meyering  <meyering@lucent.com>
96055
96056         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96057         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96058
96059         * lib/backupfile.c: Guard inclusion of stdlib.h with
96060         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96061         Declare malloc if needed.
96062
96063         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96064         `#ifndef HAVE_DECL..'
96065         now that autoconf always defines the HAVE_DECL_ symbols.
96066         * lib/human.c: Likewise.
96067         * lib/same.c: Likewise.
96068         * lib/strtoumax.c: Likewise.
96069
96070         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96071         declaration check was not run.
96072         * lib/hash.c: Likewise.
96073         * lib/human.c: Likewise.
96074         * lib/same.c: Likewise.
96075         * lib/strtoumax.c: Likewise.
96076
96077         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96078         `.', then first look up the entire `.'-containing string as a login
96079         name.
96080
96081 2000-02-23  Jim Meyering  <meyering@lucent.com>
96082
96083         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96084         in place of my hack.
96085
96086 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96087
96088         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96089         (textint): New typedef.
96090         (parser_control): Member year changed from int to textint.
96091         All uses changed.
96092         (YYSTYPE): Removed; replaced by %union with int and textint members.
96093         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96094         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96095         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96096         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96097         (date, number, to_year): Use width of number in digits, not its value,
96098         to determine whether it's a 2-digit year, or a 2-digit time.
96099         (yylex): Store number of digits of numeric tokens.
96100         Reported by John Kendall.
96101
96102         (parser_control): Changed from struct parser_control to typedef (for
96103         consistency).  All uses changed.
96104
96105         (tID): Removed; not used.
96106         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96107
96108 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96109
96110         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96111         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96112
96113 2000-02-12  Jim Meyering  <meyering@lucent.com>
96114
96115         * lib/userspec.c (ISDIGIT): Define it.
96116         (isdigit): Remove definition.
96117         (is_number): Use ISDIGIT, not isdigit.
96118         <libintl.h>: Include.
96119         (_ and N_): Define.
96120         (parse_user_spec): Mark translatable strings.
96121
96122 2000-02-10  Jim Meyering  <meyering@lucent.com>
96123
96124         With these changes, nanosleep.[ch] are finally enough like the other
96125         lib/* replacement files to compile on a few more losing systems.
96126
96127         * lib/nanosleep.h: Don't include config.h.
96128         Remove prototype from declaration of nanosleep.
96129         (PARAMS): Remove now-unneeded definition.
96130         * lib/nanosleep.c: #undef nanosleep.
96131         (rpl_nanosleep): Rename from nanosleep.
96132
96133 2000-02-10  Jim Meyering  <meyering@lucent.com>
96134
96135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96136         gnu_nanosleep to rpl_nanosleep.
96137
96138 2000-02-09  Jim Meyering  <meyering@lucent.com>
96139
96140         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96141         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96142
96143 2000-02-08  Akim Demaille  <akim@epita.fr>
96144
96145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96146         `[' and `]' and remove uses of `changequote'.
96147         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96148         (AC_SYS_LARGEFILE): Likewise.
96149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96150         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96151         of changequote.
96152         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96153         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96154         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96155         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96156
96157 2000-02-05  Jim Meyering  <meyering@lucent.com>
96158
96159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96160         Remove explicit use of AC_HEADER_TIME.  It is required by
96161         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96162         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96163         in autoconf whereby the expansion of the latter ended up preceding
96164         the expansion of its prerequisite, AC_HEADER_TIME.
96165         Reported by Volker Borchert.
96166
96167 2000-02-03  Jim Meyering  <meyering@lucent.com>
96168
96169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96170
96171 2000-02-03  Jim Meyering  <meyering@lucent.com>
96172
96173         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96174         rather than with `#if HAVE_UTMPNAME'.
96175
96176 2000-02-02  Jim Meyering  <meyering@lucent.com>
96177
96178         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96179         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96180         Reported by Eli Zaretskii.
96181
96182 2000-02-01  Jim Meyering  <meyering@lucent.com>
96183
96184         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96185
96186 2000-01-31  Jim Meyering  <meyering@lucent.com>
96187
96188         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96189         functions.  Add the time.h and sys/time.h headers along with the
96190         AC_REQUIRE'ment of AC_HEADER_TIME.
96191
96192 2000-01-31  Jim Meyering  <meyering@lucent.com>
96193
96194         * lib/nanosleep.h (nanosleep): Guard declaration with
96195         `#if ! HAVE_DECL_NANOSLEEP'.
96196         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96197         the declaration in that vendor's sys/timers.h.
96198         Reported by Christian Krackowizer.
96199
96200         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96201         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96202         (ISPRINT): Likewise.
96203         Reported by Tom Tromey.
96204
96205 2000-01-30  Jim Meyering  <meyering@lucent.com>
96206
96207         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96208
96209         * m4/prereq.m4 (utmp_includes): Define.
96210         Check for ut_user and ut_name members in both struct utmpx
96211         and struct utmp.
96212
96213 2000-01-30  Jim Meyering  <meyering@lucent.com>
96214
96215         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96216         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96217         header files where only utmpx.ut_user is declared.
96218
96219         * lib/readutmp.h (UT_USER): Define.
96220
96221 2000-01-29  Jim Meyering  <meyering@lucent.com>
96222
96223         * m4/lib-check.m4: New file containing library-related checks from
96224         fileutils and sh-utils (textutils had none).
96225
96226 2000-01-28  Jim Meyering  <meyering@lucent.com>
96227
96228         * m4/perl.m4: Change format of warning message to look more like that
96229         from the missing script.  Suggestion from François Pinard.
96230
96231 2000-01-25  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96234         well as time.h in the compile check.
96235         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96236         Fix typo in cross-compiling case: s/yes/no/.
96237
96238 2000-01-23  Jim Meyering  <meyering@lucent.com>
96239
96240         * m4/jm-macros.m4: Move df-related tests here from
96241         fileutils/configure.in
96242
96243         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96244         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96245
96246         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96247         s/space/ac_fsusage_space/.
96248         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96249
96250         * m4/ftruncate.m4: New file (derived from part of
96251         fileutils/configure.in).
96252         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96253         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96254
96255         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96256         AC_SUBST these here, rather than just in sh-util/configure.in, so
96257         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96258         all the same.
96259         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96260         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96261         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96262         (AC_SUBST(POW_LIBM)): Likewise.
96263         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96264
96265 2000-01-23  Jim Meyering  <meyering@lucent.com>
96266
96267         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96268         obstack.c.
96269
96270 2000-01-22  Jim Meyering  <meyering@lucent.com>
96271
96272         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96273
96274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96275
96276         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96277         configure.in
96278         (AC_CHECK_HEADERS): Likewise for sh-utils.
96279         (AC_CHECK_HEADERS): Likewise for textutils.
96280         Merge the three lists of headers.
96281
96282         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96283         from fileutils' configure.in.
96284
96285         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96286         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96287         check-decl.m4.
96288
96289         * m4/check-decl.m4: Use #if rather than #ifdef.
96290         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96291         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96292         (_jm_DECL_HEADERS): Define new function.
96293         (jm_CHECK_DECLARATIONS): Require it.
96294
96295 2000-01-22  Jim Meyering  <meyering@lucent.com>
96296
96297         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96298         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96299         Required for some AIX systems.  Reported by Christian Krackowizer.
96300         [TESTING] (main): New function.
96301
96302         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96303         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96304         letters.
96305
96306         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96307         iswprint.
96308
96309         * lib/strverscmp.c (ISDIGIT): Define.
96310         (strverscmp): Use ISDIGIT, not isdigit.
96311
96312 2000-01-19  Jim Meyering  <meyering@lucent.com>
96313
96314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96315         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96316         defines `struct timespec' in <sys/time.h>
96317
96318         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96319         Thanks to Akim for explaining.
96320
96321 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96322
96323         * lib/nanosleep.c (nanosleep):
96324         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96325         POSIX.1 doesn't require SA_INTERRUPT and some systems
96326         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96327         it's been part of POSIX.1 since day 1 (in 1988).
96328
96329 2000-01-17  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/interlock: Remove unused file.  Reported by François Pinard.
96332
96333 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96334
96335         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96336         alert, backslash, formfeed, and vertical tab unnecessarily in
96337         shell quoting style.
96338
96339 2000-01-16  Jim Meyering  <meyering@lucent.com>
96340
96341         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96342         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96343         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96344         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96345
96346 2000-01-16  Jim Meyering  <meyering@lucent.com>
96347
96348         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96349         because the latter didn't work.
96350
96351 2000-01-15  Jim Meyering  <meyering@lucent.com>
96352
96353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96354         (AC_REPLACE_FUNCS): Add memcpy and memset.
96355         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96356         Add strpbrk.
96357         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96358
96359 2000-01-12  Jim Meyering  <meyering@lucent.com>
96360
96361         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96362         (jm_PREREQ): Use it.
96363         (jm_PREREQ_READUTMP): New macro.
96364         (jm_PREREQ): Use it.
96365
96366 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96367
96368         Quote multibyte characters correctly.
96369         * m4/c-bs-a.m4: New file.
96370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96371         (jm_PREREQ): Use it.
96372
96373 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96374
96375         * m4/uintmax_t.m4: Port to autoconf 2.13.
96376
96377 2000-01-08  Jim Meyering  <meyering@ascend.com>
96378
96379         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96380         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96381
96382 2000-01-04  Jim Meyering  <meyering@ascend.com>
96383
96384         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96385         jm_STRUCT_DIRENT_D_TYPE.
96386         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96387         jm_STRUCT_DIRENT_D_INO.
96388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96389         jm_STRUCT_UTIMBUF.
96390         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96391         renamings.
96392         * m4/utime.m4: Likewise.
96393
96394         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96395         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96396
96397 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96398
96399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96400         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96401
96402 2000-01-02  Jim Meyering  <meyering@ascend.com>
96403
96404         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96405         remember if this is necessary.
96406
96407 1999-12-26  Jim Meyering  <meyering@ascend.com>
96408
96409         * m4/jm-macros.m4: Use it here.
96410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96411
96412 1999-12-23  Jim Meyering  <meyering@ascend.com>
96413
96414         * m4/jm-macros.m4: Check for clock_gettime (moved from
96415         fileutils/configure.in)
96416         Check for gettimeofday.
96417
96418 1999-12-20  Jim Meyering  <meyering@ascend.com>
96419
96420         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96421         autoconf-2.14a-1999-12-20.
96422
96423 1999-12-19  Jim Meyering  <meyering@ascend.com>
96424
96425         * m4/lstat-slash.m4: New file.
96426         * m4/jm-macros.m4: Use the new macro:
96427         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96428
96429 1999-12-07  Jim Meyering  <meyering@ascend.com>
96430
96431         * m4/perl.m4: Require that File::Compare be available, too.
96432         Too many systems seem to lack it.
96433
96434         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96435         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96436
96437 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96438
96439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96440         problem with the QNX 4.25 shell, which doesn't propagate exit
96441         status of failed commands inside shell assignments.
96442
96443 1999-11-17  Jim Meyering  <meyering@ascend.com>
96444
96445         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96446
96447 1999-11-07  Jim Meyering  <meyering@ascend.com>
96448
96449         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96450
96451 1999-11-06  Jim Meyering  <meyering@ascend.com>
96452
96453         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96454         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96455
96456 1999-11-05  Jim Meyering  <meyering@ascend.com>
96457
96458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96459         configure.in of textutils, fileutils, and sh-utils into this one
96460         (shared between those packages) file.
96461         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96462         AC_STRUCT_ST_BLKSIZE.
96463
96464 1999-11-03  Jim Meyering  <meyering@ascend.com>
96465
96466         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96467         of AC_CHECK_TYPE checks includes unistd.h.
96468         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96469         Suggestion from Akim Demaille.
96470
96471 1999-10-30  Jim Meyering  <meyering@ascend.com>
96472
96473         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96474         m4-quoted string.
96475         * m4/ls-mntd-fs.m4: Likewise.
96476         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96477         * m4/jm-winsz1.m4: Likewise.
96478
96479         * m4/const.m4: Remove file, since the fix made it into the experimental
96480         version of autoconf.
96481         * m4/mktime.m4: Likewise.
96482
96483         * m4/check-type.m4: Remove file, now that the latest version of
96484         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96485
96486         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96487         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96488         AC_CHECK_TYPE.
96489
96490 1999-10-04  Jim Meyering  <meyering@ascend.com>
96491
96492         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96493
96494 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96495
96496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96497         2.95.1 bug with HP-UX 10.20.
96498
96499 1999-09-17  Jim Meyering  <meyering@ascend.com>
96500
96501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96502         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96503         due to missing strdup (against sh-utils-2.0).
96504
96505 1999-08-29  Jim Meyering  <meyering@ascend.com>
96506
96507         * m4/jm-macros.m4: Require jm_BISON.
96508         * m4/bison.m4: New file.
96509
96510 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96511
96512         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96513         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96514
96515 1999-08-05  Jim Meyering  <meyering@ascend.com>
96516
96517         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96518         to avoid conflicts with `conftest' on 8+3 filesystems.
96519         Suggestion from Eli Zaretskii.
96520
96521 1999-08-04  Jim Meyering  <meyering@ascend.com>
96522
96523         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96524         fileutils and sh-utils (textutils's getline test was inadequate).
96525         (AM_FUNC_GETLINE): Run this test.
96526         (AC_CHECK_FUNCS): Check for getdelim.
96527         Reported by Bob Proulx.
96528
96529 1999-08-02  Jim Meyering  <meyering@ascend.com>
96530
96531         * m4/jm-macros.m4: Add a comment.
96532
96533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96534
96535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96536         <inttypes.h> defines strtoumax as a macro (and not as a
96537         function).
96538
96539 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96540
96541         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96542         that we can shift, multiply and divide unsigned long long
96543         values; Ultrix cc can't do it.
96544
96545 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96546
96547         * m4/mktime.m4: New file, which is a preview of what should appear
96548         in the next public autoconf release.
96549
96550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96551
96552         * m4/lfs.m4: Remove this file.
96553         * m4/largefile.m4: New file.  It contains the old contents of
96554         lfs.m4, except that all names with prefix AC_LFS have been
96555         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96556         compatible with future autoconf versions.  Also, some minor m4
96557         quoting problems have been fixed.
96558
96559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96560
96561         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96562         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96563         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96564         and simplify the shell code.
96565
96566 1999-08-01  Jim Meyering  <meyering@ascend.com>
96567
96568         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96569         m4.
96570
96571 1999-07-20  Jim Meyering  <meyering@ascend.com>
96572
96573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96574
96575 1999-07-15  Jim Meyering  <meyering@ascend.com>
96576
96577         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96578
96579 1999-05-22  Jim Meyering  <meyering@ascend.com>
96580
96581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96582
96583 1999-05-20  Jim Meyering  <meyering@ascend.com>
96584
96585         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96586         Add a colon after each `then' in case $4 is empty.
96587
96588 1999-05-16  Jim Meyering  <meyering@ascend.com>
96589
96590         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96591
96592 1999-05-10  Jim Meyering  <meyering@ascend.com>
96593
96594         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96595
96596         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96597         AC_FUNC_MKTIME.
96598
96599 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96600
96601         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96602
96603 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96604
96605         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96606         not CPPFLAGS, so that linking works correctly in IRIX.
96607
96608 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96609
96610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96611
96612 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96613
96614         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96615         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96617         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96618         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96619
96620         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96621
96622 1999-04-20  Jim Meyering  <meyering@ascend.com>
96623
96624         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96625         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96626         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96627
96628 1999-04-18  Jim Meyering  <meyering@ascend.com>
96629
96630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96631         * m4/jm-macros.m4: Use it.
96632
96633 1999-04-06  Jim Meyering  <meyering@ascend.com>
96634
96635         * m4/strftime.m4: Remove test for %f.
96636
96637 1999-03-29  Jim Meyering  <meyering@ascend.com>
96638
96639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96640         superset of the AC_TYPE_* checks in the textutils, fileutils,
96641         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96642         AC_TYPE_PID_T.
96643
96644 1999-03-28  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96647         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96648         replaced e.g., in the *.sh files of the sh-utils.
96649
96650 1999-03-20  Jim Meyering  <meyering@ascend.com>
96651
96652         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96653         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96654         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96655
96656 1999-03-19  Jim Meyering  <meyering@ascend.com>
96657
96658         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96659
96660 1999-03-12  Jim Meyering  <meyering@ascend.com>
96661
96662         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96663
96664 1999-03-07  Jim Meyering  <meyering@ascend.com>
96665
96666         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96667         declared.
96668
96669 1999-02-17  Jim Meyering  <meyering@ascend.com>
96670
96671         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96672         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96673
96674 1999-02-07  Jim Meyering  <meyering@ascend.com>
96675
96676         * m4/group-member.m4: New file -- extracted from sh-utils'
96677         configure.in.
96678
96679         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96680         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96681
96682 1999-02-06  Jim Meyering  <meyering@ascend.com>
96683
96684         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96685         * m4/fnmatch.m4: Likewise.
96686         * m4/getgroups.m4: Likewise.
96687         * m4/lstat.m4: Likewise.
96688         * m4/malloc.m4: Likewise.
96689         * m4/putenv.m4: Likewise.
96690         * m4/realloc.m4: Likewise.
96691         * m4/regex.m4: Likewise.
96692         * m4/stat.m4: Likewise.
96693         * m4/strftime.m4: Likewise.
96694         Suggestion from Alain Magloire.
96695
96696         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96697         * m4/fnmatch.m4: Likewise.
96698         * m4/getgroups.m4: Likewise.
96699         * m4/getline.m4: Likewise.
96700         * m4/lstat.m4: Likewise.
96701         * m4/malloc.m4: Likewise.
96702         * m4/memcmp.m4: Likewise.
96703         * m4/putenv.m4: Likewise.
96704         * m4/realloc.m4: Likewise.
96705         * m4/regex.m4: Likewise.
96706         * m4/stat.m4: Likewise.
96707         * m4/strftime.m4: Likewise.
96708         Suggestion from Alain Magloire.
96709
96710         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96711         an argument.
96712
96713         * m4/regex.m4: Add a run-time Test for proper operation of
96714         re_compile_pattern.
96715
96716 1999-01-31  Jim Meyering  <meyering@ascend.com>
96717
96718         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96719
96720 1999-01-30  Jim Meyering  <meyering@ascend.com>
96721
96722         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96723
96724         * m4/jm-mktime.m4: Make this a wrapper around the official
96725         AM_FUNC_MKTIME rather than my private copy, now that the official one
96726         is up to date.
96727         * m4/mktime.m4: Remove file.
96728
96729         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96730         * m4/uptime.m4: Likewise.
96731         * m4/uintmax_t.m4: Likewise.
96732
96733 1999-01-28  Jim Meyering  <meyering@ascend.com>
96734
96735         * m4/jm-macros.m4: Use jm_AFS.
96736         * m4/afs.m4: New file (from fileutils' configure.in).
96737
96738         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96739         * m4/chown.m4: Likewise.
96740         * m4/d-ino.m4: Likewise.
96741         * m4/d-type.m4: Likewise.
96742         * m4/fnmatch.m4: Likewise.
96743         * m4/getgroups.m4: Likewise.
96744         * m4/gettext.m4: Likewise.
96745         * m4/jm-mktime.m4: Likewise.
96746         * m4/jm-winsz2.m4: Likewise.
96747         * m4/lcmessage.m4: Likewise.
96748         * m4/ls-mntd-fs.m4: Likewise.
96749         * m4/malloc.m4: Likewise.
96750         * m4/memcmp.m4: Likewise.
96751         * m4/putenv.m4: Likewise.
96752         * m4/realloc.m4: Likewise.
96753         * m4/st_mtim.m4: Likewise.
96754         * m4/strftime.m4: Likewise.
96755
96756 1999-01-16  Jim Meyering  <meyering@ascend.com>
96757
96758         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96759         (ARGMATCH_DIE_DECL): Define.
96760
96761 1999-01-12  Jim Meyering  <meyering@ascend.com>
96762
96763         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96764         Reported by Lars Hecking.
96765
96766 1999-01-10  Jim Meyering  <meyering@ascend.com>
96767
96768         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96769         gross kludge.
96770         * m4/inttypes_h.m4: Likewise.
96771         * m4/lstat.m4: Likewise.
96772         * m4/malloc.m4: Likewise.
96773         * m4/readdir.m4: Likewise.
96774         * m4/realloc.m4: Likewise.
96775         * m4/st_dm_mode.m4: Likewise.
96776         * m4/stat.m4: Likewise.
96777         * m4/utimbuf.m4: Likewise.
96778         * m4/utimes.m4: Likewise.
96779
96780         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96781         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96782         comments in config.h.in are meaningful.
96783
96784         * m4/jm-macros.m4: Require autoconf-2.13 here.
96785
96786         * m4/regex.m4: By default, don't use the included regex.c on systems
96787         with glibc 2.  Suggestion from Uli Drepper.
96788
96789 1999-01-02  Jim Meyering  <meyering@ascend.com>
96790
96791         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96792
96793 1998-12-18  Jim Meyering  <meyering@ascend.com>
96794
96795         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96796         Based on a suggestion from Lars Hecking.
96797
96798 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96799
96800         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96801
96802 1998-11-16  Jim Meyering  <meyering@ascend.com>
96803
96804         * m4/lfs.m4: Double-quote the `uname...` expression.
96805
96806 1998-11-14  Jim Meyering  <meyering@ascend.com>
96807
96808         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96809         * m4/stat.m4: Likewise.
96810
96811 1998-11-03  Jim Meyering  <meyering@ascend.com>
96812
96813         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96814         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96815
96816 1998-10-18  Jim Meyering  <meyering@ascend.com>
96817
96818         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96819
96820 1998-10-17  Jim Meyering  <meyering@ascend.com>
96821
96822         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96823         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96824         calls for those previously hard-coded headers.  Instead, take a new
96825         parameter.
96826         (jm_CHECK_DECLARATIONS): Reflect interface change.
96827         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96828         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96829
96830         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96831
96832 1998-10-14  Jim Meyering  <meyering@ascend.com>
96833
96834         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96835         instead of "TZ=America/Vancouver".  From Paul Eggert.
96836
96837 1998-10-11  Jim Meyering  <meyering@ascend.com>
96838
96839         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96840         This adds a test for a recently added compatibility fix for mktime.c.
96841         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96842
96843 1998-09-27  Jim Meyering  <meyering@ascend.com>
96844
96845         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96846
96847         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96848         ../configure.in, including a change from Gordon Matzigkeit to allow
96849         cross-compiling for the Hurd.
96850
96851         * m4/glibc.m4: New file/macro to test for the GNU C Library
96852         versions 1 and 2.  From Gordon Matzigkeit.
96853         Indent.
96854
96855 1998-09-21  Jim Meyering  <meyering@ascend.com>
96856
96857         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96858
96859 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96860
96861         Port nanosecond-resolution times to UnixWare 2.1.2 and
96862         pedantic Solaris 2.6.
96863
96864         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96865         AC_STRUCT_ST_MTIM.
96866         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96867         Generate name of ns member, instead of just 1 or undef.
96868         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96869
96870 1998-08-15  Jim Meyering  <meyering@ascend.com>
96871
96872         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96873         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96874         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96875         instead of jm_TYPE_SSIZE_T.
96876
96877 1998-08-12  Jim Meyering  <meyering@ascend.com>
96878
96879         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96880
96881 1998-08-02  Jim Meyering  <meyering@ascend.com>
96882
96883         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96884         in acconfig.h manually.
96885
96886 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96887
96888         * m4/st_mtim.m4: New file.
96889
96890 1998-07-28  Jim Meyering  <meyering@ascend.com>
96891
96892         * m4/utimes.m4: Undef stat.
96893
96894 1998-07-25  Jim Meyering  <meyering@ascend.com>
96895
96896         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96897         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96898
96899 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96900
96901         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96902         uid and gid actually remain unchanged.
96903
96904 1998-07-07  Jim Meyering  <meyering@ascend.com>
96905
96906         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96907
96908 1998-07-04  Jim Meyering  <meyering@ascend.com>
96909
96910         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96911         to prove that this macro can be used in packages without regex.c.
96912
96913 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96914
96915         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96916         is to be used.
96917
96918 1998-07-03  Jim Meyering  <meyering@ascend.com>
96919
96920         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96921
96922         * m4/gettext.m4: New file -- from gettext-0.10.35.
96923         * m4/lcmessage.m4: Likewise.
96924         * m4/progtest.m4: Likewise.
96925
96926         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96927         * m4/jm-macros.m4: Require the new macro.
96928
96929 1998-06-29  Jim Meyering  <meyering@ascend.com>
96930
96931         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96932         for the definition of NGROUPS (used in a system header included
96933         by sys/mount.h).
96934
96935 1998-06-28  Jim Meyering  <meyering@ascend.com>
96936
96937         * m4/ls-mntd-fs.m4: New file.
96938         * m4/fstypename.m4: New file.
96939
96940         * m4/jm-macros.m4: Require the new macro.
96941         * m4/jm-glibc-io.m4: New file.
96942
96943 1998-05-19  Jim Meyering  <meyering@ascend.com>
96944
96945         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96946         * m4/lchown.m4: New file.
96947
96948         * m4/Makefile.am.in: New file.
96949         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96950
96951 1998-05-14  Jim Meyering  <meyering@ascend.com>
96952
96953         * m4/Makefile.am (EXTRA_DIST): Add them.
96954         * m4/jm-macros.m4: New file.
96955         * m4/utimbuf.m4: New file.
96956
96957 1998-05-12  Jim Meyering  <meyering@ascend.com>
96958
96959         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96960
96961 1998-05-11  Jim Meyering  <meyering@ascend.com>
96962
96963         * m4/isc-posix.m4: New file.
96964
96965 1998-05-10  Jim Meyering  <meyering@ascend.com>
96966
96967         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96968
96969 1998-05-09  Jim Meyering  <meyering@ascend.com>
96970
96971         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96972         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96973         with automake.
96974
96975         * m4/ssize_t.m4: New file.
96976         * m4/mktime.m4: Remove file -- the new automake has this now.
96977
96978 1998-04-26  Jim Meyering  <meyering@ascend.com>
96979
96980         * m4/assert.m4: New file.
96981         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96982
96983 1998-04-05  Jim Meyering  <meyering@ascend.com>
96984
96985         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96986         (jm_PREREQ): Use it here.
96987
96988 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96989
96990         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96991         in acconfig.h.
96992
96993 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96994
96995         * m4/prereq.m4: New file.
96996         * m4/error.m4: New file.
96997         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96998
96999 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97000
97001         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97002         cache-check for the same variable -- that defeated the purpose of
97003         the test; the test program was never run.  This was a problem only
97004         on systems with losing getline functions -- HP-UX 10.20 is one.
97005         Reported by Bjorn Helgaas.
97006
97007 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97008
97009         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97010
97011 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97012
97013         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97014
97015         * m4/const.m4: New file.  Use an initializer in this declaration
97016         typedef int charset[2]; const charset x;
97017         Reported by Bob Glickstein.
97018
97019 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97020
97021         * m4/chown.m4: Fix reversed types on -1 args to chown.
97022         From Kaveh Ghazi.
97023
97024 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97025
97026         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97027         Add lseek and memchr.
97028
97029         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97030         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97031         have a 20-character limit on names.
97032
97033 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97034
97035         * m4/inttypes_h.m4: New file.
97036         * m4/uintmax_t.m4: New file.
97037         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97038
97039
97040         -----
97041
97042         Local Variables:
97043         coding: utf-8
97044         End:
97045
97046         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97047
97048         Copying and distribution of this file, with or without
97049         modification, are permitted provided the copyright notice
97050         and this notice are preserved.